google-apis-cloudresourcemanager_v3 0.22.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/cloudresourcemanager_v3/classes.rb +169 -4
- data/lib/google/apis/cloudresourcemanager_v3/gem_version.rb +2 -2
- data/lib/google/apis/cloudresourcemanager_v3/representations.rb +64 -0
- data/lib/google/apis/cloudresourcemanager_v3/service.rb +165 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f79c7aca64e154de1b3304548e3a24f33d33cdcf2c18165026b40543e8d68e5
|
|
4
|
+
data.tar.gz: 2a11f8843e622e2c914b0f432f48be3369da71100b71b6fde2ed9aa2fa2b4e2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf778f1157a6eee87b8e82609a74d2fb30335da00012562745de3d3029188681c553c64642d7518d736c57571a2e938c61de204cfd58edb6207928cb05c2ff12
|
|
7
|
+
data.tar.gz: 359bad5839e75f0f576d62c2d7ceae7b01082db94ced0686b75d95004a0fd7d94bb8128c515a9e913bef23b7fb4b5fee2fddbac1ad915b75dedf0c94bceb038a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Release history for google-apis-cloudresourcemanager_v3
|
|
2
2
|
|
|
3
|
+
### v0.25.0 (2022-04-28)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20220424
|
|
6
|
+
|
|
7
|
+
### v0.24.0 (2022-04-07)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20220403
|
|
10
|
+
|
|
11
|
+
### v0.23.0 (2022-03-24)
|
|
12
|
+
|
|
13
|
+
* Regenerated from discovery document revision 20220320
|
|
14
|
+
|
|
3
15
|
### v0.22.0 (2022-03-10)
|
|
4
16
|
|
|
5
17
|
* Regenerated from discovery document revision 20220306
|
|
@@ -116,7 +116,7 @@ module Google
|
|
|
116
116
|
# @return [Google::Apis::CloudresourcemanagerV3::Expr]
|
|
117
117
|
attr_accessor :condition
|
|
118
118
|
|
|
119
|
-
# Specifies the principals requesting access for a Cloud
|
|
119
|
+
# Specifies the principals requesting access for a Google Cloud resource. `
|
|
120
120
|
# members` can have the following values: * `allUsers`: A special identifier
|
|
121
121
|
# that represents anyone who is on the internet; with or without a Google
|
|
122
122
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
|
@@ -424,11 +424,63 @@ module Google
|
|
|
424
424
|
end
|
|
425
425
|
end
|
|
426
426
|
|
|
427
|
+
# An EffectiveTag represents a tag that applies to a resource during policy
|
|
428
|
+
# evaluation. Tags can be either directly bound to a resource or inherited from
|
|
429
|
+
# its ancestor. EffectiveTag contains the name and namespaced_name of the tag
|
|
430
|
+
# value and tag key, with additional fields of `inherited` to indicate the
|
|
431
|
+
# inheritance status of the effective tag.
|
|
432
|
+
class EffectiveTag
|
|
433
|
+
include Google::Apis::Core::Hashable
|
|
434
|
+
|
|
435
|
+
# Indicates the inheritance status of a tag value attached to the given resource.
|
|
436
|
+
# If the tag value is inherited from one of the resource's ancestors, inherited
|
|
437
|
+
# will be true. If false, then the tag value is directly attached to the
|
|
438
|
+
# resource, inherited will be false.
|
|
439
|
+
# Corresponds to the JSON property `inherited`
|
|
440
|
+
# @return [Boolean]
|
|
441
|
+
attr_accessor :inherited
|
|
442
|
+
alias_method :inherited?, :inherited
|
|
443
|
+
|
|
444
|
+
# The namespaced_name of the TagKey, in the format of ``organization_id`/`
|
|
445
|
+
# tag_key_short_name``
|
|
446
|
+
# Corresponds to the JSON property `namespacedTagKey`
|
|
447
|
+
# @return [String]
|
|
448
|
+
attr_accessor :namespaced_tag_key
|
|
449
|
+
|
|
450
|
+
# Namespaced name of the TagValue. Must be in the format ``organization_id`/`
|
|
451
|
+
# tag_key_short_name`/`tag_value_short_name``.
|
|
452
|
+
# Corresponds to the JSON property `namespacedTagValue`
|
|
453
|
+
# @return [String]
|
|
454
|
+
attr_accessor :namespaced_tag_value
|
|
455
|
+
|
|
456
|
+
# The name of the TagKey, in the format `tagKeys/`id``, such as `tagKeys/123`.
|
|
457
|
+
# Corresponds to the JSON property `tagKey`
|
|
458
|
+
# @return [String]
|
|
459
|
+
attr_accessor :tag_key
|
|
460
|
+
|
|
461
|
+
# Resource name for TagValue in the format `tagValues/456`.
|
|
462
|
+
# Corresponds to the JSON property `tagValue`
|
|
463
|
+
# @return [String]
|
|
464
|
+
attr_accessor :tag_value
|
|
465
|
+
|
|
466
|
+
def initialize(**args)
|
|
467
|
+
update!(**args)
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# Update properties of this object
|
|
471
|
+
def update!(**args)
|
|
472
|
+
@inherited = args[:inherited] if args.key?(:inherited)
|
|
473
|
+
@namespaced_tag_key = args[:namespaced_tag_key] if args.key?(:namespaced_tag_key)
|
|
474
|
+
@namespaced_tag_value = args[:namespaced_tag_value] if args.key?(:namespaced_tag_value)
|
|
475
|
+
@tag_key = args[:tag_key] if args.key?(:tag_key)
|
|
476
|
+
@tag_value = args[:tag_value] if args.key?(:tag_value)
|
|
477
|
+
end
|
|
478
|
+
end
|
|
479
|
+
|
|
427
480
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
428
481
|
# messages in your APIs. A typical example is to use it as the request or the
|
|
429
482
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
430
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
|
431
|
-
# `Empty` is empty JSON object ````.
|
|
483
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
|
432
484
|
class Empty
|
|
433
485
|
include Google::Apis::Core::Hashable
|
|
434
486
|
|
|
@@ -730,6 +782,36 @@ module Google
|
|
|
730
782
|
end
|
|
731
783
|
end
|
|
732
784
|
|
|
785
|
+
# The response of ListEffectiveTags.
|
|
786
|
+
class ListEffectiveTagsResponse
|
|
787
|
+
include Google::Apis::Core::Hashable
|
|
788
|
+
|
|
789
|
+
# A possibly paginated list of effective tags for the specified resource.
|
|
790
|
+
# Corresponds to the JSON property `effectiveTags`
|
|
791
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV3::EffectiveTag>]
|
|
792
|
+
attr_accessor :effective_tags
|
|
793
|
+
|
|
794
|
+
# Pagination token. If the result set is too large to fit in a single response,
|
|
795
|
+
# this token is returned. It encodes the position of the current result cursor.
|
|
796
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
|
797
|
+
# gives the next page of the results. When `next_page_token` is not filled in,
|
|
798
|
+
# there is no next page and the list returned is the last page in the result set.
|
|
799
|
+
# Pagination tokens have a limited lifetime.
|
|
800
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
801
|
+
# @return [String]
|
|
802
|
+
attr_accessor :next_page_token
|
|
803
|
+
|
|
804
|
+
def initialize(**args)
|
|
805
|
+
update!(**args)
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Update properties of this object
|
|
809
|
+
def update!(**args)
|
|
810
|
+
@effective_tags = args[:effective_tags] if args.key?(:effective_tags)
|
|
811
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
812
|
+
end
|
|
813
|
+
end
|
|
814
|
+
|
|
733
815
|
# The ListFolders response message.
|
|
734
816
|
class ListFoldersResponse
|
|
735
817
|
include Google::Apis::Core::Hashable
|
|
@@ -847,6 +929,36 @@ module Google
|
|
|
847
929
|
end
|
|
848
930
|
end
|
|
849
931
|
|
|
932
|
+
# The ListTagHolds response.
|
|
933
|
+
class ListTagHoldsResponse
|
|
934
|
+
include Google::Apis::Core::Hashable
|
|
935
|
+
|
|
936
|
+
# Pagination token. If the result set is too large to fit in a single response,
|
|
937
|
+
# this token is returned. It encodes the position of the current result cursor.
|
|
938
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
|
939
|
+
# gives the next page of the results. When `next_page_token` is not filled in,
|
|
940
|
+
# there is no next page and the list returned is the last page in the result set.
|
|
941
|
+
# Pagination tokens have a limited lifetime.
|
|
942
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
943
|
+
# @return [String]
|
|
944
|
+
attr_accessor :next_page_token
|
|
945
|
+
|
|
946
|
+
# A possibly paginated list of TagHolds.
|
|
947
|
+
# Corresponds to the JSON property `tagHolds`
|
|
948
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV3::TagHold>]
|
|
949
|
+
attr_accessor :tag_holds
|
|
950
|
+
|
|
951
|
+
def initialize(**args)
|
|
952
|
+
update!(**args)
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
# Update properties of this object
|
|
956
|
+
def update!(**args)
|
|
957
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
958
|
+
@tag_holds = args[:tag_holds] if args.key?(:tag_holds)
|
|
959
|
+
end
|
|
960
|
+
end
|
|
961
|
+
|
|
850
962
|
# The ListTagKeys response message.
|
|
851
963
|
class ListTagKeysResponse
|
|
852
964
|
include Google::Apis::Core::Hashable
|
|
@@ -1554,6 +1666,59 @@ module Google
|
|
|
1554
1666
|
end
|
|
1555
1667
|
end
|
|
1556
1668
|
|
|
1669
|
+
# A TagHold represents the use of a TagValue that is not captured by TagBindings.
|
|
1670
|
+
# If a TagValue has any TagHolds, deletion will be blocked. This resource is
|
|
1671
|
+
# intended to be created in the same cloud location as the `holder`.
|
|
1672
|
+
class TagHold
|
|
1673
|
+
include Google::Apis::Core::Hashable
|
|
1674
|
+
|
|
1675
|
+
# Output only. The time this TagHold was created.
|
|
1676
|
+
# Corresponds to the JSON property `createTime`
|
|
1677
|
+
# @return [String]
|
|
1678
|
+
attr_accessor :create_time
|
|
1679
|
+
|
|
1680
|
+
# Optional. A URL where an end user can learn more about removing this hold. E.g.
|
|
1681
|
+
# `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-
|
|
1682
|
+
# managing`
|
|
1683
|
+
# Corresponds to the JSON property `helpLink`
|
|
1684
|
+
# @return [String]
|
|
1685
|
+
attr_accessor :help_link
|
|
1686
|
+
|
|
1687
|
+
# Required. The name of the resource where the TagValue is being used. Must be
|
|
1688
|
+
# less than 200 characters. E.g. `//compute.googleapis.com/compute/projects/
|
|
1689
|
+
# myproject/regions/us-east-1/instanceGroupManagers/instance-group`
|
|
1690
|
+
# Corresponds to the JSON property `holder`
|
|
1691
|
+
# @return [String]
|
|
1692
|
+
attr_accessor :holder
|
|
1693
|
+
|
|
1694
|
+
# Output only. The resource name of a TagHold. This is a String of the form: `
|
|
1695
|
+
# tagValues/`tag-value-id`/tagHolds/`tag-hold-id`` (e.g. `tagValues/123/tagHolds/
|
|
1696
|
+
# 456`). This resource name is generated by the server.
|
|
1697
|
+
# Corresponds to the JSON property `name`
|
|
1698
|
+
# @return [String]
|
|
1699
|
+
attr_accessor :name
|
|
1700
|
+
|
|
1701
|
+
# Optional. An optional string representing the origin of this request. This
|
|
1702
|
+
# field should include human-understandable information to distinguish origins
|
|
1703
|
+
# from each other. Must be less than 200 characters. E.g. `migs-35678234`
|
|
1704
|
+
# Corresponds to the JSON property `origin`
|
|
1705
|
+
# @return [String]
|
|
1706
|
+
attr_accessor :origin
|
|
1707
|
+
|
|
1708
|
+
def initialize(**args)
|
|
1709
|
+
update!(**args)
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1712
|
+
# Update properties of this object
|
|
1713
|
+
def update!(**args)
|
|
1714
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1715
|
+
@help_link = args[:help_link] if args.key?(:help_link)
|
|
1716
|
+
@holder = args[:holder] if args.key?(:holder)
|
|
1717
|
+
@name = args[:name] if args.key?(:name)
|
|
1718
|
+
@origin = args[:origin] if args.key?(:origin)
|
|
1719
|
+
end
|
|
1720
|
+
end
|
|
1721
|
+
|
|
1557
1722
|
# A TagKey, used to group a set of TagValues.
|
|
1558
1723
|
class TagKey
|
|
1559
1724
|
include Google::Apis::Core::Hashable
|
|
@@ -1698,7 +1863,7 @@ module Google
|
|
|
1698
1863
|
include Google::Apis::Core::Hashable
|
|
1699
1864
|
|
|
1700
1865
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
|
1701
|
-
# (such as
|
|
1866
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
1702
1867
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
1703
1868
|
# Corresponds to the JSON property `permissions`
|
|
1704
1869
|
# @return [Array<String>]
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudresourcemanagerV3
|
|
18
18
|
# Version of the google-apis-cloudresourcemanager_v3 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.25.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20220424"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -118,6 +118,12 @@ module Google
|
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
+
class EffectiveTag
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
121
127
|
class Empty
|
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
129
|
|
|
@@ -166,6 +172,12 @@ module Google
|
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
167
173
|
end
|
|
168
174
|
|
|
175
|
+
class ListEffectiveTagsResponse
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
169
181
|
class ListFoldersResponse
|
|
170
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
183
|
|
|
@@ -190,6 +202,12 @@ module Google
|
|
|
190
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
191
203
|
end
|
|
192
204
|
|
|
205
|
+
class ListTagHoldsResponse
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
193
211
|
class ListTagKeysResponse
|
|
194
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
213
|
|
|
@@ -292,6 +310,12 @@ module Google
|
|
|
292
310
|
include Google::Apis::Core::JsonObjectSupport
|
|
293
311
|
end
|
|
294
312
|
|
|
313
|
+
class TagHold
|
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
315
|
+
|
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
317
|
+
end
|
|
318
|
+
|
|
295
319
|
class TagKey
|
|
296
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
297
321
|
|
|
@@ -488,6 +512,17 @@ module Google
|
|
|
488
512
|
end
|
|
489
513
|
end
|
|
490
514
|
|
|
515
|
+
class EffectiveTag
|
|
516
|
+
# @private
|
|
517
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
518
|
+
property :inherited, as: 'inherited'
|
|
519
|
+
property :namespaced_tag_key, as: 'namespacedTagKey'
|
|
520
|
+
property :namespaced_tag_value, as: 'namespacedTagValue'
|
|
521
|
+
property :tag_key, as: 'tagKey'
|
|
522
|
+
property :tag_value, as: 'tagValue'
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
491
526
|
class Empty
|
|
492
527
|
# @private
|
|
493
528
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -562,6 +597,15 @@ module Google
|
|
|
562
597
|
end
|
|
563
598
|
end
|
|
564
599
|
|
|
600
|
+
class ListEffectiveTagsResponse
|
|
601
|
+
# @private
|
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
603
|
+
collection :effective_tags, as: 'effectiveTags', class: Google::Apis::CloudresourcemanagerV3::EffectiveTag, decorator: Google::Apis::CloudresourcemanagerV3::EffectiveTag::Representation
|
|
604
|
+
|
|
605
|
+
property :next_page_token, as: 'nextPageToken'
|
|
606
|
+
end
|
|
607
|
+
end
|
|
608
|
+
|
|
565
609
|
class ListFoldersResponse
|
|
566
610
|
# @private
|
|
567
611
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -598,6 +642,15 @@ module Google
|
|
|
598
642
|
end
|
|
599
643
|
end
|
|
600
644
|
|
|
645
|
+
class ListTagHoldsResponse
|
|
646
|
+
# @private
|
|
647
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
648
|
+
property :next_page_token, as: 'nextPageToken'
|
|
649
|
+
collection :tag_holds, as: 'tagHolds', class: Google::Apis::CloudresourcemanagerV3::TagHold, decorator: Google::Apis::CloudresourcemanagerV3::TagHold::Representation
|
|
650
|
+
|
|
651
|
+
end
|
|
652
|
+
end
|
|
653
|
+
|
|
601
654
|
class ListTagKeysResponse
|
|
602
655
|
# @private
|
|
603
656
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -762,6 +815,17 @@ module Google
|
|
|
762
815
|
end
|
|
763
816
|
end
|
|
764
817
|
|
|
818
|
+
class TagHold
|
|
819
|
+
# @private
|
|
820
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
821
|
+
property :create_time, as: 'createTime'
|
|
822
|
+
property :help_link, as: 'helpLink'
|
|
823
|
+
property :holder, as: 'holder'
|
|
824
|
+
property :name, as: 'name'
|
|
825
|
+
property :origin, as: 'origin'
|
|
826
|
+
end
|
|
827
|
+
end
|
|
828
|
+
|
|
765
829
|
class TagKey
|
|
766
830
|
# @private
|
|
767
831
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -50,6 +50,47 @@ module Google
|
|
|
50
50
|
@batch_path = 'batch'
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
# Return a list of effective tags for the given cloud resource, as specified in `
|
|
54
|
+
# parent`.
|
|
55
|
+
# @param [Fixnum] page_size
|
|
56
|
+
# Optional. The maximum number of effective tags to return in the response. The
|
|
57
|
+
# server allows a maximum of 300 effective tags to return in a single page. If
|
|
58
|
+
# unspecified, the server will use 100 as the default.
|
|
59
|
+
# @param [String] page_token
|
|
60
|
+
# Optional. A pagination token returned from a previous call to `
|
|
61
|
+
# ListEffectiveTags` that indicates from where this listing should continue.
|
|
62
|
+
# @param [String] parent
|
|
63
|
+
# Required. The full resource name of a resource for which you want to list the
|
|
64
|
+
# effective tags. E.g. "//cloudresourcemanager.googleapis.com/projects/123"
|
|
65
|
+
# @param [String] fields
|
|
66
|
+
# Selector specifying which fields to include in a partial response.
|
|
67
|
+
# @param [String] quota_user
|
|
68
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
69
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
70
|
+
# @param [Google::Apis::RequestOptions] options
|
|
71
|
+
# Request-specific options
|
|
72
|
+
#
|
|
73
|
+
# @yield [result, err] Result & error if block supplied
|
|
74
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse] parsed result object
|
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
76
|
+
#
|
|
77
|
+
# @return [Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse]
|
|
78
|
+
#
|
|
79
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
80
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
81
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
82
|
+
def list_effective_tags(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
83
|
+
command = make_simple_command(:get, 'v3/effectiveTags', options)
|
|
84
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse::Representation
|
|
85
|
+
command.response_class = Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse
|
|
86
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
87
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
88
|
+
command.query['parent'] = parent unless parent.nil?
|
|
89
|
+
command.query['fields'] = fields unless fields.nil?
|
|
90
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
91
|
+
execute_or_queue_command(command, &block)
|
|
92
|
+
end
|
|
93
|
+
|
|
53
94
|
# Creates a folder in the resource hierarchy. Returns an `Operation` which can
|
|
54
95
|
# be used to track the progress of the folder creation workflow. Upon success,
|
|
55
96
|
# the `Operation.response` field will be populated with the created Folder. In
|
|
@@ -2066,6 +2107,130 @@ module Google
|
|
|
2066
2107
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2067
2108
|
execute_or_queue_command(command, &block)
|
|
2068
2109
|
end
|
|
2110
|
+
|
|
2111
|
+
# Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource
|
|
2112
|
+
# and origin exists under the same TagValue.
|
|
2113
|
+
# @param [String] parent
|
|
2114
|
+
# Required. The resource name of the TagHold's parent TagValue. Must be of the
|
|
2115
|
+
# form: `tagValues/`tag-value-id``.
|
|
2116
|
+
# @param [Google::Apis::CloudresourcemanagerV3::TagHold] tag_hold_object
|
|
2117
|
+
# @param [Boolean] validate_only
|
|
2118
|
+
# Optional. Set to true to perform the validations necessary for creating the
|
|
2119
|
+
# resource, but not actually perform the action.
|
|
2120
|
+
# @param [String] fields
|
|
2121
|
+
# Selector specifying which fields to include in a partial response.
|
|
2122
|
+
# @param [String] quota_user
|
|
2123
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2124
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2125
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2126
|
+
# Request-specific options
|
|
2127
|
+
#
|
|
2128
|
+
# @yield [result, err] Result & error if block supplied
|
|
2129
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::Operation] parsed result object
|
|
2130
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2131
|
+
#
|
|
2132
|
+
# @return [Google::Apis::CloudresourcemanagerV3::Operation]
|
|
2133
|
+
#
|
|
2134
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2135
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2136
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2137
|
+
def create_tag_value_tag_hold(parent, tag_hold_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2138
|
+
command = make_simple_command(:post, 'v3/{+parent}/tagHolds', options)
|
|
2139
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV3::TagHold::Representation
|
|
2140
|
+
command.request_object = tag_hold_object
|
|
2141
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation
|
|
2142
|
+
command.response_class = Google::Apis::CloudresourcemanagerV3::Operation
|
|
2143
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2144
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
2145
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2147
|
+
execute_or_queue_command(command, &block)
|
|
2148
|
+
end
|
|
2149
|
+
|
|
2150
|
+
# Deletes a TagHold.
|
|
2151
|
+
# @param [String] name
|
|
2152
|
+
# Required. The resource name of the TagHold to delete. Must be of the form: `
|
|
2153
|
+
# tagValues/`tag-value-id`/tagHolds/`tag-hold-id``.
|
|
2154
|
+
# @param [Boolean] validate_only
|
|
2155
|
+
# Optional. Set to true to perform the validations necessary for deleting the
|
|
2156
|
+
# resource, but not actually perform the action.
|
|
2157
|
+
# @param [String] fields
|
|
2158
|
+
# Selector specifying which fields to include in a partial response.
|
|
2159
|
+
# @param [String] quota_user
|
|
2160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2162
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2163
|
+
# Request-specific options
|
|
2164
|
+
#
|
|
2165
|
+
# @yield [result, err] Result & error if block supplied
|
|
2166
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::Operation] parsed result object
|
|
2167
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2168
|
+
#
|
|
2169
|
+
# @return [Google::Apis::CloudresourcemanagerV3::Operation]
|
|
2170
|
+
#
|
|
2171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2174
|
+
def delete_tag_value_tag_hold(name, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2175
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
|
2176
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation
|
|
2177
|
+
command.response_class = Google::Apis::CloudresourcemanagerV3::Operation
|
|
2178
|
+
command.params['name'] = name unless name.nil?
|
|
2179
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
2180
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2182
|
+
execute_or_queue_command(command, &block)
|
|
2183
|
+
end
|
|
2184
|
+
|
|
2185
|
+
# Lists TagHolds under a TagValue.
|
|
2186
|
+
# @param [String] parent
|
|
2187
|
+
# Required. The resource name of the parent TagValue. Must be of the form: `
|
|
2188
|
+
# tagValues/`tag-value-id``.
|
|
2189
|
+
# @param [String] filter
|
|
2190
|
+
# Optional. Criteria used to select a subset of TagHolds parented by the
|
|
2191
|
+
# TagValue to return. This field follows the syntax defined by aip.dev/160; the `
|
|
2192
|
+
# holder` and `origin` fields are supported for filtering. Currently only `AND`
|
|
2193
|
+
# syntax is supported. Some example queries are: * `holder = //compute.
|
|
2194
|
+
# googleapis.com/compute/projects/myproject/regions/us-east-1/
|
|
2195
|
+
# instanceGroupManagers/instance-group` * `origin = 35678234` * `holder = //
|
|
2196
|
+
# compute.googleapis.com/compute/projects/myproject/regions/us-east-1/
|
|
2197
|
+
# instanceGroupManagers/instance-group AND origin = 35678234`
|
|
2198
|
+
# @param [Fixnum] page_size
|
|
2199
|
+
# Optional. The maximum number of TagHolds to return in the response. The server
|
|
2200
|
+
# allows a maximum of 300 TagHolds to return. If unspecified, the server will
|
|
2201
|
+
# use 100 as the default.
|
|
2202
|
+
# @param [String] page_token
|
|
2203
|
+
# Optional. A pagination token returned from a previous call to `ListTagHolds`
|
|
2204
|
+
# that indicates where this listing should continue from.
|
|
2205
|
+
# @param [String] fields
|
|
2206
|
+
# Selector specifying which fields to include in a partial response.
|
|
2207
|
+
# @param [String] quota_user
|
|
2208
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2209
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2210
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2211
|
+
# Request-specific options
|
|
2212
|
+
#
|
|
2213
|
+
# @yield [result, err] Result & error if block supplied
|
|
2214
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse] parsed result object
|
|
2215
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2216
|
+
#
|
|
2217
|
+
# @return [Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse]
|
|
2218
|
+
#
|
|
2219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2222
|
+
def list_tag_value_tag_holds(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2223
|
+
command = make_simple_command(:get, 'v3/{+parent}/tagHolds', options)
|
|
2224
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse::Representation
|
|
2225
|
+
command.response_class = Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse
|
|
2226
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2227
|
+
command.query['filter'] = filter unless filter.nil?
|
|
2228
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2229
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2230
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2232
|
+
execute_or_queue_command(command, &block)
|
|
2233
|
+
end
|
|
2069
2234
|
|
|
2070
2235
|
protected
|
|
2071
2236
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudresourcemanager_v3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.25.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: 2022-
|
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -58,7 +58,7 @@ licenses:
|
|
|
58
58
|
metadata:
|
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudresourcemanager_v3/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.25.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudresourcemanager_v3
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|