Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit a02daf0

Browse files
committed
updated goldens
1 parent 6f052c8 commit a02daf0

7 files changed

Lines changed: 372 additions & 372 deletions

File tree

tests/integration/goldens/asset/google/cloud/asset_v1/__init__.py

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,96 @@
2323

2424
if sys.version_info >= (3, 8):
2525
from importlib import metadata
26-
else:
26+
else: # pragma: NO COVER
2727
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
2828
# this code path once we drop support for Python 3.7
2929
import importlib_metadata as metadata
3030

31+
32+
from .services.asset_service import AssetServiceClient
33+
from .services.asset_service import AssetServiceAsyncClient
34+
35+
from .types.asset_service import AnalyzeIamPolicyLongrunningMetadata
36+
from .types.asset_service import AnalyzeIamPolicyLongrunningRequest
37+
from .types.asset_service import AnalyzeIamPolicyLongrunningResponse
38+
from .types.asset_service import AnalyzeIamPolicyRequest
39+
from .types.asset_service import AnalyzeIamPolicyResponse
40+
from .types.asset_service import AnalyzeMoveRequest
41+
from .types.asset_service import AnalyzeMoveResponse
42+
from .types.asset_service import AnalyzeOrgPoliciesRequest
43+
from .types.asset_service import AnalyzeOrgPoliciesResponse
44+
from .types.asset_service import AnalyzeOrgPolicyGovernedAssetsRequest
45+
from .types.asset_service import AnalyzeOrgPolicyGovernedAssetsResponse
46+
from .types.asset_service import AnalyzeOrgPolicyGovernedContainersRequest
47+
from .types.asset_service import AnalyzeOrgPolicyGovernedContainersResponse
48+
from .types.asset_service import AnalyzerOrgPolicy
49+
from .types.asset_service import AnalyzerOrgPolicyConstraint
50+
from .types.asset_service import BatchGetAssetsHistoryRequest
51+
from .types.asset_service import BatchGetAssetsHistoryResponse
52+
from .types.asset_service import BatchGetEffectiveIamPoliciesRequest
53+
from .types.asset_service import BatchGetEffectiveIamPoliciesResponse
54+
from .types.asset_service import BigQueryDestination
55+
from .types.asset_service import CreateFeedRequest
56+
from .types.asset_service import CreateSavedQueryRequest
57+
from .types.asset_service import DeleteFeedRequest
58+
from .types.asset_service import DeleteSavedQueryRequest
59+
from .types.asset_service import ExportAssetsRequest
60+
from .types.asset_service import ExportAssetsResponse
61+
from .types.asset_service import Feed
62+
from .types.asset_service import FeedOutputConfig
63+
from .types.asset_service import GcsDestination
64+
from .types.asset_service import GcsOutputResult
65+
from .types.asset_service import GetFeedRequest
66+
from .types.asset_service import GetSavedQueryRequest
67+
from .types.asset_service import IamPolicyAnalysisOutputConfig
68+
from .types.asset_service import IamPolicyAnalysisQuery
69+
from .types.asset_service import ListAssetsRequest
70+
from .types.asset_service import ListAssetsResponse
71+
from .types.asset_service import ListFeedsRequest
72+
from .types.asset_service import ListFeedsResponse
73+
from .types.asset_service import ListSavedQueriesRequest
74+
from .types.asset_service import ListSavedQueriesResponse
75+
from .types.asset_service import MoveAnalysis
76+
from .types.asset_service import MoveAnalysisResult
77+
from .types.asset_service import MoveImpact
78+
from .types.asset_service import OutputConfig
79+
from .types.asset_service import OutputResult
80+
from .types.asset_service import PartitionSpec
81+
from .types.asset_service import PubsubDestination
82+
from .types.asset_service import QueryAssetsOutputConfig
83+
from .types.asset_service import QueryAssetsRequest
84+
from .types.asset_service import QueryAssetsResponse
85+
from .types.asset_service import QueryResult
86+
from .types.asset_service import SavedQuery
87+
from .types.asset_service import SearchAllIamPoliciesRequest
88+
from .types.asset_service import SearchAllIamPoliciesResponse
89+
from .types.asset_service import SearchAllResourcesRequest
90+
from .types.asset_service import SearchAllResourcesResponse
91+
from .types.asset_service import TableFieldSchema
92+
from .types.asset_service import TableSchema
93+
from .types.asset_service import UpdateFeedRequest
94+
from .types.asset_service import UpdateSavedQueryRequest
95+
from .types.asset_service import ContentType
96+
from .types.assets import Asset
97+
from .types.assets import AttachedResource
98+
from .types.assets import ConditionEvaluation
99+
from .types.assets import IamPolicyAnalysisResult
100+
from .types.assets import IamPolicyAnalysisState
101+
from .types.assets import IamPolicySearchResult
102+
from .types.assets import RelatedAsset
103+
from .types.assets import RelatedAssets
104+
from .types.assets import RelatedResource
105+
from .types.assets import RelatedResources
106+
from .types.assets import RelationshipAttributes
107+
from .types.assets import Resource
108+
from .types.assets import ResourceSearchResult
109+
from .types.assets import TemporalAsset
110+
from .types.assets import TimeWindow
111+
from .types.assets import VersionedResource
112+
31113
ParsedVersion = Tuple[int, ...]
32114

33-
def parse_version_to_tuple(version_string: str) -> ParsedVersion:
115+
def parse_version_to_tuple(version_string: str) -> ParsedVersion: # pragma: NO COVER
34116
"""Safely converts a semantic version string to a comparable tuple of integers.
35117
Example: "4.25.8" -> (4, 25, 8)
36118
Ignores non-numeric parts and handles common version formats.
@@ -114,88 +196,6 @@ def _get_version(dependency_name):
114196
"using a supported version of Python; see " +
115197
"https://devguide.python.org/versions/")
116198

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

tests/integration/goldens/credentials/google/iam/credentials_v1/__init__.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,27 @@
2323

2424
if sys.version_info >= (3, 8):
2525
from importlib import metadata
26-
else:
26+
else: # pragma: NO COVER
2727
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
2828
# this code path once we drop support for Python 3.7
2929
import importlib_metadata as metadata
3030

31+
32+
from .services.iam_credentials import IAMCredentialsClient
33+
from .services.iam_credentials import IAMCredentialsAsyncClient
34+
35+
from .types.common import GenerateAccessTokenRequest
36+
from .types.common import GenerateAccessTokenResponse
37+
from .types.common import GenerateIdTokenRequest
38+
from .types.common import GenerateIdTokenResponse
39+
from .types.common import SignBlobRequest
40+
from .types.common import SignBlobResponse
41+
from .types.common import SignJwtRequest
42+
from .types.common import SignJwtResponse
43+
3144
ParsedVersion = Tuple[int, ...]
3245

33-
def parse_version_to_tuple(version_string: str) -> ParsedVersion:
46+
def parse_version_to_tuple(version_string: str) -> ParsedVersion: # pragma: NO COVER
3447
"""Safely converts a semantic version string to a comparable tuple of integers.
3548
Example: "4.25.8" -> (4, 25, 8)
3649
Ignores non-numeric parts and handles common version formats.
@@ -114,19 +127,6 @@ def _get_version(dependency_name):
114127
"using a supported version of Python; see " +
115128
"https://devguide.python.org/versions/")
116129

117-
118-
from .services.iam_credentials import IAMCredentialsClient
119-
from .services.iam_credentials import IAMCredentialsAsyncClient
120-
121-
from .types.common import GenerateAccessTokenRequest
122-
from .types.common import GenerateAccessTokenResponse
123-
from .types.common import GenerateIdTokenRequest
124-
from .types.common import GenerateIdTokenResponse
125-
from .types.common import SignBlobRequest
126-
from .types.common import SignBlobResponse
127-
from .types.common import SignJwtRequest
128-
from .types.common import SignJwtResponse
129-
130130
__all__ = (
131131
'IAMCredentialsAsyncClient',
132132
'GenerateAccessTokenRequest',

tests/integration/goldens/eventarc/google/cloud/eventarc_v1/__init__.py

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,56 @@
2323

2424
if sys.version_info >= (3, 8):
2525
from importlib import metadata
26-
else:
26+
else: # pragma: NO COVER
2727
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
2828
# this code path once we drop support for Python 3.7
2929
import importlib_metadata as metadata
3030

31+
32+
from .services.eventarc import EventarcClient
33+
from .services.eventarc import EventarcAsyncClient
34+
35+
from .types.channel import Channel
36+
from .types.channel_connection import ChannelConnection
37+
from .types.discovery import EventType
38+
from .types.discovery import FilteringAttribute
39+
from .types.discovery import Provider
40+
from .types.eventarc import CreateChannelConnectionRequest
41+
from .types.eventarc import CreateChannelRequest
42+
from .types.eventarc import CreateTriggerRequest
43+
from .types.eventarc import DeleteChannelConnectionRequest
44+
from .types.eventarc import DeleteChannelRequest
45+
from .types.eventarc import DeleteTriggerRequest
46+
from .types.eventarc import GetChannelConnectionRequest
47+
from .types.eventarc import GetChannelRequest
48+
from .types.eventarc import GetGoogleChannelConfigRequest
49+
from .types.eventarc import GetProviderRequest
50+
from .types.eventarc import GetTriggerRequest
51+
from .types.eventarc import ListChannelConnectionsRequest
52+
from .types.eventarc import ListChannelConnectionsResponse
53+
from .types.eventarc import ListChannelsRequest
54+
from .types.eventarc import ListChannelsResponse
55+
from .types.eventarc import ListProvidersRequest
56+
from .types.eventarc import ListProvidersResponse
57+
from .types.eventarc import ListTriggersRequest
58+
from .types.eventarc import ListTriggersResponse
59+
from .types.eventarc import OperationMetadata
60+
from .types.eventarc import UpdateChannelRequest
61+
from .types.eventarc import UpdateGoogleChannelConfigRequest
62+
from .types.eventarc import UpdateTriggerRequest
63+
from .types.google_channel_config import GoogleChannelConfig
64+
from .types.trigger import CloudRun
65+
from .types.trigger import Destination
66+
from .types.trigger import EventFilter
67+
from .types.trigger import GKE
68+
from .types.trigger import Pubsub
69+
from .types.trigger import StateCondition
70+
from .types.trigger import Transport
71+
from .types.trigger import Trigger
72+
3173
ParsedVersion = Tuple[int, ...]
3274

33-
def parse_version_to_tuple(version_string: str) -> ParsedVersion:
75+
def parse_version_to_tuple(version_string: str) -> ParsedVersion: # pragma: NO COVER
3476
"""Safely converts a semantic version string to a comparable tuple of integers.
3577
Example: "4.25.8" -> (4, 25, 8)
3678
Ignores non-numeric parts and handles common version formats.
@@ -114,48 +156,6 @@ def _get_version(dependency_name):
114156
"using a supported version of Python; see " +
115157
"https://devguide.python.org/versions/")
116158

117-
118-
from .services.eventarc import EventarcClient
119-
from .services.eventarc import EventarcAsyncClient
120-
121-
from .types.channel import Channel
122-
from .types.channel_connection import ChannelConnection
123-
from .types.discovery import EventType
124-
from .types.discovery import FilteringAttribute
125-
from .types.discovery import Provider
126-
from .types.eventarc import CreateChannelConnectionRequest
127-
from .types.eventarc import CreateChannelRequest
128-
from .types.eventarc import CreateTriggerRequest
129-
from .types.eventarc import DeleteChannelConnectionRequest
130-
from .types.eventarc import DeleteChannelRequest
131-
from .types.eventarc import DeleteTriggerRequest
132-
from .types.eventarc import GetChannelConnectionRequest
133-
from .types.eventarc import GetChannelRequest
134-
from .types.eventarc import GetGoogleChannelConfigRequest
135-
from .types.eventarc import GetProviderRequest
136-
from .types.eventarc import GetTriggerRequest
137-
from .types.eventarc import ListChannelConnectionsRequest
138-
from .types.eventarc import ListChannelConnectionsResponse
139-
from .types.eventarc import ListChannelsRequest
140-
from .types.eventarc import ListChannelsResponse
141-
from .types.eventarc import ListProvidersRequest
142-
from .types.eventarc import ListProvidersResponse
143-
from .types.eventarc import ListTriggersRequest
144-
from .types.eventarc import ListTriggersResponse
145-
from .types.eventarc import OperationMetadata
146-
from .types.eventarc import UpdateChannelRequest
147-
from .types.eventarc import UpdateGoogleChannelConfigRequest
148-
from .types.eventarc import UpdateTriggerRequest
149-
from .types.google_channel_config import GoogleChannelConfig
150-
from .types.trigger import CloudRun
151-
from .types.trigger import Destination
152-
from .types.trigger import EventFilter
153-
from .types.trigger import GKE
154-
from .types.trigger import Pubsub
155-
from .types.trigger import StateCondition
156-
from .types.trigger import Transport
157-
from .types.trigger import Trigger
158-
159159
__all__ = (
160160
'EventarcAsyncClient',
161161
'Channel',

0 commit comments

Comments
 (0)