Skip to content

Commit 1005fa3

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#189)
feat: support self-signed JWT flow for service accounts fix: add async client to %name_%version/init.py chore: add autogenerated snippets chore: remove auth, policy, and options from the reserved names list chore: enable GAPIC metadata generation chore: sort subpackages in %namespace/%name/init.py
1 parent e4c8629 commit 1005fa3

93 files changed

Lines changed: 2981 additions & 1988 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-asset/docs/asset_v1/asset_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ AssetService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.asset_v1.services.asset_service.pagers
109
:members:
1110
:inherited-members:

packages/google-cloud-asset/docs/asset_v1p1beta1/asset_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ AssetService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.asset_v1p1beta1.services.asset_service.pagers
109
:members:
1110
:inherited-members:

packages/google-cloud-asset/docs/asset_v1p5beta1/asset_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ AssetService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.asset_v1p5beta1.services.asset_service.pagers
109
:members:
1110
:inherited-members:

packages/google-cloud-asset/google/cloud/asset/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,10 +14,11 @@
1514
# limitations under the License.
1615
#
1716

17+
from google.cloud.asset_v1.services.asset_service.client import AssetServiceClient
1818
from google.cloud.asset_v1.services.asset_service.async_client import (
1919
AssetServiceAsyncClient,
2020
)
21-
from google.cloud.asset_v1.services.asset_service.client import AssetServiceClient
21+
2222
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyLongrunningRequest
2323
from google.cloud.asset_v1.types.asset_service import (
2424
AnalyzeIamPolicyLongrunningResponse,
@@ -28,7 +28,6 @@
2828
from google.cloud.asset_v1.types.asset_service import BatchGetAssetsHistoryRequest
2929
from google.cloud.asset_v1.types.asset_service import BatchGetAssetsHistoryResponse
3030
from google.cloud.asset_v1.types.asset_service import BigQueryDestination
31-
from google.cloud.asset_v1.types.asset_service import ContentType
3231
from google.cloud.asset_v1.types.asset_service import CreateFeedRequest
3332
from google.cloud.asset_v1.types.asset_service import DeleteFeedRequest
3433
from google.cloud.asset_v1.types.asset_service import ExportAssetsRequest
@@ -51,6 +50,7 @@
5150
from google.cloud.asset_v1.types.asset_service import SearchAllResourcesRequest
5251
from google.cloud.asset_v1.types.asset_service import SearchAllResourcesResponse
5352
from google.cloud.asset_v1.types.asset_service import UpdateFeedRequest
53+
from google.cloud.asset_v1.types.asset_service import ContentType
5454
from google.cloud.asset_v1.types.assets import Asset
5555
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisResult
5656
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisState
@@ -61,17 +61,15 @@
6161
from google.cloud.asset_v1.types.assets import TimeWindow
6262

6363
__all__ = (
64+
"AssetServiceClient",
65+
"AssetServiceAsyncClient",
6466
"AnalyzeIamPolicyLongrunningRequest",
6567
"AnalyzeIamPolicyLongrunningResponse",
6668
"AnalyzeIamPolicyRequest",
6769
"AnalyzeIamPolicyResponse",
68-
"Asset",
69-
"AssetServiceAsyncClient",
70-
"AssetServiceClient",
7170
"BatchGetAssetsHistoryRequest",
7271
"BatchGetAssetsHistoryResponse",
7372
"BigQueryDestination",
74-
"ContentType",
7573
"CreateFeedRequest",
7674
"DeleteFeedRequest",
7775
"ExportAssetsRequest",
@@ -83,22 +81,24 @@
8381
"GetFeedRequest",
8482
"IamPolicyAnalysisOutputConfig",
8583
"IamPolicyAnalysisQuery",
86-
"IamPolicyAnalysisResult",
87-
"IamPolicyAnalysisState",
88-
"IamPolicySearchResult",
8984
"ListFeedsRequest",
9085
"ListFeedsResponse",
9186
"OutputConfig",
9287
"OutputResult",
9388
"PartitionSpec",
9489
"PubsubDestination",
95-
"Resource",
96-
"ResourceSearchResult",
9790
"SearchAllIamPoliciesRequest",
9891
"SearchAllIamPoliciesResponse",
9992
"SearchAllResourcesRequest",
10093
"SearchAllResourcesResponse",
94+
"UpdateFeedRequest",
95+
"ContentType",
96+
"Asset",
97+
"IamPolicyAnalysisResult",
98+
"IamPolicyAnalysisState",
99+
"IamPolicySearchResult",
100+
"Resource",
101+
"ResourceSearchResult",
101102
"TemporalAsset",
102103
"TimeWindow",
103-
"UpdateFeedRequest",
104104
)

packages/google-cloud-asset/google/cloud/asset_v1/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,14 +15,15 @@
1615
#
1716

1817
from .services.asset_service import AssetServiceClient
18+
from .services.asset_service import AssetServiceAsyncClient
19+
1920
from .types.asset_service import AnalyzeIamPolicyLongrunningRequest
2021
from .types.asset_service import AnalyzeIamPolicyLongrunningResponse
2122
from .types.asset_service import AnalyzeIamPolicyRequest
2223
from .types.asset_service import AnalyzeIamPolicyResponse
2324
from .types.asset_service import BatchGetAssetsHistoryRequest
2425
from .types.asset_service import BatchGetAssetsHistoryResponse
2526
from .types.asset_service import BigQueryDestination
26-
from .types.asset_service import ContentType
2727
from .types.asset_service import CreateFeedRequest
2828
from .types.asset_service import DeleteFeedRequest
2929
from .types.asset_service import ExportAssetsRequest
@@ -46,6 +46,7 @@
4646
from .types.asset_service import SearchAllResourcesRequest
4747
from .types.asset_service import SearchAllResourcesResponse
4848
from .types.asset_service import UpdateFeedRequest
49+
from .types.asset_service import ContentType
4950
from .types.assets import Asset
5051
from .types.assets import IamPolicyAnalysisResult
5152
from .types.assets import IamPolicyAnalysisState
@@ -55,13 +56,14 @@
5556
from .types.assets import TemporalAsset
5657
from .types.assets import TimeWindow
5758

58-
5959
__all__ = (
60+
"AssetServiceAsyncClient",
6061
"AnalyzeIamPolicyLongrunningRequest",
6162
"AnalyzeIamPolicyLongrunningResponse",
6263
"AnalyzeIamPolicyRequest",
6364
"AnalyzeIamPolicyResponse",
6465
"Asset",
66+
"AssetServiceClient",
6567
"BatchGetAssetsHistoryRequest",
6668
"BatchGetAssetsHistoryResponse",
6769
"BigQueryDestination",
@@ -95,5 +97,4 @@
9597
"TemporalAsset",
9698
"TimeWindow",
9799
"UpdateFeedRequest",
98-
"AssetServiceClient",
99100
)
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.asset_v1",
5+
"protoPackage": "google.cloud.asset.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"AssetService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "AssetServiceClient",
12+
"rpcs": {
13+
"AnalyzeIamPolicy": {
14+
"methods": [
15+
"analyze_iam_policy"
16+
]
17+
},
18+
"AnalyzeIamPolicyLongrunning": {
19+
"methods": [
20+
"analyze_iam_policy_longrunning"
21+
]
22+
},
23+
"BatchGetAssetsHistory": {
24+
"methods": [
25+
"batch_get_assets_history"
26+
]
27+
},
28+
"CreateFeed": {
29+
"methods": [
30+
"create_feed"
31+
]
32+
},
33+
"DeleteFeed": {
34+
"methods": [
35+
"delete_feed"
36+
]
37+
},
38+
"ExportAssets": {
39+
"methods": [
40+
"export_assets"
41+
]
42+
},
43+
"GetFeed": {
44+
"methods": [
45+
"get_feed"
46+
]
47+
},
48+
"ListFeeds": {
49+
"methods": [
50+
"list_feeds"
51+
]
52+
},
53+
"SearchAllIamPolicies": {
54+
"methods": [
55+
"search_all_iam_policies"
56+
]
57+
},
58+
"SearchAllResources": {
59+
"methods": [
60+
"search_all_resources"
61+
]
62+
},
63+
"UpdateFeed": {
64+
"methods": [
65+
"update_feed"
66+
]
67+
}
68+
}
69+
},
70+
"grpc-async": {
71+
"libraryClient": "AssetServiceAsyncClient",
72+
"rpcs": {
73+
"AnalyzeIamPolicy": {
74+
"methods": [
75+
"analyze_iam_policy"
76+
]
77+
},
78+
"AnalyzeIamPolicyLongrunning": {
79+
"methods": [
80+
"analyze_iam_policy_longrunning"
81+
]
82+
},
83+
"BatchGetAssetsHistory": {
84+
"methods": [
85+
"batch_get_assets_history"
86+
]
87+
},
88+
"CreateFeed": {
89+
"methods": [
90+
"create_feed"
91+
]
92+
},
93+
"DeleteFeed": {
94+
"methods": [
95+
"delete_feed"
96+
]
97+
},
98+
"ExportAssets": {
99+
"methods": [
100+
"export_assets"
101+
]
102+
},
103+
"GetFeed": {
104+
"methods": [
105+
"get_feed"
106+
]
107+
},
108+
"ListFeeds": {
109+
"methods": [
110+
"list_feeds"
111+
]
112+
},
113+
"SearchAllIamPolicies": {
114+
"methods": [
115+
"search_all_iam_policies"
116+
]
117+
},
118+
"SearchAllResources": {
119+
"methods": [
120+
"search_all_resources"
121+
]
122+
},
123+
"UpdateFeed": {
124+
"methods": [
125+
"update_feed"
126+
]
127+
}
128+
}
129+
}
130+
}
131+
}
132+
}
133+
}

packages/google-cloud-asset/google/cloud/asset_v1/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

packages/google-cloud-asset/google/cloud/asset_v1/services/asset_service/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import AssetServiceClient
1917
from .async_client import AssetServiceAsyncClient
2018

0 commit comments

Comments
 (0)