google-cloud-run-v2 0.19.0 → 0.21.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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -21
  3. data/lib/google/cloud/run/v2/builds/client.rb +39 -2
  4. data/lib/google/cloud/run/v2/builds/rest/client.rb +39 -2
  5. data/lib/google/cloud/run/v2/builds/rest/service_stub.rb +22 -8
  6. data/lib/google/cloud/run/v2/executions/client.rb +38 -5
  7. data/lib/google/cloud/run/v2/executions/operations.rb +16 -5
  8. data/lib/google/cloud/run/v2/executions/rest/client.rb +38 -5
  9. data/lib/google/cloud/run/v2/executions/rest/operations.rb +56 -35
  10. data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +46 -26
  11. data/lib/google/cloud/run/v2/jobs/client.rb +40 -10
  12. data/lib/google/cloud/run/v2/jobs/operations.rb +16 -5
  13. data/lib/google/cloud/run/v2/jobs/rest/client.rb +40 -10
  14. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +56 -35
  15. data/lib/google/cloud/run/v2/jobs/rest/service_stub.rb +86 -56
  16. data/lib/google/cloud/run/v2/revisions/client.rb +37 -4
  17. data/lib/google/cloud/run/v2/revisions/operations.rb +16 -5
  18. data/lib/google/cloud/run/v2/revisions/rest/client.rb +37 -4
  19. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +56 -35
  20. data/lib/google/cloud/run/v2/revisions/rest/service_stub.rb +38 -20
  21. data/lib/google/cloud/run/v2/services/client.rb +39 -9
  22. data/lib/google/cloud/run/v2/services/operations.rb +16 -5
  23. data/lib/google/cloud/run/v2/services/rest/client.rb +39 -9
  24. data/lib/google/cloud/run/v2/services/rest/operations.rb +56 -35
  25. data/lib/google/cloud/run/v2/services/rest/service_stub.rb +78 -50
  26. data/lib/google/cloud/run/v2/tasks/client.rb +36 -3
  27. data/lib/google/cloud/run/v2/tasks/rest/client.rb +36 -3
  28. data/lib/google/cloud/run/v2/tasks/rest/service_stub.rb +30 -14
  29. data/lib/google/cloud/run/v2/version.rb +1 -1
  30. data/proto_docs/google/api/client.rb +19 -0
  31. data/proto_docs/google/cloud/run/v2/build.rb +4 -0
  32. data/proto_docs/google/cloud/run/v2/condition.rb +6 -0
  33. data/proto_docs/google/cloud/run/v2/job.rb +4 -0
  34. data/proto_docs/google/cloud/run/v2/k8s.min.rb +20 -0
  35. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +4 -0
  36. data/proto_docs/google/longrunning/operations.rb +4 -0
  37. metadata +6 -9
@@ -181,14 +181,26 @@ module Google
181
181
  universe_domain: @config.universe_domain,
182
182
  channel_args: @config.channel_args,
183
183
  interceptors: @config.interceptors,
184
- channel_pool_config: @config.channel_pool
184
+ channel_pool_config: @config.channel_pool,
185
+ logger: @config.logger
185
186
  )
186
187
 
188
+ @services_stub.stub_logger&.info do |entry|
189
+ entry.set_system_name
190
+ entry.set_service
191
+ entry.message = "Created client for #{entry.service}"
192
+ entry.set_credentials_fields credentials
193
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
194
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
195
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
196
+ end
197
+
187
198
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
188
199
  config.credentials = credentials
189
200
  config.quota_project = @quota_project_id
190
201
  config.endpoint = @services_stub.endpoint
191
202
  config.universe_domain = @services_stub.universe_domain
203
+ config.logger = @services_stub.logger if config.respond_to? :logger=
192
204
  end
193
205
  end
194
206
 
@@ -206,6 +218,15 @@ module Google
206
218
  #
207
219
  attr_reader :location_client
208
220
 
221
+ ##
222
+ # The logger used for request/response debug logging.
223
+ #
224
+ # @return [Logger]
225
+ #
226
+ def logger
227
+ @services_stub.logger
228
+ end
229
+
209
230
  # Service calls
210
231
 
211
232
  ##
@@ -310,7 +331,7 @@ module Google
310
331
  @services_stub.call_rpc :create_service, request, options: options do |response, operation|
311
332
  response = ::Gapic::Operation.new response, @operations_client, options: options
312
333
  yield response, operation if block_given?
313
- return response
334
+ throw :response, response
314
335
  end
315
336
  rescue ::GRPC::BadStatus => e
316
337
  raise ::Google::Cloud::Error.from_error(e)
@@ -401,7 +422,6 @@ module Google
401
422
 
402
423
  @services_stub.call_rpc :get_service, request, options: options do |response, operation|
403
424
  yield response, operation if block_given?
404
- return response
405
425
  end
406
426
  rescue ::GRPC::BadStatus => e
407
427
  raise ::Google::Cloud::Error.from_error(e)
@@ -505,7 +525,7 @@ module Google
505
525
  @services_stub.call_rpc :list_services, request, options: options do |response, operation|
506
526
  response = ::Gapic::PagedEnumerable.new @services_stub, :list_services, request, response, operation, options
507
527
  yield response, operation if block_given?
508
- return response
528
+ throw :response, response
509
529
  end
510
530
  rescue ::GRPC::BadStatus => e
511
531
  raise ::Google::Cloud::Error.from_error(e)
@@ -611,7 +631,7 @@ module Google
611
631
  @services_stub.call_rpc :update_service, request, options: options do |response, operation|
612
632
  response = ::Gapic::Operation.new response, @operations_client, options: options
613
633
  yield response, operation if block_given?
614
- return response
634
+ throw :response, response
615
635
  end
616
636
  rescue ::GRPC::BadStatus => e
617
637
  raise ::Google::Cloud::Error.from_error(e)
@@ -718,7 +738,7 @@ module Google
718
738
  @services_stub.call_rpc :delete_service, request, options: options do |response, operation|
719
739
  response = ::Gapic::Operation.new response, @operations_client, options: options
720
740
  yield response, operation if block_given?
721
- return response
741
+ throw :response, response
722
742
  end
723
743
  rescue ::GRPC::BadStatus => e
724
744
  raise ::Google::Cloud::Error.from_error(e)
@@ -809,7 +829,6 @@ module Google
809
829
 
810
830
  @services_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
811
831
  yield response, operation if block_given?
812
- return response
813
832
  end
814
833
  rescue ::GRPC::BadStatus => e
815
834
  raise ::Google::Cloud::Error.from_error(e)
@@ -908,7 +927,6 @@ module Google
908
927
 
909
928
  @services_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
910
929
  yield response, operation if block_given?
911
- return response
912
930
  end
913
931
  rescue ::GRPC::BadStatus => e
914
932
  raise ::Google::Cloud::Error.from_error(e)
@@ -1002,7 +1020,6 @@ module Google
1002
1020
 
1003
1021
  @services_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
1004
1022
  yield response, operation if block_given?
1005
- return response
1006
1023
  end
1007
1024
  rescue ::GRPC::BadStatus => e
1008
1025
  raise ::Google::Cloud::Error.from_error(e)
@@ -1052,6 +1069,13 @@ module Google
1052
1069
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1053
1070
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1054
1071
  # * (`nil`) indicating no credentials
1072
+ #
1073
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1074
+ # external source for authentication to Google Cloud, you must validate it before
1075
+ # providing it to a Google API client library. Providing an unvalidated credential
1076
+ # configuration to Google APIs can compromise the security of your systems and data.
1077
+ # For more information, refer to [Validate credential configurations from external
1078
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1055
1079
  # @return [::Object]
1056
1080
  # @!attribute [rw] scope
1057
1081
  # The OAuth scopes
@@ -1091,6 +1115,11 @@ module Google
1091
1115
  # default endpoint URL. The default value of nil uses the environment
1092
1116
  # universe (usually the default "googleapis.com" universe).
1093
1117
  # @return [::String,nil]
1118
+ # @!attribute [rw] logger
1119
+ # A custom logger to use for request/response debug logging, or the value
1120
+ # `:default` (the default) to construct a default logger, or `nil` to
1121
+ # explicitly disable logging.
1122
+ # @return [::Logger,:default,nil]
1094
1123
  #
1095
1124
  class Configuration
1096
1125
  extend ::Gapic::Config
@@ -1115,6 +1144,7 @@ module Google
1115
1144
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1116
1145
  config_attr :quota_project, nil, ::String, nil
1117
1146
  config_attr :universe_domain, nil, ::String, nil
1147
+ config_attr :logger, :default, ::Logger, nil, :default
1118
1148
 
1119
1149
  # @private
1120
1150
  def initialize parent_config = nil
@@ -213,7 +213,7 @@ module Google
213
213
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
214
214
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
215
215
  yield response, operation if block_given?
216
- return response
216
+ throw :response, response
217
217
  end
218
218
  rescue ::GRPC::BadStatus => e
219
219
  raise ::Google::Cloud::Error.from_error(e)
@@ -309,7 +309,7 @@ module Google
309
309
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
310
310
  response = ::Gapic::Operation.new response, @operations_client, options: options
311
311
  yield response, operation if block_given?
312
- return response
312
+ throw :response, response
313
313
  end
314
314
  rescue ::GRPC::BadStatus => e
315
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -398,7 +398,6 @@ module Google
398
398
 
399
399
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
400
400
  yield response, operation if block_given?
401
- return response
402
401
  end
403
402
  rescue ::GRPC::BadStatus => e
404
403
  raise ::Google::Cloud::Error.from_error(e)
@@ -494,7 +493,6 @@ module Google
494
493
 
495
494
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
496
495
  yield response, operation if block_given?
497
- return response
498
496
  end
499
497
  rescue ::GRPC::BadStatus => e
500
498
  raise ::Google::Cloud::Error.from_error(e)
@@ -600,7 +598,7 @@ module Google
600
598
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
601
599
  response = ::Gapic::Operation.new response, @operations_client, options: options
602
600
  yield response, operation if block_given?
603
- return response
601
+ throw :response, response
604
602
  end
605
603
  rescue ::GRPC::BadStatus => e
606
604
  raise ::Google::Cloud::Error.from_error(e)
@@ -650,6 +648,13 @@ module Google
650
648
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
651
649
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
652
650
  # * (`nil`) indicating no credentials
651
+ #
652
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # external source for authentication to Google Cloud, you must validate it before
654
+ # providing it to a Google API client library. Providing an unvalidated credential
655
+ # configuration to Google APIs can compromise the security of your systems and data.
656
+ # For more information, refer to [Validate credential configurations from external
657
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
653
658
  # @return [::Object]
654
659
  # @!attribute [rw] scope
655
660
  # The OAuth scopes
@@ -689,6 +694,11 @@ module Google
689
694
  # default endpoint URL. The default value of nil uses the environment
690
695
  # universe (usually the default "googleapis.com" universe).
691
696
  # @return [::String,nil]
697
+ # @!attribute [rw] logger
698
+ # A custom logger to use for request/response debug logging, or the value
699
+ # `:default` (the default) to construct a default logger, or `nil` to
700
+ # explicitly disable logging.
701
+ # @return [::Logger,:default,nil]
692
702
  #
693
703
  class Configuration
694
704
  extend ::Gapic::Config
@@ -713,6 +723,7 @@ module Google
713
723
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
714
724
  config_attr :quota_project, nil, ::String, nil
715
725
  config_attr :universe_domain, nil, ::String, nil
726
+ config_attr :logger, :default, ::Logger, nil, :default
716
727
 
717
728
  # @private
718
729
  def initialize parent_config = nil
@@ -174,14 +174,26 @@ module Google
174
174
  endpoint: @config.endpoint,
175
175
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
176
176
  universe_domain: @config.universe_domain,
177
- credentials: credentials
177
+ credentials: credentials,
178
+ logger: @config.logger
178
179
  )
179
180
 
181
+ @services_stub.logger(stub: true)&.info do |entry|
182
+ entry.set_system_name
183
+ entry.set_service
184
+ entry.message = "Created client for #{entry.service}"
185
+ entry.set_credentials_fields credentials
186
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
187
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
188
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
189
+ end
190
+
180
191
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
181
192
  config.credentials = credentials
182
193
  config.quota_project = @quota_project_id
183
194
  config.endpoint = @services_stub.endpoint
184
195
  config.universe_domain = @services_stub.universe_domain
196
+ config.logger = @services_stub.logger if config.respond_to? :logger=
185
197
  end
186
198
  end
187
199
 
@@ -199,6 +211,15 @@ module Google
199
211
  #
200
212
  attr_reader :location_client
201
213
 
214
+ ##
215
+ # The logger used for request/response debug logging.
216
+ #
217
+ # @return [Logger]
218
+ #
219
+ def logger
220
+ @services_stub.logger
221
+ end
222
+
202
223
  # Service calls
203
224
 
204
225
  ##
@@ -293,7 +314,7 @@ module Google
293
314
  @services_stub.create_service request, options do |result, operation|
294
315
  result = ::Gapic::Operation.new result, @operations_client, options: options
295
316
  yield result, operation if block_given?
296
- return result
317
+ throw :response, result
297
318
  end
298
319
  rescue ::Gapic::Rest::Error => e
299
320
  raise ::Google::Cloud::Error.from_error(e)
@@ -374,7 +395,6 @@ module Google
374
395
 
375
396
  @services_stub.get_service request, options do |result, operation|
376
397
  yield result, operation if block_given?
377
- return result
378
398
  end
379
399
  rescue ::Gapic::Rest::Error => e
380
400
  raise ::Google::Cloud::Error.from_error(e)
@@ -468,7 +488,7 @@ module Google
468
488
  @services_stub.list_services request, options do |result, operation|
469
489
  result = ::Gapic::Rest::PagedEnumerable.new @services_stub, :list_services, "services", request, result, options
470
490
  yield result, operation if block_given?
471
- return result
491
+ throw :response, result
472
492
  end
473
493
  rescue ::Gapic::Rest::Error => e
474
494
  raise ::Google::Cloud::Error.from_error(e)
@@ -564,7 +584,7 @@ module Google
564
584
  @services_stub.update_service request, options do |result, operation|
565
585
  result = ::Gapic::Operation.new result, @operations_client, options: options
566
586
  yield result, operation if block_given?
567
- return result
587
+ throw :response, result
568
588
  end
569
589
  rescue ::Gapic::Rest::Error => e
570
590
  raise ::Google::Cloud::Error.from_error(e)
@@ -661,7 +681,7 @@ module Google
661
681
  @services_stub.delete_service request, options do |result, operation|
662
682
  result = ::Gapic::Operation.new result, @operations_client, options: options
663
683
  yield result, operation if block_given?
664
- return result
684
+ throw :response, result
665
685
  end
666
686
  rescue ::Gapic::Rest::Error => e
667
687
  raise ::Google::Cloud::Error.from_error(e)
@@ -745,7 +765,6 @@ module Google
745
765
 
746
766
  @services_stub.get_iam_policy request, options do |result, operation|
747
767
  yield result, operation if block_given?
748
- return result
749
768
  end
750
769
  rescue ::Gapic::Rest::Error => e
751
770
  raise ::Google::Cloud::Error.from_error(e)
@@ -837,7 +856,6 @@ module Google
837
856
 
838
857
  @services_stub.set_iam_policy request, options do |result, operation|
839
858
  yield result, operation if block_given?
840
- return result
841
859
  end
842
860
  rescue ::Gapic::Rest::Error => e
843
861
  raise ::Google::Cloud::Error.from_error(e)
@@ -924,7 +942,6 @@ module Google
924
942
 
925
943
  @services_stub.test_iam_permissions request, options do |result, operation|
926
944
  yield result, operation if block_given?
927
- return result
928
945
  end
929
946
  rescue ::Gapic::Rest::Error => e
930
947
  raise ::Google::Cloud::Error.from_error(e)
@@ -972,6 +989,13 @@ module Google
972
989
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
973
990
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
974
991
  # * (`nil`) indicating no credentials
992
+ #
993
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
994
+ # external source for authentication to Google Cloud, you must validate it before
995
+ # providing it to a Google API client library. Providing an unvalidated credential
996
+ # configuration to Google APIs can compromise the security of your systems and data.
997
+ # For more information, refer to [Validate credential configurations from external
998
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
975
999
  # @return [::Object]
976
1000
  # @!attribute [rw] scope
977
1001
  # The OAuth scopes
@@ -1004,6 +1028,11 @@ module Google
1004
1028
  # default endpoint URL. The default value of nil uses the environment
1005
1029
  # universe (usually the default "googleapis.com" universe).
1006
1030
  # @return [::String,nil]
1031
+ # @!attribute [rw] logger
1032
+ # A custom logger to use for request/response debug logging, or the value
1033
+ # `:default` (the default) to construct a default logger, or `nil` to
1034
+ # explicitly disable logging.
1035
+ # @return [::Logger,:default,nil]
1007
1036
  #
1008
1037
  class Configuration
1009
1038
  extend ::Gapic::Config
@@ -1025,6 +1054,7 @@ module Google
1025
1054
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1026
1055
  config_attr :quota_project, nil, ::String, nil
1027
1056
  config_attr :universe_domain, nil, ::String, nil
1057
+ config_attr :logger, :default, ::Logger, nil, :default
1028
1058
 
1029
1059
  # @private
1030
1060
  def initialize parent_config = nil
@@ -196,7 +196,7 @@ module Google
196
196
  @operations_stub.list_operations request, options do |result, operation|
197
197
  result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
198
198
  yield result, operation if block_given?
199
- return result
199
+ throw :response, result
200
200
  end
201
201
  rescue ::Gapic::Rest::Error => e
202
202
  raise ::Google::Cloud::Error.from_error(e)
@@ -285,7 +285,7 @@ module Google
285
285
  @operations_stub.get_operation request, options do |result, operation|
286
286
  result = ::Gapic::Operation.new result, @operations_client, options: options
287
287
  yield result, operation if block_given?
288
- return result
288
+ throw :response, result
289
289
  end
290
290
  rescue ::Gapic::Rest::Error => e
291
291
  raise ::Google::Cloud::Error.from_error(e)
@@ -367,7 +367,6 @@ module Google
367
367
 
368
368
  @operations_stub.delete_operation request, options do |result, operation|
369
369
  yield result, operation if block_given?
370
- return result
371
370
  end
372
371
  rescue ::Gapic::Rest::Error => e
373
372
  raise ::Google::Cloud::Error.from_error(e)
@@ -456,7 +455,6 @@ module Google
456
455
 
457
456
  @operations_stub.cancel_operation request, options do |result, operation|
458
457
  yield result, operation if block_given?
459
- return result
460
458
  end
461
459
  rescue ::Gapic::Rest::Error => e
462
460
  raise ::Google::Cloud::Error.from_error(e)
@@ -555,7 +553,7 @@ module Google
555
553
  @operations_stub.wait_operation request, options do |result, operation|
556
554
  result = ::Gapic::Operation.new result, @operations_client, options: options
557
555
  yield result, operation if block_given?
558
- return result
556
+ throw :response, result
559
557
  end
560
558
  rescue ::Gapic::Rest::Error => e
561
559
  raise ::Google::Cloud::Error.from_error(e)
@@ -603,6 +601,13 @@ module Google
603
601
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
604
602
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
605
603
  # * (`nil`) indicating no credentials
604
+ #
605
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
606
+ # external source for authentication to Google Cloud, you must validate it before
607
+ # providing it to a Google API client library. Providing an unvalidated credential
608
+ # configuration to Google APIs can compromise the security of your systems and data.
609
+ # For more information, refer to [Validate credential configurations from external
610
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
606
611
  # @return [::Object]
607
612
  # @!attribute [rw] scope
608
613
  # The OAuth scopes
@@ -635,6 +640,11 @@ module Google
635
640
  # default endpoint URL. The default value of nil uses the environment
636
641
  # universe (usually the default "googleapis.com" universe).
637
642
  # @return [::String,nil]
643
+ # @!attribute [rw] logger
644
+ # A custom logger to use for request/response debug logging, or the value
645
+ # `:default` (the default) to construct a default logger, or `nil` to
646
+ # explicitly disable logging.
647
+ # @return [::Logger,:default,nil]
638
648
  #
639
649
  class Configuration
640
650
  extend ::Gapic::Config
@@ -656,6 +666,7 @@ module Google
656
666
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
657
667
  config_attr :quota_project, nil, ::String, nil
658
668
  config_attr :universe_domain, nil, ::String, nil
669
+ config_attr :logger, :default, ::Logger, nil, :default
659
670
 
660
671
  # @private
661
672
  def initialize parent_config = nil
@@ -782,16 +793,18 @@ module Google
782
793
 
783
794
  response = @client_stub.make_http_request(
784
795
  verb,
785
- uri: uri,
786
- body: body || "",
787
- params: query_string_params,
796
+ uri: uri,
797
+ body: body || "",
798
+ params: query_string_params,
799
+ method_name: "list_operations",
788
800
  options: options
789
801
  )
790
802
  operation = ::Gapic::Rest::TransportOperation.new response
791
803
  result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
792
-
793
- yield result, operation if block_given?
794
- result
804
+ catch :response do
805
+ yield result, operation if block_given?
806
+ result
807
+ end
795
808
  end
796
809
 
797
810
  ##
@@ -820,16 +833,18 @@ module Google
820
833
 
821
834
  response = @client_stub.make_http_request(
822
835
  verb,
823
- uri: uri,
824
- body: body || "",
825
- params: query_string_params,
836
+ uri: uri,
837
+ body: body || "",
838
+ params: query_string_params,
839
+ method_name: "get_operation",
826
840
  options: options
827
841
  )
828
842
  operation = ::Gapic::Rest::TransportOperation.new response
829
843
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
830
-
831
- yield result, operation if block_given?
832
- result
844
+ catch :response do
845
+ yield result, operation if block_given?
846
+ result
847
+ end
833
848
  end
834
849
 
835
850
  ##
@@ -858,16 +873,18 @@ module Google
858
873
 
859
874
  response = @client_stub.make_http_request(
860
875
  verb,
861
- uri: uri,
862
- body: body || "",
863
- params: query_string_params,
876
+ uri: uri,
877
+ body: body || "",
878
+ params: query_string_params,
879
+ method_name: "delete_operation",
864
880
  options: options
865
881
  )
866
882
  operation = ::Gapic::Rest::TransportOperation.new response
867
883
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
868
-
869
- yield result, operation if block_given?
870
- result
884
+ catch :response do
885
+ yield result, operation if block_given?
886
+ result
887
+ end
871
888
  end
872
889
 
873
890
  ##
@@ -896,16 +913,18 @@ module Google
896
913
 
897
914
  response = @client_stub.make_http_request(
898
915
  verb,
899
- uri: uri,
900
- body: body || "",
901
- params: query_string_params,
916
+ uri: uri,
917
+ body: body || "",
918
+ params: query_string_params,
919
+ method_name: "cancel_operation",
902
920
  options: options
903
921
  )
904
922
  operation = ::Gapic::Rest::TransportOperation.new response
905
923
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
906
-
907
- yield result, operation if block_given?
908
- result
924
+ catch :response do
925
+ yield result, operation if block_given?
926
+ result
927
+ end
909
928
  end
910
929
 
911
930
  ##
@@ -934,16 +953,18 @@ module Google
934
953
 
935
954
  response = @client_stub.make_http_request(
936
955
  verb,
937
- uri: uri,
938
- body: body || "",
939
- params: query_string_params,
956
+ uri: uri,
957
+ body: body || "",
958
+ params: query_string_params,
959
+ method_name: "wait_operation",
940
960
  options: options
941
961
  )
942
962
  operation = ::Gapic::Rest::TransportOperation.new response
943
963
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
944
-
945
- yield result, operation if block_given?
946
- result
964
+ catch :response do
965
+ yield result, operation if block_given?
966
+ result
967
+ end
947
968
  end
948
969
 
949
970
  ##