google-cloud-asset-v1 0.27.0 → 0.28.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- # Please also refer to the [access policy user
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
- # Please also refer to the [access level user
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
- # Please also refer to the [service perimeter user
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]
@@ -203,8 +203,6 @@ module Google
203
203
  # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
204
204
  # Example:
205
205
  # `//cloudresourcemanager.googleapis.com/projects/my_project_123`
206
- #
207
- # For third-party assets, this field may be set differently.
208
206
  # @!attribute [rw] data
209
207
  # @return [::Google::Protobuf::Struct]
210
208
  # The content of the resource, in which some sensitive fields are removed
@@ -296,8 +294,48 @@ module Google
296
294
  extend ::Google::Protobuf::MessageExts::ClassMethods
297
295
  end
298
296
 
297
+ # The key and value for a
298
+ # [tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview),
299
+ # @!attribute [rw] tag_key
300
+ # @return [::String]
301
+ # TagKey namespaced name, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
302
+ # @!attribute [rw] tag_value
303
+ # @return [::String]
304
+ # TagValue namespaced name, in the format of
305
+ # \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}/\\{TAG_VALUE_SHORT_NAME}.
306
+ # @!attribute [rw] tag_value_id
307
+ # @return [::String]
308
+ # TagValue ID, in the format of tagValues/\\{TAG_VALUE_ID}.
309
+ class Tag
310
+ include ::Google::Protobuf::MessageExts
311
+ extend ::Google::Protobuf::MessageExts::ClassMethods
312
+ end
313
+
314
+ # The effective tags and the ancestor resources from which they were inherited.
315
+ # @!attribute [rw] attached_resource
316
+ # @return [::String]
317
+ # The [full resource
318
+ # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
319
+ # of the ancestor from which an [effective_tag][] is inherited, according to
320
+ # [tag
321
+ # inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
322
+ # @!attribute [rw] effective_tags
323
+ # @return [::Array<::Google::Cloud::Asset::V1::Tag>]
324
+ # The effective tags inherited from the
325
+ # {::Google::Cloud::Asset::V1::EffectiveTagDetails#attached_resource attached_resource}.
326
+ # Note that tags with the same key but different values may attach to
327
+ # resources at a different hierarchy levels. The lower hierarchy tag value
328
+ # will overwrite the higher hierarchy tag value of the same tag key. In this
329
+ # case, the tag value at the higher hierarchy level will be removed. For more
330
+ # information, see [tag
331
+ # inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
332
+ class EffectiveTagDetails
333
+ include ::Google::Protobuf::MessageExts
334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
+ end
336
+
299
337
  # A result of Resource Search, containing information of a cloud resource.
300
- # Next ID: 32
338
+ # Next ID: 34
301
339
  # @!attribute [rw] name
302
340
  # @return [::String]
303
341
  # The full resource name of this resource. Example:
@@ -415,8 +453,8 @@ module Google
415
453
  # [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
416
454
  # name.
417
455
  #
418
- # This field only presents for the purpose of backward compatibility. Please
419
- # use the `kms_keys` field to retrieve Cloud KMS key information. This field
456
+ # This field only presents for the purpose of backward compatibility.
457
+ # Use the `kms_keys` field to retrieve Cloud KMS key information. This field
420
458
  # is available only when the resource's Protobuf contains it and will only be
421
459
  # populated for [these resource
422
460
  # types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
@@ -496,7 +534,7 @@ module Google
496
534
  # metadata fields that are returned by the List or Get APIs provided by the
497
535
  # corresponding Google Cloud service (e.g., Compute Engine). see [API
498
536
  # references and supported searchable
499
- # attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
537
+ # attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
500
538
  # to see which fields are included.
501
539
  #
502
540
  # You can search values of these fields through free text search. However,
@@ -546,6 +584,9 @@ module Google
546
584
  # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
547
585
  # @!attribute [rw] tag_keys
548
586
  # @return [::Array<::String>]
587
+ # This field is only present for the purpose of backward compatibility.
588
+ # Use the `tags` field instead.
589
+ #
549
590
  # TagKey namespaced names, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
550
591
  # To search against the `tagKeys`:
551
592
  #
@@ -558,6 +599,9 @@ module Google
558
599
  # - `env`
559
600
  # @!attribute [rw] tag_values
560
601
  # @return [::Array<::String>]
602
+ # This field is only present for the purpose of backward compatibility.
603
+ # Use the `tags` field instead.
604
+ #
561
605
  # TagValue namespaced names, in the format of
562
606
  # \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}/\\{TAG_VALUE_SHORT_NAME}.
563
607
  # To search against the `tagValues`:
@@ -572,15 +616,53 @@ module Google
572
616
  # - `prod`
573
617
  # @!attribute [rw] tag_value_ids
574
618
  # @return [::Array<::String>]
619
+ # This field is only present for the purpose of backward compatibility.
620
+ # Use the `tags` field instead.
621
+ #
575
622
  # TagValue IDs, in the format of tagValues/\\{TAG_VALUE_ID}.
576
623
  # To search against the `tagValueIds`:
577
624
  #
578
625
  # * Use a field query. Example:
579
- # - `tagValueIds:"456"`
580
626
  # - `tagValueIds="tagValues/456"`
581
627
  #
582
628
  # * Use a free text query. Example:
583
629
  # - `456`
630
+ # @!attribute [rw] tags
631
+ # @return [::Array<::Google::Cloud::Asset::V1::Tag>]
632
+ # The tags directly attached to this resource.
633
+ #
634
+ # To search against the `tags`:
635
+ #
636
+ # * Use a field query. Example:
637
+ # - `tagKeys:"123456789/env*"`
638
+ # - `tagKeys="123456789/env"`
639
+ # - `tagKeys:"env"`
640
+ # - `tagValues:"env"`
641
+ # - `tagValues:"env/prod"`
642
+ # - `tagValues:"123456789/env/prod*"`
643
+ # - `tagValues="123456789/env/prod"`
644
+ # - `tagValueIds="tagValues/456"`
645
+ #
646
+ # * Use a free text query. Example:
647
+ # - `env/prod`
648
+ # @!attribute [rw] effective_tags
649
+ # @return [::Array<::Google::Cloud::Asset::V1::EffectiveTagDetails>]
650
+ # The effective tags on this resource. All of the tags that are both attached
651
+ # to and inherited by a resource are collectively called the effective
652
+ # tags. For more information, see [tag
653
+ # inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
654
+ #
655
+ # To search against the `effective_tags`:
656
+ #
657
+ # * Use a field query. Example:
658
+ # - `effectiveTagKeys:"123456789/env*"`
659
+ # - `effectiveTagKeys="123456789/env"`
660
+ # - `effectiveTagKeys:"env"`
661
+ # - `effectiveTagValues:"env"`
662
+ # - `effectiveTagValues:"env/prod"`
663
+ # - `effectiveTagValues:"123456789/env/prod*"`
664
+ # - `effectiveTagValues="123456789/env/prod"`
665
+ # - `effectiveTagValueIds="tagValues/456"`
584
666
  # @!attribute [rw] parent_asset_type
585
667
  # @return [::String]
586
668
  # The type of this resource's immediate parent, if there is one.
@@ -591,6 +673,17 @@ module Google
591
673
  # `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
592
674
  # * Use a free text query. Example:
593
675
  # `cloudresourcemanager.googleapis.com/Project`
676
+ # @!attribute [rw] scc_security_marks
677
+ # @return [::Google::Protobuf::Map{::String => ::String}]
678
+ # The actual content of Security Command Center security marks associated
679
+ # with the asset.
680
+ #
681
+ #
682
+ # To search against SCC SecurityMarks field:
683
+ #
684
+ # * Use a field query:
685
+ # - query by a given key value pair. Example: `sccSecurityMarks.foo=bar`
686
+ # - query by a given key's existence. Example: `sccSecurityMarks.foo:*`
594
687
  class ResourceSearchResult
595
688
  include ::Google::Protobuf::MessageExts
596
689
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -612,6 +705,15 @@ module Google
612
705
  include ::Google::Protobuf::MessageExts
613
706
  extend ::Google::Protobuf::MessageExts::ClassMethods
614
707
  end
708
+
709
+ # @!attribute [rw] key
710
+ # @return [::String]
711
+ # @!attribute [rw] value
712
+ # @return [::String]
713
+ class SccSecurityMarksEntry
714
+ include ::Google::Protobuf::MessageExts
715
+ extend ::Google::Protobuf::MessageExts::ClassMethods
716
+ end
615
717
  end
616
718
 
617
719
  # Resource representation as defined by the corresponding service providing the
@@ -637,7 +739,7 @@ module Google
637
739
  #
638
740
  # You can find the resource definition for each supported resource type in
639
741
  # this table:
640
- # `https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types`
742
+ # `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
641
743
  class VersionedResource
642
744
  include ::Google::Protobuf::MessageExts
643
745
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -653,7 +755,7 @@ module Google
653
755
  #
654
756
  # You can find the supported attached asset types of each resource in this
655
757
  # table:
656
- # `https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types`
758
+ # `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
657
759
  # @!attribute [rw] versioned_resources
658
760
  # @return [::Array<::Google::Cloud::Asset::V1::VersionedResource>]
659
761
  # Versioned resource representations of this attached resource. This is
@@ -905,17 +1007,17 @@ module Google
905
1007
  # An identity under analysis.
906
1008
  # @!attribute [rw] name
907
1009
  # @return [::String]
908
- # The identity name in any form of members appear in
1010
+ # The identity of members, formatted as appear in an
909
1011
  # [IAM policy
910
- # binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
911
- # as:
1012
+ # binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For
1013
+ # example, they might be formatted like the following:
1014
+ #
912
1015
  # - user:foo@google.com
913
1016
  # - group:group1@google.com
914
1017
  # - serviceAccount:s1@prj1.iam.gserviceaccount.com
915
1018
  # - projectOwner:some_project_id
916
1019
  # - domain:google.com
917
1020
  # - allUsers
918
- # - etc.
919
1021
  # @!attribute [rw] analysis_state
920
1022
  # @return [::Google::Cloud::Asset::V1::IamPolicyAnalysisState]
921
1023
  # The analysis state of this identity.
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.27.0
4
+ version: 0.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.4.19
288
+ rubygems_version: 3.5.3
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: The Cloud Asset API manages the history and inventory of Google Cloud resources.