google-apis-cloudresourcemanager_v3 0.23.0 → 0.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 428c2e34e033207d76da8c223a2f6917483ec4bf9555d99bc4cc3cc7160619bf
4
- data.tar.gz: 683322e925f18fd1445cff142afe678da66c5440ccabbc215f6a5b82f335e6ac
3
+ metadata.gz: 10ca112d52fd9ada80459dc82a2d444bea7a47357facfcd4551ba98f903ce2ff
4
+ data.tar.gz: 8d4a059dd13f5672e211028f03d23ebdfdd44b81621ccfc720da547a1cbedbc1
5
5
  SHA512:
6
- metadata.gz: ae9960b78d0eec8e581136d63cfea06223029545be033e8577c3cee5e6ba892a4fbe6ceae65f02a097a006f1404a3033f40a5f6af3b65efe6821e32a9f5b5342
7
- data.tar.gz: 613820dcd2608562e20e11448365aa9639944f6410400a55e83af940a4c4ab529f498ebf84ea4d8ef728c5ac0aaa156d53d267f6e3c46fe7647867467c08cd7a
6
+ metadata.gz: 65042ea4a5ef5ad31a9bfc2621d0a386d984f6fe45d41196edb068d82d73f146b5abeb096b33ced412b73811cf63c474a27eee3bd4f7801c9dcc17058bda33a6
7
+ data.tar.gz: 5a8a4cf2a04edfed17830e1f2bc1e9a7c8d796ce7b153a1c4a4a3355bb5fbd30eaae543a703027874c0fa681611650a61b357a9f7be8359e9d4bdc6b1865fb62
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudresourcemanager_v3
2
2
 
3
+ ### v0.24.0 (2022-04-07)
4
+
5
+ * Regenerated from discovery document revision 20220403
6
+
3
7
  ### v0.23.0 (2022-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20220320
@@ -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 Platform resource. `
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
@@ -846,6 +846,36 @@ module Google
846
846
  end
847
847
  end
848
848
 
849
+ # The ListTagHolds response.
850
+ class ListTagHoldsResponse
851
+ include Google::Apis::Core::Hashable
852
+
853
+ # Pagination token. If the result set is too large to fit in a single response,
854
+ # this token is returned. It encodes the position of the current result cursor.
855
+ # Feeding this value into a new list request with the `page_token` parameter
856
+ # gives the next page of the results. When `next_page_token` is not filled in,
857
+ # there is no next page and the list returned is the last page in the result set.
858
+ # Pagination tokens have a limited lifetime.
859
+ # Corresponds to the JSON property `nextPageToken`
860
+ # @return [String]
861
+ attr_accessor :next_page_token
862
+
863
+ # A possibly paginated list of TagHolds.
864
+ # Corresponds to the JSON property `tagHolds`
865
+ # @return [Array<Google::Apis::CloudresourcemanagerV3::TagHold>]
866
+ attr_accessor :tag_holds
867
+
868
+ def initialize(**args)
869
+ update!(**args)
870
+ end
871
+
872
+ # Update properties of this object
873
+ def update!(**args)
874
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
875
+ @tag_holds = args[:tag_holds] if args.key?(:tag_holds)
876
+ end
877
+ end
878
+
849
879
  # The ListTagKeys response message.
850
880
  class ListTagKeysResponse
851
881
  include Google::Apis::Core::Hashable
@@ -1553,6 +1583,59 @@ module Google
1553
1583
  end
1554
1584
  end
1555
1585
 
1586
+ # A TagHold represents the use of a TagValue that is not captured by TagBindings.
1587
+ # If a TagValue has any TagHolds, deletion will be blocked. This resource is
1588
+ # intended to be created in the same cloud location as the `holder`.
1589
+ class TagHold
1590
+ include Google::Apis::Core::Hashable
1591
+
1592
+ # Output only. The time this TagHold was created.
1593
+ # Corresponds to the JSON property `createTime`
1594
+ # @return [String]
1595
+ attr_accessor :create_time
1596
+
1597
+ # Optional. A URL where an end user can learn more about removing this hold. E.g.
1598
+ # `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-
1599
+ # managing`
1600
+ # Corresponds to the JSON property `helpLink`
1601
+ # @return [String]
1602
+ attr_accessor :help_link
1603
+
1604
+ # Required. The name of the resource where the TagValue is being used. Must be
1605
+ # less than 200 characters. E.g. `//compute.googleapis.com/compute/projects/
1606
+ # myproject/regions/us-east-1/instanceGroupManagers/instance-group`
1607
+ # Corresponds to the JSON property `holder`
1608
+ # @return [String]
1609
+ attr_accessor :holder
1610
+
1611
+ # Output only. The resource name of a TagHold. This is a String of the form: `
1612
+ # tagValues/`tag-value-id`/tagHolds/`tag-hold-id`` (e.g. `tagValues/123/tagHolds/
1613
+ # 456`). This resource name is generated by the server.
1614
+ # Corresponds to the JSON property `name`
1615
+ # @return [String]
1616
+ attr_accessor :name
1617
+
1618
+ # Optional. An optional string representing the origin of this request. This
1619
+ # field should include human-understandable information to distinguish origins
1620
+ # from each other. Must be less than 200 characters. E.g. `migs-35678234`
1621
+ # Corresponds to the JSON property `origin`
1622
+ # @return [String]
1623
+ attr_accessor :origin
1624
+
1625
+ def initialize(**args)
1626
+ update!(**args)
1627
+ end
1628
+
1629
+ # Update properties of this object
1630
+ def update!(**args)
1631
+ @create_time = args[:create_time] if args.key?(:create_time)
1632
+ @help_link = args[:help_link] if args.key?(:help_link)
1633
+ @holder = args[:holder] if args.key?(:holder)
1634
+ @name = args[:name] if args.key?(:name)
1635
+ @origin = args[:origin] if args.key?(:origin)
1636
+ end
1637
+ end
1638
+
1556
1639
  # A TagKey, used to group a set of TagValues.
1557
1640
  class TagKey
1558
1641
  include Google::Apis::Core::Hashable
@@ -1697,7 +1780,7 @@ module Google
1697
1780
  include Google::Apis::Core::Hashable
1698
1781
 
1699
1782
  # The set of permissions to check for the `resource`. Permissions with wildcards
1700
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1783
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1701
1784
  # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1702
1785
  # Corresponds to the JSON property `permissions`
1703
1786
  # @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.23.0"
19
+ GEM_VERSION = "0.24.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 = "20220320"
25
+ REVISION = "20220403"
26
26
  end
27
27
  end
28
28
  end
@@ -190,6 +190,12 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class ListTagHoldsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
193
199
  class ListTagKeysResponse
194
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
201
 
@@ -292,6 +298,12 @@ module Google
292
298
  include Google::Apis::Core::JsonObjectSupport
293
299
  end
294
300
 
301
+ class TagHold
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
295
307
  class TagKey
296
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
309
 
@@ -598,6 +610,15 @@ module Google
598
610
  end
599
611
  end
600
612
 
613
+ class ListTagHoldsResponse
614
+ # @private
615
+ class Representation < Google::Apis::Core::JsonRepresentation
616
+ property :next_page_token, as: 'nextPageToken'
617
+ collection :tag_holds, as: 'tagHolds', class: Google::Apis::CloudresourcemanagerV3::TagHold, decorator: Google::Apis::CloudresourcemanagerV3::TagHold::Representation
618
+
619
+ end
620
+ end
621
+
601
622
  class ListTagKeysResponse
602
623
  # @private
603
624
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -762,6 +783,17 @@ module Google
762
783
  end
763
784
  end
764
785
 
786
+ class TagHold
787
+ # @private
788
+ class Representation < Google::Apis::Core::JsonRepresentation
789
+ property :create_time, as: 'createTime'
790
+ property :help_link, as: 'helpLink'
791
+ property :holder, as: 'holder'
792
+ property :name, as: 'name'
793
+ property :origin, as: 'origin'
794
+ end
795
+ end
796
+
765
797
  class TagKey
766
798
  # @private
767
799
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2066,6 +2066,130 @@ module Google
2066
2066
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2067
2067
  execute_or_queue_command(command, &block)
2068
2068
  end
2069
+
2070
+ # Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource
2071
+ # and origin exists under the same TagValue.
2072
+ # @param [String] parent
2073
+ # Required. The resource name of the TagHold's parent TagValue. Must be of the
2074
+ # form: `tagValues/`tag-value-id``.
2075
+ # @param [Google::Apis::CloudresourcemanagerV3::TagHold] tag_hold_object
2076
+ # @param [Boolean] validate_only
2077
+ # Optional. Set to true to perform the validations necessary for creating the
2078
+ # resource, but not actually perform the action.
2079
+ # @param [String] fields
2080
+ # Selector specifying which fields to include in a partial response.
2081
+ # @param [String] quota_user
2082
+ # Available to use for quota purposes for server-side applications. Can be any
2083
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2084
+ # @param [Google::Apis::RequestOptions] options
2085
+ # Request-specific options
2086
+ #
2087
+ # @yield [result, err] Result & error if block supplied
2088
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV3::Operation] parsed result object
2089
+ # @yieldparam err [StandardError] error object if request failed
2090
+ #
2091
+ # @return [Google::Apis::CloudresourcemanagerV3::Operation]
2092
+ #
2093
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2094
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2095
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2096
+ def create_tag_value_tag_hold(parent, tag_hold_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2097
+ command = make_simple_command(:post, 'v3/{+parent}/tagHolds', options)
2098
+ command.request_representation = Google::Apis::CloudresourcemanagerV3::TagHold::Representation
2099
+ command.request_object = tag_hold_object
2100
+ command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation
2101
+ command.response_class = Google::Apis::CloudresourcemanagerV3::Operation
2102
+ command.params['parent'] = parent unless parent.nil?
2103
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
2104
+ command.query['fields'] = fields unless fields.nil?
2105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2106
+ execute_or_queue_command(command, &block)
2107
+ end
2108
+
2109
+ # Deletes a TagHold.
2110
+ # @param [String] name
2111
+ # Required. The resource name of the TagHold to delete. Must be of the form: `
2112
+ # tagValues/`tag-value-id`/tagHolds/`tag-hold-id``.
2113
+ # @param [Boolean] validate_only
2114
+ # Optional. Set to true to perform the validations necessary for deleting the
2115
+ # resource, but not actually perform the action.
2116
+ # @param [String] fields
2117
+ # Selector specifying which fields to include in a partial response.
2118
+ # @param [String] quota_user
2119
+ # Available to use for quota purposes for server-side applications. Can be any
2120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2121
+ # @param [Google::Apis::RequestOptions] options
2122
+ # Request-specific options
2123
+ #
2124
+ # @yield [result, err] Result & error if block supplied
2125
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV3::Operation] parsed result object
2126
+ # @yieldparam err [StandardError] error object if request failed
2127
+ #
2128
+ # @return [Google::Apis::CloudresourcemanagerV3::Operation]
2129
+ #
2130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2133
+ def delete_tag_value_tag_hold(name, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2134
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2135
+ command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation
2136
+ command.response_class = Google::Apis::CloudresourcemanagerV3::Operation
2137
+ command.params['name'] = name unless name.nil?
2138
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
2139
+ command.query['fields'] = fields unless fields.nil?
2140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2141
+ execute_or_queue_command(command, &block)
2142
+ end
2143
+
2144
+ # Lists TagHolds under a TagValue.
2145
+ # @param [String] parent
2146
+ # Required. The resource name of the parent TagValue. Must be of the form: `
2147
+ # tagValues/`tag-value-id``.
2148
+ # @param [String] filter
2149
+ # Optional. Criteria used to select a subset of TagHolds parented by the
2150
+ # TagValue to return. This field follows the syntax defined by aip.dev/160; the `
2151
+ # holder` and `origin` fields are supported for filtering. Currently only `AND`
2152
+ # syntax is supported. Some example queries are: * `holder = //compute.
2153
+ # googleapis.com/compute/projects/myproject/regions/us-east-1/
2154
+ # instanceGroupManagers/instance-group` * `origin = 35678234` * `holder = //
2155
+ # compute.googleapis.com/compute/projects/myproject/regions/us-east-1/
2156
+ # instanceGroupManagers/instance-group AND origin = 35678234`
2157
+ # @param [Fixnum] page_size
2158
+ # Optional. The maximum number of TagHolds to return in the response. The server
2159
+ # allows a maximum of 300 TagHolds to return. If unspecified, the server will
2160
+ # use 100 as the default.
2161
+ # @param [String] page_token
2162
+ # Optional. A pagination token returned from a previous call to `ListTagHolds`
2163
+ # that indicates where this listing should continue from.
2164
+ # @param [String] fields
2165
+ # Selector specifying which fields to include in a partial response.
2166
+ # @param [String] quota_user
2167
+ # Available to use for quota purposes for server-side applications. Can be any
2168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2169
+ # @param [Google::Apis::RequestOptions] options
2170
+ # Request-specific options
2171
+ #
2172
+ # @yield [result, err] Result & error if block supplied
2173
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse] parsed result object
2174
+ # @yieldparam err [StandardError] error object if request failed
2175
+ #
2176
+ # @return [Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse]
2177
+ #
2178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2181
+ def list_tag_value_tag_holds(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2182
+ command = make_simple_command(:get, 'v3/{+parent}/tagHolds', options)
2183
+ command.response_representation = Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse::Representation
2184
+ command.response_class = Google::Apis::CloudresourcemanagerV3::ListTagHoldsResponse
2185
+ command.params['parent'] = parent unless parent.nil?
2186
+ command.query['filter'] = filter unless filter.nil?
2187
+ command.query['pageSize'] = page_size unless page_size.nil?
2188
+ command.query['pageToken'] = page_token unless page_token.nil?
2189
+ command.query['fields'] = fields unless fields.nil?
2190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2191
+ execute_or_queue_command(command, &block)
2192
+ end
2069
2193
 
2070
2194
  protected
2071
2195
 
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.23.0
4
+ version: 0.24.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-11 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.23.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.24.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: []