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 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions samples/snippets/v3/alerts-client/snippets.py
Original file line number Diff line number Diff line change
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