google-cloud-run-v2 0.19.0 → 0.21.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 +31 -21
- data/lib/google/cloud/run/v2/builds/client.rb +39 -2
- data/lib/google/cloud/run/v2/builds/rest/client.rb +39 -2
- data/lib/google/cloud/run/v2/builds/rest/service_stub.rb +22 -8
- data/lib/google/cloud/run/v2/executions/client.rb +38 -5
- data/lib/google/cloud/run/v2/executions/operations.rb +16 -5
- data/lib/google/cloud/run/v2/executions/rest/client.rb +38 -5
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +56 -35
- data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +46 -26
- data/lib/google/cloud/run/v2/jobs/client.rb +40 -10
- data/lib/google/cloud/run/v2/jobs/operations.rb +16 -5
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +40 -10
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +56 -35
- data/lib/google/cloud/run/v2/jobs/rest/service_stub.rb +86 -56
- data/lib/google/cloud/run/v2/revisions/client.rb +37 -4
- data/lib/google/cloud/run/v2/revisions/operations.rb +16 -5
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +37 -4
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +56 -35
- data/lib/google/cloud/run/v2/revisions/rest/service_stub.rb +38 -20
- data/lib/google/cloud/run/v2/services/client.rb +39 -9
- data/lib/google/cloud/run/v2/services/operations.rb +16 -5
- data/lib/google/cloud/run/v2/services/rest/client.rb +39 -9
- data/lib/google/cloud/run/v2/services/rest/operations.rb +56 -35
- data/lib/google/cloud/run/v2/services/rest/service_stub.rb +78 -50
- data/lib/google/cloud/run/v2/tasks/client.rb +36 -3
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +36 -3
- data/lib/google/cloud/run/v2/tasks/rest/service_stub.rb +30 -14
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/cloud/run/v2/build.rb +4 -0
- data/proto_docs/google/cloud/run/v2/condition.rb +6 -0
- data/proto_docs/google/cloud/run/v2/job.rb +4 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +20 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +4 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- metadata +6 -9
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the create_service REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "create_service",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "get_service",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Run::V2::Service.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "list_services",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::Run::V2::ListServicesResponse.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "update_service",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "delete_service",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "get_iam_policy",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "set_iam_policy",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "test_iam_permissions",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -158,14 +158,26 @@ module Google
|
|
158
158
|
universe_domain: @config.universe_domain,
|
159
159
|
channel_args: @config.channel_args,
|
160
160
|
interceptors: @config.interceptors,
|
161
|
-
channel_pool_config: @config.channel_pool
|
161
|
+
channel_pool_config: @config.channel_pool,
|
162
|
+
logger: @config.logger
|
162
163
|
)
|
163
164
|
|
165
|
+
@tasks_stub.stub_logger&.info do |entry|
|
166
|
+
entry.set_system_name
|
167
|
+
entry.set_service
|
168
|
+
entry.message = "Created client for #{entry.service}"
|
169
|
+
entry.set_credentials_fields credentials
|
170
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
171
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
172
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
173
|
+
end
|
174
|
+
|
164
175
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
165
176
|
config.credentials = credentials
|
166
177
|
config.quota_project = @quota_project_id
|
167
178
|
config.endpoint = @tasks_stub.endpoint
|
168
179
|
config.universe_domain = @tasks_stub.universe_domain
|
180
|
+
config.logger = @tasks_stub.logger if config.respond_to? :logger=
|
169
181
|
end
|
170
182
|
end
|
171
183
|
|
@@ -176,6 +188,15 @@ module Google
|
|
176
188
|
#
|
177
189
|
attr_reader :location_client
|
178
190
|
|
191
|
+
##
|
192
|
+
# The logger used for request/response debug logging.
|
193
|
+
#
|
194
|
+
# @return [Logger]
|
195
|
+
#
|
196
|
+
def logger
|
197
|
+
@tasks_stub.logger
|
198
|
+
end
|
199
|
+
|
179
200
|
# Service calls
|
180
201
|
|
181
202
|
##
|
@@ -260,7 +281,6 @@ module Google
|
|
260
281
|
|
261
282
|
@tasks_stub.call_rpc :get_task, request, options: options do |response, operation|
|
262
283
|
yield response, operation if block_given?
|
263
|
-
return response
|
264
284
|
end
|
265
285
|
rescue ::GRPC::BadStatus => e
|
266
286
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -361,7 +381,7 @@ module Google
|
|
361
381
|
@tasks_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
362
382
|
response = ::Gapic::PagedEnumerable.new @tasks_stub, :list_tasks, request, response, operation, options
|
363
383
|
yield response, operation if block_given?
|
364
|
-
|
384
|
+
throw :response, response
|
365
385
|
end
|
366
386
|
rescue ::GRPC::BadStatus => e
|
367
387
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -411,6 +431,13 @@ module Google
|
|
411
431
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
412
432
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
413
433
|
# * (`nil`) indicating no credentials
|
434
|
+
#
|
435
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
436
|
+
# external source for authentication to Google Cloud, you must validate it before
|
437
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
438
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
439
|
+
# For more information, refer to [Validate credential configurations from external
|
440
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
414
441
|
# @return [::Object]
|
415
442
|
# @!attribute [rw] scope
|
416
443
|
# The OAuth scopes
|
@@ -450,6 +477,11 @@ module Google
|
|
450
477
|
# default endpoint URL. The default value of nil uses the environment
|
451
478
|
# universe (usually the default "googleapis.com" universe).
|
452
479
|
# @return [::String,nil]
|
480
|
+
# @!attribute [rw] logger
|
481
|
+
# A custom logger to use for request/response debug logging, or the value
|
482
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
483
|
+
# explicitly disable logging.
|
484
|
+
# @return [::Logger,:default,nil]
|
453
485
|
#
|
454
486
|
class Configuration
|
455
487
|
extend ::Gapic::Config
|
@@ -474,6 +506,7 @@ module Google
|
|
474
506
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
475
507
|
config_attr :quota_project, nil, ::String, nil
|
476
508
|
config_attr :universe_domain, nil, ::String, nil
|
509
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
477
510
|
|
478
511
|
# @private
|
479
512
|
def initialize parent_config = nil
|
@@ -151,14 +151,26 @@ module Google
|
|
151
151
|
endpoint: @config.endpoint,
|
152
152
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
153
153
|
universe_domain: @config.universe_domain,
|
154
|
-
credentials: credentials
|
154
|
+
credentials: credentials,
|
155
|
+
logger: @config.logger
|
155
156
|
)
|
156
157
|
|
158
|
+
@tasks_stub.logger(stub: true)&.info do |entry|
|
159
|
+
entry.set_system_name
|
160
|
+
entry.set_service
|
161
|
+
entry.message = "Created client for #{entry.service}"
|
162
|
+
entry.set_credentials_fields credentials
|
163
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
164
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
165
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
166
|
+
end
|
167
|
+
|
157
168
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
158
169
|
config.credentials = credentials
|
159
170
|
config.quota_project = @quota_project_id
|
160
171
|
config.endpoint = @tasks_stub.endpoint
|
161
172
|
config.universe_domain = @tasks_stub.universe_domain
|
173
|
+
config.logger = @tasks_stub.logger if config.respond_to? :logger=
|
162
174
|
end
|
163
175
|
end
|
164
176
|
|
@@ -169,6 +181,15 @@ module Google
|
|
169
181
|
#
|
170
182
|
attr_reader :location_client
|
171
183
|
|
184
|
+
##
|
185
|
+
# The logger used for request/response debug logging.
|
186
|
+
#
|
187
|
+
# @return [Logger]
|
188
|
+
#
|
189
|
+
def logger
|
190
|
+
@tasks_stub.logger
|
191
|
+
end
|
192
|
+
|
172
193
|
# Service calls
|
173
194
|
|
174
195
|
##
|
@@ -246,7 +267,6 @@ module Google
|
|
246
267
|
|
247
268
|
@tasks_stub.get_task request, options do |result, operation|
|
248
269
|
yield result, operation if block_given?
|
249
|
-
return result
|
250
270
|
end
|
251
271
|
rescue ::Gapic::Rest::Error => e
|
252
272
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -340,7 +360,7 @@ module Google
|
|
340
360
|
@tasks_stub.list_tasks request, options do |result, operation|
|
341
361
|
result = ::Gapic::Rest::PagedEnumerable.new @tasks_stub, :list_tasks, "tasks", request, result, options
|
342
362
|
yield result, operation if block_given?
|
343
|
-
|
363
|
+
throw :response, result
|
344
364
|
end
|
345
365
|
rescue ::Gapic::Rest::Error => e
|
346
366
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -388,6 +408,13 @@ module Google
|
|
388
408
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
389
409
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
390
410
|
# * (`nil`) indicating no credentials
|
411
|
+
#
|
412
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
413
|
+
# external source for authentication to Google Cloud, you must validate it before
|
414
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
415
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
416
|
+
# For more information, refer to [Validate credential configurations from external
|
417
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
391
418
|
# @return [::Object]
|
392
419
|
# @!attribute [rw] scope
|
393
420
|
# The OAuth scopes
|
@@ -420,6 +447,11 @@ module Google
|
|
420
447
|
# default endpoint URL. The default value of nil uses the environment
|
421
448
|
# universe (usually the default "googleapis.com" universe).
|
422
449
|
# @return [::String,nil]
|
450
|
+
# @!attribute [rw] logger
|
451
|
+
# A custom logger to use for request/response debug logging, or the value
|
452
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
453
|
+
# explicitly disable logging.
|
454
|
+
# @return [::Logger,:default,nil]
|
423
455
|
#
|
424
456
|
class Configuration
|
425
457
|
extend ::Gapic::Config
|
@@ -441,6 +473,7 @@ module Google
|
|
441
473
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
442
474
|
config_attr :quota_project, nil, ::String, nil
|
443
475
|
config_attr :universe_domain, nil, ::String, nil
|
476
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
444
477
|
|
445
478
|
# @private
|
446
479
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the get_task REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "get_task",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::Run::V2::Task.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "list_tasks",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Run::V2::ListTasksResponse.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -306,9 +306,28 @@ module Google
|
|
306
306
|
# @!attribute [rw] common
|
307
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
308
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
309
319
|
class GoSettings
|
310
320
|
include ::Google::Protobuf::MessageExts
|
311
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
312
331
|
end
|
313
332
|
|
314
333
|
# Describes the generator configuration for a method.
|
@@ -37,9 +37,13 @@ module Google
|
|
37
37
|
# @!attribute [rw] buildpack_build
|
38
38
|
# @return [::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild]
|
39
39
|
# Build the source using Buildpacks.
|
40
|
+
#
|
41
|
+
# Note: The following fields are mutually exclusive: `buildpack_build`, `docker_build`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
40
42
|
# @!attribute [rw] docker_build
|
41
43
|
# @return [::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild]
|
42
44
|
# Build the source using Docker. This means the source has a Dockerfile.
|
45
|
+
#
|
46
|
+
# Note: The following fields are mutually exclusive: `docker_build`, `buildpack_build`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
47
|
# @!attribute [rw] service_account
|
44
48
|
# @return [::String]
|
45
49
|
# Optional. The service account to use for the build. If not set, the default
|
@@ -44,12 +44,18 @@ module Google
|
|
44
44
|
# @!attribute [r] reason
|
45
45
|
# @return [::Google::Cloud::Run::V2::Condition::CommonReason]
|
46
46
|
# Output only. A common (service-level) reason for this condition.
|
47
|
+
#
|
48
|
+
# Note: The following fields are mutually exclusive: `reason`, `revision_reason`, `execution_reason`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
47
49
|
# @!attribute [r] revision_reason
|
48
50
|
# @return [::Google::Cloud::Run::V2::Condition::RevisionReason]
|
49
51
|
# Output only. A reason for the revision condition.
|
52
|
+
#
|
53
|
+
# Note: The following fields are mutually exclusive: `revision_reason`, `reason`, `execution_reason`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
50
54
|
# @!attribute [r] execution_reason
|
51
55
|
# @return [::Google::Cloud::Run::V2::Condition::ExecutionReason]
|
52
56
|
# Output only. A reason for the execution condition.
|
57
|
+
#
|
58
|
+
# Note: The following fields are mutually exclusive: `execution_reason`, `reason`, `revision_reason`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
59
|
class Condition
|
54
60
|
include ::Google::Protobuf::MessageExts
|
55
61
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -326,11 +326,15 @@ module Google
|
|
326
326
|
# A unique string used as a suffix creating a new execution. The Job will
|
327
327
|
# become ready when the execution is successfully started.
|
328
328
|
# The sum of job name and token length must be fewer than 63 characters.
|
329
|
+
#
|
330
|
+
# Note: The following fields are mutually exclusive: `start_execution_token`, `run_execution_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
329
331
|
# @!attribute [rw] run_execution_token
|
330
332
|
# @return [::String]
|
331
333
|
# A unique string used as a suffix for creating a new execution. The Job
|
332
334
|
# will become ready when the execution is successfully completed.
|
333
335
|
# The sum of job name and token length must be fewer than 63 characters.
|
336
|
+
#
|
337
|
+
# Note: The following fields are mutually exclusive: `run_execution_token`, `start_execution_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
334
338
|
# @!attribute [r] etag
|
335
339
|
# @return [::String]
|
336
340
|
# Output only. A system-generated fingerprint for this version of the
|
@@ -127,9 +127,13 @@ module Google
|
|
127
127
|
# Literal value of the environment variable.
|
128
128
|
# Defaults to "", and the maximum length is 32768 bytes.
|
129
129
|
# Variable references are not supported in Cloud Run.
|
130
|
+
#
|
131
|
+
# Note: The following fields are mutually exclusive: `value`, `value_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
130
132
|
# @!attribute [rw] value_source
|
131
133
|
# @return [::Google::Cloud::Run::V2::EnvVarSource]
|
132
134
|
# Source for the environment variable's value.
|
135
|
+
#
|
136
|
+
# Note: The following fields are mutually exclusive: `value_source`, `value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
133
137
|
class EnvVar
|
134
138
|
include ::Google::Protobuf::MessageExts
|
135
139
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -198,20 +202,30 @@ module Google
|
|
198
202
|
# @!attribute [rw] secret
|
199
203
|
# @return [::Google::Cloud::Run::V2::SecretVolumeSource]
|
200
204
|
# Secret represents a secret that should populate this volume.
|
205
|
+
#
|
206
|
+
# Note: The following fields are mutually exclusive: `secret`, `cloud_sql_instance`, `empty_dir`, `nfs`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
201
207
|
# @!attribute [rw] cloud_sql_instance
|
202
208
|
# @return [::Google::Cloud::Run::V2::CloudSqlInstance]
|
203
209
|
# For Cloud SQL volumes, contains the specific instances that should be
|
204
210
|
# mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
|
205
211
|
# more information on how to connect Cloud SQL and Cloud Run.
|
212
|
+
#
|
213
|
+
# Note: The following fields are mutually exclusive: `cloud_sql_instance`, `secret`, `empty_dir`, `nfs`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
206
214
|
# @!attribute [rw] empty_dir
|
207
215
|
# @return [::Google::Cloud::Run::V2::EmptyDirVolumeSource]
|
208
216
|
# Ephemeral storage used as a shared volume.
|
217
|
+
#
|
218
|
+
# Note: The following fields are mutually exclusive: `empty_dir`, `secret`, `cloud_sql_instance`, `nfs`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
209
219
|
# @!attribute [rw] nfs
|
210
220
|
# @return [::Google::Cloud::Run::V2::NFSVolumeSource]
|
211
221
|
# For NFS Voumes, contains the path to the nfs Volume
|
222
|
+
#
|
223
|
+
# Note: The following fields are mutually exclusive: `nfs`, `secret`, `cloud_sql_instance`, `empty_dir`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
212
224
|
# @!attribute [rw] gcs
|
213
225
|
# @return [::Google::Cloud::Run::V2::GCSVolumeSource]
|
214
226
|
# Persistent storage backed by a Google Cloud Storage bucket.
|
227
|
+
#
|
228
|
+
# Note: The following fields are mutually exclusive: `gcs`, `secret`, `cloud_sql_instance`, `empty_dir`, `nfs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
215
229
|
class Volume
|
216
230
|
include ::Google::Protobuf::MessageExts
|
217
231
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -396,14 +410,20 @@ module Google
|
|
396
410
|
# @return [::Google::Cloud::Run::V2::HTTPGetAction]
|
397
411
|
# Optional. HTTPGet specifies the http request to perform.
|
398
412
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
413
|
+
#
|
414
|
+
# Note: The following fields are mutually exclusive: `http_get`, `tcp_socket`, `grpc`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
399
415
|
# @!attribute [rw] tcp_socket
|
400
416
|
# @return [::Google::Cloud::Run::V2::TCPSocketAction]
|
401
417
|
# Optional. TCPSocket specifies an action involving a TCP port.
|
402
418
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
419
|
+
#
|
420
|
+
# Note: The following fields are mutually exclusive: `tcp_socket`, `http_get`, `grpc`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
403
421
|
# @!attribute [rw] grpc
|
404
422
|
# @return [::Google::Cloud::Run::V2::GRPCAction]
|
405
423
|
# Optional. GRPC specifies an action involving a gRPC port.
|
406
424
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
425
|
+
#
|
426
|
+
# Note: The following fields are mutually exclusive: `grpc`, `http_get`, `tcp_socket`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
407
427
|
class Probe
|
408
428
|
include ::Google::Protobuf::MessageExts
|
409
429
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|