google-cloud-app_engine-v1 0.7.0 → 0.8.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/lib/google/cloud/app_engine/v1/applications/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/applications/operations.rb +10 -1
- data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +85 -0
- data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +75 -0
- data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +84 -0
- data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +20 -0
- data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +10 -1
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +105 -0
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +75 -0
- data/lib/google/cloud/app_engine/v1/firewall/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +100 -0
- data/lib/google/cloud/app_engine/v1/instances/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/instances/operations.rb +10 -1
- data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +82 -0
- data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +75 -0
- data/lib/google/cloud/app_engine/v1/services/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/services/operations.rb +10 -1
- data/lib/google/cloud/app_engine/v1/services/rest/client.rb +82 -0
- data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +75 -0
- data/lib/google/cloud/app_engine/v1/version.rb +1 -1
- data/lib/google/cloud/app_engine/v1/versions/client.rb +10 -1
- data/lib/google/cloud/app_engine/v1/versions/operations.rb +10 -1
- data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +105 -0
- data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +75 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -145,7 +145,8 @@ module Google
|
|
145
145
|
credentials: credentials,
|
146
146
|
endpoint: @config.endpoint,
|
147
147
|
channel_args: @config.channel_args,
|
148
|
-
interceptors: @config.interceptors
|
148
|
+
interceptors: @config.interceptors,
|
149
|
+
channel_pool_config: @config.channel_pool
|
149
150
|
)
|
150
151
|
end
|
151
152
|
|
@@ -820,6 +821,14 @@ module Google
|
|
820
821
|
end
|
821
822
|
end
|
822
823
|
|
824
|
+
##
|
825
|
+
# Configuration for the channel pool
|
826
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
827
|
+
#
|
828
|
+
def channel_pool
|
829
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
830
|
+
end
|
831
|
+
|
823
832
|
##
|
824
833
|
# Configuration RPC class for the Firewall API.
|
825
834
|
#
|
@@ -178,6 +178,26 @@ module Google
|
|
178
178
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::FirewallRule>]
|
179
179
|
#
|
180
180
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
181
|
+
#
|
182
|
+
# @example Basic example
|
183
|
+
# require "google/cloud/app_engine/v1"
|
184
|
+
#
|
185
|
+
# # Create a client object. The client can be reused for multiple calls.
|
186
|
+
# client = Google::Cloud::AppEngine::V1::Firewall::Rest::Client.new
|
187
|
+
#
|
188
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
189
|
+
# request = Google::Cloud::AppEngine::V1::ListIngressRulesRequest.new
|
190
|
+
#
|
191
|
+
# # Call the list_ingress_rules method.
|
192
|
+
# result = client.list_ingress_rules request
|
193
|
+
#
|
194
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
195
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
196
|
+
# result.each do |item|
|
197
|
+
# # Each element is of type ::Google::Cloud::AppEngine::V1::FirewallRule.
|
198
|
+
# p item
|
199
|
+
# end
|
200
|
+
#
|
181
201
|
def list_ingress_rules request, options = nil
|
182
202
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
183
203
|
|
@@ -248,6 +268,22 @@ module Google
|
|
248
268
|
# @return [::Google::Cloud::AppEngine::V1::BatchUpdateIngressRulesResponse]
|
249
269
|
#
|
250
270
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
271
|
+
#
|
272
|
+
# @example Basic example
|
273
|
+
# require "google/cloud/app_engine/v1"
|
274
|
+
#
|
275
|
+
# # Create a client object. The client can be reused for multiple calls.
|
276
|
+
# client = Google::Cloud::AppEngine::V1::Firewall::Rest::Client.new
|
277
|
+
#
|
278
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
279
|
+
# request = Google::Cloud::AppEngine::V1::BatchUpdateIngressRulesRequest.new
|
280
|
+
#
|
281
|
+
# # Call the batch_update_ingress_rules method.
|
282
|
+
# result = client.batch_update_ingress_rules request
|
283
|
+
#
|
284
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::BatchUpdateIngressRulesResponse.
|
285
|
+
# p result
|
286
|
+
#
|
251
287
|
def batch_update_ingress_rules request, options = nil
|
252
288
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
253
289
|
|
@@ -322,6 +358,22 @@ module Google
|
|
322
358
|
# @return [::Google::Cloud::AppEngine::V1::FirewallRule]
|
323
359
|
#
|
324
360
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
361
|
+
#
|
362
|
+
# @example Basic example
|
363
|
+
# require "google/cloud/app_engine/v1"
|
364
|
+
#
|
365
|
+
# # Create a client object. The client can be reused for multiple calls.
|
366
|
+
# client = Google::Cloud::AppEngine::V1::Firewall::Rest::Client.new
|
367
|
+
#
|
368
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
369
|
+
# request = Google::Cloud::AppEngine::V1::CreateIngressRuleRequest.new
|
370
|
+
#
|
371
|
+
# # Call the create_ingress_rule method.
|
372
|
+
# result = client.create_ingress_rule request
|
373
|
+
#
|
374
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::FirewallRule.
|
375
|
+
# p result
|
376
|
+
#
|
325
377
|
def create_ingress_rule request, options = nil
|
326
378
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
327
379
|
|
@@ -385,6 +437,22 @@ module Google
|
|
385
437
|
# @return [::Google::Cloud::AppEngine::V1::FirewallRule]
|
386
438
|
#
|
387
439
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
440
|
+
#
|
441
|
+
# @example Basic example
|
442
|
+
# require "google/cloud/app_engine/v1"
|
443
|
+
#
|
444
|
+
# # Create a client object. The client can be reused for multiple calls.
|
445
|
+
# client = Google::Cloud::AppEngine::V1::Firewall::Rest::Client.new
|
446
|
+
#
|
447
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
448
|
+
# request = Google::Cloud::AppEngine::V1::GetIngressRuleRequest.new
|
449
|
+
#
|
450
|
+
# # Call the get_ingress_rule method.
|
451
|
+
# result = client.get_ingress_rule request
|
452
|
+
#
|
453
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::FirewallRule.
|
454
|
+
# p result
|
455
|
+
#
|
388
456
|
def get_ingress_rule request, options = nil
|
389
457
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
458
|
|
@@ -452,6 +520,22 @@ module Google
|
|
452
520
|
# @return [::Google::Cloud::AppEngine::V1::FirewallRule]
|
453
521
|
#
|
454
522
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
523
|
+
#
|
524
|
+
# @example Basic example
|
525
|
+
# require "google/cloud/app_engine/v1"
|
526
|
+
#
|
527
|
+
# # Create a client object. The client can be reused for multiple calls.
|
528
|
+
# client = Google::Cloud::AppEngine::V1::Firewall::Rest::Client.new
|
529
|
+
#
|
530
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
531
|
+
# request = Google::Cloud::AppEngine::V1::UpdateIngressRuleRequest.new
|
532
|
+
#
|
533
|
+
# # Call the update_ingress_rule method.
|
534
|
+
# result = client.update_ingress_rule request
|
535
|
+
#
|
536
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::FirewallRule.
|
537
|
+
# p result
|
538
|
+
#
|
455
539
|
def update_ingress_rule request, options = nil
|
456
540
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
541
|
|
@@ -515,6 +599,22 @@ module Google
|
|
515
599
|
# @return [::Google::Protobuf::Empty]
|
516
600
|
#
|
517
601
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
602
|
+
#
|
603
|
+
# @example Basic example
|
604
|
+
# require "google/cloud/app_engine/v1"
|
605
|
+
#
|
606
|
+
# # Create a client object. The client can be reused for multiple calls.
|
607
|
+
# client = Google::Cloud::AppEngine::V1::Firewall::Rest::Client.new
|
608
|
+
#
|
609
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
610
|
+
# request = Google::Cloud::AppEngine::V1::DeleteIngressRuleRequest.new
|
611
|
+
#
|
612
|
+
# # Call the delete_ingress_rule method.
|
613
|
+
# result = client.delete_ingress_rule request
|
614
|
+
#
|
615
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
616
|
+
# p result
|
617
|
+
#
|
518
618
|
def delete_ingress_rule request, options = nil
|
519
619
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
520
620
|
|
@@ -142,7 +142,8 @@ module Google
|
|
142
142
|
credentials: credentials,
|
143
143
|
endpoint: @config.endpoint,
|
144
144
|
channel_args: @config.channel_args,
|
145
|
-
interceptors: @config.interceptors
|
145
|
+
interceptors: @config.interceptors,
|
146
|
+
channel_pool_config: @config.channel_pool
|
146
147
|
)
|
147
148
|
end
|
148
149
|
|
@@ -672,6 +673,14 @@ module Google
|
|
672
673
|
end
|
673
674
|
end
|
674
675
|
|
676
|
+
##
|
677
|
+
# Configuration for the channel pool
|
678
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
679
|
+
#
|
680
|
+
def channel_pool
|
681
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
682
|
+
end
|
683
|
+
|
675
684
|
##
|
676
685
|
# Configuration RPC class for the Instances API.
|
677
686
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -181,6 +181,26 @@ module Google
|
|
181
181
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::Instance>]
|
182
182
|
#
|
183
183
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
184
|
+
#
|
185
|
+
# @example Basic example
|
186
|
+
# require "google/cloud/app_engine/v1"
|
187
|
+
#
|
188
|
+
# # Create a client object. The client can be reused for multiple calls.
|
189
|
+
# client = Google::Cloud::AppEngine::V1::Instances::Rest::Client.new
|
190
|
+
#
|
191
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
192
|
+
# request = Google::Cloud::AppEngine::V1::ListInstancesRequest.new
|
193
|
+
#
|
194
|
+
# # Call the list_instances method.
|
195
|
+
# result = client.list_instances request
|
196
|
+
#
|
197
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
198
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
199
|
+
# result.each do |item|
|
200
|
+
# # Each element is of type ::Google::Cloud::AppEngine::V1::Instance.
|
201
|
+
# p item
|
202
|
+
# end
|
203
|
+
#
|
184
204
|
def list_instances request, options = nil
|
185
205
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
186
206
|
|
@@ -245,6 +265,22 @@ module Google
|
|
245
265
|
# @return [::Google::Cloud::AppEngine::V1::Instance]
|
246
266
|
#
|
247
267
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
268
|
+
#
|
269
|
+
# @example Basic example
|
270
|
+
# require "google/cloud/app_engine/v1"
|
271
|
+
#
|
272
|
+
# # Create a client object. The client can be reused for multiple calls.
|
273
|
+
# client = Google::Cloud::AppEngine::V1::Instances::Rest::Client.new
|
274
|
+
#
|
275
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
276
|
+
# request = Google::Cloud::AppEngine::V1::GetInstanceRequest.new
|
277
|
+
#
|
278
|
+
# # Call the get_instance method.
|
279
|
+
# result = client.get_instance request
|
280
|
+
#
|
281
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::Instance.
|
282
|
+
# p result
|
283
|
+
#
|
248
284
|
def get_instance request, options = nil
|
249
285
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
250
286
|
|
@@ -319,6 +355,29 @@ module Google
|
|
319
355
|
# @return [::Gapic::Operation]
|
320
356
|
#
|
321
357
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
358
|
+
#
|
359
|
+
# @example Basic example
|
360
|
+
# require "google/cloud/app_engine/v1"
|
361
|
+
#
|
362
|
+
# # Create a client object. The client can be reused for multiple calls.
|
363
|
+
# client = Google::Cloud::AppEngine::V1::Instances::Rest::Client.new
|
364
|
+
#
|
365
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
366
|
+
# request = Google::Cloud::AppEngine::V1::DeleteInstanceRequest.new
|
367
|
+
#
|
368
|
+
# # Call the delete_instance method.
|
369
|
+
# result = client.delete_instance request
|
370
|
+
#
|
371
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
372
|
+
# # check the status of an operation, cancel it, or wait for results.
|
373
|
+
# # Here is how to wait for a response.
|
374
|
+
# result.wait_until_done! timeout: 60
|
375
|
+
# if result.response?
|
376
|
+
# p result.response
|
377
|
+
# else
|
378
|
+
# puts "No response received."
|
379
|
+
# end
|
380
|
+
#
|
322
381
|
def delete_instance request, options = nil
|
323
382
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
324
383
|
|
@@ -398,6 +457,29 @@ module Google
|
|
398
457
|
# @return [::Gapic::Operation]
|
399
458
|
#
|
400
459
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
460
|
+
#
|
461
|
+
# @example Basic example
|
462
|
+
# require "google/cloud/app_engine/v1"
|
463
|
+
#
|
464
|
+
# # Create a client object. The client can be reused for multiple calls.
|
465
|
+
# client = Google::Cloud::AppEngine::V1::Instances::Rest::Client.new
|
466
|
+
#
|
467
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
468
|
+
# request = Google::Cloud::AppEngine::V1::DebugInstanceRequest.new
|
469
|
+
#
|
470
|
+
# # Call the debug_instance method.
|
471
|
+
# result = client.debug_instance request
|
472
|
+
#
|
473
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
474
|
+
# # check the status of an operation, cancel it, or wait for results.
|
475
|
+
# # Here is how to wait for a response.
|
476
|
+
# result.wait_until_done! timeout: 60
|
477
|
+
# if result.response?
|
478
|
+
# p result.response
|
479
|
+
# else
|
480
|
+
# puts "No response received."
|
481
|
+
# end
|
482
|
+
#
|
401
483
|
def debug_instance request, options = nil
|
402
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
403
485
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -142,7 +142,8 @@ module Google
|
|
142
142
|
credentials: credentials,
|
143
143
|
endpoint: @config.endpoint,
|
144
144
|
channel_args: @config.channel_args,
|
145
|
-
interceptors: @config.interceptors
|
145
|
+
interceptors: @config.interceptors,
|
146
|
+
channel_pool_config: @config.channel_pool
|
146
147
|
)
|
147
148
|
end
|
148
149
|
|
@@ -657,6 +658,14 @@ module Google
|
|
657
658
|
end
|
658
659
|
end
|
659
660
|
|
661
|
+
##
|
662
|
+
# Configuration for the channel pool
|
663
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
664
|
+
#
|
665
|
+
def channel_pool
|
666
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
667
|
+
end
|
668
|
+
|
660
669
|
##
|
661
670
|
# Configuration RPC class for the Services API.
|
662
671
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|