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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/resource_manager/v3/folders/client.rb +75 -67
  5. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +14 -16
  6. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +1281 -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 +16 -16
  12. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +704 -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 +72 -71
  17. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +14 -16
  18. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +1304 -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 +43 -0
  24. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +127 -31
  25. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +14 -16
  26. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +606 -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 +279 -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 +8 -2
  31. data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +640 -0
  32. data/lib/google/cloud/resource_manager/v3/tag_holds/credentials.rb +52 -0
  33. data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +768 -0
  34. data/lib/google/cloud/resource_manager/v3/tag_holds/paths.rb +64 -0
  35. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +533 -0
  36. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +793 -0
  37. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/service_stub.rb +226 -0
  38. data/lib/google/cloud/resource_manager/v3/tag_holds/rest.rb +57 -0
  39. data/lib/google/cloud/resource_manager/v3/tag_holds.rb +60 -0
  40. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +127 -40
  41. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +14 -16
  42. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +1012 -0
  43. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +793 -0
  44. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/service_stub.rb +578 -0
  45. data/lib/google/cloud/resource_manager/v3/tag_keys/rest.rb +53 -0
  46. data/lib/google/cloud/resource_manager/v3/tag_keys.rb +7 -1
  47. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +139 -47
  48. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +14 -16
  49. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +1013 -0
  50. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +793 -0
  51. data/lib/google/cloud/resource_manager/v3/tag_values/rest/service_stub.rb +578 -0
  52. data/lib/google/cloud/resource_manager/v3/tag_values/rest.rb +53 -0
  53. data/lib/google/cloud/resource_manager/v3/tag_values.rb +7 -1
  54. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  55. data/lib/google/cloud/resource_manager/v3.rb +8 -2
  56. data/lib/google/cloud/resourcemanager/v3/folders_services_pb.rb +23 -17
  57. data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +0 -1
  58. data/lib/google/cloud/resourcemanager/v3/projects_services_pb.rb +16 -13
  59. data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +22 -0
  60. data/lib/google/cloud/resourcemanager/v3/tag_bindings_services_pb.rb +7 -5
  61. data/lib/google/cloud/resourcemanager/v3/tag_holds_pb.rb +63 -0
  62. data/lib/google/cloud/resourcemanager/v3/tag_holds_services_pb.rb +54 -0
  63. data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +11 -0
  64. data/lib/google/cloud/resourcemanager/v3/tag_keys_services_pb.rb +6 -2
  65. data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +4 -0
  66. data/lib/google/cloud/resourcemanager/v3/tag_values_services_pb.rb +7 -4
  67. data/proto_docs/google/api/client.rb +372 -0
  68. data/proto_docs/google/api/launch_stage.rb +71 -0
  69. data/proto_docs/google/cloud/resourcemanager/v3/folders.rb +25 -19
  70. data/proto_docs/google/cloud/resourcemanager/v3/organizations.rb +13 -11
  71. data/proto_docs/google/cloud/resourcemanager/v3/projects.rb +32 -30
  72. data/proto_docs/google/cloud/resourcemanager/v3/tag_bindings.rb +101 -15
  73. data/proto_docs/google/cloud/resourcemanager/v3/tag_holds.rb +161 -0
  74. data/proto_docs/google/cloud/resourcemanager/v3/tag_keys.rb +81 -23
  75. data/proto_docs/google/cloud/resourcemanager/v3/tag_values.rb +52 -29
  76. data/proto_docs/google/iam/v1/policy.rb +8 -4
  77. data/proto_docs/google/protobuf/empty.rb +0 -2
  78. data/proto_docs/google/rpc/status.rb +4 -2
  79. metadata +46 -8
@@ -199,15 +199,14 @@ module Google
199
199
  # the default parameter values, pass an empty Hash as a request object (see above).
200
200
  #
201
201
  # @param parent [::String]
202
- # Required. Resource name for TagKey, parent of the TagValues to be listed,
203
- # in the format `tagKeys/123`.
202
+ # Required.
204
203
  # @param page_size [::Integer]
205
- # Optional. The maximum number of TagValues to return in the response. The server
206
- # allows a maximum of 300 TagValues to return. If unspecified, the server
207
- # will use 100 as the default.
204
+ # Optional. The maximum number of TagValues to return in the response. The
205
+ # server allows a maximum of 300 TagValues to return. If unspecified, the
206
+ # server will use 100 as the default.
208
207
  # @param page_token [::String]
209
- # Optional. A pagination token returned from a previous call to `ListTagValues`
210
- # that indicates where this listing should continue from.
208
+ # Optional. A pagination token returned from a previous call to
209
+ # `ListTagValues` that indicates where this listing should continue from.
211
210
  #
212
211
  # @yield [response, operation] Access the result along with the RPC operation
213
212
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagValue>]
@@ -229,13 +228,11 @@ module Google
229
228
  # # Call the list_tag_values method.
230
229
  # result = client.list_tag_values request
231
230
  #
232
- # # The returned object is of type Gapic::PagedEnumerable. You can
233
- # # iterate over all elements by calling #each, and the enumerable
234
- # # will lazily make API calls to fetch subsequent pages. Other
235
- # # methods are also available for managing paging directly.
236
- # result.each do |response|
231
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
232
+ # # over elements, and API calls will be issued to fetch pages as needed.
233
+ # result.each do |item|
237
234
  # # Each element is of type ::Google::Cloud::ResourceManager::V3::TagValue.
238
- # p response
235
+ # p item
239
236
  # end
240
237
  #
241
238
  def list_tag_values request, options = nil
@@ -273,9 +270,8 @@ module Google
273
270
  end
274
271
 
275
272
  ##
276
- # Retrieves TagValue. If the TagValue or namespaced name does not exist, or
277
- # if the user does not have permission to view it, this method will return
278
- # `PERMISSION_DENIED`.
273
+ # Retrieves a TagValue. This method will return `PERMISSION_DENIED` if the
274
+ # value does not exist or the user does not have permission to view it.
279
275
  #
280
276
  # @overload get_tag_value(request, options = nil)
281
277
  # Pass arguments to `get_tag_value` via a request object, either of type
@@ -293,7 +289,8 @@ module Google
293
289
  # the default parameter values, pass an empty Hash as a request object (see above).
294
290
  #
295
291
  # @param name [::String]
296
- # Required. Resource name for TagValue to be fetched in the format `tagValues/456`.
292
+ # Required. Resource name for TagValue to be fetched in the format
293
+ # `tagValues/456`.
297
294
  #
298
295
  # @yield [response, operation] Access the result along with the RPC operation
299
296
  # @yieldparam response [::Google::Cloud::ResourceManager::V3::TagValue]
@@ -359,10 +356,97 @@ module Google
359
356
  raise ::Google::Cloud::Error.from_error(e)
360
357
  end
361
358
 
359
+ ##
360
+ # Retrieves a TagValue by its namespaced name.
361
+ # This method will return `PERMISSION_DENIED` if the value does not exist
362
+ # or the user does not have permission to view it.
363
+ #
364
+ # @overload get_namespaced_tag_value(request, options = nil)
365
+ # Pass arguments to `get_namespaced_tag_value` via a request object, either of type
366
+ # {::Google::Cloud::ResourceManager::V3::GetNamespacedTagValueRequest} or an equivalent Hash.
367
+ #
368
+ # @param request [::Google::Cloud::ResourceManager::V3::GetNamespacedTagValueRequest, ::Hash]
369
+ # A request object representing the call parameters. Required. To specify no
370
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
371
+ # @param options [::Gapic::CallOptions, ::Hash]
372
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
373
+ #
374
+ # @overload get_namespaced_tag_value(name: nil)
375
+ # Pass arguments to `get_namespaced_tag_value` via keyword arguments. Note that at
376
+ # least one keyword argument is required. To specify no parameters, or to keep all
377
+ # the default parameter values, pass an empty Hash as a request object (see above).
378
+ #
379
+ # @param name [::String]
380
+ # Required. A namespaced tag value name in the following format:
381
+ #
382
+ # `{parentId}/{tagKeyShort}/{tagValueShort}`
383
+ #
384
+ # Examples:
385
+ # - `42/foo/abc` for a value with short name "abc" under the key with short
386
+ # name "foo" under the organization with ID 42
387
+ # - `r2-d2/bar/xyz` for a value with short name "xyz" under the key with
388
+ # short name "bar" under the project with ID "r2-d2"
389
+ #
390
+ # @yield [response, operation] Access the result along with the RPC operation
391
+ # @yieldparam response [::Google::Cloud::ResourceManager::V3::TagValue]
392
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
393
+ #
394
+ # @return [::Google::Cloud::ResourceManager::V3::TagValue]
395
+ #
396
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
397
+ #
398
+ # @example Basic example
399
+ # require "google/cloud/resource_manager/v3"
400
+ #
401
+ # # Create a client object. The client can be reused for multiple calls.
402
+ # client = Google::Cloud::ResourceManager::V3::TagValues::Client.new
403
+ #
404
+ # # Create a request. To set request fields, pass in keyword arguments.
405
+ # request = Google::Cloud::ResourceManager::V3::GetNamespacedTagValueRequest.new
406
+ #
407
+ # # Call the get_namespaced_tag_value method.
408
+ # result = client.get_namespaced_tag_value request
409
+ #
410
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::TagValue.
411
+ # p result
412
+ #
413
+ def get_namespaced_tag_value request, options = nil
414
+ raise ::ArgumentError, "request must be provided" if request.nil?
415
+
416
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ResourceManager::V3::GetNamespacedTagValueRequest
417
+
418
+ # Converts hash and nil to an options object
419
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
420
+
421
+ # Customize the options with defaults
422
+ metadata = @config.rpcs.get_namespaced_tag_value.metadata.to_h
423
+
424
+ # Set x-goog-api-client and x-goog-user-project headers
425
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
427
+ gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
428
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
+
430
+ options.apply_defaults timeout: @config.rpcs.get_namespaced_tag_value.timeout,
431
+ metadata: metadata,
432
+ retry_policy: @config.rpcs.get_namespaced_tag_value.retry_policy
433
+
434
+ options.apply_defaults timeout: @config.timeout,
435
+ metadata: @config.metadata,
436
+ retry_policy: @config.retry_policy
437
+
438
+ @tag_values_stub.call_rpc :get_namespaced_tag_value, request, options: options do |response, operation|
439
+ yield response, operation if block_given?
440
+ return response
441
+ end
442
+ rescue ::GRPC::BadStatus => e
443
+ raise ::Google::Cloud::Error.from_error(e)
444
+ end
445
+
362
446
  ##
363
447
  # Creates a TagValue as a child of the specified TagKey. If a another
364
448
  # request with the same parameters is sent while the original request is in
365
- # process the second request will receive an error. A maximum of 300
449
+ # process the second request will receive an error. A maximum of 1000
366
450
  # TagValues can exist under a TagKey at any given time.
367
451
  #
368
452
  # @overload create_tag_value(request, options = nil)
@@ -381,11 +465,11 @@ module Google
381
465
  # the default parameter values, pass an empty Hash as a request object (see above).
382
466
  #
383
467
  # @param tag_value [::Google::Cloud::ResourceManager::V3::TagValue, ::Hash]
384
- # Required. The TagValue to be created. Only fields `short_name`, `description`,
385
- # and `parent` are considered during the creation request.
468
+ # Required. The TagValue to be created. Only fields `short_name`,
469
+ # `description`, and `parent` are considered during the creation request.
386
470
  # @param validate_only [::Boolean]
387
- # Optional. Set as true to perform the validations necessary for creating the resource,
388
- # but not actually perform the action.
471
+ # Optional. Set as true to perform the validations necessary for creating the
472
+ # resource, but not actually perform the action.
389
473
  #
390
474
  # @yield [response, operation] Access the result along with the RPC operation
391
475
  # @yieldparam response [::Gapic::Operation]
@@ -407,14 +491,14 @@ module Google
407
491
  # # Call the create_tag_value method.
408
492
  # result = client.create_tag_value request
409
493
  #
410
- # # The returned object is of type Gapic::Operation. You can use this
411
- # # object to check the status of an operation, cancel it, or wait
412
- # # for results. Here is how to block until completion:
494
+ # # The returned object is of type Gapic::Operation. You can use it to
495
+ # # check the status of an operation, cancel it, or wait for results.
496
+ # # Here is how to wait for a response.
413
497
  # result.wait_until_done! timeout: 60
414
498
  # if result.response?
415
499
  # p result.response
416
500
  # else
417
- # puts "Error!"
501
+ # puts "No response received."
418
502
  # end
419
503
  #
420
504
  def create_tag_value request, options = nil
@@ -470,15 +554,15 @@ module Google
470
554
  # the default parameter values, pass an empty Hash as a request object (see above).
471
555
  #
472
556
  # @param tag_value [::Google::Cloud::ResourceManager::V3::TagValue, ::Hash]
473
- # Required. The new definition of the TagValue. Only fields `description` and `etag`
474
- # fields can be updated by this request. If the `etag` field is nonempty, it
475
- # must match the `etag` field of the existing ControlGroup. Otherwise,
476
- # `FAILED_PRECONDITION` will be returned.
557
+ # Required. The new definition of the TagValue. Only fields `description` and
558
+ # `etag` fields can be updated by this request. If the `etag` field is
559
+ # nonempty, it must match the `etag` field of the existing ControlGroup.
560
+ # Otherwise, `ABORTED` will be returned.
477
561
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
478
562
  # Optional. Fields to be updated.
479
563
  # @param validate_only [::Boolean]
480
- # Optional. True to perform validations necessary for updating the resource, but not
481
- # actually perform the action.
564
+ # Optional. True to perform validations necessary for updating the resource,
565
+ # but not actually perform the action.
482
566
  #
483
567
  # @yield [response, operation] Access the result along with the RPC operation
484
568
  # @yieldparam response [::Gapic::Operation]
@@ -500,14 +584,14 @@ module Google
500
584
  # # Call the update_tag_value method.
501
585
  # result = client.update_tag_value request
502
586
  #
503
- # # The returned object is of type Gapic::Operation. You can use this
504
- # # object to check the status of an operation, cancel it, or wait
505
- # # for results. Here is how to block until completion:
587
+ # # The returned object is of type Gapic::Operation. You can use it to
588
+ # # check the status of an operation, cancel it, or wait for results.
589
+ # # Here is how to wait for a response.
506
590
  # result.wait_until_done! timeout: 60
507
591
  # if result.response?
508
592
  # p result.response
509
593
  # else
510
- # puts "Error!"
594
+ # puts "No response received."
511
595
  # end
512
596
  #
513
597
  def update_tag_value request, options = nil
@@ -572,13 +656,14 @@ module Google
572
656
  # the default parameter values, pass an empty Hash as a request object (see above).
573
657
  #
574
658
  # @param name [::String]
575
- # Required. Resource name for TagValue to be deleted in the format tagValues/456.
659
+ # Required. Resource name for TagValue to be deleted in the format
660
+ # tagValues/456.
576
661
  # @param validate_only [::Boolean]
577
- # Optional. Set as true to perform the validations necessary for deletion, but not
578
- # actually perform the action.
662
+ # Optional. Set as true to perform the validations necessary for deletion,
663
+ # but not actually perform the action.
579
664
  # @param etag [::String]
580
- # Optional. The etag known to the client for the expected state of the TagValue. This
581
- # is to be used for optimistic concurrency.
665
+ # Optional. The etag known to the client for the expected state of the
666
+ # TagValue. This is to be used for optimistic concurrency.
582
667
  #
583
668
  # @yield [response, operation] Access the result along with the RPC operation
584
669
  # @yieldparam response [::Gapic::Operation]
@@ -600,14 +685,14 @@ module Google
600
685
  # # Call the delete_tag_value method.
601
686
  # result = client.delete_tag_value request
602
687
  #
603
- # # The returned object is of type Gapic::Operation. You can use this
604
- # # object to check the status of an operation, cancel it, or wait
605
- # # for results. Here is how to block until completion:
688
+ # # The returned object is of type Gapic::Operation. You can use it to
689
+ # # check the status of an operation, cancel it, or wait for results.
690
+ # # Here is how to wait for a response.
606
691
  # result.wait_until_done! timeout: 60
607
692
  # if result.response?
608
693
  # p result.response
609
694
  # else
610
- # puts "Error!"
695
+ # puts "No response received."
611
696
  # end
612
697
  #
613
698
  def delete_tag_value request, options = nil
@@ -980,9 +1065,9 @@ module Google
980
1065
  # * (`String`) The path to a service account key file in JSON format
981
1066
  # * (`Hash`) A service account key as a Hash
982
1067
  # * (`Google::Auth::Credentials`) A googleauth credentials object
983
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1068
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
984
1069
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
985
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1070
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
986
1071
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
987
1072
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
988
1073
  # * (`nil`) indicating no credentials
@@ -1088,6 +1173,11 @@ module Google
1088
1173
  #
1089
1174
  attr_reader :get_tag_value
1090
1175
  ##
1176
+ # RPC-specific configuration for `get_namespaced_tag_value`
1177
+ # @return [::Gapic::Config::Method]
1178
+ #
1179
+ attr_reader :get_namespaced_tag_value
1180
+ ##
1091
1181
  # RPC-specific configuration for `create_tag_value`
1092
1182
  # @return [::Gapic::Config::Method]
1093
1183
  #
@@ -1124,6 +1214,8 @@ module Google
1124
1214
  @list_tag_values = ::Gapic::Config::Method.new list_tag_values_config
1125
1215
  get_tag_value_config = parent_rpcs.get_tag_value if parent_rpcs.respond_to? :get_tag_value
1126
1216
  @get_tag_value = ::Gapic::Config::Method.new get_tag_value_config
1217
+ get_namespaced_tag_value_config = parent_rpcs.get_namespaced_tag_value if parent_rpcs.respond_to? :get_namespaced_tag_value
1218
+ @get_namespaced_tag_value = ::Gapic::Config::Method.new get_namespaced_tag_value_config
1127
1219
  create_tag_value_config = parent_rpcs.create_tag_value if parent_rpcs.respond_to? :create_tag_value
1128
1220
  @create_tag_value = ::Gapic::Config::Method.new create_tag_value_config
1129
1221
  update_tag_value_config = parent_rpcs.update_tag_value if parent_rpcs.respond_to? :update_tag_value
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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