google-cloud-deploy-v1 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/deploy/v1/bindings_override.rb +159 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +52 -62
- data/lib/google/cloud/deploy/v1/cloud_deploy/operations.rb +12 -14
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +2221 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/operations.rb +793 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +1355 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest.rb +55 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy.rb +7 -1
- data/lib/google/cloud/deploy/v1/rest.rb +38 -0
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/lib/google/cloud/deploy/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +19 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 481f84b206d9329ad7856e85cfedc030219ebcbef69ce93040699b5332240625
|
4
|
+
data.tar.gz: a3e390ddaf2abb45f9693153ecd5210988e699f32efe5d004b60f1f8c11846d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2d1e22600ad87d730cbf5f2ead5628afd2146a1286d42685af7817e3f48b5faf3bed50503a9ffff880b57e7971d8ac94eeffbd78935be213c917967626c09e5
|
7
|
+
data.tar.gz: 366953ddd515192052d1053b1a49049dd37935c9d124a85839d2f8782c1d87fb8009e555cf034462d91e7b9e88ff00d0062c32b109a50394cb783528bc0bfc8f
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ 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/
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
@@ -0,0 +1,159 @@
|
|
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/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Deploy
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/deploy/v1/rest"
|
28
|
+
# client = ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "Deploy"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v1/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
68
|
+
|
69
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
70
|
+
uri_method: :get,
|
71
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
72
|
+
matches: [
|
73
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
74
|
+
],
|
75
|
+
body: nil
|
76
|
+
),
|
77
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
78
|
+
uri_method: :get,
|
79
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
80
|
+
matches: [
|
81
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/targets/[^/]+/?$}, false]
|
82
|
+
],
|
83
|
+
body: nil
|
84
|
+
)
|
85
|
+
]
|
86
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
87
|
+
|
88
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
89
|
+
uri_method: :post,
|
90
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
91
|
+
matches: [
|
92
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
93
|
+
],
|
94
|
+
body: "*"
|
95
|
+
),
|
96
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
97
|
+
uri_method: :post,
|
98
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
99
|
+
matches: [
|
100
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/targets/[^/]+/?$}, false]
|
101
|
+
],
|
102
|
+
body: "*"
|
103
|
+
)
|
104
|
+
]
|
105
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
106
|
+
|
107
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
108
|
+
uri_method: :post,
|
109
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
110
|
+
matches: [
|
111
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
112
|
+
],
|
113
|
+
body: "*"
|
114
|
+
),
|
115
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
116
|
+
uri_method: :post,
|
117
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
118
|
+
matches: [
|
119
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/targets/[^/]+/?$}, false]
|
120
|
+
],
|
121
|
+
body: "*"
|
122
|
+
)
|
123
|
+
]
|
124
|
+
default_config
|
125
|
+
end
|
126
|
+
yield @configure if block_given?
|
127
|
+
@configure
|
128
|
+
end
|
129
|
+
|
130
|
+
##
|
131
|
+
# @private
|
132
|
+
# Configuration class for the google.cloud.deploy.v1 package.
|
133
|
+
#
|
134
|
+
# This class contains common configuration for all services
|
135
|
+
# of the google.cloud.deploy.v1 package.
|
136
|
+
#
|
137
|
+
# This configuration is for internal use of the client library classes,
|
138
|
+
# and it is not intended that the end-users will read or change it.
|
139
|
+
#
|
140
|
+
class Configuration
|
141
|
+
extend ::Gapic::Config
|
142
|
+
|
143
|
+
# @private
|
144
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
145
|
+
# Services in this package should use these when creating clients for the mixin services.
|
146
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
147
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
148
|
+
|
149
|
+
# @private
|
150
|
+
def initialize parent_config = nil
|
151
|
+
@parent_config = parent_config unless parent_config.nil?
|
152
|
+
|
153
|
+
yield self if block_given?
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
@@ -321,13 +321,11 @@ module Google
|
|
321
321
|
# # Call the list_delivery_pipelines method.
|
322
322
|
# result = client.list_delivery_pipelines request
|
323
323
|
#
|
324
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
325
|
-
# #
|
326
|
-
#
|
327
|
-
# # methods are also available for managing paging directly.
|
328
|
-
# result.each do |response|
|
324
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
325
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
326
|
+
# result.each do |item|
|
329
327
|
# # Each element is of type ::Google::Cloud::Deploy::V1::DeliveryPipeline.
|
330
|
-
# p
|
328
|
+
# p item
|
331
329
|
# end
|
332
330
|
#
|
333
331
|
def list_delivery_pipelines request, options = nil
|
@@ -521,14 +519,14 @@ module Google
|
|
521
519
|
# # Call the create_delivery_pipeline method.
|
522
520
|
# result = client.create_delivery_pipeline request
|
523
521
|
#
|
524
|
-
# # The returned object is of type Gapic::Operation. You can use
|
525
|
-
# #
|
526
|
-
# #
|
522
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
523
|
+
# # check the status of an operation, cancel it, or wait for results.
|
524
|
+
# # Here is how to wait for a response.
|
527
525
|
# result.wait_until_done! timeout: 60
|
528
526
|
# if result.response?
|
529
527
|
# p result.response
|
530
528
|
# else
|
531
|
-
# puts "
|
529
|
+
# puts "No response received."
|
532
530
|
# end
|
533
531
|
#
|
534
532
|
def create_delivery_pipeline request, options = nil
|
@@ -640,14 +638,14 @@ module Google
|
|
640
638
|
# # Call the update_delivery_pipeline method.
|
641
639
|
# result = client.update_delivery_pipeline request
|
642
640
|
#
|
643
|
-
# # The returned object is of type Gapic::Operation. You can use
|
644
|
-
# #
|
645
|
-
# #
|
641
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
642
|
+
# # check the status of an operation, cancel it, or wait for results.
|
643
|
+
# # Here is how to wait for a response.
|
646
644
|
# result.wait_until_done! timeout: 60
|
647
645
|
# if result.response?
|
648
646
|
# p result.response
|
649
647
|
# else
|
650
|
-
# puts "
|
648
|
+
# puts "No response received."
|
651
649
|
# end
|
652
650
|
#
|
653
651
|
def update_delivery_pipeline request, options = nil
|
@@ -762,14 +760,14 @@ module Google
|
|
762
760
|
# # Call the delete_delivery_pipeline method.
|
763
761
|
# result = client.delete_delivery_pipeline request
|
764
762
|
#
|
765
|
-
# # The returned object is of type Gapic::Operation. You can use
|
766
|
-
# #
|
767
|
-
# #
|
763
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
764
|
+
# # check the status of an operation, cancel it, or wait for results.
|
765
|
+
# # Here is how to wait for a response.
|
768
766
|
# result.wait_until_done! timeout: 60
|
769
767
|
# if result.response?
|
770
768
|
# p result.response
|
771
769
|
# else
|
772
|
-
# puts "
|
770
|
+
# puts "No response received."
|
773
771
|
# end
|
774
772
|
#
|
775
773
|
def delete_delivery_pipeline request, options = nil
|
@@ -871,13 +869,11 @@ module Google
|
|
871
869
|
# # Call the list_targets method.
|
872
870
|
# result = client.list_targets request
|
873
871
|
#
|
874
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
875
|
-
# #
|
876
|
-
#
|
877
|
-
# # methods are also available for managing paging directly.
|
878
|
-
# result.each do |response|
|
872
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
873
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
874
|
+
# result.each do |item|
|
879
875
|
# # Each element is of type ::Google::Cloud::Deploy::V1::Target.
|
880
|
-
# p
|
876
|
+
# p item
|
881
877
|
# end
|
882
878
|
#
|
883
879
|
def list_targets request, options = nil
|
@@ -1072,14 +1068,14 @@ module Google
|
|
1072
1068
|
# # Call the create_target method.
|
1073
1069
|
# result = client.create_target request
|
1074
1070
|
#
|
1075
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1076
|
-
# #
|
1077
|
-
# #
|
1071
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1072
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1073
|
+
# # Here is how to wait for a response.
|
1078
1074
|
# result.wait_until_done! timeout: 60
|
1079
1075
|
# if result.response?
|
1080
1076
|
# p result.response
|
1081
1077
|
# else
|
1082
|
-
# puts "
|
1078
|
+
# puts "No response received."
|
1083
1079
|
# end
|
1084
1080
|
#
|
1085
1081
|
def create_target request, options = nil
|
@@ -1191,14 +1187,14 @@ module Google
|
|
1191
1187
|
# # Call the update_target method.
|
1192
1188
|
# result = client.update_target request
|
1193
1189
|
#
|
1194
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1195
|
-
# #
|
1196
|
-
# #
|
1190
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1191
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1192
|
+
# # Here is how to wait for a response.
|
1197
1193
|
# result.wait_until_done! timeout: 60
|
1198
1194
|
# if result.response?
|
1199
1195
|
# p result.response
|
1200
1196
|
# else
|
1201
|
-
# puts "
|
1197
|
+
# puts "No response received."
|
1202
1198
|
# end
|
1203
1199
|
#
|
1204
1200
|
def update_target request, options = nil
|
@@ -1309,14 +1305,14 @@ module Google
|
|
1309
1305
|
# # Call the delete_target method.
|
1310
1306
|
# result = client.delete_target request
|
1311
1307
|
#
|
1312
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1313
|
-
# #
|
1314
|
-
# #
|
1308
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1309
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1310
|
+
# # Here is how to wait for a response.
|
1315
1311
|
# result.wait_until_done! timeout: 60
|
1316
1312
|
# if result.response?
|
1317
1313
|
# p result.response
|
1318
1314
|
# else
|
1319
|
-
# puts "
|
1315
|
+
# puts "No response received."
|
1320
1316
|
# end
|
1321
1317
|
#
|
1322
1318
|
def delete_target request, options = nil
|
@@ -1417,13 +1413,11 @@ module Google
|
|
1417
1413
|
# # Call the list_releases method.
|
1418
1414
|
# result = client.list_releases request
|
1419
1415
|
#
|
1420
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1421
|
-
# #
|
1422
|
-
#
|
1423
|
-
# # methods are also available for managing paging directly.
|
1424
|
-
# result.each do |response|
|
1416
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1417
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1418
|
+
# result.each do |item|
|
1425
1419
|
# # Each element is of type ::Google::Cloud::Deploy::V1::Release.
|
1426
|
-
# p
|
1420
|
+
# p item
|
1427
1421
|
# end
|
1428
1422
|
#
|
1429
1423
|
def list_releases request, options = nil
|
@@ -1618,14 +1612,14 @@ module Google
|
|
1618
1612
|
# # Call the create_release method.
|
1619
1613
|
# result = client.create_release request
|
1620
1614
|
#
|
1621
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1622
|
-
# #
|
1623
|
-
# #
|
1615
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1616
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1617
|
+
# # Here is how to wait for a response.
|
1624
1618
|
# result.wait_until_done! timeout: 60
|
1625
1619
|
# if result.response?
|
1626
1620
|
# p result.response
|
1627
1621
|
# else
|
1628
|
-
# puts "
|
1622
|
+
# puts "No response received."
|
1629
1623
|
# end
|
1630
1624
|
#
|
1631
1625
|
def create_release request, options = nil
|
@@ -1902,13 +1896,11 @@ module Google
|
|
1902
1896
|
# # Call the list_rollouts method.
|
1903
1897
|
# result = client.list_rollouts request
|
1904
1898
|
#
|
1905
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1906
|
-
# #
|
1907
|
-
#
|
1908
|
-
# # methods are also available for managing paging directly.
|
1909
|
-
# result.each do |response|
|
1899
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1900
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1901
|
+
# result.each do |item|
|
1910
1902
|
# # Each element is of type ::Google::Cloud::Deploy::V1::Rollout.
|
1911
|
-
# p
|
1903
|
+
# p item
|
1912
1904
|
# end
|
1913
1905
|
#
|
1914
1906
|
def list_rollouts request, options = nil
|
@@ -2103,14 +2095,14 @@ module Google
|
|
2103
2095
|
# # Call the create_rollout method.
|
2104
2096
|
# result = client.create_rollout request
|
2105
2097
|
#
|
2106
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2107
|
-
# #
|
2108
|
-
# #
|
2098
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2099
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2100
|
+
# # Here is how to wait for a response.
|
2109
2101
|
# result.wait_until_done! timeout: 60
|
2110
2102
|
# if result.response?
|
2111
2103
|
# p result.response
|
2112
2104
|
# else
|
2113
|
-
# puts "
|
2105
|
+
# puts "No response received."
|
2114
2106
|
# end
|
2115
2107
|
#
|
2116
2108
|
def create_rollout request, options = nil
|
@@ -2302,13 +2294,11 @@ module Google
|
|
2302
2294
|
# # Call the list_job_runs method.
|
2303
2295
|
# result = client.list_job_runs request
|
2304
2296
|
#
|
2305
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2306
|
-
# #
|
2307
|
-
#
|
2308
|
-
# # methods are also available for managing paging directly.
|
2309
|
-
# result.each do |response|
|
2297
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2298
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2299
|
+
# result.each do |item|
|
2310
2300
|
# # Each element is of type ::Google::Cloud::Deploy::V1::JobRun.
|
2311
|
-
# p
|
2301
|
+
# p item
|
2312
2302
|
# end
|
2313
2303
|
#
|
2314
2304
|
def list_job_runs request, options = nil
|
@@ -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
|