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
@@ -158,14 +158,26 @@ module Google
158
158
  endpoint: @config.endpoint,
159
159
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
160
160
  universe_domain: @config.universe_domain,
161
- credentials: credentials
161
+ credentials: credentials,
162
+ logger: @config.logger
162
163
  )
163
164
 
165
+ @jobs_stub.logger(stub: true)&.info do |entry|
166
+ entry.set_system_name
167
+ entry.set_service
168
+ entry.message = "Created client for #{entry.service}"
169
+ entry.set_credentials_fields credentials
170
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
171
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
172
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
173
+ end
174
+
164
175
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
165
176
  config.credentials = credentials
166
177
  config.quota_project = @quota_project_id
167
178
  config.endpoint = @jobs_stub.endpoint
168
179
  config.universe_domain = @jobs_stub.universe_domain
180
+ config.logger = @jobs_stub.logger if config.respond_to? :logger=
169
181
  end
170
182
  end
171
183
 
@@ -183,6 +195,15 @@ module Google
183
195
  #
184
196
  attr_reader :location_client
185
197
 
198
+ ##
199
+ # The logger used for request/response debug logging.
200
+ #
201
+ # @return [Logger]
202
+ #
203
+ def logger
204
+ @jobs_stub.logger
205
+ end
206
+
186
207
  # Service calls
187
208
 
188
209
  ##
@@ -276,7 +297,7 @@ module Google
276
297
  @jobs_stub.create_job request, options do |result, operation|
277
298
  result = ::Gapic::Operation.new result, @operations_client, options: options
278
299
  yield result, operation if block_given?
279
- return result
300
+ throw :response, result
280
301
  end
281
302
  rescue ::Gapic::Rest::Error => e
282
303
  raise ::Google::Cloud::Error.from_error(e)
@@ -357,7 +378,6 @@ module Google
357
378
 
358
379
  @jobs_stub.get_job request, options do |result, operation|
359
380
  yield result, operation if block_given?
360
- return result
361
381
  end
362
382
  rescue ::Gapic::Rest::Error => e
363
383
  raise ::Google::Cloud::Error.from_error(e)
@@ -450,7 +470,7 @@ module Google
450
470
  @jobs_stub.list_jobs request, options do |result, operation|
451
471
  result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :list_jobs, "jobs", request, result, options
452
472
  yield result, operation if block_given?
453
- return result
473
+ throw :response, result
454
474
  end
455
475
  rescue ::Gapic::Rest::Error => e
456
476
  raise ::Google::Cloud::Error.from_error(e)
@@ -544,7 +564,7 @@ module Google
544
564
  @jobs_stub.update_job request, options do |result, operation|
545
565
  result = ::Gapic::Operation.new result, @operations_client, options: options
546
566
  yield result, operation if block_given?
547
- return result
567
+ throw :response, result
548
568
  end
549
569
  rescue ::Gapic::Rest::Error => e
550
570
  raise ::Google::Cloud::Error.from_error(e)
@@ -639,7 +659,7 @@ module Google
639
659
  @jobs_stub.delete_job request, options do |result, operation|
640
660
  result = ::Gapic::Operation.new result, @operations_client, options: options
641
661
  yield result, operation if block_given?
642
- return result
662
+ throw :response, result
643
663
  end
644
664
  rescue ::Gapic::Rest::Error => e
645
665
  raise ::Google::Cloud::Error.from_error(e)
@@ -737,7 +757,7 @@ module Google
737
757
  @jobs_stub.run_job request, options do |result, operation|
738
758
  result = ::Gapic::Operation.new result, @operations_client, options: options
739
759
  yield result, operation if block_given?
740
- return result
760
+ throw :response, result
741
761
  end
742
762
  rescue ::Gapic::Rest::Error => e
743
763
  raise ::Google::Cloud::Error.from_error(e)
@@ -821,7 +841,6 @@ module Google
821
841
 
822
842
  @jobs_stub.get_iam_policy request, options do |result, operation|
823
843
  yield result, operation if block_given?
824
- return result
825
844
  end
826
845
  rescue ::Gapic::Rest::Error => e
827
846
  raise ::Google::Cloud::Error.from_error(e)
@@ -913,7 +932,6 @@ module Google
913
932
 
914
933
  @jobs_stub.set_iam_policy request, options do |result, operation|
915
934
  yield result, operation if block_given?
916
- return result
917
935
  end
918
936
  rescue ::Gapic::Rest::Error => e
919
937
  raise ::Google::Cloud::Error.from_error(e)
@@ -1000,7 +1018,6 @@ module Google
1000
1018
 
1001
1019
  @jobs_stub.test_iam_permissions request, options do |result, operation|
1002
1020
  yield result, operation if block_given?
1003
- return result
1004
1021
  end
1005
1022
  rescue ::Gapic::Rest::Error => e
1006
1023
  raise ::Google::Cloud::Error.from_error(e)
@@ -1048,6 +1065,13 @@ module Google
1048
1065
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1049
1066
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1050
1067
  # * (`nil`) indicating no credentials
1068
+ #
1069
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1070
+ # external source for authentication to Google Cloud, you must validate it before
1071
+ # providing it to a Google API client library. Providing an unvalidated credential
1072
+ # configuration to Google APIs can compromise the security of your systems and data.
1073
+ # For more information, refer to [Validate credential configurations from external
1074
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1051
1075
  # @return [::Object]
1052
1076
  # @!attribute [rw] scope
1053
1077
  # The OAuth scopes
@@ -1080,6 +1104,11 @@ module Google
1080
1104
  # default endpoint URL. The default value of nil uses the environment
1081
1105
  # universe (usually the default "googleapis.com" universe).
1082
1106
  # @return [::String,nil]
1107
+ # @!attribute [rw] logger
1108
+ # A custom logger to use for request/response debug logging, or the value
1109
+ # `:default` (the default) to construct a default logger, or `nil` to
1110
+ # explicitly disable logging.
1111
+ # @return [::Logger,:default,nil]
1083
1112
  #
1084
1113
  class Configuration
1085
1114
  extend ::Gapic::Config
@@ -1101,6 +1130,7 @@ module Google
1101
1130
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1102
1131
  config_attr :quota_project, nil, ::String, nil
1103
1132
  config_attr :universe_domain, nil, ::String, nil
1133
+ config_attr :logger, :default, ::Logger, nil, :default
1104
1134
 
1105
1135
  # @private
1106
1136
  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
  ##
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the create_job REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "create_job",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_job",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Cloud::Run::V2::Job.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "list_jobs",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Cloud::Run::V2::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "update_job",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "delete_job",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -277,16 +299,18 @@ module Google
277
299
 
278
300
  response = @client_stub.make_http_request(
279
301
  verb,
280
- uri: uri,
281
- body: body || "",
282
- params: query_string_params,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "run_job",
283
306
  options: options
284
307
  )
285
308
  operation = ::Gapic::Rest::TransportOperation.new response
286
309
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
287
-
288
- yield result, operation if block_given?
289
- result
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
290
314
  end
291
315
 
292
316
  ##
@@ -315,16 +339,18 @@ module Google
315
339
 
316
340
  response = @client_stub.make_http_request(
317
341
  verb,
318
- uri: uri,
319
- body: body || "",
320
- params: query_string_params,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "get_iam_policy",
321
346
  options: options
322
347
  )
323
348
  operation = ::Gapic::Rest::TransportOperation.new response
324
349
  result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
325
-
326
- yield result, operation if block_given?
327
- result
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
328
354
  end
329
355
 
330
356
  ##
@@ -353,16 +379,18 @@ module Google
353
379
 
354
380
  response = @client_stub.make_http_request(
355
381
  verb,
356
- uri: uri,
357
- body: body || "",
358
- params: query_string_params,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "set_iam_policy",
359
386
  options: options
360
387
  )
361
388
  operation = ::Gapic::Rest::TransportOperation.new response
362
389
  result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
363
-
364
- yield result, operation if block_given?
365
- result
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
366
394
  end
367
395
 
368
396
  ##
@@ -391,16 +419,18 @@ module Google
391
419
 
392
420
  response = @client_stub.make_http_request(
393
421
  verb,
394
- uri: uri,
395
- body: body || "",
396
- params: query_string_params,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "test_iam_permissions",
397
426
  options: options
398
427
  )
399
428
  operation = ::Gapic::Rest::TransportOperation.new response
400
429
  result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
401
-
402
- yield result, operation if block_given?
403
- result
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
404
434
  end
405
435
 
406
436
  ##