From 6093d0100af75ee78ae09b11897db678cd420ee2 Mon Sep 17 00:00:00 2001 From: minherz Date: Fri, 7 Oct 2022 15:24:25 -0700 Subject: [PATCH] fix: add missing argument description add argument description for restore() method --- samples/snippets/v3/alerts-client/snippets.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/snippets/v3/alerts-client/snippets.py b/samples/snippets/v3/alerts-client/snippets.py index aeaa45a1..6362ff37 100644 --- a/samples/snippets/v3/alerts-client/snippets.py +++ b/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