From a76e419f6639a0e9c1920b85a4205d3c44cce68b Mon Sep 17 00:00:00 2001 From: minherz Date: Mon, 10 Oct 2022 18:26:36 +0000 Subject: [PATCH] fix: add missing argument description (#504) add argument description for restore() method --- .../samples/snippets/v3/alerts-client/snippets.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/google-cloud-monitoring/samples/snippets/v3/alerts-client/snippets.py b/packages/google-cloud-monitoring/samples/snippets/v3/alerts-client/snippets.py index aeaa45a1cabc..6362ff37f156 100644 --- a/packages/google-cloud-monitoring/samples/snippets/v3/alerts-client/snippets.py +++ b/packages/google-cloud-monitoring/samples/snippets/v3/alerts-client/snippets.py @@ -216,6 +216,14 @@ def default(self, obj): # [START monitoring_alert_update_channel] # [START monitoring_alert_enable_channel] def restore(project_name, backup_filename): + """Restore alert policies in a project. + + Arguments: + project_name (str): The Google Cloud Project to use. The project name + must be in the format - 'projects/'. + backup_filename (str): Name of the file (along with its path) from + which the alert policies will be restored. + """ print( "Loading alert policies and notification channels from {}.".format( backup_filename