google-cloud-dataplex-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +45 -27
- data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +40 -27
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +222 -158
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +30 -9
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +30 -9
- data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +78 -50
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +34 -10
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +33 -10
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +41 -16
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +38 -16
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/service_stub.rb +134 -92
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +54 -34
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +52 -34
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +278 -200
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +31 -10
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +31 -10
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- metadata +5 -5
@@ -240,15 +240,27 @@ module Google
|
|
240
240
|
endpoint: @config.endpoint,
|
241
241
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
242
242
|
universe_domain: @config.universe_domain,
|
243
|
-
credentials: credentials
|
243
|
+
credentials: credentials,
|
244
|
+
logger: @config.logger
|
244
245
|
)
|
245
246
|
|
247
|
+
@catalog_service_stub.logger(stub: true)&.info do |entry|
|
248
|
+
entry.set_system_name
|
249
|
+
entry.set_service
|
250
|
+
entry.message = "Created client for #{entry.service}"
|
251
|
+
entry.set_credentials_fields credentials
|
252
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
253
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
254
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
255
|
+
end
|
256
|
+
|
246
257
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
247
258
|
config.credentials = credentials
|
248
259
|
config.quota_project = @quota_project_id
|
249
260
|
config.endpoint = @catalog_service_stub.endpoint
|
250
261
|
config.universe_domain = @catalog_service_stub.universe_domain
|
251
262
|
config.bindings_override = @config.bindings_override
|
263
|
+
config.logger = @catalog_service_stub.logger if config.respond_to? :logger=
|
252
264
|
end
|
253
265
|
|
254
266
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
@@ -257,6 +269,7 @@ module Google
|
|
257
269
|
config.endpoint = @catalog_service_stub.endpoint
|
258
270
|
config.universe_domain = @catalog_service_stub.universe_domain
|
259
271
|
config.bindings_override = @config.bindings_override
|
272
|
+
config.logger = @catalog_service_stub.logger if config.respond_to? :logger=
|
260
273
|
end
|
261
274
|
end
|
262
275
|
|
@@ -281,6 +294,15 @@ module Google
|
|
281
294
|
#
|
282
295
|
attr_reader :iam_policy_client
|
283
296
|
|
297
|
+
##
|
298
|
+
# The logger used for request/response debug logging.
|
299
|
+
#
|
300
|
+
# @return [Logger]
|
301
|
+
#
|
302
|
+
def logger
|
303
|
+
@catalog_service_stub.logger
|
304
|
+
end
|
305
|
+
|
284
306
|
# Service calls
|
285
307
|
|
286
308
|
##
|
@@ -373,7 +395,7 @@ module Google
|
|
373
395
|
@catalog_service_stub.create_entry_type request, options do |result, operation|
|
374
396
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
375
397
|
yield result, operation if block_given?
|
376
|
-
|
398
|
+
throw :response, result
|
377
399
|
end
|
378
400
|
rescue ::Gapic::Rest::Error => e
|
379
401
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -465,7 +487,7 @@ module Google
|
|
465
487
|
@catalog_service_stub.update_entry_type request, options do |result, operation|
|
466
488
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
467
489
|
yield result, operation if block_given?
|
468
|
-
|
490
|
+
throw :response, result
|
469
491
|
end
|
470
492
|
rescue ::Gapic::Rest::Error => e
|
471
493
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -556,7 +578,7 @@ module Google
|
|
556
578
|
@catalog_service_stub.delete_entry_type request, options do |result, operation|
|
557
579
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
558
580
|
yield result, operation if block_given?
|
559
|
-
|
581
|
+
throw :response, result
|
560
582
|
end
|
561
583
|
rescue ::Gapic::Rest::Error => e
|
562
584
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -663,7 +685,6 @@ module Google
|
|
663
685
|
|
664
686
|
@catalog_service_stub.list_entry_types request, options do |result, operation|
|
665
687
|
yield result, operation if block_given?
|
666
|
-
return result
|
667
688
|
end
|
668
689
|
rescue ::Gapic::Rest::Error => e
|
669
690
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -743,7 +764,6 @@ module Google
|
|
743
764
|
|
744
765
|
@catalog_service_stub.get_entry_type request, options do |result, operation|
|
745
766
|
yield result, operation if block_given?
|
746
|
-
return result
|
747
767
|
end
|
748
768
|
rescue ::Gapic::Rest::Error => e
|
749
769
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -839,7 +859,7 @@ module Google
|
|
839
859
|
@catalog_service_stub.create_aspect_type request, options do |result, operation|
|
840
860
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
841
861
|
yield result, operation if block_given?
|
842
|
-
|
862
|
+
throw :response, result
|
843
863
|
end
|
844
864
|
rescue ::Gapic::Rest::Error => e
|
845
865
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -931,7 +951,7 @@ module Google
|
|
931
951
|
@catalog_service_stub.update_aspect_type request, options do |result, operation|
|
932
952
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
933
953
|
yield result, operation if block_given?
|
934
|
-
|
954
|
+
throw :response, result
|
935
955
|
end
|
936
956
|
rescue ::Gapic::Rest::Error => e
|
937
957
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1023,7 +1043,7 @@ module Google
|
|
1023
1043
|
@catalog_service_stub.delete_aspect_type request, options do |result, operation|
|
1024
1044
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1025
1045
|
yield result, operation if block_given?
|
1026
|
-
|
1046
|
+
throw :response, result
|
1027
1047
|
end
|
1028
1048
|
rescue ::Gapic::Rest::Error => e
|
1029
1049
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1130,7 +1150,6 @@ module Google
|
|
1130
1150
|
|
1131
1151
|
@catalog_service_stub.list_aspect_types request, options do |result, operation|
|
1132
1152
|
yield result, operation if block_given?
|
1133
|
-
return result
|
1134
1153
|
end
|
1135
1154
|
rescue ::Gapic::Rest::Error => e
|
1136
1155
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1210,7 +1229,6 @@ module Google
|
|
1210
1229
|
|
1211
1230
|
@catalog_service_stub.get_aspect_type request, options do |result, operation|
|
1212
1231
|
yield result, operation if block_given?
|
1213
|
-
return result
|
1214
1232
|
end
|
1215
1233
|
rescue ::Gapic::Rest::Error => e
|
1216
1234
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1306,7 +1324,7 @@ module Google
|
|
1306
1324
|
@catalog_service_stub.create_entry_group request, options do |result, operation|
|
1307
1325
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1308
1326
|
yield result, operation if block_given?
|
1309
|
-
|
1327
|
+
throw :response, result
|
1310
1328
|
end
|
1311
1329
|
rescue ::Gapic::Rest::Error => e
|
1312
1330
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1398,7 +1416,7 @@ module Google
|
|
1398
1416
|
@catalog_service_stub.update_entry_group request, options do |result, operation|
|
1399
1417
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1400
1418
|
yield result, operation if block_given?
|
1401
|
-
|
1419
|
+
throw :response, result
|
1402
1420
|
end
|
1403
1421
|
rescue ::Gapic::Rest::Error => e
|
1404
1422
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1490,7 +1508,7 @@ module Google
|
|
1490
1508
|
@catalog_service_stub.delete_entry_group request, options do |result, operation|
|
1491
1509
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1492
1510
|
yield result, operation if block_given?
|
1493
|
-
|
1511
|
+
throw :response, result
|
1494
1512
|
end
|
1495
1513
|
rescue ::Gapic::Rest::Error => e
|
1496
1514
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1589,7 +1607,6 @@ module Google
|
|
1589
1607
|
|
1590
1608
|
@catalog_service_stub.list_entry_groups request, options do |result, operation|
|
1591
1609
|
yield result, operation if block_given?
|
1592
|
-
return result
|
1593
1610
|
end
|
1594
1611
|
rescue ::Gapic::Rest::Error => e
|
1595
1612
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1669,7 +1686,6 @@ module Google
|
|
1669
1686
|
|
1670
1687
|
@catalog_service_stub.get_entry_group request, options do |result, operation|
|
1671
1688
|
yield result, operation if block_given?
|
1672
|
-
return result
|
1673
1689
|
end
|
1674
1690
|
rescue ::Gapic::Rest::Error => e
|
1675
1691
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1772,7 +1788,6 @@ module Google
|
|
1772
1788
|
|
1773
1789
|
@catalog_service_stub.create_entry request, options do |result, operation|
|
1774
1790
|
yield result, operation if block_given?
|
1775
|
-
return result
|
1776
1791
|
end
|
1777
1792
|
rescue ::Gapic::Rest::Error => e
|
1778
1793
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1883,7 +1898,6 @@ module Google
|
|
1883
1898
|
|
1884
1899
|
@catalog_service_stub.update_entry request, options do |result, operation|
|
1885
1900
|
yield result, operation if block_given?
|
1886
|
-
return result
|
1887
1901
|
end
|
1888
1902
|
rescue ::Gapic::Rest::Error => e
|
1889
1903
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1963,7 +1977,6 @@ module Google
|
|
1963
1977
|
|
1964
1978
|
@catalog_service_stub.delete_entry request, options do |result, operation|
|
1965
1979
|
yield result, operation if block_given?
|
1966
|
-
return result
|
1967
1980
|
end
|
1968
1981
|
rescue ::Gapic::Rest::Error => e
|
1969
1982
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2078,7 +2091,7 @@ module Google
|
|
2078
2091
|
@catalog_service_stub.list_entries request, options do |result, operation|
|
2079
2092
|
result = ::Gapic::Rest::PagedEnumerable.new @catalog_service_stub, :list_entries, "entries", request, result, options
|
2080
2093
|
yield result, operation if block_given?
|
2081
|
-
|
2094
|
+
throw :response, result
|
2082
2095
|
end
|
2083
2096
|
rescue ::Gapic::Rest::Error => e
|
2084
2097
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2172,7 +2185,6 @@ module Google
|
|
2172
2185
|
|
2173
2186
|
@catalog_service_stub.get_entry request, options do |result, operation|
|
2174
2187
|
yield result, operation if block_given?
|
2175
|
-
return result
|
2176
2188
|
end
|
2177
2189
|
rescue ::Gapic::Rest::Error => e
|
2178
2190
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2269,7 +2281,6 @@ module Google
|
|
2269
2281
|
|
2270
2282
|
@catalog_service_stub.lookup_entry request, options do |result, operation|
|
2271
2283
|
yield result, operation if block_given?
|
2272
|
-
return result
|
2273
2284
|
end
|
2274
2285
|
rescue ::Gapic::Rest::Error => e
|
2275
2286
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2369,7 +2380,6 @@ module Google
|
|
2369
2380
|
|
2370
2381
|
@catalog_service_stub.search_entries request, options do |result, operation|
|
2371
2382
|
yield result, operation if block_given?
|
2372
|
-
return result
|
2373
2383
|
end
|
2374
2384
|
rescue ::Gapic::Rest::Error => e
|
2375
2385
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2466,7 +2476,7 @@ module Google
|
|
2466
2476
|
@catalog_service_stub.create_metadata_job request, options do |result, operation|
|
2467
2477
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2468
2478
|
yield result, operation if block_given?
|
2469
|
-
|
2479
|
+
throw :response, result
|
2470
2480
|
end
|
2471
2481
|
rescue ::Gapic::Rest::Error => e
|
2472
2482
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2546,7 +2556,6 @@ module Google
|
|
2546
2556
|
|
2547
2557
|
@catalog_service_stub.get_metadata_job request, options do |result, operation|
|
2548
2558
|
yield result, operation if block_given?
|
2549
|
-
return result
|
2550
2559
|
end
|
2551
2560
|
rescue ::Gapic::Rest::Error => e
|
2552
2561
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2652,7 +2661,6 @@ module Google
|
|
2652
2661
|
|
2653
2662
|
@catalog_service_stub.list_metadata_jobs request, options do |result, operation|
|
2654
2663
|
yield result, operation if block_given?
|
2655
|
-
return result
|
2656
2664
|
end
|
2657
2665
|
rescue ::Gapic::Rest::Error => e
|
2658
2666
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2737,7 +2745,6 @@ module Google
|
|
2737
2745
|
|
2738
2746
|
@catalog_service_stub.cancel_metadata_job request, options do |result, operation|
|
2739
2747
|
yield result, operation if block_given?
|
2740
|
-
return result
|
2741
2748
|
end
|
2742
2749
|
rescue ::Gapic::Rest::Error => e
|
2743
2750
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2817,6 +2824,11 @@ module Google
|
|
2817
2824
|
# default endpoint URL. The default value of nil uses the environment
|
2818
2825
|
# universe (usually the default "googleapis.com" universe).
|
2819
2826
|
# @return [::String,nil]
|
2827
|
+
# @!attribute [rw] logger
|
2828
|
+
# A custom logger to use for request/response debug logging, or the value
|
2829
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2830
|
+
# explicitly disable logging.
|
2831
|
+
# @return [::Logger,:default,nil]
|
2820
2832
|
#
|
2821
2833
|
class Configuration
|
2822
2834
|
extend ::Gapic::Config
|
@@ -2845,6 +2857,7 @@ module Google
|
|
2845
2857
|
# by the host service.
|
2846
2858
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
2847
2859
|
config_attr :bindings_override, {}, ::Hash, nil
|
2860
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2848
2861
|
|
2849
2862
|
# @private
|
2850
2863
|
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
|
-
|
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
|
-
|
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)
|
@@ -536,6 +534,11 @@ module Google
|
|
536
534
|
# default endpoint URL. The default value of nil uses the environment
|
537
535
|
# universe (usually the default "googleapis.com" universe).
|
538
536
|
# @return [::String,nil]
|
537
|
+
# @!attribute [rw] logger
|
538
|
+
# A custom logger to use for request/response debug logging, or the value
|
539
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
540
|
+
# explicitly disable logging.
|
541
|
+
# @return [::Logger,:default,nil]
|
539
542
|
#
|
540
543
|
class Configuration
|
541
544
|
extend ::Gapic::Config
|
@@ -557,6 +560,7 @@ module Google
|
|
557
560
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
558
561
|
config_attr :quota_project, nil, ::String, nil
|
559
562
|
config_attr :universe_domain, nil, ::String, nil
|
563
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
560
564
|
|
561
565
|
# @private
|
562
566
|
def initialize parent_config = nil
|
@@ -676,16 +680,18 @@ module Google
|
|
676
680
|
|
677
681
|
response = @client_stub.make_http_request(
|
678
682
|
verb,
|
679
|
-
uri:
|
680
|
-
body:
|
681
|
-
params:
|
683
|
+
uri: uri,
|
684
|
+
body: body || "",
|
685
|
+
params: query_string_params,
|
686
|
+
method_name: "list_operations",
|
682
687
|
options: options
|
683
688
|
)
|
684
689
|
operation = ::Gapic::Rest::TransportOperation.new response
|
685
690
|
result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
|
686
|
-
|
687
|
-
|
688
|
-
|
691
|
+
catch :response do
|
692
|
+
yield result, operation if block_given?
|
693
|
+
result
|
694
|
+
end
|
689
695
|
end
|
690
696
|
|
691
697
|
##
|
@@ -714,16 +720,18 @@ module Google
|
|
714
720
|
|
715
721
|
response = @client_stub.make_http_request(
|
716
722
|
verb,
|
717
|
-
uri:
|
718
|
-
body:
|
719
|
-
params:
|
723
|
+
uri: uri,
|
724
|
+
body: body || "",
|
725
|
+
params: query_string_params,
|
726
|
+
method_name: "get_operation",
|
720
727
|
options: options
|
721
728
|
)
|
722
729
|
operation = ::Gapic::Rest::TransportOperation.new response
|
723
730
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
724
|
-
|
725
|
-
|
726
|
-
|
731
|
+
catch :response do
|
732
|
+
yield result, operation if block_given?
|
733
|
+
result
|
734
|
+
end
|
727
735
|
end
|
728
736
|
|
729
737
|
##
|
@@ -752,16 +760,18 @@ module Google
|
|
752
760
|
|
753
761
|
response = @client_stub.make_http_request(
|
754
762
|
verb,
|
755
|
-
uri:
|
756
|
-
body:
|
757
|
-
params:
|
763
|
+
uri: uri,
|
764
|
+
body: body || "",
|
765
|
+
params: query_string_params,
|
766
|
+
method_name: "delete_operation",
|
758
767
|
options: options
|
759
768
|
)
|
760
769
|
operation = ::Gapic::Rest::TransportOperation.new response
|
761
770
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
762
|
-
|
763
|
-
|
764
|
-
|
771
|
+
catch :response do
|
772
|
+
yield result, operation if block_given?
|
773
|
+
result
|
774
|
+
end
|
765
775
|
end
|
766
776
|
|
767
777
|
##
|
@@ -790,16 +800,18 @@ module Google
|
|
790
800
|
|
791
801
|
response = @client_stub.make_http_request(
|
792
802
|
verb,
|
793
|
-
uri:
|
794
|
-
body:
|
795
|
-
params:
|
803
|
+
uri: uri,
|
804
|
+
body: body || "",
|
805
|
+
params: query_string_params,
|
806
|
+
method_name: "cancel_operation",
|
796
807
|
options: options
|
797
808
|
)
|
798
809
|
operation = ::Gapic::Rest::TransportOperation.new response
|
799
810
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
800
|
-
|
801
|
-
|
802
|
-
|
811
|
+
catch :response do
|
812
|
+
yield result, operation if block_given?
|
813
|
+
result
|
814
|
+
end
|
803
815
|
end
|
804
816
|
|
805
817
|
##
|