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
@@ -299,21 +299,23 @@ module Google
|
|
299
299
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
300
300
|
#
|
301
301
|
# @param parent [::String]
|
302
|
-
# Required. The name of the parent resource
|
302
|
+
# Required. The name of the parent resource whose projects are being listed.
|
303
|
+
# Only children of this parent resource are listed; descendants are not
|
304
|
+
# listed.
|
303
305
|
#
|
304
|
-
#
|
305
|
-
#
|
306
|
+
# If the parent is a folder, use the value `folders/{folder_id}`. If the
|
307
|
+
# parent is an organization, use the value `organizations/{org_id}`.
|
306
308
|
# @param page_token [::String]
|
307
|
-
# Optional. A pagination token returned from a previous call to
|
308
|
-
# [google.cloud.resourcemanager.v3.Projects.ListProjects]
|
309
|
-
#
|
309
|
+
# Optional. A pagination token returned from a previous call to
|
310
|
+
# [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that
|
311
|
+
# indicates from where listing should continue.
|
310
312
|
# @param page_size [::Integer]
|
311
313
|
# Optional. The maximum number of projects to return in the response.
|
312
314
|
# The server can return fewer projects than requested.
|
313
315
|
# If unspecified, server picks an appropriate default.
|
314
316
|
# @param show_deleted [::Boolean]
|
315
|
-
# Optional. Indicate that projects in the `DELETE_REQUESTED` state should
|
316
|
-
# returned. Normally only `ACTIVE` projects are returned.
|
317
|
+
# Optional. Indicate that projects in the `DELETE_REQUESTED` state should
|
318
|
+
# also be returned. Normally only `ACTIVE` projects are returned.
|
317
319
|
#
|
318
320
|
# @yield [response, operation] Access the result along with the RPC operation
|
319
321
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ResourceManager::V3::Project>]
|
@@ -335,13 +337,11 @@ module Google
|
|
335
337
|
# # Call the list_projects method.
|
336
338
|
# result = client.list_projects request
|
337
339
|
#
|
338
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
339
|
-
# #
|
340
|
-
#
|
341
|
-
# # methods are also available for managing paging directly.
|
342
|
-
# result.each do |response|
|
340
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
341
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
342
|
+
# result.each do |item|
|
343
343
|
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Project.
|
344
|
-
# p
|
344
|
+
# p item
|
345
345
|
# end
|
346
346
|
#
|
347
347
|
def list_projects request, options = nil
|
@@ -408,22 +408,22 @@ module Google
|
|
408
408
|
# @param query [::String]
|
409
409
|
# Optional. A query string for searching for projects that the caller has
|
410
410
|
# `resourcemanager.projects.get` permission to. If multiple fields are
|
411
|
-
# included in the query,
|
411
|
+
# included in the query, then it will return results that match any of the
|
412
412
|
# fields. Some eligible fields are:
|
413
413
|
#
|
414
414
|
# ```
|
415
415
|
# | Field | Description |
|
416
416
|
# |-------------------------|----------------------------------------------|
|
417
417
|
# | displayName, name | Filters by displayName. |
|
418
|
-
# | parent | Project's parent
|
419
|
-
# organizations/*) Prefer parent field over parent.type and parent.id
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
# name
|
418
|
+
# | parent | Project's parent (for example: folders/123,
|
419
|
+
# organizations/*). Prefer parent field over parent.type and parent.id.| |
|
420
|
+
# parent.type | Parent's type: `folder` or `organization`. | |
|
421
|
+
# parent.id | Parent's id number (for example: 123) | |
|
422
|
+
# id, projectId | Filters by projectId. | |
|
423
|
+
# state, lifecycleState | Filters by state. | |
|
424
|
+
# labels | Filters by label name or value. | |
|
425
|
+
# labels.\<key\> (where *key* is the name of a label) | Filters by label
|
426
|
+
# name.|
|
427
427
|
# ```
|
428
428
|
#
|
429
429
|
# Search expressions are case insensitive.
|
@@ -439,16 +439,16 @@ module Google
|
|
439
439
|
# | NAME:howl | Equivalent to above. |
|
440
440
|
# | labels.color:* | The project has the label `color`. |
|
441
441
|
# | labels.color:red | The project's label `color` has the value `red`. |
|
442
|
-
# | labels.color:red
|
443
|
-
#
|
442
|
+
# | labels.color:red labels.size:big | The project's label `color` has the
|
443
|
+
# value `red` or its label `size` has the value `big`. |
|
444
444
|
# ```
|
445
445
|
#
|
446
446
|
# If no query is specified, the call will return projects for which the user
|
447
447
|
# has the `resourcemanager.projects.get` permission.
|
448
448
|
# @param page_token [::String]
|
449
|
-
# Optional. A pagination token returned from a previous call to
|
450
|
-
# [google.cloud.resourcemanager.v3.Projects.ListProjects]
|
451
|
-
#
|
449
|
+
# Optional. A pagination token returned from a previous call to
|
450
|
+
# [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that
|
451
|
+
# indicates from where listing should continue.
|
452
452
|
# @param page_size [::Integer]
|
453
453
|
# Optional. The maximum number of projects to return in the response.
|
454
454
|
# The server can return fewer projects than requested.
|
@@ -474,13 +474,11 @@ module Google
|
|
474
474
|
# # Call the search_projects method.
|
475
475
|
# result = client.search_projects request
|
476
476
|
#
|
477
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
478
|
-
# #
|
479
|
-
#
|
480
|
-
# # methods are also available for managing paging directly.
|
481
|
-
# result.each do |response|
|
477
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
478
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
479
|
+
# result.each do |item|
|
482
480
|
# # Each element is of type ::Google::Cloud::ResourceManager::V3::Project.
|
483
|
-
# p
|
481
|
+
# p item
|
484
482
|
# end
|
485
483
|
#
|
486
484
|
def search_projects request, options = nil
|
@@ -547,7 +545,7 @@ module Google
|
|
547
545
|
#
|
548
546
|
# If the `parent` field is set, the `resourcemanager.projects.create`
|
549
547
|
# permission is checked on the parent resource. If no parent is set and
|
550
|
-
# the authorization credentials belong to an
|
548
|
+
# the authorization credentials belong to an Organization, the parent
|
551
549
|
# will be set to that Organization.
|
552
550
|
#
|
553
551
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -570,14 +568,14 @@ module Google
|
|
570
568
|
# # Call the create_project method.
|
571
569
|
# result = client.create_project request
|
572
570
|
#
|
573
|
-
# # The returned object is of type Gapic::Operation. You can use
|
574
|
-
# #
|
575
|
-
# #
|
571
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
572
|
+
# # check the status of an operation, cancel it, or wait for results.
|
573
|
+
# # Here is how to wait for a response.
|
576
574
|
# result.wait_until_done! timeout: 60
|
577
575
|
# if result.response?
|
578
576
|
# p result.response
|
579
577
|
# else
|
580
|
-
# puts "
|
578
|
+
# puts "No response received."
|
581
579
|
# end
|
582
580
|
#
|
583
581
|
def create_project request, options = nil
|
@@ -662,14 +660,14 @@ module Google
|
|
662
660
|
# # Call the update_project method.
|
663
661
|
# result = client.update_project request
|
664
662
|
#
|
665
|
-
# # The returned object is of type Gapic::Operation. You can use
|
666
|
-
# #
|
667
|
-
# #
|
663
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
664
|
+
# # check the status of an operation, cancel it, or wait for results.
|
665
|
+
# # Here is how to wait for a response.
|
668
666
|
# result.wait_until_done! timeout: 60
|
669
667
|
# if result.response?
|
670
668
|
# p result.response
|
671
669
|
# else
|
672
|
-
# puts "
|
670
|
+
# puts "No response received."
|
673
671
|
# end
|
674
672
|
#
|
675
673
|
def update_project request, options = nil
|
@@ -723,9 +721,12 @@ module Google
|
|
723
721
|
# Upon success, the `Operation.response` field will be populated with the
|
724
722
|
# moved project.
|
725
723
|
#
|
726
|
-
# The caller must have `resourcemanager.projects.
|
727
|
-
# project
|
728
|
-
#
|
724
|
+
# The caller must have `resourcemanager.projects.move` permission on the
|
725
|
+
# project, on the project's current and proposed new parent.
|
726
|
+
#
|
727
|
+
# If project has no current parent, or it currently does not have an
|
728
|
+
# associated organization resource, you will also need the
|
729
|
+
# `resourcemanager.projects.setIamPolicy` permission in the project.
|
729
730
|
#
|
730
731
|
# @overload move_project(request, options = nil)
|
731
732
|
# Pass arguments to `move_project` via a request object, either of type
|
@@ -767,14 +768,14 @@ module Google
|
|
767
768
|
# # Call the move_project method.
|
768
769
|
# result = client.move_project request
|
769
770
|
#
|
770
|
-
# # The returned object is of type Gapic::Operation. You can use
|
771
|
-
# #
|
772
|
-
# #
|
771
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
772
|
+
# # check the status of an operation, cancel it, or wait for results.
|
773
|
+
# # Here is how to wait for a response.
|
773
774
|
# result.wait_until_done! timeout: 60
|
774
775
|
# if result.response?
|
775
776
|
# p result.response
|
776
777
|
# else
|
777
|
-
# puts "
|
778
|
+
# puts "No response received."
|
778
779
|
# end
|
779
780
|
#
|
780
781
|
def move_project request, options = nil
|
@@ -828,7 +829,8 @@ module Google
|
|
828
829
|
#
|
829
830
|
# This method changes the Project's lifecycle state from
|
830
831
|
# {::Google::Cloud::ResourceManager::V3::Project::State::ACTIVE ACTIVE}
|
831
|
-
# to
|
832
|
+
# to
|
833
|
+
# {::Google::Cloud::ResourceManager::V3::Project::State::DELETE_REQUESTED DELETE_REQUESTED}.
|
832
834
|
# The deletion starts at an unspecified time,
|
833
835
|
# at which point the Project is no longer accessible.
|
834
836
|
#
|
@@ -891,14 +893,14 @@ module Google
|
|
891
893
|
# # Call the delete_project method.
|
892
894
|
# result = client.delete_project request
|
893
895
|
#
|
894
|
-
# # The returned object is of type Gapic::Operation. You can use
|
895
|
-
# #
|
896
|
-
# #
|
896
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
897
|
+
# # check the status of an operation, cancel it, or wait for results.
|
898
|
+
# # Here is how to wait for a response.
|
897
899
|
# result.wait_until_done! timeout: 60
|
898
900
|
# if result.response?
|
899
901
|
# p result.response
|
900
902
|
# else
|
901
|
-
# puts "
|
903
|
+
# puts "No response received."
|
902
904
|
# end
|
903
905
|
#
|
904
906
|
def delete_project request, options = nil
|
@@ -994,14 +996,14 @@ module Google
|
|
994
996
|
# # Call the undelete_project method.
|
995
997
|
# result = client.undelete_project request
|
996
998
|
#
|
997
|
-
# # The returned object is of type Gapic::Operation. You can use
|
998
|
-
# #
|
999
|
-
# #
|
999
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1000
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1001
|
+
# # Here is how to wait for a response.
|
1000
1002
|
# result.wait_until_done! timeout: 60
|
1001
1003
|
# if result.response?
|
1002
1004
|
# p result.response
|
1003
1005
|
# else
|
1004
|
-
# puts "
|
1006
|
+
# puts "No response received."
|
1005
1007
|
# end
|
1006
1008
|
#
|
1007
1009
|
def undelete_project request, options = nil
|
@@ -1047,7 +1049,8 @@ module Google
|
|
1047
1049
|
end
|
1048
1050
|
|
1049
1051
|
##
|
1050
|
-
# Returns the IAM access control policy for the specified project
|
1052
|
+
# Returns the IAM access control policy for the specified project, in the
|
1053
|
+
# format `projects/{ProjectIdOrNumber}` e.g. projects/123.
|
1051
1054
|
# Permission is denied if the policy or the resource do not exist.
|
1052
1055
|
#
|
1053
1056
|
# @overload get_iam_policy(request, options = nil)
|
@@ -1137,7 +1140,8 @@ module Google
|
|
1137
1140
|
end
|
1138
1141
|
|
1139
1142
|
##
|
1140
|
-
# Sets the IAM access control policy for the specified project
|
1143
|
+
# Sets the IAM access control policy for the specified project, in the
|
1144
|
+
# format `projects/{ProjectIdOrNumber}` e.g. projects/123.
|
1141
1145
|
#
|
1142
1146
|
# CAUTION: This method will replace the existing policy, and cannot be used
|
1143
1147
|
# to append additional IAM settings.
|
@@ -1169,18 +1173,14 @@ module Google
|
|
1169
1173
|
# `setIamPolicy()`;
|
1170
1174
|
# they must be sent only using the Cloud Platform Console.
|
1171
1175
|
#
|
1172
|
-
# + Membership changes that leave the project without any owners that have
|
1173
|
-
# accepted the Terms of Service (ToS) will be rejected.
|
1174
|
-
#
|
1175
1176
|
# + If the project is not part of an organization, there must be at least
|
1176
1177
|
# one owner who has accepted the Terms of Service (ToS) agreement in the
|
1177
1178
|
# policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
|
1178
1179
|
# from the policy will fail. This restriction also applies to legacy
|
1179
1180
|
# projects that no longer have owners who have accepted the ToS. Edits to
|
1180
1181
|
# IAM policies will be rejected until the lack of a ToS-accepting owner is
|
1181
|
-
# rectified.
|
1182
|
-
#
|
1183
|
-
# + Calling this method requires enabling the App Engine Admin API.
|
1182
|
+
# rectified. If the project is part of an organization, you can remove all
|
1183
|
+
# owners, potentially making the organization inaccessible.
|
1184
1184
|
#
|
1185
1185
|
# @overload set_iam_policy(request, options = nil)
|
1186
1186
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
@@ -1277,7 +1277,8 @@ module Google
|
|
1277
1277
|
end
|
1278
1278
|
|
1279
1279
|
##
|
1280
|
-
# Returns permissions that a caller has on the specified project
|
1280
|
+
# Returns permissions that a caller has on the specified project, in the
|
1281
|
+
# format `projects/{ProjectIdOrNumber}` e.g. projects/123..
|
1281
1282
|
#
|
1282
1283
|
# @overload test_iam_permissions(request, options = nil)
|
1283
1284
|
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
@@ -1405,9 +1406,9 @@ module Google
|
|
1405
1406
|
# * (`String`) The path to a service account key file in JSON format
|
1406
1407
|
# * (`Hash`) A service account key as a Hash
|
1407
1408
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1408
|
-
# (see the [googleauth docs](https://
|
1409
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1409
1410
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1410
|
-
# (see the [signet docs](https://
|
1411
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1411
1412
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1412
1413
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1413
1414
|
# * (`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
|
-
# #
|
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
|