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

Commit dbc1a97

Browse files
committed
updates goldens
1 parent 6ea74bb commit dbc1a97

File tree

20 files changed

+941
-349
lines changed

20 files changed

+941
-349
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
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
8889
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisResult
8990
from google.cloud.asset_v1.types.assets import IamPolicyAnalysisState
9091
from google.cloud.asset_v1.types.assets import IamPolicySearchResult
@@ -95,6 +96,7 @@
9596
from google.cloud.asset_v1.types.assets import RelationshipAttributes
9697
from google.cloud.asset_v1.types.assets import Resource
9798
from google.cloud.asset_v1.types.assets import ResourceSearchResult
99+
from google.cloud.asset_v1.types.assets import Tag
98100
from google.cloud.asset_v1.types.assets import TemporalAsset
99101
from google.cloud.asset_v1.types.assets import TimeWindow
100102
from google.cloud.asset_v1.types.assets import VersionedResource
@@ -165,6 +167,7 @@
165167
'Asset',
166168
'AttachedResource',
167169
'ConditionEvaluation',
170+
'EffectiveTagDetails',
168171
'IamPolicyAnalysisResult',
169172
'IamPolicyAnalysisState',
170173
'IamPolicySearchResult',
@@ -175,6 +178,7 @@
175178
'RelationshipAttributes',
176179
'Resource',
177180
'ResourceSearchResult',
181+
'Tag',
178182
'TemporalAsset',
179183
'TimeWindow',
180184
'VersionedResource',

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
from .types.assets import Asset
9696
from .types.assets import AttachedResource
9797
from .types.assets import ConditionEvaluation
98+
from .types.assets import EffectiveTagDetails
9899
from .types.assets import IamPolicyAnalysisResult
99100
from .types.assets import IamPolicyAnalysisState
100101
from .types.assets import IamPolicySearchResult
@@ -105,6 +106,7 @@
105106
from .types.assets import RelationshipAttributes
106107
from .types.assets import Resource
107108
from .types.assets import ResourceSearchResult
109+
from .types.assets import Tag
108110
from .types.assets import TemporalAsset
109111
from .types.assets import TimeWindow
110112
from .types.assets import VersionedResource
@@ -224,6 +226,7 @@ def _get_version(dependency_name):
224226
'CreateSavedQueryRequest',
225227
'DeleteFeedRequest',
226228
'DeleteSavedQueryRequest',
229+
'EffectiveTagDetails',
227230
'ExportAssetsRequest',
228231
'ExportAssetsResponse',
229232
'Feed',
@@ -268,6 +271,7 @@ def _get_version(dependency_name):
268271
'SearchAllResourcesResponse',
269272
'TableFieldSchema',
270273
'TableSchema',
274+
'Tag',
271275
'TemporalAsset',
272276
'TimeWindow',
273277
'UpdateFeedRequest',

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

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

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

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

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

Lines changed: 52 additions & 21 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 Standard
724-
SQL <http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql>`__.
723+
with `BigQuery
724+
SQL <https://cloud.google.com/bigquery/docs/introduction-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 BigQuery
736-
https://cloud.google.com/bigquery/docs/best-practices-performance-output,
737-
queries return larger results will result in errors.
735+
enforced by
736+
`BigQuery <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,22 +976,53 @@ 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 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>`__,
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>`__
9951026
or IAM policies.
9961027
9971028
Returns:

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

Lines changed: 52 additions & 21 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 Standard
730-
SQL <http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql>`__.
729+
with `BigQuery
730+
SQL <https://cloud.google.com/bigquery/docs/introduction-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 BigQuery
742-
https://cloud.google.com/bigquery/docs/best-practices-performance-output,
743-
queries return larger results will result in errors.
741+
enforced by
742+
`BigQuery <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,22 +982,53 @@ 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 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>`__,
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>`__
10011032
or IAM policies.
10021033
10031034
Returns:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
Asset,
8181
AttachedResource,
8282
ConditionEvaluation,
83+
EffectiveTagDetails,
8384
IamPolicyAnalysisResult,
8485
IamPolicyAnalysisState,
8586
IamPolicySearchResult,
@@ -90,6 +91,7 @@
9091
RelationshipAttributes,
9192
Resource,
9293
ResourceSearchResult,
94+
Tag,
9395
TemporalAsset,
9496
TimeWindow,
9597
VersionedResource,
@@ -160,6 +162,7 @@
160162
'Asset',
161163
'AttachedResource',
162164
'ConditionEvaluation',
165+
'EffectiveTagDetails',
163166
'IamPolicyAnalysisResult',
164167
'IamPolicyAnalysisState',
165168
'IamPolicySearchResult',
@@ -170,6 +173,7 @@
170173
'RelationshipAttributes',
171174
'Resource',
172175
'ResourceSearchResult',
176+
'Tag',
173177
'TemporalAsset',
174178
'TimeWindow',
175179
'VersionedResource',

0 commit comments

Comments
 (0)