google-cloud-app_engine-v1 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/appengine/v1/app_yaml_pb.rb +2 -2
  3. data/lib/google/appengine/v1/appengine_pb.rb +2 -2
  4. data/lib/google/appengine/v1/appengine_services_pb.rb +8 -8
  5. data/lib/google/appengine/v1/application_pb.rb +2 -2
  6. data/lib/google/appengine/v1/audit_data_pb.rb +2 -2
  7. data/lib/google/appengine/v1/certificate_pb.rb +2 -2
  8. data/lib/google/appengine/v1/deploy_pb.rb +2 -2
  9. data/lib/google/appengine/v1/deployed_files_pb.rb +1 -1
  10. data/lib/google/appengine/v1/domain_mapping_pb.rb +1 -1
  11. data/lib/google/appengine/v1/domain_pb.rb +1 -1
  12. data/lib/google/appengine/v1/firewall_pb.rb +1 -1
  13. data/lib/google/appengine/v1/instance_pb.rb +2 -2
  14. data/lib/google/appengine/v1/location_pb.rb +2 -2
  15. data/lib/google/appengine/v1/network_settings_pb.rb +1 -1
  16. data/lib/google/appengine/v1/operation_pb.rb +2 -2
  17. data/lib/google/appengine/v1/service_pb.rb +2 -2
  18. data/lib/google/appengine/v1/version_pb.rb +2 -2
  19. data/lib/google/cloud/app_engine/v1/applications/client.rb +96 -9
  20. data/lib/google/cloud/app_engine/v1/applications/operations.rb +115 -12
  21. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +106 -15
  22. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +26 -3
  23. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +127 -15
  24. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +115 -12
  25. data/lib/google/cloud/app_engine/v1/firewall/client.rb +126 -18
  26. data/lib/google/cloud/app_engine/v1/instances/client.rb +100 -12
  27. data/lib/google/cloud/app_engine/v1/instances/operations.rb +115 -12
  28. data/lib/google/cloud/app_engine/v1/services/client.rb +100 -12
  29. data/lib/google/cloud/app_engine/v1/services/operations.rb +115 -12
  30. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  31. data/lib/google/cloud/app_engine/v1/versions/client.rb +127 -15
  32. data/lib/google/cloud/app_engine/v1/versions/operations.rb +115 -12
  33. metadata +2 -2
@@ -187,6 +187,27 @@ module Google
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
189
189
  #
190
+ # @example Basic example
191
+ # require "google/cloud/app_engine/v1"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::AppEngine::V1::Services::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::AppEngine::V1::ListServicesRequest.new
198
+ #
199
+ # # Call the list_services method.
200
+ # result = client.list_services request
201
+ #
202
+ # # The returned object is of type Gapic::PagedEnumerable. You can
203
+ # # iterate over all elements by calling #each, and the enumerable
204
+ # # will lazily make API calls to fetch subsequent pages. Other
205
+ # # methods are also available for managing paging directly.
206
+ # result.each do |response|
207
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::Service.
208
+ # p response
209
+ # end
210
+ #
190
211
  def list_services request, options = nil
191
212
  raise ::ArgumentError, "request must be provided" if request.nil?
192
213
 
@@ -204,9 +225,11 @@ module Google
204
225
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
205
226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
206
227
 
207
- header_params = {
208
- "parent" => request.parent
209
- }
228
+ header_params = {}
229
+ if request.parent
230
+ header_params["parent"] = request.parent
231
+ end
232
+
210
233
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
211
234
  metadata[:"x-goog-request-params"] ||= request_params_header
212
235
 
@@ -256,6 +279,21 @@ module Google
256
279
  #
257
280
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
258
281
  #
282
+ # @example Basic example
283
+ # require "google/cloud/app_engine/v1"
284
+ #
285
+ # # Create a client object. The client can be reused for multiple calls.
286
+ # client = Google::Cloud::AppEngine::V1::Services::Client.new
287
+ #
288
+ # # Create a request. To set request fields, pass in keyword arguments.
289
+ # request = Google::Cloud::AppEngine::V1::GetServiceRequest.new
290
+ #
291
+ # # Call the get_service method.
292
+ # result = client.get_service request
293
+ #
294
+ # # The returned object is of type Google::Cloud::AppEngine::V1::Service.
295
+ # p result
296
+ #
259
297
  def get_service request, options = nil
260
298
  raise ::ArgumentError, "request must be provided" if request.nil?
261
299
 
@@ -273,9 +311,11 @@ module Google
273
311
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
274
312
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
313
 
276
- header_params = {
277
- "name" => request.name
278
- }
314
+ header_params = {}
315
+ if request.name
316
+ header_params["name"] = request.name
317
+ end
318
+
279
319
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
280
320
  metadata[:"x-goog-request-params"] ||= request_params_header
281
321
 
@@ -342,6 +382,28 @@ module Google
342
382
  #
343
383
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
344
384
  #
385
+ # @example Basic example
386
+ # require "google/cloud/app_engine/v1"
387
+ #
388
+ # # Create a client object. The client can be reused for multiple calls.
389
+ # client = Google::Cloud::AppEngine::V1::Services::Client.new
390
+ #
391
+ # # Create a request. To set request fields, pass in keyword arguments.
392
+ # request = Google::Cloud::AppEngine::V1::UpdateServiceRequest.new
393
+ #
394
+ # # Call the update_service method.
395
+ # result = client.update_service request
396
+ #
397
+ # # The returned object is of type Gapic::Operation. You can use this
398
+ # # object to check the status of an operation, cancel it, or wait
399
+ # # for results. Here is how to block until completion:
400
+ # result.wait_until_done! timeout: 60
401
+ # if result.response?
402
+ # p result.response
403
+ # else
404
+ # puts "Error!"
405
+ # end
406
+ #
345
407
  def update_service request, options = nil
346
408
  raise ::ArgumentError, "request must be provided" if request.nil?
347
409
 
@@ -359,9 +421,11 @@ module Google
359
421
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
360
422
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
423
 
362
- header_params = {
363
- "name" => request.name
364
- }
424
+ header_params = {}
425
+ if request.name
426
+ header_params["name"] = request.name
427
+ end
428
+
365
429
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
366
430
  metadata[:"x-goog-request-params"] ||= request_params_header
367
431
 
@@ -411,6 +475,28 @@ module Google
411
475
  #
412
476
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
413
477
  #
478
+ # @example Basic example
479
+ # require "google/cloud/app_engine/v1"
480
+ #
481
+ # # Create a client object. The client can be reused for multiple calls.
482
+ # client = Google::Cloud::AppEngine::V1::Services::Client.new
483
+ #
484
+ # # Create a request. To set request fields, pass in keyword arguments.
485
+ # request = Google::Cloud::AppEngine::V1::DeleteServiceRequest.new
486
+ #
487
+ # # Call the delete_service method.
488
+ # result = client.delete_service request
489
+ #
490
+ # # The returned object is of type Gapic::Operation. You can use this
491
+ # # object to check the status of an operation, cancel it, or wait
492
+ # # for results. Here is how to block until completion:
493
+ # result.wait_until_done! timeout: 60
494
+ # if result.response?
495
+ # p result.response
496
+ # else
497
+ # puts "Error!"
498
+ # end
499
+ #
414
500
  def delete_service request, options = nil
415
501
  raise ::ArgumentError, "request must be provided" if request.nil?
416
502
 
@@ -428,9 +514,11 @@ module Google
428
514
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
429
515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
516
 
431
- header_params = {
432
- "name" => request.name
433
- }
517
+ header_params = {}
518
+ if request.name
519
+ header_params["name"] = request.name
520
+ end
521
+
434
522
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
435
523
  metadata[:"x-goog-request-params"] ||= request_params_header
436
524
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AppEngine
23
23
  module V1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
@@ -190,6 +190,27 @@ module Google
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
192
192
  #
193
+ # @example Basic example
194
+ # require "google/cloud/app_engine/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::AppEngine::V1::Versions::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::AppEngine::V1::ListVersionsRequest.new
201
+ #
202
+ # # Call the list_versions method.
203
+ # result = client.list_versions request
204
+ #
205
+ # # The returned object is of type Gapic::PagedEnumerable. You can
206
+ # # iterate over all elements by calling #each, and the enumerable
207
+ # # will lazily make API calls to fetch subsequent pages. Other
208
+ # # methods are also available for managing paging directly.
209
+ # result.each do |response|
210
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::Version.
211
+ # p response
212
+ # end
213
+ #
193
214
  def list_versions request, options = nil
194
215
  raise ::ArgumentError, "request must be provided" if request.nil?
195
216
 
@@ -207,9 +228,11 @@ module Google
207
228
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
208
229
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
209
230
 
210
- header_params = {
211
- "parent" => request.parent
212
- }
231
+ header_params = {}
232
+ if request.parent
233
+ header_params["parent"] = request.parent
234
+ end
235
+
213
236
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
214
237
  metadata[:"x-goog-request-params"] ||= request_params_header
215
238
 
@@ -264,6 +287,21 @@ module Google
264
287
  #
265
288
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
266
289
  #
290
+ # @example Basic example
291
+ # require "google/cloud/app_engine/v1"
292
+ #
293
+ # # Create a client object. The client can be reused for multiple calls.
294
+ # client = Google::Cloud::AppEngine::V1::Versions::Client.new
295
+ #
296
+ # # Create a request. To set request fields, pass in keyword arguments.
297
+ # request = Google::Cloud::AppEngine::V1::GetVersionRequest.new
298
+ #
299
+ # # Call the get_version method.
300
+ # result = client.get_version request
301
+ #
302
+ # # The returned object is of type Google::Cloud::AppEngine::V1::Version.
303
+ # p result
304
+ #
267
305
  def get_version request, options = nil
268
306
  raise ::ArgumentError, "request must be provided" if request.nil?
269
307
 
@@ -281,9 +319,11 @@ module Google
281
319
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
282
320
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
321
 
284
- header_params = {
285
- "name" => request.name
286
- }
322
+ header_params = {}
323
+ if request.name
324
+ header_params["name"] = request.name
325
+ end
326
+
287
327
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
288
328
  metadata[:"x-goog-request-params"] ||= request_params_header
289
329
 
@@ -335,6 +375,28 @@ module Google
335
375
  #
336
376
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
337
377
  #
378
+ # @example Basic example
379
+ # require "google/cloud/app_engine/v1"
380
+ #
381
+ # # Create a client object. The client can be reused for multiple calls.
382
+ # client = Google::Cloud::AppEngine::V1::Versions::Client.new
383
+ #
384
+ # # Create a request. To set request fields, pass in keyword arguments.
385
+ # request = Google::Cloud::AppEngine::V1::CreateVersionRequest.new
386
+ #
387
+ # # Call the create_version method.
388
+ # result = client.create_version request
389
+ #
390
+ # # The returned object is of type Gapic::Operation. You can use this
391
+ # # object to check the status of an operation, cancel it, or wait
392
+ # # for results. Here is how to block until completion:
393
+ # result.wait_until_done! timeout: 60
394
+ # if result.response?
395
+ # p result.response
396
+ # else
397
+ # puts "Error!"
398
+ # end
399
+ #
338
400
  def create_version request, options = nil
339
401
  raise ::ArgumentError, "request must be provided" if request.nil?
340
402
 
@@ -352,9 +414,11 @@ module Google
352
414
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
353
415
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
416
 
355
- header_params = {
356
- "parent" => request.parent
357
- }
417
+ header_params = {}
418
+ if request.parent
419
+ header_params["parent"] = request.parent
420
+ end
421
+
358
422
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
359
423
  metadata[:"x-goog-request-params"] ||= request_params_header
360
424
 
@@ -445,6 +509,28 @@ module Google
445
509
  #
446
510
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
511
  #
512
+ # @example Basic example
513
+ # require "google/cloud/app_engine/v1"
514
+ #
515
+ # # Create a client object. The client can be reused for multiple calls.
516
+ # client = Google::Cloud::AppEngine::V1::Versions::Client.new
517
+ #
518
+ # # Create a request. To set request fields, pass in keyword arguments.
519
+ # request = Google::Cloud::AppEngine::V1::UpdateVersionRequest.new
520
+ #
521
+ # # Call the update_version method.
522
+ # result = client.update_version request
523
+ #
524
+ # # The returned object is of type Gapic::Operation. You can use this
525
+ # # object to check the status of an operation, cancel it, or wait
526
+ # # for results. Here is how to block until completion:
527
+ # result.wait_until_done! timeout: 60
528
+ # if result.response?
529
+ # p result.response
530
+ # else
531
+ # puts "Error!"
532
+ # end
533
+ #
448
534
  def update_version request, options = nil
449
535
  raise ::ArgumentError, "request must be provided" if request.nil?
450
536
 
@@ -462,9 +548,11 @@ module Google
462
548
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
463
549
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
464
550
 
465
- header_params = {
466
- "name" => request.name
467
- }
551
+ header_params = {}
552
+ if request.name
553
+ header_params["name"] = request.name
554
+ end
555
+
468
556
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
469
557
  metadata[:"x-goog-request-params"] ||= request_params_header
470
558
 
@@ -515,6 +603,28 @@ module Google
515
603
  #
516
604
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
517
605
  #
606
+ # @example Basic example
607
+ # require "google/cloud/app_engine/v1"
608
+ #
609
+ # # Create a client object. The client can be reused for multiple calls.
610
+ # client = Google::Cloud::AppEngine::V1::Versions::Client.new
611
+ #
612
+ # # Create a request. To set request fields, pass in keyword arguments.
613
+ # request = Google::Cloud::AppEngine::V1::DeleteVersionRequest.new
614
+ #
615
+ # # Call the delete_version method.
616
+ # result = client.delete_version request
617
+ #
618
+ # # The returned object is of type Gapic::Operation. You can use this
619
+ # # object to check the status of an operation, cancel it, or wait
620
+ # # for results. Here is how to block until completion:
621
+ # result.wait_until_done! timeout: 60
622
+ # if result.response?
623
+ # p result.response
624
+ # else
625
+ # puts "Error!"
626
+ # end
627
+ #
518
628
  def delete_version request, options = nil
519
629
  raise ::ArgumentError, "request must be provided" if request.nil?
520
630
 
@@ -532,9 +642,11 @@ module Google
532
642
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
533
643
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
644
 
535
- header_params = {
536
- "name" => request.name
537
- }
645
+ header_params = {}
646
+ if request.name
647
+ header_params["name"] = request.name
648
+ end
649
+
538
650
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
539
651
  metadata[:"x-goog-request-params"] ||= request_params_header
540
652