google-cloud-asset-v1 0.26.1 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -296,8 +296,48 @@ module Google
296
296
  extend ::Google::Protobuf::MessageExts::ClassMethods
297
297
  end
298
298
 
299
+ # The key and value for a
300
+ # [tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview),
301
+ # @!attribute [rw] tag_key
302
+ # @return [::String]
303
+ # TagKey namespaced name, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
304
+ # @!attribute [rw] tag_value
305
+ # @return [::String]
306
+ # TagValue namespaced name, in the format of
307
+ # \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}/\\{TAG_VALUE_SHORT_NAME}.
308
+ # @!attribute [rw] tag_value_id
309
+ # @return [::String]
310
+ # TagValue ID, in the format of tagValues/\\{TAG_VALUE_ID}.
311
+ class Tag
312
+ include ::Google::Protobuf::MessageExts
313
+ extend ::Google::Protobuf::MessageExts::ClassMethods
314
+ end
315
+
316
+ # The effective tags and the ancestor resources from which they were inherited.
317
+ # @!attribute [rw] attached_resource
318
+ # @return [::String]
319
+ # The [full resource
320
+ # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
321
+ # of the ancestor from which an [effective_tag][] is inherited, according to
322
+ # [tag
323
+ # inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
324
+ # @!attribute [rw] effective_tags
325
+ # @return [::Array<::Google::Cloud::Asset::V1::Tag>]
326
+ # The effective tags inherited from the
327
+ # {::Google::Cloud::Asset::V1::EffectiveTagDetails#attached_resource attached_resource}.
328
+ # Note that tags with the same key but different values may attach to
329
+ # resources at a different hierarchy levels. The lower hierarchy tag value
330
+ # will overwrite the higher hierarchy tag value of the same tag key. In this
331
+ # case, the tag value at the higher hierarchy level will be removed. For more
332
+ # information, see [tag
333
+ # inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
334
+ class EffectiveTagDetails
335
+ include ::Google::Protobuf::MessageExts
336
+ extend ::Google::Protobuf::MessageExts::ClassMethods
337
+ end
338
+
299
339
  # A result of Resource Search, containing information of a cloud resource.
300
- # Next ID: 32
340
+ # Next ID: 34
301
341
  # @!attribute [rw] name
302
342
  # @return [::String]
303
343
  # The full resource name of this resource. Example:
@@ -546,6 +586,9 @@ module Google
546
586
  # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
547
587
  # @!attribute [rw] tag_keys
548
588
  # @return [::Array<::String>]
589
+ # This field is only present for the purpose of backward compatibility.
590
+ # Please use the `tags` field instead.
591
+ #
549
592
  # TagKey namespaced names, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
550
593
  # To search against the `tagKeys`:
551
594
  #
@@ -558,6 +601,9 @@ module Google
558
601
  # - `env`
559
602
  # @!attribute [rw] tag_values
560
603
  # @return [::Array<::String>]
604
+ # This field is only present for the purpose of backward compatibility.
605
+ # Please use the `tags` field instead.
606
+ #
561
607
  # TagValue namespaced names, in the format of
562
608
  # \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}/\\{TAG_VALUE_SHORT_NAME}.
563
609
  # To search against the `tagValues`:
@@ -572,15 +618,53 @@ module Google
572
618
  # - `prod`
573
619
  # @!attribute [rw] tag_value_ids
574
620
  # @return [::Array<::String>]
621
+ # This field is only present for the purpose of backward compatibility.
622
+ # Please use the `tags` field instead.
623
+ #
575
624
  # TagValue IDs, in the format of tagValues/\\{TAG_VALUE_ID}.
576
625
  # To search against the `tagValueIds`:
577
626
  #
578
627
  # * Use a field query. Example:
579
- # - `tagValueIds:"456"`
580
628
  # - `tagValueIds="tagValues/456"`
581
629
  #
582
630
  # * Use a free text query. Example:
583
631
  # - `456`
632
+ # @!attribute [rw] tags
633
+ # @return [::Array<::Google::Cloud::Asset::V1::Tag>]
634
+ # The tags directly attached to this resource.
635
+ #
636
+ # To search against the `tags`:
637
+ #
638
+ # * Use a field query. Example:
639
+ # - `tagKeys:"123456789/env*"`
640
+ # - `tagKeys="123456789/env"`
641
+ # - `tagKeys:"env"`
642
+ # - `tagValues:"env"`
643
+ # - `tagValues:"env/prod"`
644
+ # - `tagValues:"123456789/env/prod*"`
645
+ # - `tagValues="123456789/env/prod"`
646
+ # - `tagValueIds="tagValues/456"`
647
+ #
648
+ # * Use a free text query. Example:
649
+ # - `env/prod`
650
+ # @!attribute [rw] effective_tags
651
+ # @return [::Array<::Google::Cloud::Asset::V1::EffectiveTagDetails>]
652
+ # The effective tags on this resource. All of the tags that are both attached
653
+ # to and inherited by a resource are collectively called the effective
654
+ # tags. For more information, see [tag
655
+ # inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
656
+ #
657
+ # To search against the `effective_tags`:
658
+ #
659
+ # * Use a field query. Example:
660
+ # - `effectiveTagKeys:"123456789/env*"`
661
+ # - `effectiveTagKeys="123456789/env"`
662
+ # - `effectiveTagKeys:"env"`
663
+ # - `effectiveTagValues:"env"`
664
+ # - `effectiveTagValues:"env/prod"`
665
+ # - `effectiveTagValues:"123456789/env/prod*"`
666
+ # - `effectiveTagValues="123456789/env/prod"`
667
+ # - `effectiveTagValueIds="tagValues/456"`
584
668
  # @!attribute [rw] parent_asset_type
585
669
  # @return [::String]
586
670
  # The type of this resource's immediate parent, if there is one.
@@ -591,6 +675,21 @@ module Google
591
675
  # `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
592
676
  # * Use a free text query. Example:
593
677
  # `cloudresourcemanager.googleapis.com/Project`
678
+ # @!attribute [rw] scc_security_marks
679
+ # @return [::Google::Protobuf::Map{::String => ::String}]
680
+ # The actual content of Security Command Center security marks associated
681
+ # with the asset.
682
+ #
683
+ #
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
+ # To search against SCC SecurityMarks field:
689
+ #
690
+ # * Use a field query:
691
+ # - query by a given key value pair. Example: `sccSecurityMarks.foo=bar`
692
+ # - query by a given key's existence. Example: `sccSecurityMarks.foo:*`
594
693
  class ResourceSearchResult
595
694
  include ::Google::Protobuf::MessageExts
596
695
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -612,6 +711,15 @@ module Google
612
711
  include ::Google::Protobuf::MessageExts
613
712
  extend ::Google::Protobuf::MessageExts::ClassMethods
614
713
  end
714
+
715
+ # @!attribute [rw] key
716
+ # @return [::String]
717
+ # @!attribute [rw] value
718
+ # @return [::String]
719
+ class SccSecurityMarksEntry
720
+ include ::Google::Protobuf::MessageExts
721
+ extend ::Google::Protobuf::MessageExts::ClassMethods
722
+ end
615
723
  end
616
724
 
617
725
  # Resource representation as defined by the corresponding service providing the
@@ -905,17 +1013,17 @@ module Google
905
1013
  # An identity under analysis.
906
1014
  # @!attribute [rw] name
907
1015
  # @return [::String]
908
- # The identity name in any form of members appear in
1016
+ # The identity of members, formatted as appear in an
909
1017
  # [IAM policy
910
- # binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
911
- # as:
1018
+ # binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For
1019
+ # example, they might be formatted like the following:
1020
+ #
912
1021
  # - user:foo@google.com
913
1022
  # - group:group1@google.com
914
1023
  # - serviceAccount:s1@prj1.iam.gserviceaccount.com
915
1024
  # - projectOwner:some_project_id
916
1025
  # - domain:google.com
917
1026
  # - allUsers
918
- # - etc.
919
1027
  # @!attribute [rw] analysis_state
920
1028
  # @return [::Google::Cloud::Asset::V1::IamPolicyAnalysisState]
921
1029
  # 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.26.1
4
+ version: 0.28.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: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2024-01-04 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.2
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.