@@ -338,12 +338,12 @@ def batch_get_assets_history(
338
338
metadata = None ,
339
339
):
340
340
"""
341
- Batch gets the update history of assets that overlap a time window. For
342
- RESOURCE content, this API outputs history with asset in both non-delete
343
- or deleted status. For IAM\_POLICY content, this API outputs history
344
- when the asset and its attached IAM POLICY both exist. This can create
345
- gaps in the output history. If a specified asset does not exist, this
346
- API returns an INVALID\_ARGUMENT error.
341
+ Batch gets the update history of assets that overlap a time window.
342
+ For RESOURCE content, this API outputs history with asset in both
343
+ non-delete or deleted status. For IAM_POLICY content, this API outputs
344
+ history when the asset and its attached IAM POLICY both exist. This can
345
+ create gaps in the output history. If a specified asset does not exist,
346
+ this API returns an INVALID_ARGUMENT error.
347
347
348
348
Example:
349
349
>>> from google.cloud import asset_v1
@@ -367,12 +367,12 @@ def batch_get_assets_history(
367
367
organization number (such as "organizations/123"), a project ID (such as
368
368
"projects/my-project-id")", or a project number (such as "projects/12345").
369
369
content_type (~google.cloud.asset_v1.types.ContentType): Optional. The content type.
370
- read_time_window (Union[dict, ~google.cloud.asset_v1.types.TimeWindow]): Optional. The time window for the asset history. Both start\_time and
371
- end\_time are optional and if set, it must be after 2018-10-02 UTC. If
372
- end\_time is not set, it is default to current timestamp. If start\_time
373
- is not set, the snapshot of the assets at end\_time will be returned.
374
- The returned results contain all temporal assets whose time window
375
- overlap with read\_time\_window .
370
+ read_time_window (Union[dict, ~google.cloud.asset_v1.types.TimeWindow]): Optional. The time window for the asset history. Both start_time and
371
+ end_time are optional and if set, it must be after 2018-10-02 UTC. If
372
+ end_time is not set, it is default to current timestamp. If start_time
373
+ is not set, the snapshot of the assets at end_time will be returned. The
374
+ returned results contain all temporal assets whose time window overlap
375
+ with read_time_window .
376
376
377
377
If a dict is provided, it must be of the same form as the protobuf
378
378
message :class:`~google.cloud.asset_v1.types.TimeWindow`
@@ -476,10 +476,11 @@ def create_feed(
476
476
"projects/12345").
477
477
feed_id (str): Required. This is the client-assigned asset feed identifier and it needs to
478
478
be unique under a specific parent project/folder/organization.
479
- feed (Union[dict, ~google.cloud.asset_v1.types.Feed]): Required. The feed details. The field ``name`` must be empty and it will
480
- be generated in the format of: projects/project\_number/feeds/feed\_id
481
- folders/folder\_number/feeds/feed\_id
482
- organizations/organization\_number/feeds/feed\_id
479
+ feed (Union[dict, ~google.cloud.asset_v1.types.Feed]): Required. The feed details. The field ``name`` must be empty and it
480
+ will be generated in the format of:
481
+ projects/project_number/feeds/feed_id
482
+ folders/folder_number/feeds/feed_id
483
+ organizations/organization_number/feeds/feed_id
483
484
484
485
If a dict is provided, it must be of the same form as the protobuf
485
486
message :class:`~google.cloud.asset_v1.types.Feed`
@@ -554,9 +555,9 @@ def get_feed(
554
555
555
556
Args:
556
557
name (str): Required. The name of the Feed and it must be in the format of:
557
- projects/project\_number /feeds/feed\_id
558
- folders/folder\_number /feeds/feed\_id
559
- organizations/organization\_number /feeds/feed\_id
558
+ projects/project_number /feeds/feed_id
559
+ folders/folder_number /feeds/feed_id
560
+ organizations/organization_number /feeds/feed_id
560
561
retry (Optional[google.api_core.retry.Retry]): A retry object used
561
562
to retry requests. If ``None`` is specified, requests will
562
563
be retried using a default configuration.
@@ -702,17 +703,17 @@ def update_feed(
702
703
>>> response = client.update_feed(feed, update_mask)
703
704
704
705
Args:
705
- feed (Union[dict, ~google.cloud.asset_v1.types.Feed]): Required. The new values of feed details. It must match an existing feed
706
- and the field ``name`` must be in the format of:
707
- projects/project\_number /feeds/feed\_id or
708
- folders/folder\_number /feeds/feed\_id or
709
- organizations/organization\_number /feeds/feed\_id .
706
+ feed (Union[dict, ~google.cloud.asset_v1.types.Feed]): Required. The new values of feed details. It must match an existing
707
+ feed and the field ``name`` must be in the format of:
708
+ projects/project_number /feeds/feed_id or
709
+ folders/folder_number /feeds/feed_id or
710
+ organizations/organization_number /feeds/feed_id .
710
711
711
712
If a dict is provided, it must be of the same form as the protobuf
712
713
message :class:`~google.cloud.asset_v1.types.Feed`
713
- update_mask (Union[dict, ~google.cloud.asset_v1.types.FieldMask]): Required. Only updates the ``feed`` fields indicated by this mask. The
714
- field mask must not be empty, and it must not contain fields that are
715
- immutable or only set by the server.
714
+ update_mask (Union[dict, ~google.cloud.asset_v1.types.FieldMask]): Required. Only updates the ``feed`` fields indicated by this mask.
715
+ The field mask must not be empty, and it must not contain fields that
716
+ are immutable or only set by the server.
716
717
717
718
If a dict is provided, it must be of the same form as the protobuf
718
719
message :class:`~google.cloud.asset_v1.types.FieldMask`
@@ -787,9 +788,9 @@ def delete_feed(
787
788
788
789
Args:
789
790
name (str): Required. The name of the feed and it must be in the format of:
790
- projects/project\_number /feeds/feed\_id
791
- folders/folder\_number /feeds/feed\_id
792
- organizations/organization\_number /feeds/feed\_id
791
+ projects/project_number /feeds/feed_id
792
+ folders/folder_number /feeds/feed_id
793
+ organizations/organization_number /feeds/feed_id
793
794
retry (Optional[google.api_core.retry.Retry]): A retry object used
794
795
to retry requests. If ``None`` is specified, requests will
795
796
be retried using a default configuration.
0 commit comments