google-cloud-asset-v1 0.28.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/cloud/asset/v1/asset_service/client.rb +100 -50
- data/lib/google/cloud/asset/v1/asset_service/operations.rb +28 -6
- data/lib/google/cloud/asset/v1/asset_service/rest/client.rb +102 -49
- data/lib/google/cloud/asset/v1/asset_service/rest/operations.rb +33 -8
- data/lib/google/cloud/asset/v1/asset_service/rest/service_stub.rb +14 -2
- data/lib/google/cloud/asset/v1/asset_service_pb.rb +1 -1
- data/lib/google/cloud/asset/v1/asset_service_services_pb.rb +1 -1
- data/lib/google/cloud/asset/v1/assets_pb.rb +1 -2
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -0
- data/proto_docs/google/cloud/asset/v1/asset_service.rb +66 -40
- data/proto_docs/google/cloud/asset/v1/assets.rb +18 -17
- metadata +4 -4
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/field_behavior_pb'
|
8
7
|
require 'google/api/resource_pb'
|
9
8
|
require 'google/cloud/orgpolicy/v1/orgpolicy_pb'
|
10
9
|
require 'google/cloud/osconfig/v1/inventory_pb'
|
@@ -17,7 +16,7 @@ require 'google/protobuf/timestamp_pb'
|
|
17
16
|
require 'google/rpc/code_pb'
|
18
17
|
|
19
18
|
|
20
|
-
descriptor_data = "\n\"google/cloud/asset/v1/assets.proto\x12\x15google.cloud.asset.v1\x1a\
|
19
|
+
descriptor_data = "\n\"google/cloud/asset/v1/assets.proto\x12\x15google.cloud.asset.v1\x1a\x19google/api/resource.proto\x1a)google/cloud/orgpolicy/v1/orgpolicy.proto\x1a(google/cloud/osconfig/v1/inventory.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a:google/identity/accesscontextmanager/v1/access_level.proto\x1a;google/identity/accesscontextmanager/v1/access_policy.proto\x1a?google/identity/accesscontextmanager/v1/service_perimeter.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"\xf5\x02\n\rTemporalAsset\x12\x31\n\x06window\x18\x01 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindow\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x12+\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x1c.google.cloud.asset.v1.Asset\x12O\n\x11prior_asset_state\x18\x04 \x01(\x0e\x32\x34.google.cloud.asset.v1.TemporalAsset.PriorAssetState\x12\x31\n\x0bprior_asset\x18\x05 \x01(\x0b\x32\x1c.google.cloud.asset.v1.Asset\"o\n\x0fPriorAssetState\x12!\n\x1dPRIOR_ASSET_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRESENT\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\x12\n\x0e\x44OES_NOT_EXIST\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04\"j\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf3\x05\n\x05\x41sset\x12/\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x31\n\x08resource\x18\x03 \x01(\x0b\x32\x1f.google.cloud.asset.v1.Resource\x12)\n\niam_policy\x18\x04 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12\x35\n\norg_policy\x18\x06 \x03(\x0b\x32!.google.cloud.orgpolicy.v1.Policy\x12N\n\raccess_policy\x18\x07 \x01(\x0b\x32\x35.google.identity.accesscontextmanager.v1.AccessPolicyH\x00\x12L\n\x0c\x61\x63\x63\x65ss_level\x18\x08 \x01(\x0b\x32\x34.google.identity.accesscontextmanager.v1.AccessLevelH\x00\x12V\n\x11service_perimeter\x18\t \x01(\x0b\x32\x39.google.identity.accesscontextmanager.v1.ServicePerimeterH\x00\x12\x39\n\x0cos_inventory\x18\x0c \x01(\x0b\x32#.google.cloud.osconfig.v1.Inventory\x12@\n\x0erelated_assets\x18\r \x01(\x0b\x32$.google.cloud.asset.v1.RelatedAssetsB\x02\x18\x01\x12:\n\rrelated_asset\x18\x0f \x01(\x0b\x32#.google.cloud.asset.v1.RelatedAsset\x12\x11\n\tancestors\x18\n \x03(\t:\'\xea\x41$\n\x1f\x63loudasset.googleapis.com/Asset\x12\x01*B\x17\n\x15\x61\x63\x63\x65ss_context_policy\"\xb2\x01\n\x08Resource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1e\n\x16\x64iscovery_document_uri\x18\x02 \x01(\t\x12\x16\n\x0e\x64iscovery_name\x18\x03 \x01(\t\x12\x14\n\x0cresource_url\x18\x04 \x01(\t\x12\x0e\n\x06parent\x18\x05 \x01(\t\x12%\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08location\x18\x08 \x01(\t\"\x98\x01\n\rRelatedAssets\x12N\n\x17relationship_attributes\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.RelationshipAttributes\x12\x33\n\x06\x61ssets\x18\x02 \x03(\x0b\x32#.google.cloud.asset.v1.RelatedAsset:\x02\x18\x01\"v\n\x16RelationshipAttributes\x12\x0c\n\x04type\x18\x04 \x01(\t\x12\x1c\n\x14source_resource_type\x18\x01 \x01(\t\x12\x1c\n\x14target_resource_type\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t:\x02\x18\x01\"\x85\x01\n\x0cRelatedAsset\x12\x33\n\x05\x61sset\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x63loudasset.googleapis.com/Asset\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x11\n\tancestors\x18\x03 \x03(\t\x12\x19\n\x11relationship_type\x18\x04 \x01(\t\"y\n\x03Tag\x12\x14\n\x07tag_key\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\ttag_value\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0ctag_value_id\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\n\n\x08_tag_keyB\x0c\n\n_tag_valueB\x0f\n\r_tag_value_id\"\x7f\n\x13\x45\x66\x66\x65\x63tiveTagDetails\x12\x1e\n\x11\x61ttached_resource\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x32\n\x0e\x65\x66\x66\x65\x63tive_tags\x18\x02 \x03(\x0b\x32\x1a.google.cloud.asset.v1.TagB\x14\n\x12_attached_resource\"\xda\t\n\x14ResourceSearchResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x03 \x01(\t\x12\x0f\n\x07\x66olders\x18\x11 \x03(\t\x12\x14\n\x0corganization\x18\x12 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x10\n\x08location\x18\x06 \x01(\t\x12G\n\x06labels\x18\x07 \x03(\x0b\x32\x37.google.cloud.asset.v1.ResourceSearchResult.LabelsEntry\x12\x14\n\x0cnetwork_tags\x18\x08 \x03(\t\x12\x13\n\x07kms_key\x18\n \x01(\tB\x02\x18\x01\x12\x10\n\x08kms_keys\x18\x1c \x03(\t\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05state\x18\r \x01(\t\x12\x36\n\x15\x61\x64\x64itional_attributes\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12!\n\x19parent_full_resource_name\x18\x13 \x01(\t\x12\x45\n\x13versioned_resources\x18\x10 \x03(\x0b\x32(.google.cloud.asset.v1.VersionedResource\x12\x43\n\x12\x61ttached_resources\x18\x14 \x03(\x0b\x32\'.google.cloud.asset.v1.AttachedResource\x12U\n\rrelationships\x18\x15 \x03(\x0b\x32>.google.cloud.asset.v1.ResourceSearchResult.RelationshipsEntry\x12\x14\n\x08tag_keys\x18\x17 \x03(\tB\x02\x18\x01\x12\x16\n\ntag_values\x18\x19 \x03(\tB\x02\x18\x01\x12\x19\n\rtag_value_ids\x18\x1a \x03(\tB\x02\x18\x01\x12(\n\x04tags\x18\x1d \x03(\x0b\x32\x1a.google.cloud.asset.v1.Tag\x12\x42\n\x0e\x65\x66\x66\x65\x63tive_tags\x18\x1e \x03(\x0b\x32*.google.cloud.asset.v1.EffectiveTagDetails\x12\x19\n\x11parent_asset_type\x18g \x01(\t\x12]\n\x12scc_security_marks\x18 \x03(\x0b\x32\x41.google.cloud.asset.v1.ResourceSearchResult.SccSecurityMarksEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a]\n\x12RelationshipsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.asset.v1.RelatedResources:\x02\x38\x01\x1a\x37\n\x15SccSecurityMarksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"O\n\x11VersionedResource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12)\n\x08resource\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"m\n\x10\x41ttachedResource\x12\x12\n\nasset_type\x18\x01 \x01(\t\x12\x45\n\x13versioned_resources\x18\x03 \x03(\x0b\x32(.google.cloud.asset.v1.VersionedResource\"U\n\x10RelatedResources\x12\x41\n\x11related_resources\x18\x01 \x03(\x0b\x32&.google.cloud.asset.v1.RelatedResource\"A\n\x0fRelatedResource\x12\x12\n\nasset_type\x18\x01 \x01(\t\x12\x1a\n\x12\x66ull_resource_name\x18\x02 \x01(\t\"\x8f\x04\n\x15IamPolicySearchResult\x12\x10\n\x08resource\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x05 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x12%\n\x06policy\x18\x03 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12M\n\x0b\x65xplanation\x18\x04 \x01(\x0b\x32\x38.google.cloud.asset.v1.IamPolicySearchResult.Explanation\x1a\xa1\x02\n\x0b\x45xplanation\x12m\n\x13matched_permissions\x18\x01 \x03(\x0b\x32P.google.cloud.asset.v1.IamPolicySearchResult.Explanation.MatchedPermissionsEntry\x1a\"\n\x0bPermissions\x12\x13\n\x0bpermissions\x18\x01 \x03(\t\x1a\x7f\n\x17MatchedPermissionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12S\n\x05value\x18\x02 \x01(\x0b\x32\x44.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions:\x02\x38\x01\"G\n\x16IamPolicyAnalysisState\x12\x1e\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\r\n\x05\x63\x61use\x18\x02 \x01(\t\"\xc6\x01\n\x13\x43onditionEvaluation\x12T\n\x10\x65valuation_value\x18\x01 \x01(\x0e\x32:.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue\"Y\n\x0f\x45valuationValue\x12 \n\x1c\x45VALUATION_VALUE_UNSPECIFIED\x10\x00\x12\x08\n\x04TRUE\x10\x01\x12\t\n\x05\x46\x41LSE\x10\x02\x12\x0f\n\x0b\x43ONDITIONAL\x10\x03\"\xab\t\n\x17IamPolicyAnalysisResult\x12#\n\x1b\x61ttached_resource_full_name\x18\x01 \x01(\t\x12+\n\x0biam_binding\x18\x02 \x01(\x0b\x32\x16.google.iam.v1.Binding\x12^\n\x14\x61\x63\x63\x65ss_control_lists\x18\x03 \x03(\x0b\x32@.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList\x12R\n\ridentity_list\x18\x04 \x01(\x0b\x32;.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList\x12\x16\n\x0e\x66ully_explored\x18\x05 \x01(\x08\x1am\n\x08Resource\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x45\n\x0e\x61nalysis_state\x18\x02 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\x1a\x85\x01\n\x06\x41\x63\x63\x65ss\x12\x0e\n\x04role\x18\x01 \x01(\tH\x00\x12\x14\n\npermission\x18\x02 \x01(\tH\x00\x12\x45\n\x0e\x61nalysis_state\x18\x03 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisStateB\x0e\n\x0coneof_access\x1a_\n\x08Identity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0e\x61nalysis_state\x18\x02 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\x1a\x30\n\x04\x45\x64ge\x12\x13\n\x0bsource_node\x18\x01 \x01(\t\x12\x13\n\x0btarget_node\x18\x02 \x01(\t\x1a\xbf\x02\n\x11\x41\x63\x63\x65ssControlList\x12J\n\tresources\x18\x01 \x03(\x0b\x32\x37.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource\x12G\n\x08\x61\x63\x63\x65sses\x18\x02 \x03(\x0b\x32\x35.google.cloud.asset.v1.IamPolicyAnalysisResult.Access\x12K\n\x0eresource_edges\x18\x03 \x03(\x0b\x32\x33.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge\x12H\n\x14\x63ondition_evaluation\x18\x04 \x01(\x0b\x32*.google.cloud.asset.v1.ConditionEvaluation\x1a\xa5\x01\n\x0cIdentityList\x12K\n\nidentities\x18\x01 \x03(\x0b\x32\x37.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity\x12H\n\x0bgroup_edges\x18\x02 \x03(\x0b\x32\x33.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeB\x8d\x01\n\x19\x63om.google.cloud.asset.v1B\nAssetProtoP\x01Z/cloud.google.com/go/asset/apiv1/assetpb;assetpb\xf8\x01\x01\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\V1b\x06proto3"
|
21
20
|
|
22
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
22
|
|
@@ -21,6 +21,7 @@ module Google
|
|
21
21
|
module Api
|
22
22
|
# Required information for every language.
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
24
25
|
# @return [::String]
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
@@ -649,31 +649,31 @@ module Google
|
|
649
649
|
# * `labels.env:*` to find Google Cloud resources that have a label `env`.
|
650
650
|
# * `tagKeys:env` to find Google Cloud resources that have directly
|
651
651
|
# attached tags where the
|
652
|
-
# [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
653
|
-
#
|
652
|
+
# [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
653
|
+
# contains `env`.
|
654
654
|
# * `tagValues:prod*` to find Google Cloud resources that have directly
|
655
655
|
# attached tags where the
|
656
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
657
|
-
#
|
656
|
+
# [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
657
|
+
# contains a word prefixed by `prod`.
|
658
658
|
# * `tagValueIds=tagValues/123` to find Google Cloud resources that have
|
659
659
|
# directly attached tags where the
|
660
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
661
|
-
#
|
660
|
+
# [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
661
|
+
# is exactly `tagValues/123`.
|
662
662
|
# * `effectiveTagKeys:env` to find Google Cloud resources that have
|
663
663
|
# directly attached or inherited tags where the
|
664
|
-
# [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
665
|
-
#
|
664
|
+
# [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
665
|
+
# contains `env`.
|
666
666
|
# * `effectiveTagValues:prod*` to find Google Cloud resources that have
|
667
667
|
# directly attached or inherited tags where the
|
668
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
669
|
-
#
|
668
|
+
# [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
669
|
+
# contains a word prefixed by `prod`.
|
670
670
|
# * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that
|
671
671
|
# have directly attached or inherited tags where the
|
672
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
673
|
-
#
|
672
|
+
# [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
673
|
+
# is exactly `tagValues/123`.
|
674
674
|
# * `kmsKey:key` to find Google Cloud resources encrypted with a
|
675
675
|
# customer-managed encryption key whose name contains `key` as a word. This
|
676
|
-
# field is deprecated.
|
676
|
+
# field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS
|
677
677
|
# key information.
|
678
678
|
# * `kmsKeys:key` to find Google Cloud resources encrypted with
|
679
679
|
# customer-managed encryption keys whose name contains the word `key`.
|
@@ -685,6 +685,10 @@ module Google
|
|
685
685
|
# Compute Engine instances that have relationships with `instance-group-1`
|
686
686
|
# in the Compute Engine instance group resource name, for relationship type
|
687
687
|
# `INSTANCE_TO_INSTANCEGROUP`.
|
688
|
+
# * `sccSecurityMarks.key=value` to find Cloud resources that are attached
|
689
|
+
# with security marks whose key is `key` and value is `value`.
|
690
|
+
# * `sccSecurityMarks.key:*` to find Cloud resources that are attached with
|
691
|
+
# security marks whose key is `key`.
|
688
692
|
# * `state:ACTIVE` to find Google Cloud resources whose state contains
|
689
693
|
# `ACTIVE` as a word.
|
690
694
|
# * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't
|
@@ -707,7 +711,7 @@ module Google
|
|
707
711
|
# @return [::Array<::String>]
|
708
712
|
# Optional. A list of asset types that this request searches for. If empty,
|
709
713
|
# it will search all the [searchable asset
|
710
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
714
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
|
711
715
|
#
|
712
716
|
# Regular expressions are also supported. For example:
|
713
717
|
#
|
@@ -881,7 +885,7 @@ module Google
|
|
881
885
|
# Optional. A list of asset types that the IAM policies are attached to. If
|
882
886
|
# empty, it will search the IAM policies that are attached to all the
|
883
887
|
# [searchable asset
|
884
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
888
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
|
885
889
|
#
|
886
890
|
# Regular expressions are also supported. For example:
|
887
891
|
#
|
@@ -1147,7 +1151,7 @@ module Google
|
|
1147
1151
|
# If both `analysis_query` and `saved_analysis_query` are provided, they
|
1148
1152
|
# will be merged together with the `saved_analysis_query` as base and
|
1149
1153
|
# the `analysis_query` as overrides. For more details of the merge behavior,
|
1150
|
-
#
|
1154
|
+
# refer to the
|
1151
1155
|
# [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
|
1152
1156
|
# page.
|
1153
1157
|
#
|
@@ -1316,7 +1320,7 @@ module Google
|
|
1316
1320
|
# If both `analysis_query` and `saved_analysis_query` are provided, they
|
1317
1321
|
# will be merged together with the `saved_analysis_query` as base and
|
1318
1322
|
# the `analysis_query` as overrides. For more details of the merge behavior,
|
1319
|
-
#
|
1323
|
+
# refer to the
|
1320
1324
|
# [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
|
1321
1325
|
# doc.
|
1322
1326
|
#
|
@@ -1830,7 +1834,7 @@ module Google
|
|
1830
1834
|
# Required. The names refer to the [full_resource_names]
|
1831
1835
|
# (https://cloud.google.com/asset-inventory/docs/resource-name-format)
|
1832
1836
|
# of [searchable asset
|
1833
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
1837
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
|
1834
1838
|
# A maximum of 20 resources' effective policies can be retrieved in a batch.
|
1835
1839
|
class BatchGetEffectiveIamPoliciesRequest
|
1836
1840
|
include ::Google::Protobuf::MessageExts
|
@@ -2156,12 +2160,15 @@ module Google
|
|
2156
2160
|
# @return [::String]
|
2157
2161
|
# The expression to filter
|
2158
2162
|
# {::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results AnalyzeOrgPoliciesResponse.org_policy_results}.
|
2159
|
-
#
|
2160
|
-
#
|
2163
|
+
# Filtering is currently available for bare literal values and the following
|
2164
|
+
# fields:
|
2165
|
+
# * consolidated_policy.attached_resource
|
2166
|
+
# * consolidated_policy.rules.enforce
|
2161
2167
|
#
|
2162
|
-
#
|
2168
|
+
# When filtering by a specific field, the only supported operator is `=`.
|
2169
|
+
# For example, filtering by
|
2163
2170
|
# consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
|
2164
|
-
# will return the
|
2171
|
+
# will return all the Organization Policy results attached to "folders/001".
|
2165
2172
|
# @!attribute [rw] page_size
|
2166
2173
|
# @return [::Integer]
|
2167
2174
|
# The maximum number of items to return per page. If unspecified,
|
@@ -2233,13 +2240,17 @@ module Google
|
|
2233
2240
|
# constraint.
|
2234
2241
|
# @!attribute [rw] filter
|
2235
2242
|
# @return [::String]
|
2236
|
-
# The expression to filter
|
2237
|
-
#
|
2238
|
-
#
|
2239
|
-
#
|
2240
|
-
#
|
2241
|
-
#
|
2242
|
-
#
|
2243
|
+
# The expression to filter
|
2244
|
+
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse#governed_containers AnalyzeOrgPolicyGovernedContainersResponse.governed_containers}.
|
2245
|
+
# Filtering is currently available for bare literal values and the following
|
2246
|
+
# fields:
|
2247
|
+
# * parent
|
2248
|
+
# * consolidated_policy.rules.enforce
|
2249
|
+
#
|
2250
|
+
# When filtering by a specific field, the only supported operator is `=`.
|
2251
|
+
# For example, filtering by
|
2252
|
+
# parent="//cloudresourcemanager.googleapis.com/folders/001"
|
2253
|
+
# will return all the containers under "folders/001".
|
2243
2254
|
# @!attribute [rw] page_size
|
2244
2255
|
# @return [::Integer]
|
2245
2256
|
# The maximum number of items to return per page. If unspecified,
|
@@ -2321,18 +2332,33 @@ module Google
|
|
2321
2332
|
# constraint.
|
2322
2333
|
# @!attribute [rw] filter
|
2323
2334
|
# @return [::String]
|
2324
|
-
# The expression to filter
|
2325
|
-
#
|
2326
|
-
# `governed_resource.folders`. The only supported fields for governed iam
|
2327
|
-
# policies are `governed_iam_policy.project` and
|
2328
|
-
# `governed_iam_policy.folders`. The only supported operator is `=`.
|
2329
|
-
#
|
2330
|
-
# Example 1: governed_resource.project="projects/12345678" filter will return
|
2331
|
-
# all governed resources under projects/12345678 including the project
|
2332
|
-
# ifself, if applicable.
|
2335
|
+
# The expression to filter
|
2336
|
+
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse#governed_assets AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets}.
|
2333
2337
|
#
|
2334
|
-
#
|
2335
|
-
#
|
2338
|
+
# For governed resources, filtering is currently available for bare literal
|
2339
|
+
# values and the following fields:
|
2340
|
+
# * governed_resource.project
|
2341
|
+
# * governed_resource.folders
|
2342
|
+
# * consolidated_policy.rules.enforce
|
2343
|
+
# When filtering by `governed_resource.project` or
|
2344
|
+
# `consolidated_policy.rules.enforce`, the only supported operator is `=`.
|
2345
|
+
# When filtering by `governed_resource.folders`, the supported operators
|
2346
|
+
# are `=` and `:`.
|
2347
|
+
# For example, filtering by `governed_resource.project="projects/12345678"`
|
2348
|
+
# will return all the governed resources under "projects/12345678",
|
2349
|
+
# including the project itself if applicable.
|
2350
|
+
#
|
2351
|
+
# For governed IAM policies, filtering is currently available for bare
|
2352
|
+
# literal values and the following fields:
|
2353
|
+
# * governed_iam_policy.project
|
2354
|
+
# * governed_iam_policy.folders
|
2355
|
+
# * consolidated_policy.rules.enforce
|
2356
|
+
# When filtering by `governed_iam_policy.project` or
|
2357
|
+
# `consolidated_policy.rules.enforce`, the only supported operator is `=`.
|
2358
|
+
# When filtering by `governed_iam_policy.folders`, the supported operators
|
2359
|
+
# are `=` and `:`.
|
2360
|
+
# For example, filtering by `governed_iam_policy.folders:"folders/12345678"`
|
2361
|
+
# will return all the governed IAM policies under "folders/001".
|
2336
2362
|
# @!attribute [rw] page_size
|
2337
2363
|
# @return [::Integer]
|
2338
2364
|
# The maximum number of items to return per page. If unspecified,
|
@@ -125,15 +125,15 @@ module Google
|
|
125
125
|
# set on a given resource.
|
126
126
|
# @!attribute [rw] access_policy
|
127
127
|
# @return [::Google::Identity::AccessContextManager::V1::AccessPolicy]
|
128
|
-
#
|
128
|
+
# Also refer to the [access policy user
|
129
129
|
# guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
|
130
130
|
# @!attribute [rw] access_level
|
131
131
|
# @return [::Google::Identity::AccessContextManager::V1::AccessLevel]
|
132
|
-
#
|
132
|
+
# Also refer to the [access level user
|
133
133
|
# guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
|
134
134
|
# @!attribute [rw] service_perimeter
|
135
135
|
# @return [::Google::Identity::AccessContextManager::V1::ServicePerimeter]
|
136
|
-
#
|
136
|
+
# Also refer to the [service perimeter user
|
137
137
|
# guide](https://cloud.google.com/vpc-service-controls/docs/overview).
|
138
138
|
# @!attribute [rw] os_inventory
|
139
139
|
# @return [::Google::Cloud::OsConfig::V1::Inventory]
|
@@ -141,6 +141,7 @@ module Google
|
|
141
141
|
# topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
|
142
142
|
# for more information.
|
143
143
|
# @!attribute [rw] related_assets
|
144
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
144
145
|
# @return [::Google::Cloud::Asset::V1::RelatedAssets]
|
145
146
|
# DEPRECATED. This field only presents for the purpose of
|
146
147
|
# backward-compatibility. The server will never generate responses with this
|
@@ -203,8 +204,6 @@ module Google
|
|
203
204
|
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
|
204
205
|
# Example:
|
205
206
|
# `//cloudresourcemanager.googleapis.com/projects/my_project_123`
|
206
|
-
#
|
207
|
-
# For third-party assets, this field may be set differently.
|
208
207
|
# @!attribute [rw] data
|
209
208
|
# @return [::Google::Protobuf::Struct]
|
210
209
|
# The content of the resource, in which some sensitive fields are removed
|
@@ -222,6 +221,7 @@ module Google
|
|
222
221
|
# backward-compatibility. The server will never populate this message in
|
223
222
|
# responses.
|
224
223
|
# The detailed related assets with the `relationship_type`.
|
224
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
225
225
|
# @!attribute [rw] relationship_attributes
|
226
226
|
# @return [::Google::Cloud::Asset::V1::RelationshipAttributes]
|
227
227
|
# The detailed relationship attributes.
|
@@ -238,6 +238,7 @@ module Google
|
|
238
238
|
# responses.
|
239
239
|
# The relationship attributes which include `type`, `source_resource_type`,
|
240
240
|
# `target_resource_type` and `action`.
|
241
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
241
242
|
# @!attribute [rw] type
|
242
243
|
# @return [::String]
|
243
244
|
# The unique identifier of the relationship type. Example:
|
@@ -448,6 +449,7 @@ module Google
|
|
448
449
|
# * Use a field query. Example: `networkTags:internal`
|
449
450
|
# * Use a free text query. Example: `internal`
|
450
451
|
# @!attribute [rw] kms_key
|
452
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
451
453
|
# @return [::String]
|
452
454
|
# The Cloud KMS
|
453
455
|
# [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
|
@@ -455,8 +457,8 @@ module Google
|
|
455
457
|
# [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
|
456
458
|
# name.
|
457
459
|
#
|
458
|
-
# This field only presents for the purpose of backward compatibility.
|
459
|
-
#
|
460
|
+
# This field only presents for the purpose of backward compatibility.
|
461
|
+
# Use the `kms_keys` field to retrieve Cloud KMS key information. This field
|
460
462
|
# is available only when the resource's Protobuf contains it and will only be
|
461
463
|
# populated for [these resource
|
462
464
|
# types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
|
@@ -536,7 +538,7 @@ module Google
|
|
536
538
|
# metadata fields that are returned by the List or Get APIs provided by the
|
537
539
|
# corresponding Google Cloud service (e.g., Compute Engine). see [API
|
538
540
|
# references and supported searchable
|
539
|
-
# attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
541
|
+
# attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
540
542
|
# to see which fields are included.
|
541
543
|
#
|
542
544
|
# You can search values of these fields through free text search. However,
|
@@ -585,9 +587,10 @@ module Google
|
|
585
587
|
# See [supported relationship
|
586
588
|
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
|
587
589
|
# @!attribute [rw] tag_keys
|
590
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
588
591
|
# @return [::Array<::String>]
|
589
592
|
# This field is only present for the purpose of backward compatibility.
|
590
|
-
#
|
593
|
+
# Use the `tags` field instead.
|
591
594
|
#
|
592
595
|
# TagKey namespaced names, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
|
593
596
|
# To search against the `tagKeys`:
|
@@ -600,9 +603,10 @@ module Google
|
|
600
603
|
# * Use a free text query. Example:
|
601
604
|
# - `env`
|
602
605
|
# @!attribute [rw] tag_values
|
606
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
603
607
|
# @return [::Array<::String>]
|
604
608
|
# This field is only present for the purpose of backward compatibility.
|
605
|
-
#
|
609
|
+
# Use the `tags` field instead.
|
606
610
|
#
|
607
611
|
# TagValue namespaced names, in the format of
|
608
612
|
# \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}/\\{TAG_VALUE_SHORT_NAME}.
|
@@ -617,9 +621,10 @@ module Google
|
|
617
621
|
# * Use a free text query. Example:
|
618
622
|
# - `prod`
|
619
623
|
# @!attribute [rw] tag_value_ids
|
624
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
620
625
|
# @return [::Array<::String>]
|
621
626
|
# This field is only present for the purpose of backward compatibility.
|
622
|
-
#
|
627
|
+
# Use the `tags` field instead.
|
623
628
|
#
|
624
629
|
# TagValue IDs, in the format of tagValues/\\{TAG_VALUE_ID}.
|
625
630
|
# To search against the `tagValueIds`:
|
@@ -681,10 +686,6 @@ module Google
|
|
681
686
|
# with the asset.
|
682
687
|
#
|
683
688
|
#
|
684
|
-
# Note that both staging & prod SecurityMarks are attached on prod resources.
|
685
|
-
# In CAS preprod/prod, both staging & prod SecurityMarks are ingested and
|
686
|
-
# returned in the following `security_marks` map. In that case, the prefix
|
687
|
-
# "staging." will be added to the keys of all the staging marks.
|
688
689
|
# To search against SCC SecurityMarks field:
|
689
690
|
#
|
690
691
|
# * Use a field query:
|
@@ -745,7 +746,7 @@ module Google
|
|
745
746
|
#
|
746
747
|
# You can find the resource definition for each supported resource type in
|
747
748
|
# this table:
|
748
|
-
# `https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
749
|
+
# `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
|
749
750
|
class VersionedResource
|
750
751
|
include ::Google::Protobuf::MessageExts
|
751
752
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -761,7 +762,7 @@ module Google
|
|
761
762
|
#
|
762
763
|
# You can find the supported attached asset types of each resource in this
|
763
764
|
# table:
|
764
|
-
# `https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
765
|
+
# `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
|
765
766
|
# @!attribute [rw] versioned_resources
|
766
767
|
# @return [::Array<::Google::Cloud::Asset::V1::VersionedResource>]
|
767
768
|
# Versioned resource representations of this attached resource. This is
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.21.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.21.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|