Skip to content

Commit 022f2ad

Browse files
committed
fix(coverage): add test cases for _pb proto-plus requests in google-api-core and remove unused imports in _compat.py template
1 parent 7fbb8f8 commit 022f2ad

223 files changed

Lines changed: 79562 additions & 49860 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/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ import operator
88
import os
99
import re
1010
import uuid
11-
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
11+
from typing import Any, Callable, Dict, List, Optional, Tuple
1212
from google.auth.exceptions import MutualTLSChannelError
13-
import google.protobuf.message
1413

1514

1615
try:

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset/__init__.py

Lines changed: 111 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,46 @@
1919

2020

2121
from google.cloud.asset_v1.services.asset_service.client import AssetServiceClient
22-
from google.cloud.asset_v1.services.asset_service.async_client import AssetServiceAsyncClient
22+
from google.cloud.asset_v1.services.asset_service.async_client import (
23+
AssetServiceAsyncClient,
24+
)
2325

2426
from google.cloud.asset_v1.types.asset_enrichment_resourceowners import ResourceOwners
25-
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyLongrunningMetadata
27+
from google.cloud.asset_v1.types.asset_service import (
28+
AnalyzeIamPolicyLongrunningMetadata,
29+
)
2630
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyLongrunningRequest
27-
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyLongrunningResponse
31+
from google.cloud.asset_v1.types.asset_service import (
32+
AnalyzeIamPolicyLongrunningResponse,
33+
)
2834
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyRequest
2935
from google.cloud.asset_v1.types.asset_service import AnalyzeIamPolicyResponse
3036
from google.cloud.asset_v1.types.asset_service import AnalyzeMoveRequest
3137
from google.cloud.asset_v1.types.asset_service import AnalyzeMoveResponse
3238
from google.cloud.asset_v1.types.asset_service import AnalyzeOrgPoliciesRequest
3339
from google.cloud.asset_v1.types.asset_service import AnalyzeOrgPoliciesResponse
34-
from google.cloud.asset_v1.types.asset_service import AnalyzeOrgPolicyGovernedAssetsRequest
35-
from google.cloud.asset_v1.types.asset_service import AnalyzeOrgPolicyGovernedAssetsResponse
36-
from google.cloud.asset_v1.types.asset_service import AnalyzeOrgPolicyGovernedContainersRequest
37-
from google.cloud.asset_v1.types.asset_service import AnalyzeOrgPolicyGovernedContainersResponse
40+
from google.cloud.asset_v1.types.asset_service import (
41+
AnalyzeOrgPolicyGovernedAssetsRequest,
42+
)
43+
from google.cloud.asset_v1.types.asset_service import (
44+
AnalyzeOrgPolicyGovernedAssetsResponse,
45+
)
46+
from google.cloud.asset_v1.types.asset_service import (
47+
AnalyzeOrgPolicyGovernedContainersRequest,
48+
)
49+
from google.cloud.asset_v1.types.asset_service import (
50+
AnalyzeOrgPolicyGovernedContainersResponse,
51+
)
3852
from google.cloud.asset_v1.types.asset_service import AnalyzerOrgPolicy
3953
from google.cloud.asset_v1.types.asset_service import AnalyzerOrgPolicyConstraint
4054
from google.cloud.asset_v1.types.asset_service import BatchGetAssetsHistoryRequest
4155
from google.cloud.asset_v1.types.asset_service import BatchGetAssetsHistoryResponse
42-
from google.cloud.asset_v1.types.asset_service import BatchGetEffectiveIamPoliciesRequest
43-
from google.cloud.asset_v1.types.asset_service import BatchGetEffectiveIamPoliciesResponse
56+
from google.cloud.asset_v1.types.asset_service import (
57+
BatchGetEffectiveIamPoliciesRequest,
58+
)
59+
from google.cloud.asset_v1.types.asset_service import (
60+
BatchGetEffectiveIamPoliciesResponse,
61+
)
4462
from google.cloud.asset_v1.types.asset_service import BigQueryDestination
4563
from google.cloud.asset_v1.types.asset_service import CreateFeedRequest
4664
from google.cloud.asset_v1.types.asset_service import CreateSavedQueryRequest
@@ -103,87 +121,88 @@
103121
from google.cloud.asset_v1.types.assets import TimeWindow
104122
from google.cloud.asset_v1.types.assets import VersionedResource
105123

106-
__all__ = ('AssetServiceClient',
107-
'AssetServiceAsyncClient',
108-
'ResourceOwners',
109-
'AnalyzeIamPolicyLongrunningMetadata',
110-
'AnalyzeIamPolicyLongrunningRequest',
111-
'AnalyzeIamPolicyLongrunningResponse',
112-
'AnalyzeIamPolicyRequest',
113-
'AnalyzeIamPolicyResponse',
114-
'AnalyzeMoveRequest',
115-
'AnalyzeMoveResponse',
116-
'AnalyzeOrgPoliciesRequest',
117-
'AnalyzeOrgPoliciesResponse',
118-
'AnalyzeOrgPolicyGovernedAssetsRequest',
119-
'AnalyzeOrgPolicyGovernedAssetsResponse',
120-
'AnalyzeOrgPolicyGovernedContainersRequest',
121-
'AnalyzeOrgPolicyGovernedContainersResponse',
122-
'AnalyzerOrgPolicy',
123-
'AnalyzerOrgPolicyConstraint',
124-
'BatchGetAssetsHistoryRequest',
125-
'BatchGetAssetsHistoryResponse',
126-
'BatchGetEffectiveIamPoliciesRequest',
127-
'BatchGetEffectiveIamPoliciesResponse',
128-
'BigQueryDestination',
129-
'CreateFeedRequest',
130-
'CreateSavedQueryRequest',
131-
'DeleteFeedRequest',
132-
'DeleteSavedQueryRequest',
133-
'ExportAssetsRequest',
134-
'ExportAssetsResponse',
135-
'Feed',
136-
'FeedOutputConfig',
137-
'GcsDestination',
138-
'GcsOutputResult',
139-
'GetFeedRequest',
140-
'GetSavedQueryRequest',
141-
'IamPolicyAnalysisOutputConfig',
142-
'IamPolicyAnalysisQuery',
143-
'ListAssetsRequest',
144-
'ListAssetsResponse',
145-
'ListFeedsRequest',
146-
'ListFeedsResponse',
147-
'ListSavedQueriesRequest',
148-
'ListSavedQueriesResponse',
149-
'MoveAnalysis',
150-
'MoveAnalysisResult',
151-
'MoveImpact',
152-
'OutputConfig',
153-
'OutputResult',
154-
'PartitionSpec',
155-
'PubsubDestination',
156-
'QueryAssetsOutputConfig',
157-
'QueryAssetsRequest',
158-
'QueryAssetsResponse',
159-
'QueryResult',
160-
'SavedQuery',
161-
'SearchAllIamPoliciesRequest',
162-
'SearchAllIamPoliciesResponse',
163-
'SearchAllResourcesRequest',
164-
'SearchAllResourcesResponse',
165-
'TableFieldSchema',
166-
'TableSchema',
167-
'UpdateFeedRequest',
168-
'UpdateSavedQueryRequest',
169-
'ContentType',
170-
'Asset',
171-
'AssetEnrichment',
172-
'AttachedResource',
173-
'ConditionEvaluation',
174-
'EffectiveTagDetails',
175-
'IamPolicyAnalysisResult',
176-
'IamPolicyAnalysisState',
177-
'IamPolicySearchResult',
178-
'RelatedAsset',
179-
'RelatedAssets',
180-
'RelatedResource',
181-
'RelatedResources',
182-
'RelationshipAttributes',
183-
'Resource',
184-
'ResourceSearchResult',
185-
'Tag',
186-
'TemporalAsset',
187-
'TimeWindow',
188-
'VersionedResource',
124+
__all__ = (
125+
"AssetServiceClient",
126+
"AssetServiceAsyncClient",
127+
"ResourceOwners",
128+
"AnalyzeIamPolicyLongrunningMetadata",
129+
"AnalyzeIamPolicyLongrunningRequest",
130+
"AnalyzeIamPolicyLongrunningResponse",
131+
"AnalyzeIamPolicyRequest",
132+
"AnalyzeIamPolicyResponse",
133+
"AnalyzeMoveRequest",
134+
"AnalyzeMoveResponse",
135+
"AnalyzeOrgPoliciesRequest",
136+
"AnalyzeOrgPoliciesResponse",
137+
"AnalyzeOrgPolicyGovernedAssetsRequest",
138+
"AnalyzeOrgPolicyGovernedAssetsResponse",
139+
"AnalyzeOrgPolicyGovernedContainersRequest",
140+
"AnalyzeOrgPolicyGovernedContainersResponse",
141+
"AnalyzerOrgPolicy",
142+
"AnalyzerOrgPolicyConstraint",
143+
"BatchGetAssetsHistoryRequest",
144+
"BatchGetAssetsHistoryResponse",
145+
"BatchGetEffectiveIamPoliciesRequest",
146+
"BatchGetEffectiveIamPoliciesResponse",
147+
"BigQueryDestination",
148+
"CreateFeedRequest",
149+
"CreateSavedQueryRequest",
150+
"DeleteFeedRequest",
151+
"DeleteSavedQueryRequest",
152+
"ExportAssetsRequest",
153+
"ExportAssetsResponse",
154+
"Feed",
155+
"FeedOutputConfig",
156+
"GcsDestination",
157+
"GcsOutputResult",
158+
"GetFeedRequest",
159+
"GetSavedQueryRequest",
160+
"IamPolicyAnalysisOutputConfig",
161+
"IamPolicyAnalysisQuery",
162+
"ListAssetsRequest",
163+
"ListAssetsResponse",
164+
"ListFeedsRequest",
165+
"ListFeedsResponse",
166+
"ListSavedQueriesRequest",
167+
"ListSavedQueriesResponse",
168+
"MoveAnalysis",
169+
"MoveAnalysisResult",
170+
"MoveImpact",
171+
"OutputConfig",
172+
"OutputResult",
173+
"PartitionSpec",
174+
"PubsubDestination",
175+
"QueryAssetsOutputConfig",
176+
"QueryAssetsRequest",
177+
"QueryAssetsResponse",
178+
"QueryResult",
179+
"SavedQuery",
180+
"SearchAllIamPoliciesRequest",
181+
"SearchAllIamPoliciesResponse",
182+
"SearchAllResourcesRequest",
183+
"SearchAllResourcesResponse",
184+
"TableFieldSchema",
185+
"TableSchema",
186+
"UpdateFeedRequest",
187+
"UpdateSavedQueryRequest",
188+
"ContentType",
189+
"Asset",
190+
"AssetEnrichment",
191+
"AttachedResource",
192+
"ConditionEvaluation",
193+
"EffectiveTagDetails",
194+
"IamPolicyAnalysisResult",
195+
"IamPolicyAnalysisState",
196+
"IamPolicySearchResult",
197+
"RelatedAsset",
198+
"RelatedAssets",
199+
"RelatedResource",
200+
"RelatedResources",
201+
"RelationshipAttributes",
202+
"Resource",
203+
"ResourceSearchResult",
204+
"Tag",
205+
"TemporalAsset",
206+
"TimeWindow",
207+
"VersionedResource",
189208
)

0 commit comments

Comments
 (0)