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

Commit 8d54a7e

Browse files
authored
fix: add missing argument description (#504)
add argument description for restore() method
1 parent b8d1a7f commit 8d54a7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

samples/snippets/v3/alerts-client/snippets.py

+8
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ def default(self, obj):
216216
# [START monitoring_alert_update_channel]
217217
# [START monitoring_alert_enable_channel]
218218
def restore(project_name, backup_filename):
219+
"""Restore alert policies in a project.
220+
221+
Arguments:
222+
project_name (str): The Google Cloud Project to use. The project name
223+
must be in the format - 'projects/<PROJECT_NAME>'.
224+
backup_filename (str): Name of the file (along with its path) from
225+
which the alert policies will be restored.
226+
"""
219227
print(
220228
"Loading alert policies and notification channels from {}.".format(
221229
backup_filename

0 commit comments

Comments
 (0)