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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/app_engine/v1/applications/client.rb +10 -1
  3. data/lib/google/cloud/app_engine/v1/applications/operations.rb +10 -1
  4. data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +85 -0
  5. data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +75 -0
  6. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +10 -1
  7. data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +84 -0
  8. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +10 -1
  9. data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +20 -0
  10. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +10 -1
  11. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +10 -1
  12. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +105 -0
  13. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +75 -0
  14. data/lib/google/cloud/app_engine/v1/firewall/client.rb +10 -1
  15. data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +100 -0
  16. data/lib/google/cloud/app_engine/v1/instances/client.rb +10 -1
  17. data/lib/google/cloud/app_engine/v1/instances/operations.rb +10 -1
  18. data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +82 -0
  19. data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +75 -0
  20. data/lib/google/cloud/app_engine/v1/services/client.rb +10 -1
  21. data/lib/google/cloud/app_engine/v1/services/operations.rb +10 -1
  22. data/lib/google/cloud/app_engine/v1/services/rest/client.rb +82 -0
  23. data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +75 -0
  24. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  25. data/lib/google/cloud/app_engine/v1/versions/client.rb +10 -1
  26. data/lib/google/cloud/app_engine/v1/versions/operations.rb +10 -1
  27. data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +105 -0
  28. data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +75 -0
  29. data/proto_docs/google/api/field_behavior.rb +14 -0
  30. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66f072f01a79264f1e1f96f7d428bf153cf562ac84c61169a375161929fd5ccd
4
- data.tar.gz: e176d96c73cecd0feedc987ded2af026b1c9a5b44c833842a98ea6c8f602776f
3
+ metadata.gz: 419e1aa90b2d31836068cf95386f9e124ab6b03d90d0ee4d5dd21f8a88a7d8d5
4
+ data.tar.gz: d0167cd909ae805940c02f54a008147e075bd0cecee3501d245d031aa7264693
5
5
  SHA512:
6
- metadata.gz: 2c5d15943af22e4609e21d3113a447caddd9fa53e0afce213b15f5516d77dece2362292f375122dc28df2ff98d87c0c0cd84f6d070324741d3e10233ffe8e17e
7
- data.tar.gz: 6a5932942ee6d7b9ff6cb6debda61c7c43488d26e0463730be8212482edd3fa781e5cd7c8aa1ab31149fe0a5fe4f63fbc270ca331c2697950e0e69039387e09c
6
+ metadata.gz: 168697e7afc7ac9e504538cffba18ac6c8a010fd84d92b3cabddece30101f9283d69e48b267d23489107bfd3a51778ad330ebc783fa45fc0dbc804761a193227
7
+ data.tar.gz: de14367fd1d9ecec5df5fd6a734d523dcd47b6209087e4cf885e36b6eb6e0c937c4efac220abc97e6abbb40a8a94dd13e50d8c54392cba6f99127a1b2009bbfb
@@ -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
 
@@ -654,6 +655,14 @@ module Google
654
655
  end
655
656
  end
656
657
 
658
+ ##
659
+ # Configuration for the channel pool
660
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
661
+ #
662
+ def channel_pool
663
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
664
+ end
665
+
657
666
  ##
658
667
  # Configuration RPC class for the Applications API.
659
668
  #
@@ -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
  #
@@ -173,6 +173,22 @@ module Google
173
173
  # @return [::Google::Cloud::AppEngine::V1::Application]
174
174
  #
175
175
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
176
+ #
177
+ # @example Basic example
178
+ # require "google/cloud/app_engine/v1"
179
+ #
180
+ # # Create a client object. The client can be reused for multiple calls.
181
+ # client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
182
+ #
183
+ # # Create a request. To set request fields, pass in keyword arguments.
184
+ # request = Google::Cloud::AppEngine::V1::GetApplicationRequest.new
185
+ #
186
+ # # Call the get_application method.
187
+ # result = client.get_application request
188
+ #
189
+ # # The returned object is of type Google::Cloud::AppEngine::V1::Application.
190
+ # p result
191
+ #
176
192
  def get_application request, options = nil
177
193
  raise ::ArgumentError, "request must be provided" if request.nil?
178
194
 
@@ -241,6 +257,29 @@ module Google
241
257
  # @return [::Gapic::Operation]
242
258
  #
243
259
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
260
+ #
261
+ # @example Basic example
262
+ # require "google/cloud/app_engine/v1"
263
+ #
264
+ # # Create a client object. The client can be reused for multiple calls.
265
+ # client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
266
+ #
267
+ # # Create a request. To set request fields, pass in keyword arguments.
268
+ # request = Google::Cloud::AppEngine::V1::CreateApplicationRequest.new
269
+ #
270
+ # # Call the create_application method.
271
+ # result = client.create_application request
272
+ #
273
+ # # The returned object is of type Gapic::Operation. You can use it to
274
+ # # check the status of an operation, cancel it, or wait for results.
275
+ # # Here is how to wait for a response.
276
+ # result.wait_until_done! timeout: 60
277
+ # if result.response?
278
+ # p result.response
279
+ # else
280
+ # puts "No response received."
281
+ # end
282
+ #
244
283
  def create_application request, options = nil
245
284
  raise ::ArgumentError, "request must be provided" if request.nil?
246
285
 
@@ -313,6 +352,29 @@ module Google
313
352
  # @return [::Gapic::Operation]
314
353
  #
315
354
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
355
+ #
356
+ # @example Basic example
357
+ # require "google/cloud/app_engine/v1"
358
+ #
359
+ # # Create a client object. The client can be reused for multiple calls.
360
+ # client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
361
+ #
362
+ # # Create a request. To set request fields, pass in keyword arguments.
363
+ # request = Google::Cloud::AppEngine::V1::UpdateApplicationRequest.new
364
+ #
365
+ # # Call the update_application method.
366
+ # result = client.update_application request
367
+ #
368
+ # # The returned object is of type Gapic::Operation. You can use it to
369
+ # # check the status of an operation, cancel it, or wait for results.
370
+ # # Here is how to wait for a response.
371
+ # result.wait_until_done! timeout: 60
372
+ # if result.response?
373
+ # p result.response
374
+ # else
375
+ # puts "No response received."
376
+ # end
377
+ #
316
378
  def update_application request, options = nil
317
379
  raise ::ArgumentError, "request must be provided" if request.nil?
318
380
 
@@ -385,6 +447,29 @@ module Google
385
447
  # @return [::Gapic::Operation]
386
448
  #
387
449
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
450
+ #
451
+ # @example Basic example
452
+ # require "google/cloud/app_engine/v1"
453
+ #
454
+ # # Create a client object. The client can be reused for multiple calls.
455
+ # client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
456
+ #
457
+ # # Create a request. To set request fields, pass in keyword arguments.
458
+ # request = Google::Cloud::AppEngine::V1::RepairApplicationRequest.new
459
+ #
460
+ # # Call the repair_application method.
461
+ # result = client.repair_application request
462
+ #
463
+ # # The returned object is of type Gapic::Operation. You can use it to
464
+ # # check the status of an operation, cancel it, or wait for results.
465
+ # # Here is how to wait for a response.
466
+ # result.wait_until_done! timeout: 60
467
+ # if result.response?
468
+ # p result.response
469
+ # else
470
+ # puts "No response received."
471
+ # end
472
+ #
388
473
  def repair_application request, options = nil
389
474
  raise ::ArgumentError, "request must be provided" if request.nil?
390
475
 
@@ -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
 
@@ -137,7 +137,8 @@ module Google
137
137
  credentials: credentials,
138
138
  endpoint: @config.endpoint,
139
139
  channel_args: @config.channel_args,
140
- interceptors: @config.interceptors
140
+ interceptors: @config.interceptors,
141
+ channel_pool_config: @config.channel_pool
141
142
  )
142
143
  end
143
144
 
@@ -715,6 +716,14 @@ module Google
715
716
  end
716
717
  end
717
718
 
719
+ ##
720
+ # Configuration for the channel pool
721
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
722
+ #
723
+ def channel_pool
724
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
725
+ end
726
+
718
727
  ##
719
728
  # Configuration RPC class for the AuthorizedCertificates API.
720
729
  #
@@ -167,6 +167,26 @@ module Google
167
167
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::AuthorizedCertificate>]
168
168
  #
169
169
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
170
+ #
171
+ # @example Basic example
172
+ # require "google/cloud/app_engine/v1"
173
+ #
174
+ # # Create a client object. The client can be reused for multiple calls.
175
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
176
+ #
177
+ # # Create a request. To set request fields, pass in keyword arguments.
178
+ # request = Google::Cloud::AppEngine::V1::ListAuthorizedCertificatesRequest.new
179
+ #
180
+ # # Call the list_authorized_certificates method.
181
+ # result = client.list_authorized_certificates request
182
+ #
183
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
184
+ # # over elements, and API calls will be issued to fetch pages as needed.
185
+ # result.each do |item|
186
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedCertificate.
187
+ # p item
188
+ # end
189
+ #
170
190
  def list_authorized_certificates request, options = nil
171
191
  raise ::ArgumentError, "request must be provided" if request.nil?
172
192
 
@@ -233,6 +253,22 @@ module Google
233
253
  # @return [::Google::Cloud::AppEngine::V1::AuthorizedCertificate]
234
254
  #
235
255
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
256
+ #
257
+ # @example Basic example
258
+ # require "google/cloud/app_engine/v1"
259
+ #
260
+ # # Create a client object. The client can be reused for multiple calls.
261
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
262
+ #
263
+ # # Create a request. To set request fields, pass in keyword arguments.
264
+ # request = Google::Cloud::AppEngine::V1::GetAuthorizedCertificateRequest.new
265
+ #
266
+ # # Call the get_authorized_certificate method.
267
+ # result = client.get_authorized_certificate request
268
+ #
269
+ # # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
270
+ # p result
271
+ #
236
272
  def get_authorized_certificate request, options = nil
237
273
  raise ::ArgumentError, "request must be provided" if request.nil?
238
274
 
@@ -297,6 +333,22 @@ module Google
297
333
  # @return [::Google::Cloud::AppEngine::V1::AuthorizedCertificate]
298
334
  #
299
335
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
336
+ #
337
+ # @example Basic example
338
+ # require "google/cloud/app_engine/v1"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Cloud::AppEngine::V1::CreateAuthorizedCertificateRequest.new
345
+ #
346
+ # # Call the create_authorized_certificate method.
347
+ # result = client.create_authorized_certificate request
348
+ #
349
+ # # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
350
+ # p result
351
+ #
300
352
  def create_authorized_certificate request, options = nil
301
353
  raise ::ArgumentError, "request must be provided" if request.nil?
302
354
 
@@ -370,6 +422,22 @@ module Google
370
422
  # @return [::Google::Cloud::AppEngine::V1::AuthorizedCertificate]
371
423
  #
372
424
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
425
+ #
426
+ # @example Basic example
427
+ # require "google/cloud/app_engine/v1"
428
+ #
429
+ # # Create a client object. The client can be reused for multiple calls.
430
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
431
+ #
432
+ # # Create a request. To set request fields, pass in keyword arguments.
433
+ # request = Google::Cloud::AppEngine::V1::UpdateAuthorizedCertificateRequest.new
434
+ #
435
+ # # Call the update_authorized_certificate method.
436
+ # result = client.update_authorized_certificate request
437
+ #
438
+ # # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
439
+ # p result
440
+ #
373
441
  def update_authorized_certificate request, options = nil
374
442
  raise ::ArgumentError, "request must be provided" if request.nil?
375
443
 
@@ -433,6 +501,22 @@ module Google
433
501
  # @return [::Google::Protobuf::Empty]
434
502
  #
435
503
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
504
+ #
505
+ # @example Basic example
506
+ # require "google/cloud/app_engine/v1"
507
+ #
508
+ # # Create a client object. The client can be reused for multiple calls.
509
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
510
+ #
511
+ # # Create a request. To set request fields, pass in keyword arguments.
512
+ # request = Google::Cloud::AppEngine::V1::DeleteAuthorizedCertificateRequest.new
513
+ #
514
+ # # Call the delete_authorized_certificate method.
515
+ # result = client.delete_authorized_certificate request
516
+ #
517
+ # # The returned object is of type Google::Protobuf::Empty.
518
+ # p result
519
+ #
436
520
  def delete_authorized_certificate request, options = nil
437
521
  raise ::ArgumentError, "request must be provided" if request.nil?
438
522
 
@@ -138,7 +138,8 @@ module Google
138
138
  credentials: credentials,
139
139
  endpoint: @config.endpoint,
140
140
  channel_args: @config.channel_args,
141
- interceptors: @config.interceptors
141
+ interceptors: @config.interceptors,
142
+ channel_pool_config: @config.channel_pool
142
143
  )
143
144
  end
144
145
 
@@ -357,6 +358,14 @@ module Google
357
358
  end
358
359
  end
359
360
 
361
+ ##
362
+ # Configuration for the channel pool
363
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
364
+ #
365
+ def channel_pool
366
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
367
+ end
368
+
360
369
  ##
361
370
  # Configuration RPC class for the AuthorizedDomains API.
362
371
  #
@@ -166,6 +166,26 @@ module Google
166
166
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::AuthorizedDomain>]
167
167
  #
168
168
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
169
+ #
170
+ # @example Basic example
171
+ # require "google/cloud/app_engine/v1"
172
+ #
173
+ # # Create a client object. The client can be reused for multiple calls.
174
+ # client = Google::Cloud::AppEngine::V1::AuthorizedDomains::Rest::Client.new
175
+ #
176
+ # # Create a request. To set request fields, pass in keyword arguments.
177
+ # request = Google::Cloud::AppEngine::V1::ListAuthorizedDomainsRequest.new
178
+ #
179
+ # # Call the list_authorized_domains method.
180
+ # result = client.list_authorized_domains request
181
+ #
182
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
183
+ # # over elements, and API calls will be issued to fetch pages as needed.
184
+ # result.each do |item|
185
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedDomain.
186
+ # p item
187
+ # end
188
+ #
169
189
  def list_authorized_domains request, options = nil
170
190
  raise ::ArgumentError, "request must be provided" if request.nil?
171
191
 
@@ -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
 
@@ -752,6 +753,14 @@ module Google
752
753
  end
753
754
  end
754
755
 
756
+ ##
757
+ # Configuration for the channel pool
758
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
759
+ #
760
+ def channel_pool
761
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
762
+ end
763
+
755
764
  ##
756
765
  # Configuration RPC class for the DomainMappings API.
757
766
  #
@@ -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
  #
@@ -177,6 +177,26 @@ module Google
177
177
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::DomainMapping>]
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::DomainMappings::Rest::Client.new
186
+ #
187
+ # # Create a request. To set request fields, pass in keyword arguments.
188
+ # request = Google::Cloud::AppEngine::V1::ListDomainMappingsRequest.new
189
+ #
190
+ # # Call the list_domain_mappings method.
191
+ # result = client.list_domain_mappings 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::DomainMapping.
197
+ # p item
198
+ # end
199
+ #
180
200
  def list_domain_mappings request, options = nil
181
201
  raise ::ArgumentError, "request must be provided" if request.nil?
182
202
 
@@ -241,6 +261,22 @@ module Google
241
261
  # @return [::Google::Cloud::AppEngine::V1::DomainMapping]
242
262
  #
243
263
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
264
+ #
265
+ # @example Basic example
266
+ # require "google/cloud/app_engine/v1"
267
+ #
268
+ # # Create a client object. The client can be reused for multiple calls.
269
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
270
+ #
271
+ # # Create a request. To set request fields, pass in keyword arguments.
272
+ # request = Google::Cloud::AppEngine::V1::GetDomainMappingRequest.new
273
+ #
274
+ # # Call the get_domain_mapping method.
275
+ # result = client.get_domain_mapping request
276
+ #
277
+ # # The returned object is of type Google::Cloud::AppEngine::V1::DomainMapping.
278
+ # p result
279
+ #
244
280
  def get_domain_mapping request, options = nil
245
281
  raise ::ArgumentError, "request must be provided" if request.nil?
246
282
 
@@ -310,6 +346,29 @@ module Google
310
346
  # @return [::Gapic::Operation]
311
347
  #
312
348
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
349
+ #
350
+ # @example Basic example
351
+ # require "google/cloud/app_engine/v1"
352
+ #
353
+ # # Create a client object. The client can be reused for multiple calls.
354
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
355
+ #
356
+ # # Create a request. To set request fields, pass in keyword arguments.
357
+ # request = Google::Cloud::AppEngine::V1::CreateDomainMappingRequest.new
358
+ #
359
+ # # Call the create_domain_mapping method.
360
+ # result = client.create_domain_mapping request
361
+ #
362
+ # # The returned object is of type Gapic::Operation. You can use it to
363
+ # # check the status of an operation, cancel it, or wait for results.
364
+ # # Here is how to wait for a response.
365
+ # result.wait_until_done! timeout: 60
366
+ # if result.response?
367
+ # p result.response
368
+ # else
369
+ # puts "No response received."
370
+ # end
371
+ #
313
372
  def create_domain_mapping request, options = nil
314
373
  raise ::ArgumentError, "request must be provided" if request.nil?
315
374
 
@@ -382,6 +441,29 @@ module Google
382
441
  # @return [::Gapic::Operation]
383
442
  #
384
443
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
444
+ #
445
+ # @example Basic example
446
+ # require "google/cloud/app_engine/v1"
447
+ #
448
+ # # Create a client object. The client can be reused for multiple calls.
449
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
450
+ #
451
+ # # Create a request. To set request fields, pass in keyword arguments.
452
+ # request = Google::Cloud::AppEngine::V1::UpdateDomainMappingRequest.new
453
+ #
454
+ # # Call the update_domain_mapping method.
455
+ # result = client.update_domain_mapping request
456
+ #
457
+ # # The returned object is of type Gapic::Operation. You can use it to
458
+ # # check the status of an operation, cancel it, or wait for results.
459
+ # # Here is how to wait for a response.
460
+ # result.wait_until_done! timeout: 60
461
+ # if result.response?
462
+ # p result.response
463
+ # else
464
+ # puts "No response received."
465
+ # end
466
+ #
385
467
  def update_domain_mapping request, options = nil
386
468
  raise ::ArgumentError, "request must be provided" if request.nil?
387
469
 
@@ -448,6 +530,29 @@ module Google
448
530
  # @return [::Gapic::Operation]
449
531
  #
450
532
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
533
+ #
534
+ # @example Basic example
535
+ # require "google/cloud/app_engine/v1"
536
+ #
537
+ # # Create a client object. The client can be reused for multiple calls.
538
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
539
+ #
540
+ # # Create a request. To set request fields, pass in keyword arguments.
541
+ # request = Google::Cloud::AppEngine::V1::DeleteDomainMappingRequest.new
542
+ #
543
+ # # Call the delete_domain_mapping method.
544
+ # result = client.delete_domain_mapping request
545
+ #
546
+ # # The returned object is of type Gapic::Operation. You can use it to
547
+ # # check the status of an operation, cancel it, or wait for results.
548
+ # # Here is how to wait for a response.
549
+ # result.wait_until_done! timeout: 60
550
+ # if result.response?
551
+ # p result.response
552
+ # else
553
+ # puts "No response received."
554
+ # end
555
+ #
451
556
  def delete_domain_mapping request, options = nil
452
557
  raise ::ArgumentError, "request must be provided" if request.nil?
453
558