google-cloud-app_engine-v1 0.3.3 → 0.3.4

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 (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
@@ -178,6 +178,27 @@ module Google
178
178
  #
179
179
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
180
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::AuthorizedCertificates::Client.new
186
+ #
187
+ # # Create a request. To set request fields, pass in keyword arguments.
188
+ # request = Google::Cloud::AppEngine::V1::ListAuthorizedCertificatesRequest.new
189
+ #
190
+ # # Call the list_authorized_certificates method.
191
+ # result = client.list_authorized_certificates request
192
+ #
193
+ # # The returned object is of type Gapic::PagedEnumerable. You can
194
+ # # iterate over all elements by calling #each, and the enumerable
195
+ # # will lazily make API calls to fetch subsequent pages. Other
196
+ # # methods are also available for managing paging directly.
197
+ # result.each do |response|
198
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedCertificate.
199
+ # p response
200
+ # end
201
+ #
181
202
  def list_authorized_certificates request, options = nil
182
203
  raise ::ArgumentError, "request must be provided" if request.nil?
183
204
 
@@ -195,9 +216,11 @@ module Google
195
216
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
196
217
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
197
218
 
198
- header_params = {
199
- "parent" => request.parent
200
- }
219
+ header_params = {}
220
+ if request.parent
221
+ header_params["parent"] = request.parent
222
+ end
223
+
201
224
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
202
225
  metadata[:"x-goog-request-params"] ||= request_params_header
203
226
 
@@ -250,6 +273,21 @@ module Google
250
273
  #
251
274
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
252
275
  #
276
+ # @example Basic example
277
+ # require "google/cloud/app_engine/v1"
278
+ #
279
+ # # Create a client object. The client can be reused for multiple calls.
280
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
281
+ #
282
+ # # Create a request. To set request fields, pass in keyword arguments.
283
+ # request = Google::Cloud::AppEngine::V1::GetAuthorizedCertificateRequest.new
284
+ #
285
+ # # Call the get_authorized_certificate method.
286
+ # result = client.get_authorized_certificate request
287
+ #
288
+ # # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
289
+ # p result
290
+ #
253
291
  def get_authorized_certificate request, options = nil
254
292
  raise ::ArgumentError, "request must be provided" if request.nil?
255
293
 
@@ -267,9 +305,11 @@ module Google
267
305
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
268
306
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
307
 
270
- header_params = {
271
- "name" => request.name
272
- }
308
+ header_params = {}
309
+ if request.name
310
+ header_params["name"] = request.name
311
+ end
312
+
273
313
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
274
314
  metadata[:"x-goog-request-params"] ||= request_params_header
275
315
 
@@ -320,6 +360,21 @@ module Google
320
360
  #
321
361
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
322
362
  #
363
+ # @example Basic example
364
+ # require "google/cloud/app_engine/v1"
365
+ #
366
+ # # Create a client object. The client can be reused for multiple calls.
367
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
368
+ #
369
+ # # Create a request. To set request fields, pass in keyword arguments.
370
+ # request = Google::Cloud::AppEngine::V1::CreateAuthorizedCertificateRequest.new
371
+ #
372
+ # # Call the create_authorized_certificate method.
373
+ # result = client.create_authorized_certificate request
374
+ #
375
+ # # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
376
+ # p result
377
+ #
323
378
  def create_authorized_certificate request, options = nil
324
379
  raise ::ArgumentError, "request must be provided" if request.nil?
325
380
 
@@ -337,9 +392,11 @@ module Google
337
392
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
338
393
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
339
394
 
340
- header_params = {
341
- "parent" => request.parent
342
- }
395
+ header_params = {}
396
+ if request.parent
397
+ header_params["parent"] = request.parent
398
+ end
399
+
343
400
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
344
401
  metadata[:"x-goog-request-params"] ||= request_params_header
345
402
 
@@ -399,6 +456,21 @@ module Google
399
456
  #
400
457
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
401
458
  #
459
+ # @example Basic example
460
+ # require "google/cloud/app_engine/v1"
461
+ #
462
+ # # Create a client object. The client can be reused for multiple calls.
463
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
464
+ #
465
+ # # Create a request. To set request fields, pass in keyword arguments.
466
+ # request = Google::Cloud::AppEngine::V1::UpdateAuthorizedCertificateRequest.new
467
+ #
468
+ # # Call the update_authorized_certificate method.
469
+ # result = client.update_authorized_certificate request
470
+ #
471
+ # # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
472
+ # p result
473
+ #
402
474
  def update_authorized_certificate request, options = nil
403
475
  raise ::ArgumentError, "request must be provided" if request.nil?
404
476
 
@@ -416,9 +488,11 @@ module Google
416
488
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
417
489
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
490
 
419
- header_params = {
420
- "name" => request.name
421
- }
491
+ header_params = {}
492
+ if request.name
493
+ header_params["name"] = request.name
494
+ end
495
+
422
496
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
423
497
  metadata[:"x-goog-request-params"] ||= request_params_header
424
498
 
@@ -468,6 +542,21 @@ module Google
468
542
  #
469
543
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
470
544
  #
545
+ # @example Basic example
546
+ # require "google/cloud/app_engine/v1"
547
+ #
548
+ # # Create a client object. The client can be reused for multiple calls.
549
+ # client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
550
+ #
551
+ # # Create a request. To set request fields, pass in keyword arguments.
552
+ # request = Google::Cloud::AppEngine::V1::DeleteAuthorizedCertificateRequest.new
553
+ #
554
+ # # Call the delete_authorized_certificate method.
555
+ # result = client.delete_authorized_certificate request
556
+ #
557
+ # # The returned object is of type Google::Protobuf::Empty.
558
+ # p result
559
+ #
471
560
  def delete_authorized_certificate request, options = nil
472
561
  raise ::ArgumentError, "request must be provided" if request.nil?
473
562
 
@@ -485,9 +574,11 @@ module Google
485
574
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
486
575
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
487
576
 
488
- header_params = {
489
- "name" => request.name
490
- }
577
+ header_params = {}
578
+ if request.name
579
+ header_params["name"] = request.name
580
+ end
581
+
491
582
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
492
583
  metadata[:"x-goog-request-params"] ||= request_params_header
493
584
 
@@ -177,6 +177,27 @@ module Google
177
177
  #
178
178
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
179
179
  #
180
+ # @example Basic example
181
+ # require "google/cloud/app_engine/v1"
182
+ #
183
+ # # Create a client object. The client can be reused for multiple calls.
184
+ # client = Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new
185
+ #
186
+ # # Create a request. To set request fields, pass in keyword arguments.
187
+ # request = Google::Cloud::AppEngine::V1::ListAuthorizedDomainsRequest.new
188
+ #
189
+ # # Call the list_authorized_domains method.
190
+ # result = client.list_authorized_domains request
191
+ #
192
+ # # The returned object is of type Gapic::PagedEnumerable. You can
193
+ # # iterate over all elements by calling #each, and the enumerable
194
+ # # will lazily make API calls to fetch subsequent pages. Other
195
+ # # methods are also available for managing paging directly.
196
+ # result.each do |response|
197
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedDomain.
198
+ # p response
199
+ # end
200
+ #
180
201
  def list_authorized_domains request, options = nil
181
202
  raise ::ArgumentError, "request must be provided" if request.nil?
182
203
 
@@ -194,9 +215,11 @@ module Google
194
215
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
195
216
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
196
217
 
197
- header_params = {
198
- "parent" => request.parent
199
- }
218
+ header_params = {}
219
+ if request.parent
220
+ header_params["parent"] = request.parent
221
+ end
222
+
200
223
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
201
224
  metadata[:"x-goog-request-params"] ||= request_params_header
202
225
 
@@ -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::DomainMappings::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::AppEngine::V1::ListDomainMappingsRequest.new
198
+ #
199
+ # # Call the list_domain_mappings method.
200
+ # result = client.list_domain_mappings 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::DomainMapping.
208
+ # p response
209
+ # end
210
+ #
190
211
  def list_domain_mappings 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
 
@@ -257,6 +280,21 @@ module Google
257
280
  #
258
281
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
259
282
  #
283
+ # @example Basic example
284
+ # require "google/cloud/app_engine/v1"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::AppEngine::V1::GetDomainMappingRequest.new
291
+ #
292
+ # # Call the get_domain_mapping method.
293
+ # result = client.get_domain_mapping request
294
+ #
295
+ # # The returned object is of type Google::Cloud::AppEngine::V1::DomainMapping.
296
+ # p result
297
+ #
260
298
  def get_domain_mapping request, options = nil
261
299
  raise ::ArgumentError, "request must be provided" if request.nil?
262
300
 
@@ -274,9 +312,11 @@ module Google
274
312
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
275
313
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
276
314
 
277
- header_params = {
278
- "name" => request.name
279
- }
315
+ header_params = {}
316
+ if request.name
317
+ header_params["name"] = request.name
318
+ end
319
+
280
320
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
281
321
  metadata[:"x-goog-request-params"] ||= request_params_header
282
322
 
@@ -332,6 +372,28 @@ module Google
332
372
  #
333
373
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
334
374
  #
375
+ # @example Basic example
376
+ # require "google/cloud/app_engine/v1"
377
+ #
378
+ # # Create a client object. The client can be reused for multiple calls.
379
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
380
+ #
381
+ # # Create a request. To set request fields, pass in keyword arguments.
382
+ # request = Google::Cloud::AppEngine::V1::CreateDomainMappingRequest.new
383
+ #
384
+ # # Call the create_domain_mapping method.
385
+ # result = client.create_domain_mapping request
386
+ #
387
+ # # The returned object is of type Gapic::Operation. You can use this
388
+ # # object to check the status of an operation, cancel it, or wait
389
+ # # for results. Here is how to block until completion:
390
+ # result.wait_until_done! timeout: 60
391
+ # if result.response?
392
+ # p result.response
393
+ # else
394
+ # puts "Error!"
395
+ # end
396
+ #
335
397
  def create_domain_mapping request, options = nil
336
398
  raise ::ArgumentError, "request must be provided" if request.nil?
337
399
 
@@ -349,9 +411,11 @@ module Google
349
411
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
350
412
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
413
 
352
- header_params = {
353
- "parent" => request.parent
354
- }
414
+ header_params = {}
415
+ if request.parent
416
+ header_params["parent"] = request.parent
417
+ end
418
+
355
419
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
356
420
  metadata[:"x-goog-request-params"] ||= request_params_header
357
421
 
@@ -410,6 +474,28 @@ module Google
410
474
  #
411
475
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
412
476
  #
477
+ # @example Basic example
478
+ # require "google/cloud/app_engine/v1"
479
+ #
480
+ # # Create a client object. The client can be reused for multiple calls.
481
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
482
+ #
483
+ # # Create a request. To set request fields, pass in keyword arguments.
484
+ # request = Google::Cloud::AppEngine::V1::UpdateDomainMappingRequest.new
485
+ #
486
+ # # Call the update_domain_mapping method.
487
+ # result = client.update_domain_mapping request
488
+ #
489
+ # # The returned object is of type Gapic::Operation. You can use this
490
+ # # object to check the status of an operation, cancel it, or wait
491
+ # # for results. Here is how to block until completion:
492
+ # result.wait_until_done! timeout: 60
493
+ # if result.response?
494
+ # p result.response
495
+ # else
496
+ # puts "Error!"
497
+ # end
498
+ #
413
499
  def update_domain_mapping request, options = nil
414
500
  raise ::ArgumentError, "request must be provided" if request.nil?
415
501
 
@@ -427,9 +513,11 @@ module Google
427
513
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
428
514
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
515
 
430
- header_params = {
431
- "name" => request.name
432
- }
516
+ header_params = {}
517
+ if request.name
518
+ header_params["name"] = request.name
519
+ end
520
+
433
521
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
434
522
  metadata[:"x-goog-request-params"] ||= request_params_header
435
523
 
@@ -482,6 +570,28 @@ module Google
482
570
  #
483
571
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
484
572
  #
573
+ # @example Basic example
574
+ # require "google/cloud/app_engine/v1"
575
+ #
576
+ # # Create a client object. The client can be reused for multiple calls.
577
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
578
+ #
579
+ # # Create a request. To set request fields, pass in keyword arguments.
580
+ # request = Google::Cloud::AppEngine::V1::DeleteDomainMappingRequest.new
581
+ #
582
+ # # Call the delete_domain_mapping method.
583
+ # result = client.delete_domain_mapping request
584
+ #
585
+ # # The returned object is of type Gapic::Operation. You can use this
586
+ # # object to check the status of an operation, cancel it, or wait
587
+ # # for results. Here is how to block until completion:
588
+ # result.wait_until_done! timeout: 60
589
+ # if result.response?
590
+ # p result.response
591
+ # else
592
+ # puts "Error!"
593
+ # end
594
+ #
485
595
  def delete_domain_mapping request, options = nil
486
596
  raise ::ArgumentError, "request must be provided" if request.nil?
487
597
 
@@ -499,9 +609,11 @@ module Google
499
609
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
500
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
501
611
 
502
- header_params = {
503
- "name" => request.name
504
- }
612
+ header_params = {}
613
+ if request.name
614
+ header_params["name"] = request.name
615
+ end
616
+
505
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
506
618
  metadata[:"x-goog-request-params"] ||= request_params_header
507
619
 
@@ -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