google-cloud-dataplex-v1 1.0.1 → 1.2.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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/dataplex/v1/bindings_override.rb +120 -0
- data/lib/google/cloud/dataplex/v1/catalog_pb.rb +17 -1
- data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +626 -144
- data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +12 -15
- data/lib/google/cloud/dataplex/v1/catalog_service/paths.rb +19 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +592 -144
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +72 -38
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +435 -133
- data/lib/google/cloud/dataplex/v1/catalog_service/rest.rb +4 -4
- data/lib/google/cloud/dataplex/v1/catalog_service.rb +4 -4
- data/lib/google/cloud/dataplex/v1/catalog_services_pb.rb +44 -20
- 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_discovery_pb.rb +52 -0
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +34 -10
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +12 -15
- data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +36 -0
- 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 +72 -38
- 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 +12 -15
- 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 +72 -38
- 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 +12 -15
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +52 -34
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +72 -38
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +278 -200
- data/lib/google/cloud/dataplex/v1/datascans_pb.rb +3 -1
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +3 -1
- 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 +39 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/dataplex/v1/catalog.rb +710 -234
- data/proto_docs/google/cloud/dataplex/v1/data_discovery.rb +156 -0
- data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +4 -4
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +7 -2
- data/proto_docs/google/cloud/dataplex/v1/datascans.rb +30 -12
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +51 -1
- data/proto_docs/google/cloud/dataplex/v1/tasks.rb +3 -4
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +8 -5
@@ -277,14 +277,26 @@ module Google
|
|
277
277
|
universe_domain: @config.universe_domain,
|
278
278
|
channel_args: @config.channel_args,
|
279
279
|
interceptors: @config.interceptors,
|
280
|
-
channel_pool_config: @config.channel_pool
|
280
|
+
channel_pool_config: @config.channel_pool,
|
281
|
+
logger: @config.logger
|
281
282
|
)
|
282
283
|
|
284
|
+
@dataplex_service_stub.stub_logger&.info do |entry|
|
285
|
+
entry.set_system_name
|
286
|
+
entry.set_service
|
287
|
+
entry.message = "Created client for #{entry.service}"
|
288
|
+
entry.set_credentials_fields credentials
|
289
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
290
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
291
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
292
|
+
end
|
293
|
+
|
283
294
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
284
295
|
config.credentials = credentials
|
285
296
|
config.quota_project = @quota_project_id
|
286
297
|
config.endpoint = @dataplex_service_stub.endpoint
|
287
298
|
config.universe_domain = @dataplex_service_stub.universe_domain
|
299
|
+
config.logger = @dataplex_service_stub.logger if config.respond_to? :logger=
|
288
300
|
end
|
289
301
|
|
290
302
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -292,6 +304,7 @@ module Google
|
|
292
304
|
config.quota_project = @quota_project_id
|
293
305
|
config.endpoint = @dataplex_service_stub.endpoint
|
294
306
|
config.universe_domain = @dataplex_service_stub.universe_domain
|
307
|
+
config.logger = @dataplex_service_stub.logger if config.respond_to? :logger=
|
295
308
|
end
|
296
309
|
end
|
297
310
|
|
@@ -316,6 +329,15 @@ module Google
|
|
316
329
|
#
|
317
330
|
attr_reader :iam_policy_client
|
318
331
|
|
332
|
+
##
|
333
|
+
# The logger used for request/response debug logging.
|
334
|
+
#
|
335
|
+
# @return [Logger]
|
336
|
+
#
|
337
|
+
def logger
|
338
|
+
@dataplex_service_stub.logger
|
339
|
+
end
|
340
|
+
|
319
341
|
# Service calls
|
320
342
|
|
321
343
|
##
|
@@ -422,7 +444,7 @@ module Google
|
|
422
444
|
@dataplex_service_stub.call_rpc :create_lake, request, options: options do |response, operation|
|
423
445
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
424
446
|
yield response, operation if block_given?
|
425
|
-
|
447
|
+
throw :response, response
|
426
448
|
end
|
427
449
|
rescue ::GRPC::BadStatus => e
|
428
450
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -522,7 +544,7 @@ module Google
|
|
522
544
|
@dataplex_service_stub.call_rpc :update_lake, request, options: options do |response, operation|
|
523
545
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
524
546
|
yield response, operation if block_given?
|
525
|
-
|
547
|
+
throw :response, response
|
526
548
|
end
|
527
549
|
rescue ::GRPC::BadStatus => e
|
528
550
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -618,7 +640,7 @@ module Google
|
|
618
640
|
@dataplex_service_stub.call_rpc :delete_lake, request, options: options do |response, operation|
|
619
641
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
620
642
|
yield response, operation if block_given?
|
621
|
-
|
643
|
+
throw :response, response
|
622
644
|
end
|
623
645
|
rescue ::GRPC::BadStatus => e
|
624
646
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -723,7 +745,7 @@ module Google
|
|
723
745
|
@dataplex_service_stub.call_rpc :list_lakes, request, options: options do |response, operation|
|
724
746
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_lakes, request, response, operation, options
|
725
747
|
yield response, operation if block_given?
|
726
|
-
|
748
|
+
throw :response, response
|
727
749
|
end
|
728
750
|
rescue ::GRPC::BadStatus => e
|
729
751
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -810,7 +832,6 @@ module Google
|
|
810
832
|
|
811
833
|
@dataplex_service_stub.call_rpc :get_lake, request, options: options do |response, operation|
|
812
834
|
yield response, operation if block_given?
|
813
|
-
return response
|
814
835
|
end
|
815
836
|
rescue ::GRPC::BadStatus => e
|
816
837
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -911,7 +932,7 @@ module Google
|
|
911
932
|
@dataplex_service_stub.call_rpc :list_lake_actions, request, options: options do |response, operation|
|
912
933
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_lake_actions, request, response, operation, options
|
913
934
|
yield response, operation if block_given?
|
914
|
-
|
935
|
+
throw :response, response
|
915
936
|
end
|
916
937
|
rescue ::GRPC::BadStatus => e
|
917
938
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1021,7 +1042,7 @@ module Google
|
|
1021
1042
|
@dataplex_service_stub.call_rpc :create_zone, request, options: options do |response, operation|
|
1022
1043
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1023
1044
|
yield response, operation if block_given?
|
1024
|
-
|
1045
|
+
throw :response, response
|
1025
1046
|
end
|
1026
1047
|
rescue ::GRPC::BadStatus => e
|
1027
1048
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1121,7 +1142,7 @@ module Google
|
|
1121
1142
|
@dataplex_service_stub.call_rpc :update_zone, request, options: options do |response, operation|
|
1122
1143
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1123
1144
|
yield response, operation if block_given?
|
1124
|
-
|
1145
|
+
throw :response, response
|
1125
1146
|
end
|
1126
1147
|
rescue ::GRPC::BadStatus => e
|
1127
1148
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1217,7 +1238,7 @@ module Google
|
|
1217
1238
|
@dataplex_service_stub.call_rpc :delete_zone, request, options: options do |response, operation|
|
1218
1239
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1219
1240
|
yield response, operation if block_given?
|
1220
|
-
|
1241
|
+
throw :response, response
|
1221
1242
|
end
|
1222
1243
|
rescue ::GRPC::BadStatus => e
|
1223
1244
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1321,7 +1342,7 @@ module Google
|
|
1321
1342
|
@dataplex_service_stub.call_rpc :list_zones, request, options: options do |response, operation|
|
1322
1343
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_zones, request, response, operation, options
|
1323
1344
|
yield response, operation if block_given?
|
1324
|
-
|
1345
|
+
throw :response, response
|
1325
1346
|
end
|
1326
1347
|
rescue ::GRPC::BadStatus => e
|
1327
1348
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1408,7 +1429,6 @@ module Google
|
|
1408
1429
|
|
1409
1430
|
@dataplex_service_stub.call_rpc :get_zone, request, options: options do |response, operation|
|
1410
1431
|
yield response, operation if block_given?
|
1411
|
-
return response
|
1412
1432
|
end
|
1413
1433
|
rescue ::GRPC::BadStatus => e
|
1414
1434
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1509,7 +1529,7 @@ module Google
|
|
1509
1529
|
@dataplex_service_stub.call_rpc :list_zone_actions, request, options: options do |response, operation|
|
1510
1530
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_zone_actions, request, response, operation, options
|
1511
1531
|
yield response, operation if block_given?
|
1512
|
-
|
1532
|
+
throw :response, response
|
1513
1533
|
end
|
1514
1534
|
rescue ::GRPC::BadStatus => e
|
1515
1535
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1618,7 +1638,7 @@ module Google
|
|
1618
1638
|
@dataplex_service_stub.call_rpc :create_asset, request, options: options do |response, operation|
|
1619
1639
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1620
1640
|
yield response, operation if block_given?
|
1621
|
-
|
1641
|
+
throw :response, response
|
1622
1642
|
end
|
1623
1643
|
rescue ::GRPC::BadStatus => e
|
1624
1644
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1718,7 +1738,7 @@ module Google
|
|
1718
1738
|
@dataplex_service_stub.call_rpc :update_asset, request, options: options do |response, operation|
|
1719
1739
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1720
1740
|
yield response, operation if block_given?
|
1721
|
-
|
1741
|
+
throw :response, response
|
1722
1742
|
end
|
1723
1743
|
rescue ::GRPC::BadStatus => e
|
1724
1744
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1814,7 +1834,7 @@ module Google
|
|
1814
1834
|
@dataplex_service_stub.call_rpc :delete_asset, request, options: options do |response, operation|
|
1815
1835
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1816
1836
|
yield response, operation if block_given?
|
1817
|
-
|
1837
|
+
throw :response, response
|
1818
1838
|
end
|
1819
1839
|
rescue ::GRPC::BadStatus => e
|
1820
1840
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1919,7 +1939,7 @@ module Google
|
|
1919
1939
|
@dataplex_service_stub.call_rpc :list_assets, request, options: options do |response, operation|
|
1920
1940
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_assets, request, response, operation, options
|
1921
1941
|
yield response, operation if block_given?
|
1922
|
-
|
1942
|
+
throw :response, response
|
1923
1943
|
end
|
1924
1944
|
rescue ::GRPC::BadStatus => e
|
1925
1945
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2006,7 +2026,6 @@ module Google
|
|
2006
2026
|
|
2007
2027
|
@dataplex_service_stub.call_rpc :get_asset, request, options: options do |response, operation|
|
2008
2028
|
yield response, operation if block_given?
|
2009
|
-
return response
|
2010
2029
|
end
|
2011
2030
|
rescue ::GRPC::BadStatus => e
|
2012
2031
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2107,7 +2126,7 @@ module Google
|
|
2107
2126
|
@dataplex_service_stub.call_rpc :list_asset_actions, request, options: options do |response, operation|
|
2108
2127
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_asset_actions, request, response, operation, options
|
2109
2128
|
yield response, operation if block_given?
|
2110
|
-
|
2129
|
+
throw :response, response
|
2111
2130
|
end
|
2112
2131
|
rescue ::GRPC::BadStatus => e
|
2113
2132
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2209,7 +2228,7 @@ module Google
|
|
2209
2228
|
@dataplex_service_stub.call_rpc :create_task, request, options: options do |response, operation|
|
2210
2229
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2211
2230
|
yield response, operation if block_given?
|
2212
|
-
|
2231
|
+
throw :response, response
|
2213
2232
|
end
|
2214
2233
|
rescue ::GRPC::BadStatus => e
|
2215
2234
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2309,7 +2328,7 @@ module Google
|
|
2309
2328
|
@dataplex_service_stub.call_rpc :update_task, request, options: options do |response, operation|
|
2310
2329
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2311
2330
|
yield response, operation if block_given?
|
2312
|
-
|
2331
|
+
throw :response, response
|
2313
2332
|
end
|
2314
2333
|
rescue ::GRPC::BadStatus => e
|
2315
2334
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2404,7 +2423,7 @@ module Google
|
|
2404
2423
|
@dataplex_service_stub.call_rpc :delete_task, request, options: options do |response, operation|
|
2405
2424
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2406
2425
|
yield response, operation if block_given?
|
2407
|
-
|
2426
|
+
throw :response, response
|
2408
2427
|
end
|
2409
2428
|
rescue ::GRPC::BadStatus => e
|
2410
2429
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2508,7 +2527,7 @@ module Google
|
|
2508
2527
|
@dataplex_service_stub.call_rpc :list_tasks, request, options: options do |response, operation|
|
2509
2528
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_tasks, request, response, operation, options
|
2510
2529
|
yield response, operation if block_given?
|
2511
|
-
|
2530
|
+
throw :response, response
|
2512
2531
|
end
|
2513
2532
|
rescue ::GRPC::BadStatus => e
|
2514
2533
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2595,7 +2614,6 @@ module Google
|
|
2595
2614
|
|
2596
2615
|
@dataplex_service_stub.call_rpc :get_task, request, options: options do |response, operation|
|
2597
2616
|
yield response, operation if block_given?
|
2598
|
-
return response
|
2599
2617
|
end
|
2600
2618
|
rescue ::GRPC::BadStatus => e
|
2601
2619
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2696,7 +2714,7 @@ module Google
|
|
2696
2714
|
@dataplex_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
|
2697
2715
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_jobs, request, response, operation, options
|
2698
2716
|
yield response, operation if block_given?
|
2699
|
-
|
2717
|
+
throw :response, response
|
2700
2718
|
end
|
2701
2719
|
rescue ::GRPC::BadStatus => e
|
2702
2720
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2799,7 +2817,6 @@ module Google
|
|
2799
2817
|
|
2800
2818
|
@dataplex_service_stub.call_rpc :run_task, request, options: options do |response, operation|
|
2801
2819
|
yield response, operation if block_given?
|
2802
|
-
return response
|
2803
2820
|
end
|
2804
2821
|
rescue ::GRPC::BadStatus => e
|
2805
2822
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2886,7 +2903,6 @@ module Google
|
|
2886
2903
|
|
2887
2904
|
@dataplex_service_stub.call_rpc :get_job, request, options: options do |response, operation|
|
2888
2905
|
yield response, operation if block_given?
|
2889
|
-
return response
|
2890
2906
|
end
|
2891
2907
|
rescue ::GRPC::BadStatus => e
|
2892
2908
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2973,7 +2989,6 @@ module Google
|
|
2973
2989
|
|
2974
2990
|
@dataplex_service_stub.call_rpc :cancel_job, request, options: options do |response, operation|
|
2975
2991
|
yield response, operation if block_given?
|
2976
|
-
return response
|
2977
2992
|
end
|
2978
2993
|
rescue ::GRPC::BadStatus => e
|
2979
2994
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3080,7 +3095,7 @@ module Google
|
|
3080
3095
|
@dataplex_service_stub.call_rpc :create_environment, request, options: options do |response, operation|
|
3081
3096
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3082
3097
|
yield response, operation if block_given?
|
3083
|
-
|
3098
|
+
throw :response, response
|
3084
3099
|
end
|
3085
3100
|
rescue ::GRPC::BadStatus => e
|
3086
3101
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3180,7 +3195,7 @@ module Google
|
|
3180
3195
|
@dataplex_service_stub.call_rpc :update_environment, request, options: options do |response, operation|
|
3181
3196
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3182
3197
|
yield response, operation if block_given?
|
3183
|
-
|
3198
|
+
throw :response, response
|
3184
3199
|
end
|
3185
3200
|
rescue ::GRPC::BadStatus => e
|
3186
3201
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3276,7 +3291,7 @@ module Google
|
|
3276
3291
|
@dataplex_service_stub.call_rpc :delete_environment, request, options: options do |response, operation|
|
3277
3292
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3278
3293
|
yield response, operation if block_given?
|
3279
|
-
|
3294
|
+
throw :response, response
|
3280
3295
|
end
|
3281
3296
|
rescue ::GRPC::BadStatus => e
|
3282
3297
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3382,7 +3397,7 @@ module Google
|
|
3382
3397
|
@dataplex_service_stub.call_rpc :list_environments, request, options: options do |response, operation|
|
3383
3398
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_environments, request, response, operation, options
|
3384
3399
|
yield response, operation if block_given?
|
3385
|
-
|
3400
|
+
throw :response, response
|
3386
3401
|
end
|
3387
3402
|
rescue ::GRPC::BadStatus => e
|
3388
3403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3469,7 +3484,6 @@ module Google
|
|
3469
3484
|
|
3470
3485
|
@dataplex_service_stub.call_rpc :get_environment, request, options: options do |response, operation|
|
3471
3486
|
yield response, operation if block_given?
|
3472
|
-
return response
|
3473
3487
|
end
|
3474
3488
|
rescue ::GRPC::BadStatus => e
|
3475
3489
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3580,7 +3594,7 @@ module Google
|
|
3580
3594
|
@dataplex_service_stub.call_rpc :list_sessions, request, options: options do |response, operation|
|
3581
3595
|
response = ::Gapic::PagedEnumerable.new @dataplex_service_stub, :list_sessions, request, response, operation, options
|
3582
3596
|
yield response, operation if block_given?
|
3583
|
-
|
3597
|
+
throw :response, response
|
3584
3598
|
end
|
3585
3599
|
rescue ::GRPC::BadStatus => e
|
3586
3600
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3669,6 +3683,11 @@ module Google
|
|
3669
3683
|
# default endpoint URL. The default value of nil uses the environment
|
3670
3684
|
# universe (usually the default "googleapis.com" universe).
|
3671
3685
|
# @return [::String,nil]
|
3686
|
+
# @!attribute [rw] logger
|
3687
|
+
# A custom logger to use for request/response debug logging, or the value
|
3688
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3689
|
+
# explicitly disable logging.
|
3690
|
+
# @return [::Logger,:default,nil]
|
3672
3691
|
#
|
3673
3692
|
class Configuration
|
3674
3693
|
extend ::Gapic::Config
|
@@ -3693,6 +3712,7 @@ module Google
|
|
3693
3712
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3694
3713
|
config_attr :quota_project, nil, ::String, nil
|
3695
3714
|
config_attr :universe_domain, nil, ::String, nil
|
3715
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
3696
3716
|
|
3697
3717
|
# @private
|
3698
3718
|
def initialize parent_config = nil
|
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -688,6 +679,11 @@ module Google
|
|
688
679
|
# default endpoint URL. The default value of nil uses the environment
|
689
680
|
# universe (usually the default "googleapis.com" universe).
|
690
681
|
# @return [::String,nil]
|
682
|
+
# @!attribute [rw] logger
|
683
|
+
# A custom logger to use for request/response debug logging, or the value
|
684
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
685
|
+
# explicitly disable logging.
|
686
|
+
# @return [::Logger,:default,nil]
|
691
687
|
#
|
692
688
|
class Configuration
|
693
689
|
extend ::Gapic::Config
|
@@ -712,6 +708,7 @@ module Google
|
|
712
708
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
709
|
config_attr :quota_project, nil, ::String, nil
|
714
710
|
config_attr :universe_domain, nil, ::String, nil
|
711
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
712
|
|
716
713
|
# @private
|
717
714
|
def initialize parent_config = nil
|