Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
fix: add missing argument description (#504)
Browse files Browse the repository at this point in the history
add argument description for restore() method
  • Loading branch information
minherz committed Oct 10, 2022
1 parent b8d1a7f commit 8d54a7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions samples/snippets/v3/alerts-client/snippets.py
Expand Up @@ -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/<PROJECT_NAME>'.
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
Expand Down

0 comments on commit 8d54a7e

Please sign in to comment.