google-cloud-run-v2 0.10.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/run/v2/condition_pb.rb +1 -1
  3. data/lib/google/cloud/run/v2/execution_pb.rb +2 -1
  4. data/lib/google/cloud/run/v2/execution_services_pb.rb +2 -0
  5. data/lib/google/cloud/run/v2/executions/client.rb +125 -7
  6. data/lib/google/cloud/run/v2/executions/operations.rb +10 -1
  7. data/lib/google/cloud/run/v2/executions/rest/client.rb +167 -6
  8. data/lib/google/cloud/run/v2/executions/rest/operations.rb +98 -0
  9. data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +60 -0
  10. data/lib/google/cloud/run/v2/job_pb.rb +8 -1
  11. data/lib/google/cloud/run/v2/jobs/client.rb +44 -14
  12. data/lib/google/cloud/run/v2/jobs/operations.rb +10 -1
  13. data/lib/google/cloud/run/v2/jobs/rest/client.rb +180 -1
  14. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +98 -0
  15. data/lib/google/cloud/run/v2/k8s.min_pb.rb +3 -1
  16. data/lib/google/cloud/run/v2/revisions/client.rb +10 -1
  17. data/lib/google/cloud/run/v2/revisions/operations.rb +10 -1
  18. data/lib/google/cloud/run/v2/revisions/rest/client.rb +59 -0
  19. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +98 -0
  20. data/lib/google/cloud/run/v2/services/client.rb +10 -1
  21. data/lib/google/cloud/run/v2/services/operations.rb +10 -1
  22. data/lib/google/cloud/run/v2/services/rest/client.rb +153 -0
  23. data/lib/google/cloud/run/v2/services/rest/operations.rb +98 -0
  24. data/lib/google/cloud/run/v2/task_pb.rb +1 -1
  25. data/lib/google/cloud/run/v2/tasks/client.rb +10 -1
  26. data/lib/google/cloud/run/v2/tasks/rest/client.rb +36 -0
  27. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -1
  28. data/lib/google/cloud/run/v2/version.rb +1 -1
  29. data/proto_docs/google/api/field_behavior.rb +14 -0
  30. data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
  31. data/proto_docs/google/cloud/run/v2/execution.rb +26 -6
  32. data/proto_docs/google/cloud/run/v2/job.rb +42 -0
  33. data/proto_docs/google/cloud/run/v2/k8s.min.rb +44 -4
  34. data/proto_docs/google/cloud/run/v2/task.rb +7 -2
  35. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +33 -5
  36. 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
 
@@ -412,6 +487,29 @@ module Google
412
487
  # @return [::Gapic::Operation]
413
488
  #
414
489
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
490
+ #
491
+ # @example Basic example
492
+ # require "google/longrunning"
493
+ #
494
+ # # Create a client object. The client can be reused for multiple calls.
495
+ # client = Google::Longrunning::Operations::Rest::Client.new
496
+ #
497
+ # # Create a request. To set request fields, pass in keyword arguments.
498
+ # request = Google::Longrunning::WaitOperationRequest.new
499
+ #
500
+ # # Call the wait_operation method.
501
+ # result = client.wait_operation request
502
+ #
503
+ # # The returned object is of type Gapic::Operation. You can use it to
504
+ # # check the status of an operation, cancel it, or wait for results.
505
+ # # Here is how to wait for a response.
506
+ # result.wait_until_done! timeout: 60
507
+ # if result.response?
508
+ # p result.response
509
+ # else
510
+ # puts "No response received."
511
+ # end
512
+ #
415
513
  def wait_operation request, options = nil
416
514
  raise ::ArgumentError, "request must be provided" if request.nil?
417
515
 
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/api/resource_pb'
9
9
 
10
10
 
11
- descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x03\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"9\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xaa\x01\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\xa5\x02\n\x05Probe\x12\x1d\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x16\n\x0eperiod_seconds\x18\x03 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x12\x36\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionH\x00\x12:\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionH\x00\x12/\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionH\x00\x42\x0c\n\nprobe_type\"b\n\rHTTPGetAction\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x35\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeader\x12\x0c\n\x04port\x18\x05 \x01(\x05\".\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05value\x18\x02 \x01(\t\"\x1f\n\x0fTCPSocketAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\"+\n\nGRPCAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x0f\n\x07service\x18\x02 \x01(\tB\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}b\x06proto3"
11
+ descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb0\x03\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x12\n\ndepends_on\x18\x0c \x03(\t\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"9\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xea\x01\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x12>\n\tempty_dir\x18\x04 \x01(\x0b\x32).google.cloud.run.v2.EmptyDirVolumeSourceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\x9a\x01\n\x14\x45mptyDirVolumeSource\x12@\n\x06medium\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.EmptyDirVolumeSource.Medium\x12\x12\n\nsize_limit\x18\x02 \x01(\t\",\n\x06Medium\x12\x16\n\x12MEDIUM_UNSPECIFIED\x10\x00\x12\n\n\x06MEMORY\x10\x01\"\xa5\x02\n\x05Probe\x12\x1d\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x16\n\x0eperiod_seconds\x18\x03 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x12\x36\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionH\x00\x12:\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionH\x00\x12/\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionH\x00\x42\x0c\n\nprobe_type\"b\n\rHTTPGetAction\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x35\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeader\x12\x0c\n\x04port\x18\x05 \x01(\x05\".\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05value\x18\x02 \x01(\t\"\x1f\n\x0fTCPSocketAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\"+\n\nGRPCAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x0f\n\x07service\x18\x02 \x01(\tB\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}b\x06proto3"
12
12
 
13
13
  pool = Google::Protobuf::DescriptorPool.generated_pool
14
14
 
@@ -49,6 +49,8 @@ module Google
49
49
  SecretVolumeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SecretVolumeSource").msgclass
50
50
  VersionToPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VersionToPath").msgclass
51
51
  CloudSqlInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.CloudSqlInstance").msgclass
52
+ EmptyDirVolumeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EmptyDirVolumeSource").msgclass
53
+ EmptyDirVolumeSource::Medium = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EmptyDirVolumeSource.Medium").enummodule
52
54
  Probe = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Probe").msgclass
53
55
  HTTPGetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPGetAction").msgclass
54
56
  HTTPHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPHeader").msgclass
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -587,6 +588,14 @@ module Google
587
588
  end
588
589
  end
589
590
 
591
+ ##
592
+ # Configuration for the channel pool
593
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
594
+ #
595
+ def channel_pool
596
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
597
+ end
598
+
590
599
  ##
591
600
  # Configuration RPC class for the Revisions API.
592
601
  #
@@ -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
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #
@@ -191,6 +191,22 @@ module Google
191
191
  # @return [::Google::Cloud::Run::V2::Revision]
192
192
  #
193
193
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
194
+ #
195
+ # @example Basic example
196
+ # require "google/cloud/run/v2"
197
+ #
198
+ # # Create a client object. The client can be reused for multiple calls.
199
+ # client = Google::Cloud::Run::V2::Revisions::Rest::Client.new
200
+ #
201
+ # # Create a request. To set request fields, pass in keyword arguments.
202
+ # request = Google::Cloud::Run::V2::GetRevisionRequest.new
203
+ #
204
+ # # Call the get_revision method.
205
+ # result = client.get_revision request
206
+ #
207
+ # # The returned object is of type Google::Cloud::Run::V2::Revision.
208
+ # p result
209
+ #
194
210
  def get_revision request, options = nil
195
211
  raise ::ArgumentError, "request must be provided" if request.nil?
196
212
 
@@ -263,6 +279,26 @@ module Google
263
279
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Run::V2::Revision>]
264
280
  #
265
281
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
282
+ #
283
+ # @example Basic example
284
+ # require "google/cloud/run/v2"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::Run::V2::Revisions::Rest::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::Run::V2::ListRevisionsRequest.new
291
+ #
292
+ # # Call the list_revisions method.
293
+ # result = client.list_revisions request
294
+ #
295
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
296
+ # # over elements, and API calls will be issued to fetch pages as needed.
297
+ # result.each do |item|
298
+ # # Each element is of type ::Google::Cloud::Run::V2::Revision.
299
+ # p item
300
+ # end
301
+ #
266
302
  def list_revisions request, options = nil
267
303
  raise ::ArgumentError, "request must be provided" if request.nil?
268
304
 
@@ -334,6 +370,29 @@ module Google
334
370
  # @return [::Gapic::Operation]
335
371
  #
336
372
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
373
+ #
374
+ # @example Basic example
375
+ # require "google/cloud/run/v2"
376
+ #
377
+ # # Create a client object. The client can be reused for multiple calls.
378
+ # client = Google::Cloud::Run::V2::Revisions::Rest::Client.new
379
+ #
380
+ # # Create a request. To set request fields, pass in keyword arguments.
381
+ # request = Google::Cloud::Run::V2::DeleteRevisionRequest.new
382
+ #
383
+ # # Call the delete_revision method.
384
+ # result = client.delete_revision request
385
+ #
386
+ # # The returned object is of type Gapic::Operation. You can use it to
387
+ # # check the status of an operation, cancel it, or wait for results.
388
+ # # Here is how to wait for a response.
389
+ # result.wait_until_done! timeout: 60
390
+ # if result.response?
391
+ # p result.response
392
+ # else
393
+ # puts "No response received."
394
+ # end
395
+ #
337
396
  def delete_revision request, options = nil
338
397
  raise ::ArgumentError, "request must be provided" if request.nil?
339
398
 
@@ -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
 
@@ -412,6 +487,29 @@ module Google
412
487
  # @return [::Gapic::Operation]
413
488
  #
414
489
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
490
+ #
491
+ # @example Basic example
492
+ # require "google/longrunning"
493
+ #
494
+ # # Create a client object. The client can be reused for multiple calls.
495
+ # client = Google::Longrunning::Operations::Rest::Client.new
496
+ #
497
+ # # Create a request. To set request fields, pass in keyword arguments.
498
+ # request = Google::Longrunning::WaitOperationRequest.new
499
+ #
500
+ # # Call the wait_operation method.
501
+ # result = client.wait_operation request
502
+ #
503
+ # # The returned object is of type Gapic::Operation. You can use it to
504
+ # # check the status of an operation, cancel it, or wait for results.
505
+ # # Here is how to wait for a response.
506
+ # result.wait_until_done! timeout: 60
507
+ # if result.response?
508
+ # p result.response
509
+ # else
510
+ # puts "No response received."
511
+ # end
512
+ #
415
513
  def wait_operation request, options = nil
416
514
  raise ::ArgumentError, "request must be provided" if request.nil?
417
515
 
@@ -167,7 +167,8 @@ module Google
167
167
  credentials: credentials,
168
168
  endpoint: @config.endpoint,
169
169
  channel_args: @config.channel_args,
170
- interceptors: @config.interceptors
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool
171
172
  )
172
173
  end
173
174
 
@@ -1096,6 +1097,14 @@ module Google
1096
1097
  end
1097
1098
  end
1098
1099
 
1100
+ ##
1101
+ # Configuration for the channel pool
1102
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1103
+ #
1104
+ def channel_pool
1105
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1106
+ end
1107
+
1099
1108
  ##
1100
1109
  # Configuration RPC class for the Services API.
1101
1110
  #
@@ -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
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #