google-cloud-resource_manager-v3 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +75 -67
- data/lib/google/cloud/resource_manager/v3/folders/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +1281 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest/service_stub.rb +698 -0
- data/lib/google/cloud/resource_manager/v3/folders/rest.rb +55 -0
- data/lib/google/cloud/resource_manager/v3/folders.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +16 -16
- data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +704 -0
- data/lib/google/cloud/resource_manager/v3/organizations/rest/service_stub.rb +344 -0
- data/lib/google/cloud/resource_manager/v3/organizations/rest.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/organizations.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +72 -71
- data/lib/google/cloud/resource_manager/v3/projects/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +1304 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest/service_stub.rb +698 -0
- data/lib/google/cloud/resource_manager/v3/projects/rest.rb +53 -0
- data/lib/google/cloud/resource_manager/v3/projects.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/rest.rb +43 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +127 -31
- data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +606 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/service_stub.rb +279 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings/rest.rb +54 -0
- data/lib/google/cloud/resource_manager/v3/tag_bindings.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +640 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/credentials.rb +52 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +768 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/paths.rb +64 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +533 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest/service_stub.rb +226 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds/rest.rb +57 -0
- data/lib/google/cloud/resource_manager/v3/tag_holds.rb +60 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +127 -40
- data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +1012 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest/service_stub.rb +578 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys/rest.rb +53 -0
- data/lib/google/cloud/resource_manager/v3/tag_keys.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +139 -47
- data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +14 -16
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +1013 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +793 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest/service_stub.rb +578 -0
- data/lib/google/cloud/resource_manager/v3/tag_values/rest.rb +53 -0
- data/lib/google/cloud/resource_manager/v3/tag_values.rb +7 -1
- data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
- data/lib/google/cloud/resource_manager/v3.rb +8 -2
- data/lib/google/cloud/resourcemanager/v3/folders_services_pb.rb +23 -17
- data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +0 -1
- data/lib/google/cloud/resourcemanager/v3/projects_services_pb.rb +16 -13
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +22 -0
- data/lib/google/cloud/resourcemanager/v3/tag_bindings_services_pb.rb +7 -5
- data/lib/google/cloud/resourcemanager/v3/tag_holds_pb.rb +63 -0
- data/lib/google/cloud/resourcemanager/v3/tag_holds_services_pb.rb +54 -0
- data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +11 -0
- data/lib/google/cloud/resourcemanager/v3/tag_keys_services_pb.rb +6 -2
- data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +4 -0
- data/lib/google/cloud/resourcemanager/v3/tag_values_services_pb.rb +7 -4
- data/proto_docs/google/api/client.rb +372 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/resourcemanager/v3/folders.rb +25 -19
- data/proto_docs/google/cloud/resourcemanager/v3/organizations.rb +13 -11
- data/proto_docs/google/cloud/resourcemanager/v3/projects.rb +32 -30
- data/proto_docs/google/cloud/resourcemanager/v3/tag_bindings.rb +101 -15
- data/proto_docs/google/cloud/resourcemanager/v3/tag_holds.rb +161 -0
- data/proto_docs/google/cloud/resourcemanager/v3/tag_keys.rb +81 -23
- data/proto_docs/google/cloud/resourcemanager/v3/tag_values.rb +52 -29
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +46 -8
@@ -0,0 +1,53 @@
|
|
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 "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/resource_manager/v3/version"
|
24
|
+
|
25
|
+
require "google/cloud/resource_manager/v3/projects/credentials"
|
26
|
+
require "google/cloud/resource_manager/v3/projects/paths"
|
27
|
+
require "google/cloud/resource_manager/v3/projects/rest/operations"
|
28
|
+
require "google/cloud/resource_manager/v3/projects/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module ResourceManager
|
33
|
+
module V3
|
34
|
+
##
|
35
|
+
# Manages Google Cloud Projects.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/resource_manager/v3/projects/rest"
|
40
|
+
# client = ::Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
41
|
+
#
|
42
|
+
module Projects
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/resource_manager/v3/projects/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/resource_manager/v3/projects/credentials"
|
|
26
26
|
require "google/cloud/resource_manager/v3/projects/paths"
|
27
27
|
require "google/cloud/resource_manager/v3/projects/operations"
|
28
28
|
require "google/cloud/resource_manager/v3/projects/client"
|
29
|
+
require "google/cloud/resource_manager/v3/projects/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
##
|
35
36
|
# Manages Google Cloud Projects.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/resource_manager/v3/projects"
|
40
41
|
# client = ::Google::Cloud::ResourceManager::V3::Projects::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/resource_manager/v3/projects/rest"
|
46
|
+
# client = ::Google::Cloud::ResourceManager::V3::Projects::Rest::Client.new
|
47
|
+
#
|
42
48
|
module Projects
|
43
49
|
end
|
44
50
|
end
|
@@ -0,0 +1,43 @@
|
|
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/resource_manager/v3/folders/rest"
|
20
|
+
require "google/cloud/resource_manager/v3/organizations/rest"
|
21
|
+
require "google/cloud/resource_manager/v3/projects/rest"
|
22
|
+
require "google/cloud/resource_manager/v3/tag_bindings/rest"
|
23
|
+
require "google/cloud/resource_manager/v3/tag_holds/rest"
|
24
|
+
require "google/cloud/resource_manager/v3/tag_keys/rest"
|
25
|
+
require "google/cloud/resource_manager/v3/tag_values/rest"
|
26
|
+
require "google/cloud/resource_manager/v3/version"
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module ResourceManager
|
31
|
+
##
|
32
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
33
|
+
#
|
34
|
+
# @example
|
35
|
+
#
|
36
|
+
# require "google/cloud/resource_manager/v3/rest"
|
37
|
+
# client = ::Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
|
38
|
+
#
|
39
|
+
module V3
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# Client for the TagBindings service.
|
29
29
|
#
|
30
30
|
# Allow users to create and manage TagBindings between TagValues and
|
31
|
-
# different
|
31
|
+
# different Google Cloud resources throughout the GCP resource hierarchy.
|
32
32
|
#
|
33
33
|
class Client
|
34
34
|
include Paths
|
@@ -168,8 +168,8 @@ module Google
|
|
168
168
|
# Service calls
|
169
169
|
|
170
170
|
##
|
171
|
-
# Lists the TagBindings for the given
|
172
|
-
# `parent`.
|
171
|
+
# Lists the TagBindings for the given Google Cloud resource, as specified
|
172
|
+
# with `parent`.
|
173
173
|
#
|
174
174
|
# NOTE: The `parent` field is expected to be a full resource name:
|
175
175
|
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
@@ -190,16 +190,16 @@ module Google
|
|
190
190
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
191
191
|
#
|
192
192
|
# @param parent [::String]
|
193
|
-
# Required. The full resource name of a resource for which you want to list
|
194
|
-
# TagBindings.
|
195
|
-
#
|
193
|
+
# Required. The full resource name of a resource for which you want to list
|
194
|
+
# existing TagBindings. E.g.
|
195
|
+
# "//cloudresourcemanager.googleapis.com/projects/123"
|
196
196
|
# @param page_size [::Integer]
|
197
|
-
# Optional. The maximum number of TagBindings to return in the response. The
|
198
|
-
# allows a maximum of 300 TagBindings to return. If unspecified, the
|
199
|
-
# will use 100 as the default.
|
197
|
+
# Optional. The maximum number of TagBindings to return in the response. The
|
198
|
+
# server allows a maximum of 300 TagBindings to return. If unspecified, the
|
199
|
+
# server will use 100 as the default.
|
200
200
|
# @param page_token [::String]
|
201
|
-
# Optional. A pagination token returned from a previous call to
|
202
|
-
# that indicates where this listing should continue from.
|
201
|
+
# Optional. A pagination token returned from a previous call to
|
202
|
+
# `ListTagBindings` that indicates where this listing should continue from.
|
203
203
|
#
|
204
204
|
# @yield [response, operation] Access the result along with the RPC operation
|
205
205
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagBinding>]
|
@@ -221,13 +221,11 @@ module Google
|
|
221
221
|
# # Call the list_tag_bindings method.
|
222
222
|
# result = client.list_tag_bindings request
|
223
223
|
#
|
224
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
225
|
-
# #
|
226
|
-
#
|
227
|
-
# # methods are also available for managing paging directly.
|
228
|
-
# result.each do |response|
|
224
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
225
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
226
|
+
# result.each do |item|
|
229
227
|
# # Each element is of type ::Google::Cloud::ResourceManager::V3::TagBinding.
|
230
|
-
# p
|
228
|
+
# p item
|
231
229
|
# end
|
232
230
|
#
|
233
231
|
def list_tag_bindings request, options = nil
|
@@ -265,8 +263,7 @@ module Google
|
|
265
263
|
end
|
266
264
|
|
267
265
|
##
|
268
|
-
# Creates a TagBinding between a TagValue and a
|
269
|
-
# (currently project, folder, or organization).
|
266
|
+
# Creates a TagBinding between a TagValue and a Google Cloud resource.
|
270
267
|
#
|
271
268
|
# @overload create_tag_binding(request, options = nil)
|
272
269
|
# Pass arguments to `create_tag_binding` via a request object, either of type
|
@@ -286,8 +283,8 @@ module Google
|
|
286
283
|
# @param tag_binding [::Google::Cloud::ResourceManager::V3::TagBinding, ::Hash]
|
287
284
|
# Required. The TagBinding to be created.
|
288
285
|
# @param validate_only [::Boolean]
|
289
|
-
# Optional. Set to true to perform the validations necessary for creating the
|
290
|
-
# but not actually perform the action.
|
286
|
+
# Optional. Set to true to perform the validations necessary for creating the
|
287
|
+
# resource, but not actually perform the action.
|
291
288
|
#
|
292
289
|
# @yield [response, operation] Access the result along with the RPC operation
|
293
290
|
# @yieldparam response [::Gapic::Operation]
|
@@ -309,14 +306,14 @@ module Google
|
|
309
306
|
# # Call the create_tag_binding method.
|
310
307
|
# result = client.create_tag_binding request
|
311
308
|
#
|
312
|
-
# # The returned object is of type Gapic::Operation. You can use
|
313
|
-
# #
|
314
|
-
# #
|
309
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
310
|
+
# # check the status of an operation, cancel it, or wait for results.
|
311
|
+
# # Here is how to wait for a response.
|
315
312
|
# result.wait_until_done! timeout: 60
|
316
313
|
# if result.response?
|
317
314
|
# p result.response
|
318
315
|
# else
|
319
|
-
# puts "
|
316
|
+
# puts "No response received."
|
320
317
|
# end
|
321
318
|
#
|
322
319
|
def create_tag_binding request, options = nil
|
@@ -396,14 +393,14 @@ module Google
|
|
396
393
|
# # Call the delete_tag_binding method.
|
397
394
|
# result = client.delete_tag_binding request
|
398
395
|
#
|
399
|
-
# # The returned object is of type Gapic::Operation. You can use
|
400
|
-
# #
|
401
|
-
# #
|
396
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
397
|
+
# # check the status of an operation, cancel it, or wait for results.
|
398
|
+
# # Here is how to wait for a response.
|
402
399
|
# result.wait_until_done! timeout: 60
|
403
400
|
# if result.response?
|
404
401
|
# p result.response
|
405
402
|
# else
|
406
|
-
# puts "
|
403
|
+
# puts "No response received."
|
407
404
|
# end
|
408
405
|
#
|
409
406
|
def delete_tag_binding request, options = nil
|
@@ -448,6 +445,98 @@ module Google
|
|
448
445
|
raise ::Google::Cloud::Error.from_error(e)
|
449
446
|
end
|
450
447
|
|
448
|
+
##
|
449
|
+
# Return a list of effective tags for the given Google Cloud resource, as
|
450
|
+
# specified in `parent`.
|
451
|
+
#
|
452
|
+
# @overload list_effective_tags(request, options = nil)
|
453
|
+
# Pass arguments to `list_effective_tags` via a request object, either of type
|
454
|
+
# {::Google::Cloud::ResourceManager::V3::ListEffectiveTagsRequest} or an equivalent Hash.
|
455
|
+
#
|
456
|
+
# @param request [::Google::Cloud::ResourceManager::V3::ListEffectiveTagsRequest, ::Hash]
|
457
|
+
# A request object representing the call parameters. Required. To specify no
|
458
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
459
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
460
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
461
|
+
#
|
462
|
+
# @overload list_effective_tags(parent: nil, page_size: nil, page_token: nil)
|
463
|
+
# Pass arguments to `list_effective_tags` via keyword arguments. Note that at
|
464
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
465
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
466
|
+
#
|
467
|
+
# @param parent [::String]
|
468
|
+
# Required. The full resource name of a resource for which you want to list
|
469
|
+
# the effective tags. E.g.
|
470
|
+
# "//cloudresourcemanager.googleapis.com/projects/123"
|
471
|
+
# @param page_size [::Integer]
|
472
|
+
# Optional. The maximum number of effective tags to return in the response.
|
473
|
+
# The server allows a maximum of 300 effective tags to return in a single
|
474
|
+
# page. If unspecified, the server will use 100 as the default.
|
475
|
+
# @param page_token [::String]
|
476
|
+
# Optional. A pagination token returned from a previous call to
|
477
|
+
# `ListEffectiveTags` that indicates from where this listing should continue.
|
478
|
+
#
|
479
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
480
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ResourceManager::V3::EffectiveTag>]
|
481
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
482
|
+
#
|
483
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ResourceManager::V3::EffectiveTag>]
|
484
|
+
#
|
485
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
486
|
+
#
|
487
|
+
# @example Basic example
|
488
|
+
# require "google/cloud/resource_manager/v3"
|
489
|
+
#
|
490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
491
|
+
# client = Google::Cloud::ResourceManager::V3::TagBindings::Client.new
|
492
|
+
#
|
493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
494
|
+
# request = Google::Cloud::ResourceManager::V3::ListEffectiveTagsRequest.new
|
495
|
+
#
|
496
|
+
# # Call the list_effective_tags method.
|
497
|
+
# result = client.list_effective_tags request
|
498
|
+
#
|
499
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
500
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
501
|
+
# result.each do |item|
|
502
|
+
# # Each element is of type ::Google::Cloud::ResourceManager::V3::EffectiveTag.
|
503
|
+
# p item
|
504
|
+
# end
|
505
|
+
#
|
506
|
+
def list_effective_tags request, options = nil
|
507
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
508
|
+
|
509
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::ListEffectiveTagsRequest
|
510
|
+
|
511
|
+
# Converts hash and nil to an options object
|
512
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
513
|
+
|
514
|
+
# Customize the options with defaults
|
515
|
+
metadata = @config.rpcs.list_effective_tags.metadata.to_h
|
516
|
+
|
517
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
518
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
519
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
520
|
+
gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
|
521
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
522
|
+
|
523
|
+
options.apply_defaults timeout: @config.rpcs.list_effective_tags.timeout,
|
524
|
+
metadata: metadata,
|
525
|
+
retry_policy: @config.rpcs.list_effective_tags.retry_policy
|
526
|
+
|
527
|
+
options.apply_defaults timeout: @config.timeout,
|
528
|
+
metadata: @config.metadata,
|
529
|
+
retry_policy: @config.retry_policy
|
530
|
+
|
531
|
+
@tag_bindings_stub.call_rpc :list_effective_tags, request, options: options do |response, operation|
|
532
|
+
response = ::Gapic::PagedEnumerable.new @tag_bindings_stub, :list_effective_tags, request, response, operation, options
|
533
|
+
yield response, operation if block_given?
|
534
|
+
return response
|
535
|
+
end
|
536
|
+
rescue ::GRPC::BadStatus => e
|
537
|
+
raise ::Google::Cloud::Error.from_error(e)
|
538
|
+
end
|
539
|
+
|
451
540
|
##
|
452
541
|
# Configuration class for the TagBindings API.
|
453
542
|
#
|
@@ -486,9 +575,9 @@ module Google
|
|
486
575
|
# * (`String`) The path to a service account key file in JSON format
|
487
576
|
# * (`Hash`) A service account key as a Hash
|
488
577
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
489
|
-
# (see the [googleauth docs](https://
|
578
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
490
579
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
491
|
-
# (see the [signet docs](https://
|
580
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
492
581
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
493
582
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
494
583
|
# * (`nil`) indicating no credentials
|
@@ -598,6 +687,11 @@ module Google
|
|
598
687
|
# @return [::Gapic::Config::Method]
|
599
688
|
#
|
600
689
|
attr_reader :delete_tag_binding
|
690
|
+
##
|
691
|
+
# RPC-specific configuration for `list_effective_tags`
|
692
|
+
# @return [::Gapic::Config::Method]
|
693
|
+
#
|
694
|
+
attr_reader :list_effective_tags
|
601
695
|
|
602
696
|
# @private
|
603
697
|
def initialize parent_rpcs = nil
|
@@ -607,6 +701,8 @@ module Google
|
|
607
701
|
@create_tag_binding = ::Gapic::Config::Method.new create_tag_binding_config
|
608
702
|
delete_tag_binding_config = parent_rpcs.delete_tag_binding if parent_rpcs.respond_to? :delete_tag_binding
|
609
703
|
@delete_tag_binding = ::Gapic::Config::Method.new delete_tag_binding_config
|
704
|
+
list_effective_tags_config = parent_rpcs.list_effective_tags if parent_rpcs.respond_to? :list_effective_tags
|
705
|
+
@list_effective_tags = ::Gapic::Config::Method.new list_effective_tags_config
|
610
706
|
|
611
707
|
yield self if block_given?
|
612
708
|
end
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|