google-cloud-resource_manager-v3 0.2.0 → 0.4.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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +12 -7
  4. data/lib/google/cloud/resource_manager/v3/folders/client.rb +28 -32
  5. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +15 -14
  6. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +1269 -0
  7. data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +793 -0
  8. data/lib/google/cloud/resource_manager/v3/folders/rest/service_stub.rb +698 -0
  9. data/lib/google/cloud/resource_manager/v3/folders/rest.rb +55 -0
  10. data/lib/google/cloud/resource_manager/v3/folders.rb +7 -1
  11. data/lib/google/cloud/resource_manager/v3/organizations/client.rb +4 -6
  12. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +702 -0
  13. data/lib/google/cloud/resource_manager/v3/organizations/rest/service_stub.rb +344 -0
  14. data/lib/google/cloud/resource_manager/v3/organizations/rest.rb +52 -0
  15. data/lib/google/cloud/resource_manager/v3/organizations.rb +7 -1
  16. data/lib/google/cloud/resource_manager/v3/projects/client.rb +28 -32
  17. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +15 -14
  18. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +1299 -0
  19. data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +793 -0
  20. data/lib/google/cloud/resource_manager/v3/projects/rest/service_stub.rb +698 -0
  21. data/lib/google/cloud/resource_manager/v3/projects/rest.rb +53 -0
  22. data/lib/google/cloud/resource_manager/v3/projects.rb +7 -1
  23. data/lib/google/cloud/resource_manager/v3/rest.rb +42 -0
  24. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +12 -14
  25. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +15 -14
  26. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +527 -0
  27. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +793 -0
  28. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/service_stub.rb +222 -0
  29. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest.rb +54 -0
  30. data/lib/google/cloud/resource_manager/v3/tag_bindings.rb +7 -1
  31. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +16 -18
  32. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +15 -14
  33. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +938 -0
  34. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +793 -0
  35. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/service_stub.rb +521 -0
  36. data/lib/google/cloud/resource_manager/v3/tag_keys/rest.rb +53 -0
  37. data/lib/google/cloud/resource_manager/v3/tag_keys.rb +7 -1
  38. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +16 -18
  39. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +15 -14
  40. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +934 -0
  41. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +793 -0
  42. data/lib/google/cloud/resource_manager/v3/tag_values/rest/service_stub.rb +521 -0
  43. data/lib/google/cloud/resource_manager/v3/tag_values/rest.rb +53 -0
  44. data/lib/google/cloud/resource_manager/v3/tag_values.rb +7 -1
  45. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  46. data/lib/google/cloud/resource_manager/v3.rb +7 -2
  47. data/lib/google/cloud/resourcemanager/v3/folders_pb.rb +2 -1
  48. data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +2 -2
  49. data/lib/google/cloud/resourcemanager/v3/projects_pb.rb +2 -1
  50. data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +2 -1
  51. data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +2 -1
  52. data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +2 -1
  53. data/proto_docs/google/api/client.rb +318 -0
  54. data/proto_docs/google/api/launch_stage.rb +71 -0
  55. data/proto_docs/google/protobuf/any.rb +3 -3
  56. data/proto_docs/google/protobuf/empty.rb +0 -2
  57. data/proto_docs/google/rpc/status.rb +4 -2
  58. metadata +39 -13
@@ -0,0 +1,934 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/resourcemanager/v3/tag_values_pb"
21
+ require "google/cloud/resource_manager/v3/tag_values/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module ResourceManager
26
+ module V3
27
+ module TagValues
28
+ module Rest
29
+ ##
30
+ # REST client for the TagValues service.
31
+ #
32
+ # Allow users to create and manage tag values.
33
+ #
34
+ class Client
35
+ include Paths
36
+
37
+ # @private
38
+ attr_reader :tag_values_stub
39
+
40
+ ##
41
+ # Configure the TagValues Client class.
42
+ #
43
+ # See {::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client::Configuration}
44
+ # for a description of the configuration fields.
45
+ #
46
+ # @example
47
+ #
48
+ # # Modify the configuration for all TagValues clients
49
+ # ::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "ResourceManager", "V3"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config.rpcs.list_tag_values.timeout = 60.0
70
+ default_config.rpcs.list_tag_values.retry_policy = {
71
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
72
+ }
73
+
74
+ default_config.rpcs.get_tag_value.timeout = 60.0
75
+ default_config.rpcs.get_tag_value.retry_policy = {
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
77
+ }
78
+
79
+ default_config.rpcs.create_tag_value.timeout = 60.0
80
+
81
+ default_config.rpcs.update_tag_value.timeout = 60.0
82
+
83
+ default_config.rpcs.delete_tag_value.timeout = 60.0
84
+
85
+ default_config.rpcs.get_iam_policy.timeout = 60.0
86
+ default_config.rpcs.get_iam_policy.retry_policy = {
87
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
88
+ }
89
+
90
+ default_config.rpcs.set_iam_policy.timeout = 60.0
91
+
92
+ default_config
93
+ end
94
+ yield @configure if block_given?
95
+ @configure
96
+ end
97
+
98
+ ##
99
+ # Configure the TagValues Client instance.
100
+ #
101
+ # The configuration is set to the derived mode, meaning that values can be changed,
102
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
103
+ # should be made on {Client.configure}.
104
+ #
105
+ # See {::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client::Configuration}
106
+ # for a description of the configuration fields.
107
+ #
108
+ # @yield [config] Configure the Client client.
109
+ # @yieldparam config [Client::Configuration]
110
+ #
111
+ # @return [Client::Configuration]
112
+ #
113
+ def configure
114
+ yield @config if block_given?
115
+ @config
116
+ end
117
+
118
+ ##
119
+ # Create a new TagValues REST client object.
120
+ #
121
+ # @example
122
+ #
123
+ # # Create a client using the default configuration
124
+ # client = ::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new
125
+ #
126
+ # # Create a client using a custom configuration
127
+ # client = ::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new do |config|
128
+ # config.timeout = 10.0
129
+ # end
130
+ #
131
+ # @yield [config] Configure the TagValues client.
132
+ # @yieldparam config [Client::Configuration]
133
+ #
134
+ def initialize
135
+ # Create the configuration object
136
+ @config = Configuration.new Client.configure
137
+
138
+ # Yield the configuration if needed
139
+ yield @config if block_given?
140
+
141
+ # Create credentials
142
+ credentials = @config.credentials
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
144
+ # but only if the default endpoint does not have a region prefix.
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
146
+ !@config.endpoint.split(".").first.include?("-")
147
+ credentials ||= Credentials.default scope: @config.scope,
148
+ enable_self_signed_jwt: enable_self_signed_jwt
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
150
+ credentials = Credentials.new credentials, scope: @config.scope
151
+ end
152
+
153
+ @quota_project_id = @config.quota_project
154
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
+
156
+ @operations_client = ::Google::Cloud::ResourceManager::V3::TagValues::Rest::Operations.new do |config|
157
+ config.credentials = credentials
158
+ config.quota_project = @quota_project_id
159
+ config.endpoint = @config.endpoint
160
+ end
161
+
162
+ @tag_values_stub = ::Google::Cloud::ResourceManager::V3::TagValues::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
163
+ end
164
+
165
+ ##
166
+ # Get the associated client for long-running operations.
167
+ #
168
+ # @return [::Google::Cloud::ResourceManager::V3::TagValues::Rest::Operations]
169
+ #
170
+ attr_reader :operations_client
171
+
172
+ # Service calls
173
+
174
+ ##
175
+ # Lists all TagValues for a specific TagKey.
176
+ #
177
+ # @overload list_tag_values(request, options = nil)
178
+ # Pass arguments to `list_tag_values` via a request object, either of type
179
+ # {::Google::Cloud::ResourceManager::V3::ListTagValuesRequest} or an equivalent Hash.
180
+ #
181
+ # @param request [::Google::Cloud::ResourceManager::V3::ListTagValuesRequest, ::Hash]
182
+ # A request object representing the call parameters. Required. To specify no
183
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
184
+ # @param options [::Gapic::CallOptions, ::Hash]
185
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
186
+ #
187
+ # @overload list_tag_values(parent: nil, page_size: nil, page_token: nil)
188
+ # Pass arguments to `list_tag_values` via keyword arguments. Note that at
189
+ # least one keyword argument is required. To specify no parameters, or to keep all
190
+ # the default parameter values, pass an empty Hash as a request object (see above).
191
+ #
192
+ # @param parent [::String]
193
+ # Required. Resource name for TagKey, parent of the TagValues to be listed,
194
+ # in the format `tagKeys/123`.
195
+ # @param page_size [::Integer]
196
+ # Optional. The maximum number of TagValues to return in the response. The server
197
+ # allows a maximum of 300 TagValues to return. If unspecified, the server
198
+ # will use 100 as the default.
199
+ # @param page_token [::String]
200
+ # Optional. A pagination token returned from a previous call to `ListTagValues`
201
+ # that indicates where this listing should continue from.
202
+ # @yield [result, operation] Access the result along with the TransportOperation object
203
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagValue>]
204
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
205
+ #
206
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagValue>]
207
+ #
208
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
209
+ def list_tag_values request, options = nil
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
+
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::ListTagValuesRequest
213
+
214
+ # Converts hash and nil to an options object
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
216
+
217
+ # Customize the options with defaults
218
+ call_metadata = @config.rpcs.list_tag_values.metadata.to_h
219
+
220
+ # Set x-goog-api-client and x-goog-user-project headers
221
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
223
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
224
+ transports_version_send: [:rest]
225
+
226
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
+
228
+ options.apply_defaults timeout: @config.rpcs.list_tag_values.timeout,
229
+ metadata: call_metadata,
230
+ retry_policy: @config.rpcs.list_tag_values.retry_policy
231
+
232
+ options.apply_defaults timeout: @config.timeout,
233
+ metadata: @config.metadata,
234
+ retry_policy: @config.retry_policy
235
+
236
+ @tag_values_stub.list_tag_values request, options do |result, operation|
237
+ result = ::Gapic::Rest::PagedEnumerable.new @tag_values_stub, :list_tag_values, "tag_values", request, result, options
238
+ yield result, operation if block_given?
239
+ return result
240
+ end
241
+ rescue ::Gapic::Rest::Error => e
242
+ raise ::Google::Cloud::Error.from_error(e)
243
+ end
244
+
245
+ ##
246
+ # Retrieves TagValue. If the TagValue or namespaced name does not exist, or
247
+ # if the user does not have permission to view it, this method will return
248
+ # `PERMISSION_DENIED`.
249
+ #
250
+ # @overload get_tag_value(request, options = nil)
251
+ # Pass arguments to `get_tag_value` via a request object, either of type
252
+ # {::Google::Cloud::ResourceManager::V3::GetTagValueRequest} or an equivalent Hash.
253
+ #
254
+ # @param request [::Google::Cloud::ResourceManager::V3::GetTagValueRequest, ::Hash]
255
+ # A request object representing the call parameters. Required. To specify no
256
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
257
+ # @param options [::Gapic::CallOptions, ::Hash]
258
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
259
+ #
260
+ # @overload get_tag_value(name: nil)
261
+ # Pass arguments to `get_tag_value` via keyword arguments. Note that at
262
+ # least one keyword argument is required. To specify no parameters, or to keep all
263
+ # the default parameter values, pass an empty Hash as a request object (see above).
264
+ #
265
+ # @param name [::String]
266
+ # Required. Resource name for TagValue to be fetched in the format `tagValues/456`.
267
+ # @yield [result, operation] Access the result along with the TransportOperation object
268
+ # @yieldparam result [::Google::Cloud::ResourceManager::V3::TagValue]
269
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
270
+ #
271
+ # @return [::Google::Cloud::ResourceManager::V3::TagValue]
272
+ #
273
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
274
+ def get_tag_value request, options = nil
275
+ raise ::ArgumentError, "request must be provided" if request.nil?
276
+
277
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::GetTagValueRequest
278
+
279
+ # Converts hash and nil to an options object
280
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
281
+
282
+ # Customize the options with defaults
283
+ call_metadata = @config.rpcs.get_tag_value.metadata.to_h
284
+
285
+ # Set x-goog-api-client and x-goog-user-project headers
286
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
287
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
288
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
289
+ transports_version_send: [:rest]
290
+
291
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
292
+
293
+ options.apply_defaults timeout: @config.rpcs.get_tag_value.timeout,
294
+ metadata: call_metadata,
295
+ retry_policy: @config.rpcs.get_tag_value.retry_policy
296
+
297
+ options.apply_defaults timeout: @config.timeout,
298
+ metadata: @config.metadata,
299
+ retry_policy: @config.retry_policy
300
+
301
+ @tag_values_stub.get_tag_value request, options do |result, operation|
302
+ yield result, operation if block_given?
303
+ return result
304
+ end
305
+ rescue ::Gapic::Rest::Error => e
306
+ raise ::Google::Cloud::Error.from_error(e)
307
+ end
308
+
309
+ ##
310
+ # Creates a TagValue as a child of the specified TagKey. If a another
311
+ # request with the same parameters is sent while the original request is in
312
+ # process the second request will receive an error. A maximum of 300
313
+ # TagValues can exist under a TagKey at any given time.
314
+ #
315
+ # @overload create_tag_value(request, options = nil)
316
+ # Pass arguments to `create_tag_value` via a request object, either of type
317
+ # {::Google::Cloud::ResourceManager::V3::CreateTagValueRequest} or an equivalent Hash.
318
+ #
319
+ # @param request [::Google::Cloud::ResourceManager::V3::CreateTagValueRequest, ::Hash]
320
+ # A request object representing the call parameters. Required. To specify no
321
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
322
+ # @param options [::Gapic::CallOptions, ::Hash]
323
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
324
+ #
325
+ # @overload create_tag_value(tag_value: nil, validate_only: nil)
326
+ # Pass arguments to `create_tag_value` via keyword arguments. Note that at
327
+ # least one keyword argument is required. To specify no parameters, or to keep all
328
+ # the default parameter values, pass an empty Hash as a request object (see above).
329
+ #
330
+ # @param tag_value [::Google::Cloud::ResourceManager::V3::TagValue, ::Hash]
331
+ # Required. The TagValue to be created. Only fields `short_name`, `description`,
332
+ # and `parent` are considered during the creation request.
333
+ # @param validate_only [::Boolean]
334
+ # Optional. Set as true to perform the validations necessary for creating the resource,
335
+ # but not actually perform the action.
336
+ # @yield [result, operation] Access the result along with the TransportOperation object
337
+ # @yieldparam result [::Gapic::Operation]
338
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
339
+ #
340
+ # @return [::Gapic::Operation]
341
+ #
342
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
343
+ def create_tag_value request, options = nil
344
+ raise ::ArgumentError, "request must be provided" if request.nil?
345
+
346
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::CreateTagValueRequest
347
+
348
+ # Converts hash and nil to an options object
349
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
350
+
351
+ # Customize the options with defaults
352
+ call_metadata = @config.rpcs.create_tag_value.metadata.to_h
353
+
354
+ # Set x-goog-api-client and x-goog-user-project headers
355
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
357
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
358
+ transports_version_send: [:rest]
359
+
360
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
+
362
+ options.apply_defaults timeout: @config.rpcs.create_tag_value.timeout,
363
+ metadata: call_metadata,
364
+ retry_policy: @config.rpcs.create_tag_value.retry_policy
365
+
366
+ options.apply_defaults timeout: @config.timeout,
367
+ metadata: @config.metadata,
368
+ retry_policy: @config.retry_policy
369
+
370
+ @tag_values_stub.create_tag_value request, options do |result, operation|
371
+ result = ::Gapic::Operation.new result, @operations_client, options: options
372
+ yield result, operation if block_given?
373
+ return result
374
+ end
375
+ rescue ::Gapic::Rest::Error => e
376
+ raise ::Google::Cloud::Error.from_error(e)
377
+ end
378
+
379
+ ##
380
+ # Updates the attributes of the TagValue resource.
381
+ #
382
+ # @overload update_tag_value(request, options = nil)
383
+ # Pass arguments to `update_tag_value` via a request object, either of type
384
+ # {::Google::Cloud::ResourceManager::V3::UpdateTagValueRequest} or an equivalent Hash.
385
+ #
386
+ # @param request [::Google::Cloud::ResourceManager::V3::UpdateTagValueRequest, ::Hash]
387
+ # A request object representing the call parameters. Required. To specify no
388
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
389
+ # @param options [::Gapic::CallOptions, ::Hash]
390
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
391
+ #
392
+ # @overload update_tag_value(tag_value: nil, update_mask: nil, validate_only: nil)
393
+ # Pass arguments to `update_tag_value` via keyword arguments. Note that at
394
+ # least one keyword argument is required. To specify no parameters, or to keep all
395
+ # the default parameter values, pass an empty Hash as a request object (see above).
396
+ #
397
+ # @param tag_value [::Google::Cloud::ResourceManager::V3::TagValue, ::Hash]
398
+ # Required. The new definition of the TagValue. Only fields `description` and `etag`
399
+ # fields can be updated by this request. If the `etag` field is nonempty, it
400
+ # must match the `etag` field of the existing ControlGroup. Otherwise,
401
+ # `FAILED_PRECONDITION` will be returned.
402
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
403
+ # Optional. Fields to be updated.
404
+ # @param validate_only [::Boolean]
405
+ # Optional. True to perform validations necessary for updating the resource, but not
406
+ # actually perform the action.
407
+ # @yield [result, operation] Access the result along with the TransportOperation object
408
+ # @yieldparam result [::Gapic::Operation]
409
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
410
+ #
411
+ # @return [::Gapic::Operation]
412
+ #
413
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
414
+ def update_tag_value request, options = nil
415
+ raise ::ArgumentError, "request must be provided" if request.nil?
416
+
417
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::UpdateTagValueRequest
418
+
419
+ # Converts hash and nil to an options object
420
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
421
+
422
+ # Customize the options with defaults
423
+ call_metadata = @config.rpcs.update_tag_value.metadata.to_h
424
+
425
+ # Set x-goog-api-client and x-goog-user-project headers
426
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
428
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
429
+ transports_version_send: [:rest]
430
+
431
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
+
433
+ options.apply_defaults timeout: @config.rpcs.update_tag_value.timeout,
434
+ metadata: call_metadata,
435
+ retry_policy: @config.rpcs.update_tag_value.retry_policy
436
+
437
+ options.apply_defaults timeout: @config.timeout,
438
+ metadata: @config.metadata,
439
+ retry_policy: @config.retry_policy
440
+
441
+ @tag_values_stub.update_tag_value request, options do |result, operation|
442
+ result = ::Gapic::Operation.new result, @operations_client, options: options
443
+ yield result, operation if block_given?
444
+ return result
445
+ end
446
+ rescue ::Gapic::Rest::Error => e
447
+ raise ::Google::Cloud::Error.from_error(e)
448
+ end
449
+
450
+ ##
451
+ # Deletes a TagValue. The TagValue cannot have any bindings when it is
452
+ # deleted.
453
+ #
454
+ # @overload delete_tag_value(request, options = nil)
455
+ # Pass arguments to `delete_tag_value` via a request object, either of type
456
+ # {::Google::Cloud::ResourceManager::V3::DeleteTagValueRequest} or an equivalent Hash.
457
+ #
458
+ # @param request [::Google::Cloud::ResourceManager::V3::DeleteTagValueRequest, ::Hash]
459
+ # A request object representing the call parameters. Required. To specify no
460
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
461
+ # @param options [::Gapic::CallOptions, ::Hash]
462
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
463
+ #
464
+ # @overload delete_tag_value(name: nil, validate_only: nil, etag: nil)
465
+ # Pass arguments to `delete_tag_value` via keyword arguments. Note that at
466
+ # least one keyword argument is required. To specify no parameters, or to keep all
467
+ # the default parameter values, pass an empty Hash as a request object (see above).
468
+ #
469
+ # @param name [::String]
470
+ # Required. Resource name for TagValue to be deleted in the format tagValues/456.
471
+ # @param validate_only [::Boolean]
472
+ # Optional. Set as true to perform the validations necessary for deletion, but not
473
+ # actually perform the action.
474
+ # @param etag [::String]
475
+ # Optional. The etag known to the client for the expected state of the TagValue. This
476
+ # is to be used for optimistic concurrency.
477
+ # @yield [result, operation] Access the result along with the TransportOperation object
478
+ # @yieldparam result [::Gapic::Operation]
479
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
480
+ #
481
+ # @return [::Gapic::Operation]
482
+ #
483
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
484
+ def delete_tag_value request, options = nil
485
+ raise ::ArgumentError, "request must be provided" if request.nil?
486
+
487
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::DeleteTagValueRequest
488
+
489
+ # Converts hash and nil to an options object
490
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
491
+
492
+ # Customize the options with defaults
493
+ call_metadata = @config.rpcs.delete_tag_value.metadata.to_h
494
+
495
+ # Set x-goog-api-client and x-goog-user-project headers
496
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
497
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
498
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
499
+ transports_version_send: [:rest]
500
+
501
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
502
+
503
+ options.apply_defaults timeout: @config.rpcs.delete_tag_value.timeout,
504
+ metadata: call_metadata,
505
+ retry_policy: @config.rpcs.delete_tag_value.retry_policy
506
+
507
+ options.apply_defaults timeout: @config.timeout,
508
+ metadata: @config.metadata,
509
+ retry_policy: @config.retry_policy
510
+
511
+ @tag_values_stub.delete_tag_value request, options do |result, operation|
512
+ result = ::Gapic::Operation.new result, @operations_client, options: options
513
+ yield result, operation if block_given?
514
+ return result
515
+ end
516
+ rescue ::Gapic::Rest::Error => e
517
+ raise ::Google::Cloud::Error.from_error(e)
518
+ end
519
+
520
+ ##
521
+ # Gets the access control policy for a TagValue. The returned policy may be
522
+ # empty if no such policy or resource exists. The `resource` field should
523
+ # be the TagValue's resource name. For example: `tagValues/1234`.
524
+ # The caller must have the
525
+ # `cloudresourcemanager.googleapis.com/tagValues.getIamPolicy` permission on
526
+ # the identified TagValue to get the access control policy.
527
+ #
528
+ # @overload get_iam_policy(request, options = nil)
529
+ # Pass arguments to `get_iam_policy` via a request object, either of type
530
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
531
+ #
532
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
533
+ # A request object representing the call parameters. Required. To specify no
534
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
535
+ # @param options [::Gapic::CallOptions, ::Hash]
536
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
537
+ #
538
+ # @overload get_iam_policy(resource: nil, options: nil)
539
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
540
+ # least one keyword argument is required. To specify no parameters, or to keep all
541
+ # the default parameter values, pass an empty Hash as a request object (see above).
542
+ #
543
+ # @param resource [::String]
544
+ # REQUIRED: The resource for which the policy is being requested.
545
+ # See the operation documentation for the appropriate value for this field.
546
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
547
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
548
+ # `GetIamPolicy`.
549
+ # @yield [result, operation] Access the result along with the TransportOperation object
550
+ # @yieldparam result [::Google::Iam::V1::Policy]
551
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
552
+ #
553
+ # @return [::Google::Iam::V1::Policy]
554
+ #
555
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
556
+ def get_iam_policy request, options = nil
557
+ raise ::ArgumentError, "request must be provided" if request.nil?
558
+
559
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
560
+
561
+ # Converts hash and nil to an options object
562
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
563
+
564
+ # Customize the options with defaults
565
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
566
+
567
+ # Set x-goog-api-client and x-goog-user-project headers
568
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
569
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
570
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
571
+ transports_version_send: [:rest]
572
+
573
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
+
575
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
576
+ metadata: call_metadata,
577
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
578
+
579
+ options.apply_defaults timeout: @config.timeout,
580
+ metadata: @config.metadata,
581
+ retry_policy: @config.retry_policy
582
+
583
+ @tag_values_stub.get_iam_policy request, options do |result, operation|
584
+ yield result, operation if block_given?
585
+ return result
586
+ end
587
+ rescue ::Gapic::Rest::Error => e
588
+ raise ::Google::Cloud::Error.from_error(e)
589
+ end
590
+
591
+ ##
592
+ # Sets the access control policy on a TagValue, replacing any existing
593
+ # policy. The `resource` field should be the TagValue's resource name.
594
+ # For example: `tagValues/1234`.
595
+ # The caller must have `resourcemanager.tagValues.setIamPolicy` permission
596
+ # on the identified tagValue.
597
+ #
598
+ # @overload set_iam_policy(request, options = nil)
599
+ # Pass arguments to `set_iam_policy` via a request object, either of type
600
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
601
+ #
602
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
603
+ # A request object representing the call parameters. Required. To specify no
604
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
605
+ # @param options [::Gapic::CallOptions, ::Hash]
606
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
607
+ #
608
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
609
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
610
+ # least one keyword argument is required. To specify no parameters, or to keep all
611
+ # the default parameter values, pass an empty Hash as a request object (see above).
612
+ #
613
+ # @param resource [::String]
614
+ # REQUIRED: The resource for which the policy is being specified.
615
+ # See the operation documentation for the appropriate value for this field.
616
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
617
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
618
+ # the policy is limited to a few 10s of KB. An empty policy is a
619
+ # valid policy but certain Cloud Platform services (such as Projects)
620
+ # might reject them.
621
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
622
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
623
+ # the fields in the mask will be modified. If no mask is provided, the
624
+ # following default mask is used:
625
+ #
626
+ # `paths: "bindings, etag"`
627
+ # @yield [result, operation] Access the result along with the TransportOperation object
628
+ # @yieldparam result [::Google::Iam::V1::Policy]
629
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
630
+ #
631
+ # @return [::Google::Iam::V1::Policy]
632
+ #
633
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
634
+ def set_iam_policy request, options = nil
635
+ raise ::ArgumentError, "request must be provided" if request.nil?
636
+
637
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
638
+
639
+ # Converts hash and nil to an options object
640
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
641
+
642
+ # Customize the options with defaults
643
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
644
+
645
+ # Set x-goog-api-client and x-goog-user-project headers
646
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
647
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
648
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
649
+ transports_version_send: [:rest]
650
+
651
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
652
+
653
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
654
+ metadata: call_metadata,
655
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
656
+
657
+ options.apply_defaults timeout: @config.timeout,
658
+ metadata: @config.metadata,
659
+ retry_policy: @config.retry_policy
660
+
661
+ @tag_values_stub.set_iam_policy request, options do |result, operation|
662
+ yield result, operation if block_given?
663
+ return result
664
+ end
665
+ rescue ::Gapic::Rest::Error => e
666
+ raise ::Google::Cloud::Error.from_error(e)
667
+ end
668
+
669
+ ##
670
+ # Returns permissions that a caller has on the specified TagValue.
671
+ # The `resource` field should be the TagValue's resource name. For example:
672
+ # `tagValues/1234`.
673
+ #
674
+ # There are no permissions required for making this API call.
675
+ #
676
+ # @overload test_iam_permissions(request, options = nil)
677
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
678
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
679
+ #
680
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
681
+ # A request object representing the call parameters. Required. To specify no
682
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
683
+ # @param options [::Gapic::CallOptions, ::Hash]
684
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
685
+ #
686
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
687
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
688
+ # least one keyword argument is required. To specify no parameters, or to keep all
689
+ # the default parameter values, pass an empty Hash as a request object (see above).
690
+ #
691
+ # @param resource [::String]
692
+ # REQUIRED: The resource for which the policy detail is being requested.
693
+ # See the operation documentation for the appropriate value for this field.
694
+ # @param permissions [::Array<::String>]
695
+ # The set of permissions to check for the `resource`. Permissions with
696
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
697
+ # information see
698
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
699
+ # @yield [result, operation] Access the result along with the TransportOperation object
700
+ # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
701
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
702
+ #
703
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
704
+ #
705
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
706
+ def test_iam_permissions request, options = nil
707
+ raise ::ArgumentError, "request must be provided" if request.nil?
708
+
709
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
710
+
711
+ # Converts hash and nil to an options object
712
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
713
+
714
+ # Customize the options with defaults
715
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
716
+
717
+ # Set x-goog-api-client and x-goog-user-project headers
718
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
719
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
720
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
721
+ transports_version_send: [:rest]
722
+
723
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
724
+
725
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
726
+ metadata: call_metadata,
727
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
728
+
729
+ options.apply_defaults timeout: @config.timeout,
730
+ metadata: @config.metadata,
731
+ retry_policy: @config.retry_policy
732
+
733
+ @tag_values_stub.test_iam_permissions request, options do |result, operation|
734
+ yield result, operation if block_given?
735
+ return result
736
+ end
737
+ rescue ::Gapic::Rest::Error => e
738
+ raise ::Google::Cloud::Error.from_error(e)
739
+ end
740
+
741
+ ##
742
+ # Configuration class for the TagValues REST API.
743
+ #
744
+ # This class represents the configuration for TagValues REST,
745
+ # providing control over timeouts, retry behavior, logging, transport
746
+ # parameters, and other low-level controls. Certain parameters can also be
747
+ # applied individually to specific RPCs. See
748
+ # {::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client::Configuration::Rpcs}
749
+ # for a list of RPCs that can be configured independently.
750
+ #
751
+ # Configuration can be applied globally to all clients, or to a single client
752
+ # on construction.
753
+ #
754
+ # @example
755
+ #
756
+ # # Modify the global config, setting the timeout for
757
+ # # list_tag_values to 20 seconds,
758
+ # # and all remaining timeouts to 10 seconds.
759
+ # ::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.configure do |config|
760
+ # config.timeout = 10.0
761
+ # config.rpcs.list_tag_values.timeout = 20.0
762
+ # end
763
+ #
764
+ # # Apply the above configuration only to a new client.
765
+ # client = ::Google::Cloud::ResourceManager::V3::TagValues::Rest::Client.new do |config|
766
+ # config.timeout = 10.0
767
+ # config.rpcs.list_tag_values.timeout = 20.0
768
+ # end
769
+ #
770
+ # @!attribute [rw] endpoint
771
+ # The hostname or hostname:port of the service endpoint.
772
+ # Defaults to `"cloudresourcemanager.googleapis.com"`.
773
+ # @return [::String]
774
+ # @!attribute [rw] credentials
775
+ # Credentials to send with calls. You may provide any of the following types:
776
+ # * (`String`) The path to a service account key file in JSON format
777
+ # * (`Hash`) A service account key as a Hash
778
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
779
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
780
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
781
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
782
+ # * (`nil`) indicating no credentials
783
+ # @return [::Object]
784
+ # @!attribute [rw] scope
785
+ # The OAuth scopes
786
+ # @return [::Array<::String>]
787
+ # @!attribute [rw] lib_name
788
+ # The library name as recorded in instrumentation and logging
789
+ # @return [::String]
790
+ # @!attribute [rw] lib_version
791
+ # The library version as recorded in instrumentation and logging
792
+ # @return [::String]
793
+ # @!attribute [rw] timeout
794
+ # The call timeout in seconds.
795
+ # @return [::Numeric]
796
+ # @!attribute [rw] metadata
797
+ # Additional headers to be sent with the call.
798
+ # @return [::Hash{::Symbol=>::String}]
799
+ # @!attribute [rw] retry_policy
800
+ # The retry policy. The value is a hash with the following keys:
801
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
802
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
803
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
804
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
805
+ # trigger a retry.
806
+ # @return [::Hash]
807
+ # @!attribute [rw] quota_project
808
+ # A separate project against which to charge quota.
809
+ # @return [::String]
810
+ #
811
+ class Configuration
812
+ extend ::Gapic::Config
813
+
814
+ config_attr :endpoint, "cloudresourcemanager.googleapis.com", ::String
815
+ config_attr :credentials, nil do |value|
816
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
817
+ allowed.any? { |klass| klass === value }
818
+ end
819
+ config_attr :scope, nil, ::String, ::Array, nil
820
+ config_attr :lib_name, nil, ::String, nil
821
+ config_attr :lib_version, nil, ::String, nil
822
+ config_attr :timeout, nil, ::Numeric, nil
823
+ config_attr :metadata, nil, ::Hash, nil
824
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
825
+ config_attr :quota_project, nil, ::String, nil
826
+
827
+ # @private
828
+ def initialize parent_config = nil
829
+ @parent_config = parent_config unless parent_config.nil?
830
+
831
+ yield self if block_given?
832
+ end
833
+
834
+ ##
835
+ # Configurations for individual RPCs
836
+ # @return [Rpcs]
837
+ #
838
+ def rpcs
839
+ @rpcs ||= begin
840
+ parent_rpcs = nil
841
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
842
+ Rpcs.new parent_rpcs
843
+ end
844
+ end
845
+
846
+ ##
847
+ # Configuration RPC class for the TagValues API.
848
+ #
849
+ # Includes fields providing the configuration for each RPC in this service.
850
+ # Each configuration object is of type `Gapic::Config::Method` and includes
851
+ # the following configuration fields:
852
+ #
853
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
854
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
855
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
856
+ # include the following keys:
857
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
858
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
859
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
860
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
861
+ # trigger a retry.
862
+ #
863
+ class Rpcs
864
+ ##
865
+ # RPC-specific configuration for `list_tag_values`
866
+ # @return [::Gapic::Config::Method]
867
+ #
868
+ attr_reader :list_tag_values
869
+ ##
870
+ # RPC-specific configuration for `get_tag_value`
871
+ # @return [::Gapic::Config::Method]
872
+ #
873
+ attr_reader :get_tag_value
874
+ ##
875
+ # RPC-specific configuration for `create_tag_value`
876
+ # @return [::Gapic::Config::Method]
877
+ #
878
+ attr_reader :create_tag_value
879
+ ##
880
+ # RPC-specific configuration for `update_tag_value`
881
+ # @return [::Gapic::Config::Method]
882
+ #
883
+ attr_reader :update_tag_value
884
+ ##
885
+ # RPC-specific configuration for `delete_tag_value`
886
+ # @return [::Gapic::Config::Method]
887
+ #
888
+ attr_reader :delete_tag_value
889
+ ##
890
+ # RPC-specific configuration for `get_iam_policy`
891
+ # @return [::Gapic::Config::Method]
892
+ #
893
+ attr_reader :get_iam_policy
894
+ ##
895
+ # RPC-specific configuration for `set_iam_policy`
896
+ # @return [::Gapic::Config::Method]
897
+ #
898
+ attr_reader :set_iam_policy
899
+ ##
900
+ # RPC-specific configuration for `test_iam_permissions`
901
+ # @return [::Gapic::Config::Method]
902
+ #
903
+ attr_reader :test_iam_permissions
904
+
905
+ # @private
906
+ def initialize parent_rpcs = nil
907
+ list_tag_values_config = parent_rpcs.list_tag_values if parent_rpcs.respond_to? :list_tag_values
908
+ @list_tag_values = ::Gapic::Config::Method.new list_tag_values_config
909
+ get_tag_value_config = parent_rpcs.get_tag_value if parent_rpcs.respond_to? :get_tag_value
910
+ @get_tag_value = ::Gapic::Config::Method.new get_tag_value_config
911
+ create_tag_value_config = parent_rpcs.create_tag_value if parent_rpcs.respond_to? :create_tag_value
912
+ @create_tag_value = ::Gapic::Config::Method.new create_tag_value_config
913
+ update_tag_value_config = parent_rpcs.update_tag_value if parent_rpcs.respond_to? :update_tag_value
914
+ @update_tag_value = ::Gapic::Config::Method.new update_tag_value_config
915
+ delete_tag_value_config = parent_rpcs.delete_tag_value if parent_rpcs.respond_to? :delete_tag_value
916
+ @delete_tag_value = ::Gapic::Config::Method.new delete_tag_value_config
917
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
918
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
919
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
920
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
921
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
922
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
923
+
924
+ yield self if block_given?
925
+ end
926
+ end
927
+ end
928
+ end
929
+ end
930
+ end
931
+ end
932
+ end
933
+ end
934
+ end