Content-Length: 797000 | pFad | http://github.com/googleapis/google-cloud-python/commit/e2e4f7b0930067d2fac29cde5a54fb2179adfee0

FB feat: add v1p4beta1 (#16) · googleapis/google-cloud-python@e2e4f7b · GitHub
Skip to content

Commit e2e4f7b

Browse files
authored
feat: add v1p4beta1 (#16)
1 parent e537925 commit e2e4f7b

32 files changed

+4103
-687
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Client for Cloud Asset API
2+
==========================
3+
4+
.. automodule:: google.cloud.asset_v1p4beta1
5+
:members:
6+
:inherited-members:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Types for Cloud Asset API Client
2+
================================
3+
4+
.. automodule:: google.cloud.asset_v1p4beta1.types
5+
:members:

packages/google-cloud-asset/docs/index.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ v1
1414
gapic/v1/api
1515
gapic/v1/types
1616

17-
Beta releases with additional features over the current stable version, spelled ``v1p1beta1`` and ``v1p2beta1``,
18-
are provided to allow you to use these new features. These are expected to move into the stable release soon;
17+
Beta releases with additional features over the current stable version. These are expected to move into the stable release soon;
1918
until then, the usual beta admonishment (changes are possible, etc.) applies.
2019

21-
An API and type reference is provided for this beta:
20+
In order to use it, you will want to import from
21+
``google.cloud.asset_v1p4beta1`` in lieu of ``google.cloud.asset_v1``.
2222

2323
v1p1beta1
2424
~~~~~~~~~
@@ -37,9 +37,16 @@ v1p2beta1
3737
gapic/v1p2beta1/api
3838
gapic/v1p2beta1/types
3939

40-
The previous beta release, spelled ``v1beta1`` is also provided to continue to support code
41-
previously written against it. In order to use it, you will want to import from
42-
``google.cloud.asset_v1beta1`` in lieu of ``google.cloud.asset_v1``.
40+
41+
v1p4beta1
42+
~~~~~~~~~
43+
.. toctree::
44+
:maxdepth: 2
45+
46+
gapic/v1p4beta1/api
47+
gapic/v1p4beta1/types
48+
49+
4350

4451
v1beta1
4552
~~~~~~~~~

packages/google-cloud-asset/google/cloud/asset_v1/gapic/asset_service_client.py

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,12 @@ def batch_get_assets_history(
338338
metadata=None,
339339
):
340340
"""
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.
347347
348348
Example:
349349
>>> from google.cloud import asset_v1
@@ -367,12 +367,12 @@ def batch_get_assets_history(
367367
organization number (such as "organizations/123"), a project ID (such as
368368
"projects/my-project-id")", or a project number (such as "projects/12345").
369369
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.
376376
377377
If a dict is provided, it must be of the same form as the protobuf
378378
message :class:`~google.cloud.asset_v1.types.TimeWindow`
@@ -476,10 +476,11 @@ def create_feed(
476476
"projects/12345").
477477
feed_id (str): Required. This is the client-assigned asset feed identifier and it needs to
478478
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
483484
484485
If a dict is provided, it must be of the same form as the protobuf
485486
message :class:`~google.cloud.asset_v1.types.Feed`
@@ -554,9 +555,9 @@ def get_feed(
554555
555556
Args:
556557
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
560561
retry (Optional[google.api_core.retry.Retry]): A retry object used
561562
to retry requests. If ``None`` is specified, requests will
562563
be retried using a default configuration.
@@ -702,17 +703,17 @@ def update_feed(
702703
>>> response = client.update_feed(feed, update_mask)
703704
704705
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.
710711
711712
If a dict is provided, it must be of the same form as the protobuf
712713
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.
716717
717718
If a dict is provided, it must be of the same form as the protobuf
718719
message :class:`~google.cloud.asset_v1.types.FieldMask`
@@ -787,9 +788,9 @@ def delete_feed(
787788
788789
Args:
789790
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
793794
retry (Optional[google.api_core.retry.Retry]): A retry object used
794795
to retry requests. If ``None`` is specified, requests will
795796
be retried using a default configuration.

packages/google-cloud-asset/google/cloud/asset_v1/gapic/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class ContentType(enum.IntEnum):
4040

4141
class NullValue(enum.IntEnum):
4242
"""
43-
``NullValue`` is a singleton enumeration to represent the null value for
44-
the ``Value`` type union.
43+
``NullValue`` is a singleton enumeration to represent the null value
44+
for the ``Value`` type union.
4545
4646
The JSON representation for ``NullValue`` is JSON ``null``.
4747

packages/google-cloud-asset/google/cloud/asset_v1/gapic/transports/asset_service_grpc_transport.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ def export_assets(self):
135135
def batch_get_assets_history(self):
136136
"""Return the gRPC stub for :meth:`AssetServiceClient.batch_get_assets_history`.
137137
138-
Batch gets the update history of assets that overlap a time window. For
139-
RESOURCE content, this API outputs history with asset in both non-delete
140-
or deleted status. For IAM\_POLICY content, this API outputs history
141-
when the asset and its attached IAM POLICY both exist. This can create
142-
gaps in the output history. If a specified asset does not exist, this
143-
API returns an INVALID\_ARGUMENT error.
138+
Batch gets the update history of assets that overlap a time window.
139+
For RESOURCE content, this API outputs history with asset in both
140+
non-delete or deleted status. For IAM_POLICY content, this API outputs
141+
history when the asset and its attached IAM POLICY both exist. This can
142+
create gaps in the output history. If a specified asset does not exist,
143+
this API returns an INVALID_ARGUMENT error.
144144
145145
Returns:
146146
Callable: A callable which accepts the appropriate

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/e2e4f7b0930067d2fac29cde5a54fb2179adfee0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy