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

Commit fd7a285

Browse files
committed
Revert "updates goldens"
This reverts commit dbc1a97.
1 parent dbc1a97 commit fd7a285

File tree

20 files changed

+349
-941
lines changed

20 files changed

+349
-941
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
from google.cloud.asset_v1.types.assets import Asset
8686
from google.cloud.asset_v1.types.assets import AttachedResource
8787
from google.cloud.asset_v1.types.assets import ConditionEvaluation
88-
from google.cloud.asset_v1.types.assets import EffectiveTagDetails
8988
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisResult
9089
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisState
9190
from google.cloud.asset_v1.types.assets import IamPolicySearchResult
@@ -96,7 +95,6 @@
9695
from google.cloud.asset_v1.types.assets import RelationshipAttributes
9796
from google.cloud.asset_v1.types.assets import Resource
9897
from google.cloud.asset_v1.types.assets import ResourceSearchResult
99-
from google.cloud.asset_v1.types.assets import Tag
10098
from google.cloud.asset_v1.types.assets import TemporalAsset
10199
from google.cloud.asset_v1.types.assets import TimeWindow
102100
from google.cloud.asset_v1.types.assets import VersionedResource
@@ -167,7 +165,6 @@
167165
'Asset',
168166
'AttachedResource',
169167
'ConditionEvaluation',
170-
'EffectiveTagDetails',
171168
'IamPolicyAnalysisResult',
172169
'IamPolicyAnalysisState',
173170
'IamPolicySearchResult',
@@ -178,7 +175,6 @@
178175
'RelationshipAttributes',
179176
'Resource',
180177
'ResourceSearchResult',
181-
'Tag',
182178
'TemporalAsset',
183179
'TimeWindow',
184180
'VersionedResource',

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
from .types.assets import Asset
9696
from .types.assets import AttachedResource
9797
from .types.assets import ConditionEvaluation
98-
from .types.assets import EffectiveTagDetails
9998
from .types.assets import IamPolicyAnalysisResult
10099
from .types.assets import IamPolicyAnalysisState
101100
from .types.assets import IamPolicySearchResult
@@ -106,7 +105,6 @@
106105
from .types.assets import RelationshipAttributes
107106
from .types.assets import Resource
108107
from .types.assets import ResourceSearchResult
109-
from .types.assets import Tag
110108
from .types.assets import TemporalAsset
111109
from .types.assets import TimeWindow
112110
from .types.assets import VersionedResource
@@ -226,7 +224,6 @@ def _get_version(dependency_name):
226224
'CreateSavedQueryRequest',
227225
'DeleteFeedRequest',
228226
'DeleteSavedQueryRequest',
229-
'EffectiveTagDetails',
230227
'ExportAssetsRequest',
231228
'ExportAssetsResponse',
232229
'Feed',
@@ -271,7 +268,6 @@ def _get_version(dependency_name):
271268
'SearchAllResourcesResponse',
272269
'TableFieldSchema',
273270
'TableSchema',
274-
'Tag',
275271
'TemporalAsset',
276272
'TimeWindow',
277273
'UpdateFeedRequest',

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/async_client.py

Lines changed: 81 additions & 172 deletions
Large diffs are not rendered by default.

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/client.py

Lines changed: 81 additions & 172 deletions
Large diffs are not rendered by default.

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc.py

Lines changed: 21 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ def query_assets(self) -> Callable[
720720
r"""Return a callable for the query assets method over gRPC.
721721
722722
Issue a job that queries assets using a SQL statement compatible
723-
with `BigQuery
724-
SQL <https://cloud.google.com/bigquery/docs/introduction-sql>`__.
723+
with `BigQuery Standard
724+
SQL <http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql>`__.
725725
726726
If the query execution finishes within timeout and there's no
727727
pagination, the full query results will be returned in the
@@ -732,9 +732,9 @@ def query_assets(self) -> Callable[
732732
``QueryAssets`` call.
733733
734734
Note, the query result has approximately 10 GB limitation
735-
enforced by
736-
`BigQuery <https://cloud.google.com/bigquery/docs/best-practices-performance-output>`__.
737-
Queries return larger results will result in errors.
735+
enforced by BigQuery
736+
https://cloud.google.com/bigquery/docs/best-practices-performance-output,
737+
queries return larger results will result in errors.
738738
739739
Returns:
740740
Callable[[~.QueryAssetsRequest],
@@ -976,53 +976,22 @@ def analyze_org_policy_governed_assets(self) -> Callable[
976976
977977
Analyzes organization policies governed assets (Google Cloud
978978
resources or policies) under a scope. This RPC supports custom
979-
constraints and the following canned constraints:
980-
981-
- constraints/ainotebooks.accessMode
982-
- constraints/ainotebooks.disableFileDownloads
983-
- constraints/ainotebooks.disableRootAccess
984-
- constraints/ainotebooks.disableTerminal
985-
- constraints/ainotebooks.environmentOptions
986-
- constraints/ainotebooks.requireAutoUpgradeSchedule
987-
- constraints/ainotebooks.restrictVpcNetworks
988-
- constraints/compute.disableGuestAttributesAccess
989-
- constraints/compute.disableInstanceDataAccessApis
990-
- constraints/compute.disableNestedVirtualization
991-
- constraints/compute.disableSerialPortAccess
992-
- constraints/compute.disableSerialPortLogging
993-
- constraints/compute.disableVpcExternalIpv6
994-
- constraints/compute.requireOsLogin
995-
- constraints/compute.requireShieldedVm
996-
- constraints/compute.restrictLoadBalancerCreationForTypes
997-
- constraints/compute.restrictProtocolForwardingCreationForTypes
998-
- constraints/compute.restrictXpnProjectLienRemoval
999-
- constraints/compute.setNewProjectDefaultToZonalDNSOnly
1000-
- constraints/compute.skipDefaultNetworkCreation
1001-
- constraints/compute.trustedImageProjects
1002-
- constraints/compute.vmCanIpForward
1003-
- constraints/compute.vmExternalIpAccess
1004-
- constraints/gcp.detailedAuditLoggingMode
1005-
- constraints/gcp.resourceLocations
1006-
- constraints/iam.allowedPolicyMemberDomains
1007-
- constraints/iam.automaticIamGrantsForDefaultServiceAccounts
1008-
- constraints/iam.disableServiceAccountCreation
1009-
- constraints/iam.disableServiceAccountKeyCreation
1010-
- constraints/iam.disableServiceAccountKeyUpload
1011-
- constraints/iam.restrictCrossProjectServiceAccountLienRemoval
1012-
- constraints/iam.serviceAccountKeyExpiryHours
1013-
- constraints/resourcemanager.accessBoundaries
1014-
- constraints/resourcemanager.allowedExportDestinations
1015-
- constraints/sql.restrictAuthorizedNetworks
1016-
- constraints/sql.restrictNoncompliantDiagnosticDataAccess
1017-
- constraints/sql.restrictNoncompliantResourceCreation
1018-
- constraints/sql.restrictPublicIp
1019-
- constraints/storage.publicAccessPrevention
1020-
- constraints/storage.restrictAuthTypes
1021-
- constraints/storage.uniformBucketLevelAccess
1022-
1023-
This RPC only returns either resources of types `supported by
1024-
search
1025-
APIs <https://cloud.google.com/asset-inventory/docs/supported-asset-types>`__
979+
constraints and the following 10 canned constraints:
980+
981+
- storage.uniformBucketLevelAccess
982+
- iam.disableServiceAccountKeyCreation
983+
- iam.allowedPolicyMemberDomains
984+
- compute.vmExternalIpAccess
985+
- appengine.enforceServiceAccountActAsCheck
986+
- gcp.resourceLocations
987+
- compute.trustedImageProjects
988+
- compute.skipDefaultNetworkCreation
989+
- compute.requireOsLogin
990+
- compute.disableNestedVirtualization
991+
992+
This RPC only returns either resources of types supported by
993+
`searchable asset
994+
types <https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types>`__,
1026995
or IAM policies.
1027996
1028997
Returns:

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc_asyncio.py

Lines changed: 21 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,8 @@ def query_assets(self) -> Callable[
726726
r"""Return a callable for the query assets method over gRPC.
727727
728728
Issue a job that queries assets using a SQL statement compatible
729-
with `BigQuery
730-
SQL <https://cloud.google.com/bigquery/docs/introduction-sql>`__.
729+
with `BigQuery Standard
730+
SQL <http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql>`__.
731731
732732
If the query execution finishes within timeout and there's no
733733
pagination, the full query results will be returned in the
@@ -738,9 +738,9 @@ def query_assets(self) -> Callable[
738738
``QueryAssets`` call.
739739
740740
Note, the query result has approximately 10 GB limitation
741-
enforced by
742-
`BigQuery <https://cloud.google.com/bigquery/docs/best-practices-performance-output>`__.
743-
Queries return larger results will result in errors.
741+
enforced by BigQuery
742+
https://cloud.google.com/bigquery/docs/best-practices-performance-output,
743+
queries return larger results will result in errors.
744744
745745
Returns:
746746
Callable[[~.QueryAssetsRequest],
@@ -982,53 +982,22 @@ def analyze_org_policy_governed_assets(self) -> Callable[
982982
983983
Analyzes organization policies governed assets (Google Cloud
984984
resources or policies) under a scope. This RPC supports custom
985-
constraints and the following canned constraints:
986-
987-
- constraints/ainotebooks.accessMode
988-
- constraints/ainotebooks.disableFileDownloads
989-
- constraints/ainotebooks.disableRootAccess
990-
- constraints/ainotebooks.disableTerminal
991-
- constraints/ainotebooks.environmentOptions
992-
- constraints/ainotebooks.requireAutoUpgradeSchedule
993-
- constraints/ainotebooks.restrictVpcNetworks
994-
- constraints/compute.disableGuestAttributesAccess
995-
- constraints/compute.disableInstanceDataAccessApis
996-
- constraints/compute.disableNestedVirtualization
997-
- constraints/compute.disableSerialPortAccess
998-
- constraints/compute.disableSerialPortLogging
999-
- constraints/compute.disableVpcExternalIpv6
1000-
- constraints/compute.requireOsLogin
1001-
- constraints/compute.requireShieldedVm
1002-
- constraints/compute.restrictLoadBalancerCreationForTypes
1003-
- constraints/compute.restrictProtocolForwardingCreationForTypes
1004-
- constraints/compute.restrictXpnProjectLienRemoval
1005-
- constraints/compute.setNewProjectDefaultToZonalDNSOnly
1006-
- constraints/compute.skipDefaultNetworkCreation
1007-
- constraints/compute.trustedImageProjects
1008-
- constraints/compute.vmCanIpForward
1009-
- constraints/compute.vmExternalIpAccess
1010-
- constraints/gcp.detailedAuditLoggingMode
1011-
- constraints/gcp.resourceLocations
1012-
- constraints/iam.allowedPolicyMemberDomains
1013-
- constraints/iam.automaticIamGrantsForDefaultServiceAccounts
1014-
- constraints/iam.disableServiceAccountCreation
1015-
- constraints/iam.disableServiceAccountKeyCreation
1016-
- constraints/iam.disableServiceAccountKeyUpload
1017-
- constraints/iam.restrictCrossProjectServiceAccountLienRemoval
1018-
- constraints/iam.serviceAccountKeyExpiryHours
1019-
- constraints/resourcemanager.accessBoundaries
1020-
- constraints/resourcemanager.allowedExportDestinations
1021-
- constraints/sql.restrictAuthorizedNetworks
1022-
- constraints/sql.restrictNoncompliantDiagnosticDataAccess
1023-
- constraints/sql.restrictNoncompliantResourceCreation
1024-
- constraints/sql.restrictPublicIp
1025-
- constraints/storage.publicAccessPrevention
1026-
- constraints/storage.restrictAuthTypes
1027-
- constraints/storage.uniformBucketLevelAccess
1028-
1029-
This RPC only returns either resources of types `supported by
1030-
search
1031-
APIs <https://cloud.google.com/asset-inventory/docs/supported-asset-types>`__
985+
constraints and the following 10 canned constraints:
986+
987+
- storage.uniformBucketLevelAccess
988+
- iam.disableServiceAccountKeyCreation
989+
- iam.allowedPolicyMemberDomains
990+
- compute.vmExternalIpAccess
991+
- appengine.enforceServiceAccountActAsCheck
992+
- gcp.resourceLocations
993+
- compute.trustedImageProjects
994+
- compute.skipDefaultNetworkCreation
995+
- compute.requireOsLogin
996+
- compute.disableNestedVirtualization
997+
998+
This RPC only returns either resources of types supported by
999+
`searchable asset
1000+
types <https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types>`__,
10321001
or IAM policies.
10331002
10341003
Returns:

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
Asset,
8181
AttachedResource,
8282
ConditionEvaluation,
83-
EffectiveTagDetails,
8483
IamPolicyAnalysisResult,
8584
IamPolicyAnalysisState,
8685
IamPolicySearchResult,
@@ -91,7 +90,6 @@
9190
RelationshipAttributes,
9291
Resource,
9392
ResourceSearchResult,
94-
Tag,
9593
TemporalAsset,
9694
TimeWindow,
9795
VersionedResource,
@@ -162,7 +160,6 @@
162160
'Asset',
163161
'AttachedResource',
164162
'ConditionEvaluation',
165-
'EffectiveTagDetails',
166163
'IamPolicyAnalysisResult',
167164
'IamPolicyAnalysisState',
168165
'IamPolicySearchResult',
@@ -173,7 +170,6 @@
173170
'RelationshipAttributes',
174171
'Resource',
175172
'ResourceSearchResult',
176-
'Tag',
177173
'TemporalAsset',
178174
'TimeWindow',
179175
'VersionedResource',

0 commit comments

Comments
 (0)