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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e523c1cb266cd9b756c272e1b430c75be6928807457b7ac3f062b26ef9ec74c9
4
- data.tar.gz: 9e595c1bbb6770f4707a75539f7102094a998cbdcda8120535cbd0ec50821fc8
3
+ metadata.gz: 8f6360b77e95bd3d627c8337da408b1c21e646b9aef34b42d170ba9682f35e9e
4
+ data.tar.gz: e613a0ee22c4d36f8095e319f540a8c19385f90e08a890f77bb0a7bf9e5f8a3d
5
5
  SHA512:
6
- metadata.gz: 7f702ba458a56118dbda432efd645b40f169e95a4dd61b93f264d5e1646fd6041fc4911524bc8c779c5640d2c95e9d8b2db457e88950f0fab3459e8b81159f8e
7
- data.tar.gz: '0284dbdc2a2ec36a512701c1be5d95e8c6398e6a8b2ac71bd48497fac5fdbc52d00e371497480a8e8063522259f8e73b57071d4ca11056e84c47559d5ef7d317'
6
+ metadata.gz: ac3e7768af0cac57f3c0e01f11ae9f49eb14c755387ef1ade9f243bb1f2d9f28d2dc18286433f5c7947335c16e14b7315b6d2a5ad2a72b045f16a176c07a2d92
7
+ data.tar.gz: 84609931e4efe8e9fb66e4977059987c85bdf4ffee0e32db1d7e0cec09ed548e3a62a58ef12aac0ec17e3eedb55d6661b4b8ddeb7a77a4a5693e6f5eed5b275e
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Resource Manager V3 API
2
2
 
3
- API Client library for the Resource Manager V3 API
3
+ Creates, reads, and updates metadata for Google Cloud Platform resource containers.
4
4
 
5
5
  Google Cloud provides container resources such as organizations and projects that allow you to group and hierarchically organize other Google Cloud resources. This hierarchical organization helps you manage common aspects of your resources, such as access control and configuration settings. The Resource Manager API enables you to programmatically manage these container resources.
6
6
 
@@ -46,8 +46,8 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -303,14 +303,19 @@ module Google
303
303
  # the default parameter values, pass an empty Hash as a request object (see above).
304
304
  #
305
305
  # @param parent [::String]
306
- # Required. The resource name of the organization or folder whose folders are
307
- # being listed.
308
- # Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
306
+ # Required. The name of the parent resource whose folders are being listed.
307
+ # Only children of this parent resource are listed; descendants are not
308
+ # listed.
309
+ #
310
+ # If the parent is a folder, use the value `folders/{folder_id}`. If the
311
+ # parent is an organization, use the value `organizations/{org_id}`.
312
+ #
309
313
  # Access to this method is controlled by checking the
310
314
  # `resourcemanager.folders.list` permission on the `parent`.
311
315
  # @param page_size [::Integer]
312
- # Optional. The maximum number of folders to return in the response.
313
- # If unspecified, server picks an appropriate default.
316
+ # Optional. The maximum number of folders to return in the response. The
317
+ # server can return fewer folders than requested. If unspecified, server
318
+ # picks an appropriate default.
314
319
  # @param page_token [::String]
315
320
  # Optional. A pagination token returned from a previous call to `ListFolders`
316
321
  # that indicates where this listing should continue from.
@@ -339,13 +344,11 @@ module Google
339
344
  # # Call the list_folders method.
340
345
  # result = client.list_folders request
341
346
  #
342
- # # The returned object is of type Gapic::PagedEnumerable. You can
343
- # # iterate over all elements by calling #each, and the enumerable
344
- # # will lazily make API calls to fetch subsequent pages. Other
345
- # # methods are also available for managing paging directly.
346
- # result.each do |response|
347
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
348
+ # # over elements, and API calls will be issued to fetch pages as needed.
349
+ # result.each do |item|
347
350
  # # Each element is of type ::Google::Cloud::ResourceManager::V3::Folder.
348
- # p response
351
+ # p item
349
352
  # end
350
353
  #
351
354
  def list_folders request, options = nil
@@ -406,11 +409,12 @@ module Google
406
409
  # the default parameter values, pass an empty Hash as a request object (see above).
407
410
  #
408
411
  # @param page_size [::Integer]
409
- # Optional. The maximum number of folders to return in the response.
410
- # If unspecified, server picks an appropriate default.
412
+ # Optional. The maximum number of folders to return in the response. The
413
+ # server can return fewer folders than requested. If unspecified, server
414
+ # picks an appropriate default.
411
415
  # @param page_token [::String]
412
- # Optional. A pagination token returned from a previous call to `SearchFolders`
413
- # that indicates from where search should continue.
416
+ # Optional. A pagination token returned from a previous call to
417
+ # `SearchFolders` that indicates from where search should continue.
414
418
  # @param query [::String]
415
419
  # Optional. Search criteria used to select the folders to return.
416
420
  # If no search criteria is specified then all accessible folders will be
@@ -464,13 +468,11 @@ module Google
464
468
  # # Call the search_folders method.
465
469
  # result = client.search_folders request
466
470
  #
467
- # # The returned object is of type Gapic::PagedEnumerable. You can
468
- # # iterate over all elements by calling #each, and the enumerable
469
- # # will lazily make API calls to fetch subsequent pages. Other
470
- # # methods are also available for managing paging directly.
471
- # result.each do |response|
471
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
472
+ # # over elements, and API calls will be issued to fetch pages as needed.
473
+ # result.each do |item|
472
474
  # # Each element is of type ::Google::Cloud::ResourceManager::V3::Folder.
473
- # p response
475
+ # p item
474
476
  # end
475
477
  #
476
478
  def search_folders request, options = nil
@@ -552,8 +554,8 @@ module Google
552
554
  # the default parameter values, pass an empty Hash as a request object (see above).
553
555
  #
554
556
  # @param folder [::Google::Cloud::ResourceManager::V3::Folder, ::Hash]
555
- # Required. The folder being created, only the display name and parent will be
556
- # consulted. All other fields will be ignored.
557
+ # Required. The folder being created, only the display name and parent will
558
+ # be consulted. All other fields will be ignored.
557
559
  #
558
560
  # @yield [response, operation] Access the result along with the RPC operation
559
561
  # @yieldparam response [::Gapic::Operation]
@@ -575,14 +577,14 @@ module Google
575
577
  # # Call the create_folder method.
576
578
  # result = client.create_folder request
577
579
  #
578
- # # The returned object is of type Gapic::Operation. You can use this
579
- # # object to check the status of an operation, cancel it, or wait
580
- # # for results. Here is how to block until completion:
580
+ # # The returned object is of type Gapic::Operation. You can use it to
581
+ # # check the status of an operation, cancel it, or wait for results.
582
+ # # Here is how to wait for a response.
581
583
  # result.wait_until_done! timeout: 60
582
584
  # if result.response?
583
585
  # p result.response
584
586
  # else
585
- # puts "Error!"
587
+ # puts "No response received."
586
588
  # end
587
589
  #
588
590
  def create_folder request, options = nil
@@ -623,7 +625,9 @@ module Google
623
625
  # Updates a folder, changing its `display_name`.
624
626
  # Changes to the folder `display_name` will be rejected if they violate
625
627
  # either the `display_name` formatting rules or the naming constraints
626
- # described in the {::Google::Cloud::ResourceManager::V3::Folders::Client#create_folder CreateFolder} documentation.
628
+ # described in the
629
+ # {::Google::Cloud::ResourceManager::V3::Folders::Client#create_folder CreateFolder}
630
+ # documentation.
627
631
  #
628
632
  # The folder's `display_name` must start and end with a letter or digit,
629
633
  # may contain letters, digits, spaces, hyphens and underscores and can be
@@ -652,8 +656,8 @@ module Google
652
656
  # the default parameter values, pass an empty Hash as a request object (see above).
653
657
  #
654
658
  # @param folder [::Google::Cloud::ResourceManager::V3::Folder, ::Hash]
655
- # Required. The new definition of the Folder. It must include the `name` field, which
656
- # cannot be changed.
659
+ # Required. The new definition of the Folder. It must include the `name`
660
+ # field, which cannot be changed.
657
661
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
658
662
  # Required. Fields to be updated.
659
663
  # Only the `display_name` can be updated.
@@ -678,14 +682,14 @@ module Google
678
682
  # # Call the update_folder method.
679
683
  # result = client.update_folder request
680
684
  #
681
- # # The returned object is of type Gapic::Operation. You can use this
682
- # # object to check the status of an operation, cancel it, or wait
683
- # # for results. Here is how to block until completion:
685
+ # # The returned object is of type Gapic::Operation. You can use it to
686
+ # # check the status of an operation, cancel it, or wait for results.
687
+ # # Here is how to wait for a response.
684
688
  # result.wait_until_done! timeout: 60
685
689
  # if result.response?
686
690
  # p result.response
687
691
  # else
688
- # puts "Error!"
692
+ # puts "No response received."
689
693
  # end
690
694
  #
691
695
  def update_folder request, options = nil
@@ -745,9 +749,9 @@ module Google
745
749
  # `FolderOperation` message as an aid to stateless clients.
746
750
  # Folder moves will be rejected if they violate either the naming, height,
747
751
  # or fanout constraints described in the
748
- # {::Google::Cloud::ResourceManager::V3::Folders::Client#create_folder CreateFolder} documentation.
749
- # The caller must have `resourcemanager.folders.move` permission on the
750
- # folder's current and proposed new parent.
752
+ # {::Google::Cloud::ResourceManager::V3::Folders::Client#create_folder CreateFolder}
753
+ # documentation. The caller must have `resourcemanager.folders.move`
754
+ # permission on the folder's current and proposed new parent.
751
755
  #
752
756
  # @overload move_folder(request, options = nil)
753
757
  # Pass arguments to `move_folder` via a request object, either of type
@@ -768,9 +772,9 @@ module Google
768
772
  # Required. The resource name of the Folder to move.
769
773
  # Must be of the form folders/\\{folder_id}
770
774
  # @param destination_parent [::String]
771
- # Required. The resource name of the folder or organization which should be the
772
- # folder's new parent.
773
- # Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
775
+ # Required. The resource name of the folder or organization which should be
776
+ # the folder's new parent. Must be of the form `folders/{folder_id}` or
777
+ # `organizations/{org_id}`.
774
778
  #
775
779
  # @yield [response, operation] Access the result along with the RPC operation
776
780
  # @yieldparam response [::Gapic::Operation]
@@ -792,14 +796,14 @@ module Google
792
796
  # # Call the move_folder method.
793
797
  # result = client.move_folder request
794
798
  #
795
- # # The returned object is of type Gapic::Operation. You can use this
796
- # # object to check the status of an operation, cancel it, or wait
797
- # # for results. Here is how to block until completion:
799
+ # # The returned object is of type Gapic::Operation. You can use it to
800
+ # # check the status of an operation, cancel it, or wait for results.
801
+ # # Here is how to wait for a response.
798
802
  # result.wait_until_done! timeout: 60
799
803
  # if result.response?
800
804
  # p result.response
801
805
  # else
802
- # puts "Error!"
806
+ # puts "No response received."
803
807
  # end
804
808
  #
805
809
  def move_folder request, options = nil
@@ -846,11 +850,13 @@ module Google
846
850
 
847
851
  ##
848
852
  # Requests deletion of a folder. The folder is moved into the
849
- # {::Google::Cloud::ResourceManager::V3::Folder::State::DELETE_REQUESTED DELETE_REQUESTED} state
850
- # immediately, and is deleted approximately 30 days later. This method may
851
- # only be called on an empty folder, where a folder is empty if it doesn't
852
- # contain any folders or projects in the {::Google::Cloud::ResourceManager::V3::Folder::State::ACTIVE ACTIVE} state.
853
- # If called on a folder in {::Google::Cloud::ResourceManager::V3::Folder::State::DELETE_REQUESTED DELETE_REQUESTED}
853
+ # {::Google::Cloud::ResourceManager::V3::Folder::State::DELETE_REQUESTED DELETE_REQUESTED}
854
+ # state immediately, and is deleted approximately 30 days later. This method
855
+ # may only be called on an empty folder, where a folder is empty if it
856
+ # doesn't contain any folders or projects in the
857
+ # {::Google::Cloud::ResourceManager::V3::Folder::State::ACTIVE ACTIVE} state. If
858
+ # called on a folder in
859
+ # {::Google::Cloud::ResourceManager::V3::Folder::State::DELETE_REQUESTED DELETE_REQUESTED}
854
860
  # state the operation will result in a no-op success.
855
861
  # The caller must have `resourcemanager.folders.delete` permission on the
856
862
  # identified folder.
@@ -894,14 +900,14 @@ module Google
894
900
  # # Call the delete_folder method.
895
901
  # result = client.delete_folder request
896
902
  #
897
- # # The returned object is of type Gapic::Operation. You can use this
898
- # # object to check the status of an operation, cancel it, or wait
899
- # # for results. Here is how to block until completion:
903
+ # # The returned object is of type Gapic::Operation. You can use it to
904
+ # # check the status of an operation, cancel it, or wait for results.
905
+ # # Here is how to wait for a response.
900
906
  # result.wait_until_done! timeout: 60
901
907
  # if result.response?
902
908
  # p result.response
903
909
  # else
904
- # puts "Error!"
910
+ # puts "No response received."
905
911
  # end
906
912
  #
907
913
  def delete_folder request, options = nil
@@ -948,14 +954,16 @@ module Google
948
954
 
949
955
  ##
950
956
  # Cancels the deletion request for a folder. This method may be called on a
951
- # folder in any state. If the folder is in the {::Google::Cloud::ResourceManager::V3::Folder::State::ACTIVE ACTIVE}
952
- # state the result will be a no-op success. In order to succeed, the folder's
953
- # parent must be in the {::Google::Cloud::ResourceManager::V3::Folder::State::ACTIVE ACTIVE} state. In addition,
954
- # reintroducing the folder into the tree must not violate folder naming,
955
- # height, and fanout constraints described in the
956
- # {::Google::Cloud::ResourceManager::V3::Folders::Client#create_folder CreateFolder} documentation.
957
- # The caller must have `resourcemanager.folders.undelete` permission on the
958
- # identified folder.
957
+ # folder in any state. If the folder is in the
958
+ # {::Google::Cloud::ResourceManager::V3::Folder::State::ACTIVE ACTIVE} state the
959
+ # result will be a no-op success. In order to succeed, the folder's parent
960
+ # must be in the
961
+ # {::Google::Cloud::ResourceManager::V3::Folder::State::ACTIVE ACTIVE} state. In
962
+ # addition, reintroducing the folder into the tree must not violate folder
963
+ # naming, height, and fanout constraints described in the
964
+ # {::Google::Cloud::ResourceManager::V3::Folders::Client#create_folder CreateFolder}
965
+ # documentation. The caller must have `resourcemanager.folders.undelete`
966
+ # permission on the identified folder.
959
967
  #
960
968
  # @overload undelete_folder(request, options = nil)
961
969
  # Pass arguments to `undelete_folder` via a request object, either of type
@@ -996,14 +1004,14 @@ module Google
996
1004
  # # Call the undelete_folder method.
997
1005
  # result = client.undelete_folder request
998
1006
  #
999
- # # The returned object is of type Gapic::Operation. You can use this
1000
- # # object to check the status of an operation, cancel it, or wait
1001
- # # for results. Here is how to block until completion:
1007
+ # # The returned object is of type Gapic::Operation. You can use it to
1008
+ # # check the status of an operation, cancel it, or wait for results.
1009
+ # # Here is how to wait for a response.
1002
1010
  # result.wait_until_done! timeout: 60
1003
1011
  # if result.response?
1004
1012
  # p result.response
1005
1013
  # else
1006
- # puts "Error!"
1014
+ # puts "No response received."
1007
1015
  # end
1008
1016
  #
1009
1017
  def undelete_folder request, options = nil
@@ -1375,9 +1383,9 @@ module Google
1375
1383
  # * (`String`) The path to a service account key file in JSON format
1376
1384
  # * (`Hash`) A service account key as a Hash
1377
1385
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1378
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1386
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1379
1387
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1380
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1388
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1381
1389
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1382
1390
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1383
1391
  # * (`nil`) indicating no credentials
@@ -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