google-cloud-app_engine-v1 0.6.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/appengine/v1/app_yaml_pb.rb +25 -103
  3. data/lib/google/appengine/v1/appengine_pb.rb +33 -186
  4. data/lib/google/appengine/v1/application_pb.rb +25 -45
  5. data/lib/google/appengine/v1/audit_data_pb.rb +25 -13
  6. data/lib/google/appengine/v1/certificate_pb.rb +25 -29
  7. data/lib/google/appengine/v1/deploy_pb.rb +25 -23
  8. data/lib/google/appengine/v1/deployed_files_pb.rb +25 -2
  9. data/lib/google/appengine/v1/domain_mapping_pb.rb +24 -28
  10. data/lib/google/appengine/v1/domain_pb.rb +24 -5
  11. data/lib/google/appengine/v1/firewall_pb.rb +24 -12
  12. data/lib/google/appengine/v1/instance_pb.rb +25 -35
  13. data/lib/google/appengine/v1/location_pb.rb +24 -6
  14. data/lib/google/appengine/v1/network_settings_pb.rb +24 -10
  15. data/lib/google/appengine/v1/operation_pb.rb +25 -16
  16. data/lib/google/appengine/v1/service_pb.rb +25 -18
  17. data/lib/google/appengine/v1/version_pb.rb +28 -153
  18. data/lib/google/cloud/app_engine/v1/applications/client.rb +14 -3
  19. data/lib/google/cloud/app_engine/v1/applications/operations.rb +13 -2
  20. data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +89 -2
  21. data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +82 -5
  22. data/lib/google/cloud/app_engine/v1/applications/rest/service_stub.rb +4 -4
  23. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +14 -3
  24. data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +88 -2
  25. data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/service_stub.rb +5 -5
  26. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +14 -3
  27. data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +24 -2
  28. data/lib/google/cloud/app_engine/v1/authorized_domains/rest/service_stub.rb +1 -1
  29. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +14 -3
  30. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +13 -2
  31. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +109 -2
  32. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +82 -5
  33. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/service_stub.rb +5 -5
  34. data/lib/google/cloud/app_engine/v1/firewall/client.rb +14 -3
  35. data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +104 -2
  36. data/lib/google/cloud/app_engine/v1/firewall/rest/service_stub.rb +6 -6
  37. data/lib/google/cloud/app_engine/v1/instances/client.rb +14 -3
  38. data/lib/google/cloud/app_engine/v1/instances/operations.rb +13 -2
  39. data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +86 -2
  40. data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +82 -5
  41. data/lib/google/cloud/app_engine/v1/instances/rest/service_stub.rb +4 -4
  42. data/lib/google/cloud/app_engine/v1/services/client.rb +14 -3
  43. data/lib/google/cloud/app_engine/v1/services/operations.rb +13 -2
  44. data/lib/google/cloud/app_engine/v1/services/rest/client.rb +86 -2
  45. data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +82 -5
  46. data/lib/google/cloud/app_engine/v1/services/rest/service_stub.rb +4 -4
  47. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  48. data/lib/google/cloud/app_engine/v1/versions/client.rb +14 -3
  49. data/lib/google/cloud/app_engine/v1/versions/operations.rb +13 -2
  50. data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +109 -2
  51. data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +82 -5
  52. data/lib/google/cloud/app_engine/v1/versions/rest/service_stub.rb +5 -5
  53. data/proto_docs/google/api/client.rb +10 -1
  54. data/proto_docs/google/api/field_behavior.rb +14 -0
  55. data/proto_docs/google/protobuf/any.rb +7 -4
  56. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  57. 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
 
@@ -446,7 +521,9 @@ module Google
446
521
  class Configuration
447
522
  extend ::Gapic::Config
448
523
 
449
- config_attr :endpoint, "appengine.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
527
  config_attr :credentials, nil do |value|
451
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
529
  allowed.any? { |klass| klass === value }
@@ -567,7 +644,7 @@ module Google
567
644
 
568
645
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
646
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
647
+ query_string_params.to_h { |p| p.split "=", 2 }
571
648
  else
572
649
  {}
573
650
  end
@@ -605,7 +682,7 @@ module Google
605
682
 
606
683
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
684
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
685
+ query_string_params.to_h { |p| p.split "=", 2 }
609
686
  else
610
687
  {}
611
688
  end
@@ -643,7 +720,7 @@ module Google
643
720
 
644
721
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
722
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
723
+ query_string_params.to_h { |p| p.split "=", 2 }
647
724
  else
648
725
  {}
649
726
  end
@@ -681,7 +758,7 @@ module Google
681
758
 
682
759
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
760
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
761
+ query_string_params.to_h { |p| p.split "=", 2 }
685
762
  else
686
763
  {}
687
764
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_debug_instance_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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
 
@@ -620,7 +621,9 @@ module Google
620
621
  class Configuration
621
622
  extend ::Gapic::Config
622
623
 
623
- config_attr :endpoint, "appengine.googleapis.com", ::String
624
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
625
+
626
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
624
627
  config_attr :credentials, nil do |value|
625
628
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
626
629
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -655,6 +658,14 @@ module Google
655
658
  end
656
659
  end
657
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
+
658
669
  ##
659
670
  # Configuration RPC class for the Services API.
660
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
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "appengine.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
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
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -117,7 +117,7 @@ module Google
117
117
  credentials = @config.credentials
118
118
  # Use self-signed JWT if the endpoint is unchanged from default,
119
119
  # but only if the default endpoint does not have a region prefix.
120
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
120
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
121
121
  !@config.endpoint.split(".").first.include?("-")
122
122
  credentials ||= Credentials.default scope: @config.scope,
123
123
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -177,6 +177,26 @@ module Google
177
177
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::Service>]
178
178
  #
179
179
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
180
+ #
181
+ # @example Basic example
182
+ # require "google/cloud/app_engine/v1"
183
+ #
184
+ # # Create a client object. The client can be reused for multiple calls.
185
+ # client = Google::Cloud::AppEngine::V1::Services::Rest::Client.new
186
+ #
187
+ # # Create a request. To set request fields, pass in keyword arguments.
188
+ # request = Google::Cloud::AppEngine::V1::ListServicesRequest.new
189
+ #
190
+ # # Call the list_services method.
191
+ # result = client.list_services request
192
+ #
193
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
194
+ # # over elements, and API calls will be issued to fetch pages as needed.
195
+ # result.each do |item|
196
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::Service.
197
+ # p item
198
+ # end
199
+ #
180
200
  def list_services request, options = nil
181
201
  raise ::ArgumentError, "request must be provided" if request.nil?
182
202
 
@@ -240,6 +260,22 @@ module Google
240
260
  # @return [::Google::Cloud::AppEngine::V1::Service]
241
261
  #
242
262
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
263
+ #
264
+ # @example Basic example
265
+ # require "google/cloud/app_engine/v1"
266
+ #
267
+ # # Create a client object. The client can be reused for multiple calls.
268
+ # client = Google::Cloud::AppEngine::V1::Services::Rest::Client.new
269
+ #
270
+ # # Create a request. To set request fields, pass in keyword arguments.
271
+ # request = Google::Cloud::AppEngine::V1::GetServiceRequest.new
272
+ #
273
+ # # Call the get_service method.
274
+ # result = client.get_service request
275
+ #
276
+ # # The returned object is of type Google::Cloud::AppEngine::V1::Service.
277
+ # p result
278
+ #
243
279
  def get_service request, options = nil
244
280
  raise ::ArgumentError, "request must be provided" if request.nil?
245
281
 
@@ -320,6 +356,29 @@ module Google
320
356
  # @return [::Gapic::Operation]
321
357
  #
322
358
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
359
+ #
360
+ # @example Basic example
361
+ # require "google/cloud/app_engine/v1"
362
+ #
363
+ # # Create a client object. The client can be reused for multiple calls.
364
+ # client = Google::Cloud::AppEngine::V1::Services::Rest::Client.new
365
+ #
366
+ # # Create a request. To set request fields, pass in keyword arguments.
367
+ # request = Google::Cloud::AppEngine::V1::UpdateServiceRequest.new
368
+ #
369
+ # # Call the update_service method.
370
+ # result = client.update_service request
371
+ #
372
+ # # The returned object is of type Gapic::Operation. You can use it to
373
+ # # check the status of an operation, cancel it, or wait for results.
374
+ # # Here is how to wait for a response.
375
+ # result.wait_until_done! timeout: 60
376
+ # if result.response?
377
+ # p result.response
378
+ # else
379
+ # puts "No response received."
380
+ # end
381
+ #
323
382
  def update_service request, options = nil
324
383
  raise ::ArgumentError, "request must be provided" if request.nil?
325
384
 
@@ -383,6 +442,29 @@ module Google
383
442
  # @return [::Gapic::Operation]
384
443
  #
385
444
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
445
+ #
446
+ # @example Basic example
447
+ # require "google/cloud/app_engine/v1"
448
+ #
449
+ # # Create a client object. The client can be reused for multiple calls.
450
+ # client = Google::Cloud::AppEngine::V1::Services::Rest::Client.new
451
+ #
452
+ # # Create a request. To set request fields, pass in keyword arguments.
453
+ # request = Google::Cloud::AppEngine::V1::DeleteServiceRequest.new
454
+ #
455
+ # # Call the delete_service method.
456
+ # result = client.delete_service request
457
+ #
458
+ # # The returned object is of type Gapic::Operation. You can use it to
459
+ # # check the status of an operation, cancel it, or wait for results.
460
+ # # Here is how to wait for a response.
461
+ # result.wait_until_done! timeout: 60
462
+ # if result.response?
463
+ # p result.response
464
+ # else
465
+ # puts "No response received."
466
+ # end
467
+ #
386
468
  def delete_service request, options = nil
387
469
  raise ::ArgumentError, "request must be provided" if request.nil?
388
470
 
@@ -492,7 +574,9 @@ module Google
492
574
  class Configuration
493
575
  extend ::Gapic::Config
494
576
 
495
- config_attr :endpoint, "appengine.googleapis.com", ::String
577
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
578
+
579
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
496
580
  config_attr :credentials, nil do |value|
497
581
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
498
582
  allowed.any? { |klass| klass === value }
@@ -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
 
@@ -446,7 +521,9 @@ module Google
446
521
  class Configuration
447
522
  extend ::Gapic::Config
448
523
 
449
- config_attr :endpoint, "appengine.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
527
  config_attr :credentials, nil do |value|
451
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
529
  allowed.any? { |klass| klass === value }
@@ -567,7 +644,7 @@ module Google
567
644
 
568
645
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
646
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
647
+ query_string_params.to_h { |p| p.split "=", 2 }
571
648
  else
572
649
  {}
573
650
  end
@@ -605,7 +682,7 @@ module Google
605
682
 
606
683
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
684
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
685
+ query_string_params.to_h { |p| p.split "=", 2 }
609
686
  else
610
687
  {}
611
688
  end
@@ -643,7 +720,7 @@ module Google
643
720
 
644
721
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
722
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
723
+ query_string_params.to_h { |p| p.split "=", 2 }
647
724
  else
648
725
  {}
649
726
  end
@@ -681,7 +758,7 @@ module Google
681
758
 
682
759
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
760
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
761
+ query_string_params.to_h { |p| p.split "=", 2 }
685
762
  else
686
763
  {}
687
764
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_services_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_service_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_update_service_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_service_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AppEngine
23
23
  module V1
24
- VERSION = "0.6.1"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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
 
@@ -748,7 +749,9 @@ module Google
748
749
  class Configuration
749
750
  extend ::Gapic::Config
750
751
 
751
- config_attr :endpoint, "appengine.googleapis.com", ::String
752
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
753
+
754
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
752
755
  config_attr :credentials, nil do |value|
753
756
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
754
757
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -783,6 +786,14 @@ module Google
783
786
  end
784
787
  end
785
788
 
789
+ ##
790
+ # Configuration for the channel pool
791
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
792
+ #
793
+ def channel_pool
794
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
795
+ end
796
+
786
797
  ##
787
798
  # Configuration RPC class for the Versions API.
788
799
  #
@@ -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
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "appengine.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
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
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #