@@ -262,9 +262,10 @@ def list_alert_policies(
262
262
... pass
263
263
264
264
Args:
265
- name (str): The project whose alert policies are to be listed. The format is
265
+ name (str): Required. The project whose alert policies are to be listed. The format
266
+ is:
266
267
267
- projects/[PROJECT_ID ]
268
+ projects/[PROJECT_ID_OR_NUMBER ]
268
269
269
270
Note that this field names the parent container in which the alerting
270
271
policies to be listed are stored. To retrieve a single alerting policy
@@ -372,9 +373,9 @@ def get_alert_policy(
372
373
>>> response = client.get_alert_policy(name)
373
374
374
375
Args:
375
- name (str): The alerting policy to retrieve. The format is
376
+ name (str): Required. The alerting policy to retrieve. The format is:
376
377
377
- projects/[PROJECT_ID ]/alertPolicies/[ALERT_POLICY_ID]
378
+ projects/[PROJECT_ID_OR_NUMBER ]/alertPolicies/[ALERT_POLICY_ID]
378
379
retry (Optional[google.api_core.retry.Retry]): A retry object used
379
380
to retry requests. If ``None`` is specified, requests will
380
381
be retried using a default configuration.
@@ -450,17 +451,20 @@ def create_alert_policy(
450
451
>>> response = client.create_alert_policy(name, alert_policy)
451
452
452
453
Args:
453
- name (str): The project in which to create the alerting policy. The format is
454
- ``projects/[PROJECT_ID]``.
454
+ name (str): Required. The project in which to create the alerting policy. The format
455
+ is:
456
+
457
+ projects/[PROJECT_ID_OR_NUMBER]
455
458
456
459
Note that this field names the parent container in which the alerting
457
460
policy will be written, not the name of the created policy. The alerting
458
461
policy that is returned will have a name that contains a normalized
459
462
representation of this name as a prefix but adds a suffix of the form
460
- ``/alertPolicies/[POLICY_ID]``, identifying the policy in the container.
461
- alert_policy (Union[dict, ~google.cloud.monitoring_v3.types.AlertPolicy]): The requested alerting policy. You should omit the ``name`` field in
462
- this policy. The name will be returned in the new policy, including a
463
- new [ALERT\_POLICY\_ID] value.
463
+ ``/alertPolicies/[ALERT_POLICY_ID]``, identifying the policy in the
464
+ container.
465
+ alert_policy (Union[dict, ~google.cloud.monitoring_v3.types.AlertPolicy]): Required. The requested alerting policy. You should omit the ``name``
466
+ field in this policy. The name will be returned in the new policy,
467
+ including a new ``[ALERT_POLICY_ID]`` value.
464
468
465
469
If a dict is provided, it must be of the same form as the protobuf
466
470
message :class:`~google.cloud.monitoring_v3.types.AlertPolicy`
@@ -537,9 +541,9 @@ def delete_alert_policy(
537
541
>>> client.delete_alert_policy(name)
538
542
539
543
Args:
540
- name (str): The alerting policy to delete. The format is:
544
+ name (str): Required. The alerting policy to delete. The format is:
541
545
542
- projects/[PROJECT_ID ]/alertPolicies/[ALERT_POLICY_ID]
546
+ projects/[PROJECT_ID_OR_NUMBER ]/alertPolicies/[ALERT_POLICY_ID]
543
547
544
548
For more information, see ``AlertPolicy``.
545
549
retry (Optional[google.api_core.retry.Retry]): A retry object used
0 commit comments