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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75db990aef798981b48a838937b7efadf8056d205100c13dcd090e9a2a240ed7
4
- data.tar.gz: 8e506a925ce59b3c03c0fda5b0ea4025bf6f2bcf242c7ff74f36900131c25ed0
3
+ metadata.gz: d8218681be9f825cd2d29ee40e92fce8f0517118f416d8b90c1ddf53d9538c92
4
+ data.tar.gz: 35037a1ccee5c76cfea2606670b7bba8fff1d8467b7d307a6e1cf11e0acf998e
5
5
  SHA512:
6
- metadata.gz: 27a0e34749bdf4d5379d1a3565721a649f6e0378c0a4b185a68c93c539a00c8bb7678c77d9380309e0f3fa6810aa8618f0ed6bfc46de9f4d3368bb1bdfa3257d
7
- data.tar.gz: 49510fcceee41312cedefaee9e298de35206fda344e960af6d031c0ea4898104bf2610b9e16914c1bc9d6f8c3af2cef254d62ea0ff58248859f9b8d0782ec381
6
+ metadata.gz: 2ec3ef56426903d69f7f5e8cdcabb344c931e82f6e09be441bd102247a6e9b57509aed773485dc404bafc9ffdeba41f11545ab9abace894b0d0b9b64dcf5ed44
7
+ data.tar.gz: c1a3f559079eade0cb2eba23f08e43d619f79751f8549dc4ac4775d297bef3bfb42981beb00c69bb0c749a8e5c184c4ca462dbaffed5c17f7a83f7793adfaea5
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/app_yaml.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/duration_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/app_yaml.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.ApiConfigHandler" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/appengine.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/appengine/v1/application_pb'
7
5
  require 'google/appengine/v1/certificate_pb'
8
6
  require 'google/appengine/v1/domain_pb'
@@ -16,6 +14,8 @@ require 'google/longrunning/operations_pb'
16
14
  require 'google/protobuf/empty_pb'
17
15
  require 'google/protobuf/field_mask_pb'
18
16
  require 'google/api/client_pb'
17
+ require 'google/protobuf'
18
+
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  add_file("google/appengine/v1/appengine.proto", :syntax => :proto3) do
21
21
  add_message "google.appengine.v1.GetApplicationRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Manages App Engine applications.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -68,7 +68,7 @@ module Google
68
68
  # Manages services of an application.
69
69
  class Service
70
70
 
71
- include GRPC::GenericService
71
+ include ::GRPC::GenericService
72
72
 
73
73
  self.marshal_class_method = :encode
74
74
  self.unmarshal_class_method = :decode
@@ -90,7 +90,7 @@ module Google
90
90
  # Manages versions of a service.
91
91
  class Service
92
92
 
93
- include GRPC::GenericService
93
+ include ::GRPC::GenericService
94
94
 
95
95
  self.marshal_class_method = :encode
96
96
  self.unmarshal_class_method = :decode
@@ -151,7 +151,7 @@ module Google
151
151
  # Manages instances of a version.
152
152
  class Service
153
153
 
154
- include GRPC::GenericService
154
+ include ::GRPC::GenericService
155
155
 
156
156
  self.marshal_class_method = :encode
157
157
  self.unmarshal_class_method = :decode
@@ -203,7 +203,7 @@ module Google
203
203
  # set to "allow" if not otherwise specified by the user.
204
204
  class Service
205
205
 
206
- include GRPC::GenericService
206
+ include ::GRPC::GenericService
207
207
 
208
208
  self.marshal_class_method = :encode
209
209
  self.unmarshal_class_method = :decode
@@ -235,7 +235,7 @@ module Google
235
235
  # [Webmaster Central](https://www.google.com/webmasters/verification/home).
236
236
  class Service
237
237
 
238
- include GRPC::GenericService
238
+ include ::GRPC::GenericService
239
239
 
240
240
  self.marshal_class_method = :encode
241
241
  self.unmarshal_class_method = :decode
@@ -252,7 +252,7 @@ module Google
252
252
  # administer any SSL certificates applicable to their authorized domains.
253
253
  class Service
254
254
 
255
- include GRPC::GenericService
255
+ include ::GRPC::GenericService
256
256
 
257
257
  self.marshal_class_method = :encode
258
258
  self.unmarshal_class_method = :decode
@@ -280,7 +280,7 @@ module Google
280
280
  # Manages domains serving an application.
281
281
  class Service
282
282
 
283
- include GRPC::GenericService
283
+ include ::GRPC::GenericService
284
284
 
285
285
  self.marshal_class_method = :encode
286
286
  self.unmarshal_class_method = :decode
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/application.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/duration_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/application.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.Application" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/audit_data.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/appengine/v1/appengine_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/audit_data.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.AuditData" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/certificate.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/timestamp_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/certificate.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.AuthorizedCertificate" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/deploy.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/duration_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/deploy.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.Deployment" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/deployed_files.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/appengine/v1/deployed_files.proto", :syntax => :proto3) do
9
9
  end
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/domain_mapping.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/appengine/v1/domain_mapping.proto", :syntax => :proto3) do
9
9
  add_message "google.appengine.v1.DomainMapping" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/domain.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/appengine/v1/domain.proto", :syntax => :proto3) do
9
9
  add_message "google.appengine.v1.AuthorizedDomain" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/firewall.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/appengine/v1/firewall.proto", :syntax => :proto3) do
9
9
  add_message "google.appengine.v1.FirewallRule" do
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/instance.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/timestamp_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/appengine/v1/instance.proto", :syntax => :proto3) do
12
12
  add_message "google.appengine.v1.Instance" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/location.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/location.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.LocationMetadata" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/network_settings.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/appengine/v1/network_settings.proto", :syntax => :proto3) do
9
9
  add_message "google.appengine.v1.NetworkSettings" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/operation.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/duration_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/appengine/v1/operation.proto", :syntax => :proto3) do
11
11
  add_message "google.appengine.v1.OperationMetadataV1" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/appengine/v1/network_settings_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/appengine/v1/service.proto", :syntax => :proto3) do
10
10
  add_message "google.appengine.v1.Service" do
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/appengine/v1/version.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/appengine/v1/app_yaml_pb'
7
5
  require 'google/appengine/v1/deploy_pb'
8
6
  require 'google/appengine/v1/network_settings_pb'
9
7
  require 'google/protobuf/duration_pb'
10
8
  require 'google/protobuf/timestamp_pb'
11
9
  require 'google/api/annotations_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/appengine/v1/version.proto", :syntax => :proto3) do
14
14
  add_message "google.appengine.v1.Version" do
@@ -183,6 +183,21 @@ module Google
183
183
  #
184
184
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
185
185
  #
186
+ # @example Basic example
187
+ # require "google/cloud/app_engine/v1"
188
+ #
189
+ # # Create a client object. The client can be reused for multiple calls.
190
+ # client = Google::Cloud::AppEngine::V1::Applications::Client.new
191
+ #
192
+ # # Create a request. To set request fields, pass in keyword arguments.
193
+ # request = Google::Cloud::AppEngine::V1::GetApplicationRequest.new
194
+ #
195
+ # # Call the get_application method.
196
+ # result = client.get_application request
197
+ #
198
+ # # The returned object is of type Google::Cloud::AppEngine::V1::Application.
199
+ # p result
200
+ #
186
201
  def get_application request, options = nil
187
202
  raise ::ArgumentError, "request must be provided" if request.nil?
188
203
 
@@ -200,9 +215,11 @@ module Google
200
215
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
201
216
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
202
217
 
203
- header_params = {
204
- "name" => request.name
205
- }
218
+ header_params = {}
219
+ if request.name
220
+ header_params["name"] = request.name
221
+ end
222
+
206
223
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
207
224
  metadata[:"x-goog-request-params"] ||= request_params_header
208
225
 
@@ -257,6 +274,28 @@ module Google
257
274
  #
258
275
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
259
276
  #
277
+ # @example Basic example
278
+ # require "google/cloud/app_engine/v1"
279
+ #
280
+ # # Create a client object. The client can be reused for multiple calls.
281
+ # client = Google::Cloud::AppEngine::V1::Applications::Client.new
282
+ #
283
+ # # Create a request. To set request fields, pass in keyword arguments.
284
+ # request = Google::Cloud::AppEngine::V1::CreateApplicationRequest.new
285
+ #
286
+ # # Call the create_application method.
287
+ # result = client.create_application request
288
+ #
289
+ # # The returned object is of type Gapic::Operation. You can use this
290
+ # # object to check the status of an operation, cancel it, or wait
291
+ # # for results. Here is how to block until completion:
292
+ # result.wait_until_done! timeout: 60
293
+ # if result.response?
294
+ # p result.response
295
+ # else
296
+ # puts "Error!"
297
+ # end
298
+ #
260
299
  def create_application request, options = nil
261
300
  raise ::ArgumentError, "request must be provided" if request.nil?
262
301
 
@@ -328,6 +367,28 @@ module Google
328
367
  #
329
368
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
330
369
  #
370
+ # @example Basic example
371
+ # require "google/cloud/app_engine/v1"
372
+ #
373
+ # # Create a client object. The client can be reused for multiple calls.
374
+ # client = Google::Cloud::AppEngine::V1::Applications::Client.new
375
+ #
376
+ # # Create a request. To set request fields, pass in keyword arguments.
377
+ # request = Google::Cloud::AppEngine::V1::UpdateApplicationRequest.new
378
+ #
379
+ # # Call the update_application method.
380
+ # result = client.update_application request
381
+ #
382
+ # # The returned object is of type Gapic::Operation. You can use this
383
+ # # object to check the status of an operation, cancel it, or wait
384
+ # # for results. Here is how to block until completion:
385
+ # result.wait_until_done! timeout: 60
386
+ # if result.response?
387
+ # p result.response
388
+ # else
389
+ # puts "Error!"
390
+ # end
391
+ #
331
392
  def update_application request, options = nil
332
393
  raise ::ArgumentError, "request must be provided" if request.nil?
333
394
 
@@ -345,9 +406,11 @@ module Google
345
406
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
346
407
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
408
 
348
- header_params = {
349
- "name" => request.name
350
- }
409
+ header_params = {}
410
+ if request.name
411
+ header_params["name"] = request.name
412
+ end
413
+
351
414
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
352
415
  metadata[:"x-goog-request-params"] ||= request_params_header
353
416
 
@@ -406,6 +469,28 @@ module Google
406
469
  #
407
470
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
408
471
  #
472
+ # @example Basic example
473
+ # require "google/cloud/app_engine/v1"
474
+ #
475
+ # # Create a client object. The client can be reused for multiple calls.
476
+ # client = Google::Cloud::AppEngine::V1::Applications::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::AppEngine::V1::RepairApplicationRequest.new
480
+ #
481
+ # # Call the repair_application method.
482
+ # result = client.repair_application request
483
+ #
484
+ # # The returned object is of type Gapic::Operation. You can use this
485
+ # # object to check the status of an operation, cancel it, or wait
486
+ # # for results. Here is how to block until completion:
487
+ # result.wait_until_done! timeout: 60
488
+ # if result.response?
489
+ # p result.response
490
+ # else
491
+ # puts "Error!"
492
+ # end
493
+ #
409
494
  def repair_application request, options = nil
410
495
  raise ::ArgumentError, "request must be provided" if request.nil?
411
496
 
@@ -423,9 +508,11 @@ module Google
423
508
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
424
509
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
425
510
 
426
- header_params = {
427
- "name" => request.name
428
- }
511
+ header_params = {}
512
+ if request.name
513
+ header_params["name"] = request.name
514
+ end
515
+
429
516
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
430
517
  metadata[:"x-goog-request-params"] ||= request_params_header
431
518
 
@@ -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