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

fix: add missing argument descriptions #504

Merged
merged 2 commits into from Oct 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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