google-cloud-dlp-v2 1.5.0 → 1.7.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 +31 -21
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +51 -56
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +51 -56
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +454 -332
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +25 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +278 -0
- data/proto_docs/google/privacy/dlp/v2/storage.rb +32 -0
- metadata +6 -9
|
@@ -347,14 +347,26 @@ module Google
|
|
|
347
347
|
endpoint: @config.endpoint,
|
|
348
348
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
349
349
|
universe_domain: @config.universe_domain,
|
|
350
|
-
credentials: credentials
|
|
350
|
+
credentials: credentials,
|
|
351
|
+
logger: @config.logger
|
|
351
352
|
)
|
|
352
353
|
|
|
354
|
+
@dlp_service_stub.logger(stub: true)&.info do |entry|
|
|
355
|
+
entry.set_system_name
|
|
356
|
+
entry.set_service
|
|
357
|
+
entry.message = "Created client for #{entry.service}"
|
|
358
|
+
entry.set_credentials_fields credentials
|
|
359
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
360
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
361
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
362
|
+
end
|
|
363
|
+
|
|
353
364
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
354
365
|
config.credentials = credentials
|
|
355
366
|
config.quota_project = @quota_project_id
|
|
356
367
|
config.endpoint = @dlp_service_stub.endpoint
|
|
357
368
|
config.universe_domain = @dlp_service_stub.universe_domain
|
|
369
|
+
config.logger = @dlp_service_stub.logger if config.respond_to? :logger=
|
|
358
370
|
end
|
|
359
371
|
end
|
|
360
372
|
|
|
@@ -365,6 +377,15 @@ module Google
|
|
|
365
377
|
#
|
|
366
378
|
attr_reader :location_client
|
|
367
379
|
|
|
380
|
+
##
|
|
381
|
+
# The logger used for request/response debug logging.
|
|
382
|
+
#
|
|
383
|
+
# @return [Logger]
|
|
384
|
+
#
|
|
385
|
+
def logger
|
|
386
|
+
@dlp_service_stub.logger
|
|
387
|
+
end
|
|
388
|
+
|
|
368
389
|
# Service calls
|
|
369
390
|
|
|
370
391
|
##
|
|
@@ -478,7 +499,6 @@ module Google
|
|
|
478
499
|
|
|
479
500
|
@dlp_service_stub.inspect_content request, options do |result, operation|
|
|
480
501
|
yield result, operation if block_given?
|
|
481
|
-
return result
|
|
482
502
|
end
|
|
483
503
|
rescue ::Gapic::Rest::Error => e
|
|
484
504
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -591,7 +611,6 @@ module Google
|
|
|
591
611
|
|
|
592
612
|
@dlp_service_stub.redact_image request, options do |result, operation|
|
|
593
613
|
yield result, operation if block_given?
|
|
594
|
-
return result
|
|
595
614
|
end
|
|
596
615
|
rescue ::Gapic::Rest::Error => e
|
|
597
616
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -724,7 +743,6 @@ module Google
|
|
|
724
743
|
|
|
725
744
|
@dlp_service_stub.deidentify_content request, options do |result, operation|
|
|
726
745
|
yield result, operation if block_given?
|
|
727
|
-
return result
|
|
728
746
|
end
|
|
729
747
|
rescue ::Gapic::Rest::Error => e
|
|
730
748
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -852,7 +870,6 @@ module Google
|
|
|
852
870
|
|
|
853
871
|
@dlp_service_stub.reidentify_content request, options do |result, operation|
|
|
854
872
|
yield result, operation if block_given?
|
|
855
|
-
return result
|
|
856
873
|
end
|
|
857
874
|
rescue ::Gapic::Rest::Error => e
|
|
858
875
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -947,7 +964,6 @@ module Google
|
|
|
947
964
|
|
|
948
965
|
@dlp_service_stub.list_info_types request, options do |result, operation|
|
|
949
966
|
yield result, operation if block_given?
|
|
950
|
-
return result
|
|
951
967
|
end
|
|
952
968
|
rescue ::Gapic::Rest::Error => e
|
|
953
969
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1058,7 +1074,6 @@ module Google
|
|
|
1058
1074
|
|
|
1059
1075
|
@dlp_service_stub.create_inspect_template request, options do |result, operation|
|
|
1060
1076
|
yield result, operation if block_given?
|
|
1061
|
-
return result
|
|
1062
1077
|
end
|
|
1063
1078
|
rescue ::Gapic::Rest::Error => e
|
|
1064
1079
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1146,7 +1161,6 @@ module Google
|
|
|
1146
1161
|
|
|
1147
1162
|
@dlp_service_stub.update_inspect_template request, options do |result, operation|
|
|
1148
1163
|
yield result, operation if block_given?
|
|
1149
|
-
return result
|
|
1150
1164
|
end
|
|
1151
1165
|
rescue ::Gapic::Rest::Error => e
|
|
1152
1166
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1230,7 +1244,6 @@ module Google
|
|
|
1230
1244
|
|
|
1231
1245
|
@dlp_service_stub.get_inspect_template request, options do |result, operation|
|
|
1232
1246
|
yield result, operation if block_given?
|
|
1233
|
-
return result
|
|
1234
1247
|
end
|
|
1235
1248
|
rescue ::Gapic::Rest::Error => e
|
|
1236
1249
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1358,7 +1371,7 @@ module Google
|
|
|
1358
1371
|
@dlp_service_stub.list_inspect_templates request, options do |result, operation|
|
|
1359
1372
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_inspect_templates, "inspect_templates", request, result, options
|
|
1360
1373
|
yield result, operation if block_given?
|
|
1361
|
-
|
|
1374
|
+
throw :response, result
|
|
1362
1375
|
end
|
|
1363
1376
|
rescue ::Gapic::Rest::Error => e
|
|
1364
1377
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1442,7 +1455,6 @@ module Google
|
|
|
1442
1455
|
|
|
1443
1456
|
@dlp_service_stub.delete_inspect_template request, options do |result, operation|
|
|
1444
1457
|
yield result, operation if block_given?
|
|
1445
|
-
return result
|
|
1446
1458
|
end
|
|
1447
1459
|
rescue ::Gapic::Rest::Error => e
|
|
1448
1460
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1553,7 +1565,6 @@ module Google
|
|
|
1553
1565
|
|
|
1554
1566
|
@dlp_service_stub.create_deidentify_template request, options do |result, operation|
|
|
1555
1567
|
yield result, operation if block_given?
|
|
1556
|
-
return result
|
|
1557
1568
|
end
|
|
1558
1569
|
rescue ::Gapic::Rest::Error => e
|
|
1559
1570
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1642,7 +1653,6 @@ module Google
|
|
|
1642
1653
|
|
|
1643
1654
|
@dlp_service_stub.update_deidentify_template request, options do |result, operation|
|
|
1644
1655
|
yield result, operation if block_given?
|
|
1645
|
-
return result
|
|
1646
1656
|
end
|
|
1647
1657
|
rescue ::Gapic::Rest::Error => e
|
|
1648
1658
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1726,7 +1736,6 @@ module Google
|
|
|
1726
1736
|
|
|
1727
1737
|
@dlp_service_stub.get_deidentify_template request, options do |result, operation|
|
|
1728
1738
|
yield result, operation if block_given?
|
|
1729
|
-
return result
|
|
1730
1739
|
end
|
|
1731
1740
|
rescue ::Gapic::Rest::Error => e
|
|
1732
1741
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1854,7 +1863,7 @@ module Google
|
|
|
1854
1863
|
@dlp_service_stub.list_deidentify_templates request, options do |result, operation|
|
|
1855
1864
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_deidentify_templates, "deidentify_templates", request, result, options
|
|
1856
1865
|
yield result, operation if block_given?
|
|
1857
|
-
|
|
1866
|
+
throw :response, result
|
|
1858
1867
|
end
|
|
1859
1868
|
rescue ::Gapic::Rest::Error => e
|
|
1860
1869
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1939,7 +1948,6 @@ module Google
|
|
|
1939
1948
|
|
|
1940
1949
|
@dlp_service_stub.delete_deidentify_template request, options do |result, operation|
|
|
1941
1950
|
yield result, operation if block_given?
|
|
1942
|
-
return result
|
|
1943
1951
|
end
|
|
1944
1952
|
rescue ::Gapic::Rest::Error => e
|
|
1945
1953
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2046,7 +2054,6 @@ module Google
|
|
|
2046
2054
|
|
|
2047
2055
|
@dlp_service_stub.create_job_trigger request, options do |result, operation|
|
|
2048
2056
|
yield result, operation if block_given?
|
|
2049
|
-
return result
|
|
2050
2057
|
end
|
|
2051
2058
|
rescue ::Gapic::Rest::Error => e
|
|
2052
2059
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2133,7 +2140,6 @@ module Google
|
|
|
2133
2140
|
|
|
2134
2141
|
@dlp_service_stub.update_job_trigger request, options do |result, operation|
|
|
2135
2142
|
yield result, operation if block_given?
|
|
2136
|
-
return result
|
|
2137
2143
|
end
|
|
2138
2144
|
rescue ::Gapic::Rest::Error => e
|
|
2139
2145
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2217,7 +2223,6 @@ module Google
|
|
|
2217
2223
|
|
|
2218
2224
|
@dlp_service_stub.hybrid_inspect_job_trigger request, options do |result, operation|
|
|
2219
2225
|
yield result, operation if block_given?
|
|
2220
|
-
return result
|
|
2221
2226
|
end
|
|
2222
2227
|
rescue ::Gapic::Rest::Error => e
|
|
2223
2228
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2300,7 +2305,6 @@ module Google
|
|
|
2300
2305
|
|
|
2301
2306
|
@dlp_service_stub.get_job_trigger request, options do |result, operation|
|
|
2302
2307
|
yield result, operation if block_given?
|
|
2303
|
-
return result
|
|
2304
2308
|
end
|
|
2305
2309
|
rescue ::Gapic::Rest::Error => e
|
|
2306
2310
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2453,7 +2457,7 @@ module Google
|
|
|
2453
2457
|
@dlp_service_stub.list_job_triggers request, options do |result, operation|
|
|
2454
2458
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_job_triggers, "job_triggers", request, result, options
|
|
2455
2459
|
yield result, operation if block_given?
|
|
2456
|
-
|
|
2460
|
+
throw :response, result
|
|
2457
2461
|
end
|
|
2458
2462
|
rescue ::Gapic::Rest::Error => e
|
|
2459
2463
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2536,7 +2540,6 @@ module Google
|
|
|
2536
2540
|
|
|
2537
2541
|
@dlp_service_stub.delete_job_trigger request, options do |result, operation|
|
|
2538
2542
|
yield result, operation if block_given?
|
|
2539
|
-
return result
|
|
2540
2543
|
end
|
|
2541
2544
|
rescue ::Gapic::Rest::Error => e
|
|
2542
2545
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2617,7 +2620,6 @@ module Google
|
|
|
2617
2620
|
|
|
2618
2621
|
@dlp_service_stub.activate_job_trigger request, options do |result, operation|
|
|
2619
2622
|
yield result, operation if block_given?
|
|
2620
|
-
return result
|
|
2621
2623
|
end
|
|
2622
2624
|
rescue ::Gapic::Rest::Error => e
|
|
2623
2625
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2717,7 +2719,6 @@ module Google
|
|
|
2717
2719
|
|
|
2718
2720
|
@dlp_service_stub.create_discovery_config request, options do |result, operation|
|
|
2719
2721
|
yield result, operation if block_given?
|
|
2720
|
-
return result
|
|
2721
2722
|
end
|
|
2722
2723
|
rescue ::Gapic::Rest::Error => e
|
|
2723
2724
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2801,7 +2802,6 @@ module Google
|
|
|
2801
2802
|
|
|
2802
2803
|
@dlp_service_stub.update_discovery_config request, options do |result, operation|
|
|
2803
2804
|
yield result, operation if block_given?
|
|
2804
|
-
return result
|
|
2805
2805
|
end
|
|
2806
2806
|
rescue ::Gapic::Rest::Error => e
|
|
2807
2807
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2881,7 +2881,6 @@ module Google
|
|
|
2881
2881
|
|
|
2882
2882
|
@dlp_service_stub.get_discovery_config request, options do |result, operation|
|
|
2883
2883
|
yield result, operation if block_given?
|
|
2884
|
-
return result
|
|
2885
2884
|
end
|
|
2886
2885
|
rescue ::Gapic::Rest::Error => e
|
|
2887
2886
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2993,7 +2992,7 @@ module Google
|
|
|
2993
2992
|
@dlp_service_stub.list_discovery_configs request, options do |result, operation|
|
|
2994
2993
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_discovery_configs, "discovery_configs", request, result, options
|
|
2995
2994
|
yield result, operation if block_given?
|
|
2996
|
-
|
|
2995
|
+
throw :response, result
|
|
2997
2996
|
end
|
|
2998
2997
|
rescue ::Gapic::Rest::Error => e
|
|
2999
2998
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3073,7 +3072,6 @@ module Google
|
|
|
3073
3072
|
|
|
3074
3073
|
@dlp_service_stub.delete_discovery_config request, options do |result, operation|
|
|
3075
3074
|
yield result, operation if block_given?
|
|
3076
|
-
return result
|
|
3077
3075
|
end
|
|
3078
3076
|
rescue ::Gapic::Rest::Error => e
|
|
3079
3077
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3125,9 +3123,13 @@ module Google
|
|
|
3125
3123
|
# parent=projects/example-project/locations/europe-west3
|
|
3126
3124
|
# @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
|
|
3127
3125
|
# An inspection job scans a storage repository for InfoTypes.
|
|
3126
|
+
#
|
|
3127
|
+
# Note: The following fields are mutually exclusive: `inspect_job`, `risk_job`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
3128
3128
|
# @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
|
|
3129
3129
|
# A risk analysis job calculates re-identification risk metrics for a
|
|
3130
3130
|
# BigQuery table.
|
|
3131
|
+
#
|
|
3132
|
+
# Note: The following fields are mutually exclusive: `risk_job`, `inspect_job`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
3131
3133
|
# @param job_id [::String]
|
|
3132
3134
|
# The job id can contain uppercase and lowercase letters,
|
|
3133
3135
|
# numbers, and hyphens; that is, it must match the regular
|
|
@@ -3188,7 +3190,6 @@ module Google
|
|
|
3188
3190
|
|
|
3189
3191
|
@dlp_service_stub.create_dlp_job request, options do |result, operation|
|
|
3190
3192
|
yield result, operation if block_given?
|
|
3191
|
-
return result
|
|
3192
3193
|
end
|
|
3193
3194
|
rescue ::Gapic::Rest::Error => e
|
|
3194
3195
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3343,7 +3344,7 @@ module Google
|
|
|
3343
3344
|
@dlp_service_stub.list_dlp_jobs request, options do |result, operation|
|
|
3344
3345
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, "jobs", request, result, options
|
|
3345
3346
|
yield result, operation if block_given?
|
|
3346
|
-
|
|
3347
|
+
throw :response, result
|
|
3347
3348
|
end
|
|
3348
3349
|
rescue ::Gapic::Rest::Error => e
|
|
3349
3350
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3427,7 +3428,6 @@ module Google
|
|
|
3427
3428
|
|
|
3428
3429
|
@dlp_service_stub.get_dlp_job request, options do |result, operation|
|
|
3429
3430
|
yield result, operation if block_given?
|
|
3430
|
-
return result
|
|
3431
3431
|
end
|
|
3432
3432
|
rescue ::Gapic::Rest::Error => e
|
|
3433
3433
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3513,7 +3513,6 @@ module Google
|
|
|
3513
3513
|
|
|
3514
3514
|
@dlp_service_stub.delete_dlp_job request, options do |result, operation|
|
|
3515
3515
|
yield result, operation if block_given?
|
|
3516
|
-
return result
|
|
3517
3516
|
end
|
|
3518
3517
|
rescue ::Gapic::Rest::Error => e
|
|
3519
3518
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3599,7 +3598,6 @@ module Google
|
|
|
3599
3598
|
|
|
3600
3599
|
@dlp_service_stub.cancel_dlp_job request, options do |result, operation|
|
|
3601
3600
|
yield result, operation if block_given?
|
|
3602
|
-
return result
|
|
3603
3601
|
end
|
|
3604
3602
|
rescue ::Gapic::Rest::Error => e
|
|
3605
3603
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3709,7 +3707,6 @@ module Google
|
|
|
3709
3707
|
|
|
3710
3708
|
@dlp_service_stub.create_stored_info_type request, options do |result, operation|
|
|
3711
3709
|
yield result, operation if block_given?
|
|
3712
|
-
return result
|
|
3713
3710
|
end
|
|
3714
3711
|
rescue ::Gapic::Rest::Error => e
|
|
3715
3712
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3800,7 +3797,6 @@ module Google
|
|
|
3800
3797
|
|
|
3801
3798
|
@dlp_service_stub.update_stored_info_type request, options do |result, operation|
|
|
3802
3799
|
yield result, operation if block_given?
|
|
3803
|
-
return result
|
|
3804
3800
|
end
|
|
3805
3801
|
rescue ::Gapic::Rest::Error => e
|
|
3806
3802
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3884,7 +3880,6 @@ module Google
|
|
|
3884
3880
|
|
|
3885
3881
|
@dlp_service_stub.get_stored_info_type request, options do |result, operation|
|
|
3886
3882
|
yield result, operation if block_given?
|
|
3887
|
-
return result
|
|
3888
3883
|
end
|
|
3889
3884
|
rescue ::Gapic::Rest::Error => e
|
|
3890
3885
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4009,7 +4004,7 @@ module Google
|
|
|
4009
4004
|
@dlp_service_stub.list_stored_info_types request, options do |result, operation|
|
|
4010
4005
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, "stored_info_types", request, result, options
|
|
4011
4006
|
yield result, operation if block_given?
|
|
4012
|
-
|
|
4007
|
+
throw :response, result
|
|
4013
4008
|
end
|
|
4014
4009
|
rescue ::Gapic::Rest::Error => e
|
|
4015
4010
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4093,7 +4088,6 @@ module Google
|
|
|
4093
4088
|
|
|
4094
4089
|
@dlp_service_stub.delete_stored_info_type request, options do |result, operation|
|
|
4095
4090
|
yield result, operation if block_given?
|
|
4096
|
-
return result
|
|
4097
4091
|
end
|
|
4098
4092
|
rescue ::Gapic::Rest::Error => e
|
|
4099
4093
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4221,7 +4215,7 @@ module Google
|
|
|
4221
4215
|
@dlp_service_stub.list_project_data_profiles request, options do |result, operation|
|
|
4222
4216
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, "project_data_profiles", request, result, options
|
|
4223
4217
|
yield result, operation if block_given?
|
|
4224
|
-
|
|
4218
|
+
throw :response, result
|
|
4225
4219
|
end
|
|
4226
4220
|
rescue ::Gapic::Rest::Error => e
|
|
4227
4221
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4362,7 +4356,7 @@ module Google
|
|
|
4362
4356
|
@dlp_service_stub.list_table_data_profiles request, options do |result, operation|
|
|
4363
4357
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, "table_data_profiles", request, result, options
|
|
4364
4358
|
yield result, operation if block_given?
|
|
4365
|
-
|
|
4359
|
+
throw :response, result
|
|
4366
4360
|
end
|
|
4367
4361
|
rescue ::Gapic::Rest::Error => e
|
|
4368
4362
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4505,7 +4499,7 @@ module Google
|
|
|
4505
4499
|
@dlp_service_stub.list_column_data_profiles request, options do |result, operation|
|
|
4506
4500
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, "column_data_profiles", request, result, options
|
|
4507
4501
|
yield result, operation if block_given?
|
|
4508
|
-
|
|
4502
|
+
throw :response, result
|
|
4509
4503
|
end
|
|
4510
4504
|
rescue ::Gapic::Rest::Error => e
|
|
4511
4505
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4585,7 +4579,6 @@ module Google
|
|
|
4585
4579
|
|
|
4586
4580
|
@dlp_service_stub.get_project_data_profile request, options do |result, operation|
|
|
4587
4581
|
yield result, operation if block_given?
|
|
4588
|
-
return result
|
|
4589
4582
|
end
|
|
4590
4583
|
rescue ::Gapic::Rest::Error => e
|
|
4591
4584
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4731,7 +4724,7 @@ module Google
|
|
|
4731
4724
|
@dlp_service_stub.list_file_store_data_profiles request, options do |result, operation|
|
|
4732
4725
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, "file_store_data_profiles", request, result, options
|
|
4733
4726
|
yield result, operation if block_given?
|
|
4734
|
-
|
|
4727
|
+
throw :response, result
|
|
4735
4728
|
end
|
|
4736
4729
|
rescue ::Gapic::Rest::Error => e
|
|
4737
4730
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4811,7 +4804,6 @@ module Google
|
|
|
4811
4804
|
|
|
4812
4805
|
@dlp_service_stub.get_file_store_data_profile request, options do |result, operation|
|
|
4813
4806
|
yield result, operation if block_given?
|
|
4814
|
-
return result
|
|
4815
4807
|
end
|
|
4816
4808
|
rescue ::Gapic::Rest::Error => e
|
|
4817
4809
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4891,7 +4883,6 @@ module Google
|
|
|
4891
4883
|
|
|
4892
4884
|
@dlp_service_stub.delete_file_store_data_profile request, options do |result, operation|
|
|
4893
4885
|
yield result, operation if block_given?
|
|
4894
|
-
return result
|
|
4895
4886
|
end
|
|
4896
4887
|
rescue ::Gapic::Rest::Error => e
|
|
4897
4888
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -4971,7 +4962,6 @@ module Google
|
|
|
4971
4962
|
|
|
4972
4963
|
@dlp_service_stub.get_table_data_profile request, options do |result, operation|
|
|
4973
4964
|
yield result, operation if block_given?
|
|
4974
|
-
return result
|
|
4975
4965
|
end
|
|
4976
4966
|
rescue ::Gapic::Rest::Error => e
|
|
4977
4967
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5051,7 +5041,6 @@ module Google
|
|
|
5051
5041
|
|
|
5052
5042
|
@dlp_service_stub.get_column_data_profile request, options do |result, operation|
|
|
5053
5043
|
yield result, operation if block_given?
|
|
5054
|
-
return result
|
|
5055
5044
|
end
|
|
5056
5045
|
rescue ::Gapic::Rest::Error => e
|
|
5057
5046
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5131,7 +5120,6 @@ module Google
|
|
|
5131
5120
|
|
|
5132
5121
|
@dlp_service_stub.delete_table_data_profile request, options do |result, operation|
|
|
5133
5122
|
yield result, operation if block_given?
|
|
5134
|
-
return result
|
|
5135
5123
|
end
|
|
5136
5124
|
rescue ::Gapic::Rest::Error => e
|
|
5137
5125
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5215,7 +5203,6 @@ module Google
|
|
|
5215
5203
|
|
|
5216
5204
|
@dlp_service_stub.hybrid_inspect_dlp_job request, options do |result, operation|
|
|
5217
5205
|
yield result, operation if block_given?
|
|
5218
|
-
return result
|
|
5219
5206
|
end
|
|
5220
5207
|
rescue ::Gapic::Rest::Error => e
|
|
5221
5208
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5295,7 +5282,6 @@ module Google
|
|
|
5295
5282
|
|
|
5296
5283
|
@dlp_service_stub.finish_dlp_job request, options do |result, operation|
|
|
5297
5284
|
yield result, operation if block_given?
|
|
5298
|
-
return result
|
|
5299
5285
|
end
|
|
5300
5286
|
rescue ::Gapic::Rest::Error => e
|
|
5301
5287
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5384,7 +5370,6 @@ module Google
|
|
|
5384
5370
|
|
|
5385
5371
|
@dlp_service_stub.create_connection request, options do |result, operation|
|
|
5386
5372
|
yield result, operation if block_given?
|
|
5387
|
-
return result
|
|
5388
5373
|
end
|
|
5389
5374
|
rescue ::Gapic::Rest::Error => e
|
|
5390
5375
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5464,7 +5449,6 @@ module Google
|
|
|
5464
5449
|
|
|
5465
5450
|
@dlp_service_stub.get_connection request, options do |result, operation|
|
|
5466
5451
|
yield result, operation if block_given?
|
|
5467
|
-
return result
|
|
5468
5452
|
end
|
|
5469
5453
|
rescue ::Gapic::Rest::Error => e
|
|
5470
5454
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5558,7 +5542,7 @@ module Google
|
|
|
5558
5542
|
@dlp_service_stub.list_connections request, options do |result, operation|
|
|
5559
5543
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_connections, "connections", request, result, options
|
|
5560
5544
|
yield result, operation if block_given?
|
|
5561
|
-
|
|
5545
|
+
throw :response, result
|
|
5562
5546
|
end
|
|
5563
5547
|
rescue ::Gapic::Rest::Error => e
|
|
5564
5548
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5651,7 +5635,7 @@ module Google
|
|
|
5651
5635
|
@dlp_service_stub.search_connections request, options do |result, operation|
|
|
5652
5636
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :search_connections, "connections", request, result, options
|
|
5653
5637
|
yield result, operation if block_given?
|
|
5654
|
-
|
|
5638
|
+
throw :response, result
|
|
5655
5639
|
end
|
|
5656
5640
|
rescue ::Gapic::Rest::Error => e
|
|
5657
5641
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5731,7 +5715,6 @@ module Google
|
|
|
5731
5715
|
|
|
5732
5716
|
@dlp_service_stub.delete_connection request, options do |result, operation|
|
|
5733
5717
|
yield result, operation if block_given?
|
|
5734
|
-
return result
|
|
5735
5718
|
end
|
|
5736
5719
|
rescue ::Gapic::Rest::Error => e
|
|
5737
5720
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5815,7 +5798,6 @@ module Google
|
|
|
5815
5798
|
|
|
5816
5799
|
@dlp_service_stub.update_connection request, options do |result, operation|
|
|
5817
5800
|
yield result, operation if block_given?
|
|
5818
|
-
return result
|
|
5819
5801
|
end
|
|
5820
5802
|
rescue ::Gapic::Rest::Error => e
|
|
5821
5803
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -5863,6 +5845,13 @@ module Google
|
|
|
5863
5845
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
5864
5846
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
5865
5847
|
# * (`nil`) indicating no credentials
|
|
5848
|
+
#
|
|
5849
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
5850
|
+
# external source for authentication to Google Cloud, you must validate it before
|
|
5851
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
|
5852
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
|
5853
|
+
# For more information, refer to [Validate credential configurations from external
|
|
5854
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
5866
5855
|
# @return [::Object]
|
|
5867
5856
|
# @!attribute [rw] scope
|
|
5868
5857
|
# The OAuth scopes
|
|
@@ -5895,6 +5884,11 @@ module Google
|
|
|
5895
5884
|
# default endpoint URL. The default value of nil uses the environment
|
|
5896
5885
|
# universe (usually the default "googleapis.com" universe).
|
|
5897
5886
|
# @return [::String,nil]
|
|
5887
|
+
# @!attribute [rw] logger
|
|
5888
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
5889
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
5890
|
+
# explicitly disable logging.
|
|
5891
|
+
# @return [::Logger,:default,nil]
|
|
5898
5892
|
#
|
|
5899
5893
|
class Configuration
|
|
5900
5894
|
extend ::Gapic::Config
|
|
@@ -5916,6 +5910,7 @@ module Google
|
|
|
5916
5910
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
5917
5911
|
config_attr :quota_project, nil, ::String, nil
|
|
5918
5912
|
config_attr :universe_domain, nil, ::String, nil
|
|
5913
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
5919
5914
|
|
|
5920
5915
|
# @private
|
|
5921
5916
|
def initialize parent_config = nil
|