google-cloud-dlp-v2 0.22.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +787 -51
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +19 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +738 -51
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +429 -0
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +30 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +18 -3
- data/lib/google/privacy/dlp/v2/storage_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +527 -14
- data/proto_docs/google/privacy/dlp/v2/storage.rb +24 -0
- metadata +2 -2
@@ -41,6 +41,9 @@ module Google
|
|
41
41
|
# https://cloud.google.com/sensitive-data-protection/docs/.
|
42
42
|
#
|
43
43
|
class Client
|
44
|
+
# @private
|
45
|
+
API_VERSION = ""
|
46
|
+
|
44
47
|
# @private
|
45
48
|
DEFAULT_ENDPOINT_TEMPLATE = "dlp.$UNIVERSE_DOMAIN$"
|
46
49
|
|
@@ -445,12 +448,13 @@ module Google
|
|
445
448
|
# Customize the options with defaults
|
446
449
|
call_metadata = @config.rpcs.inspect_content.metadata.to_h
|
447
450
|
|
448
|
-
# Set x-goog-api-client
|
451
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
449
452
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
450
453
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
451
454
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
452
455
|
transports_version_send: [:rest]
|
453
456
|
|
457
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
454
458
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
455
459
|
|
456
460
|
options.apply_defaults timeout: @config.rpcs.inspect_content.timeout,
|
@@ -557,12 +561,13 @@ module Google
|
|
557
561
|
# Customize the options with defaults
|
558
562
|
call_metadata = @config.rpcs.redact_image.metadata.to_h
|
559
563
|
|
560
|
-
# Set x-goog-api-client
|
564
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
561
565
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
562
566
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
563
567
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
564
568
|
transports_version_send: [:rest]
|
565
569
|
|
570
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
566
571
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
567
572
|
|
568
573
|
options.apply_defaults timeout: @config.rpcs.redact_image.timeout,
|
@@ -689,12 +694,13 @@ module Google
|
|
689
694
|
# Customize the options with defaults
|
690
695
|
call_metadata = @config.rpcs.deidentify_content.metadata.to_h
|
691
696
|
|
692
|
-
# Set x-goog-api-client
|
697
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
693
698
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
694
699
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
695
700
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
696
701
|
transports_version_send: [:rest]
|
697
702
|
|
703
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
698
704
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
699
705
|
|
700
706
|
options.apply_defaults timeout: @config.rpcs.deidentify_content.timeout,
|
@@ -816,12 +822,13 @@ module Google
|
|
816
822
|
# Customize the options with defaults
|
817
823
|
call_metadata = @config.rpcs.reidentify_content.metadata.to_h
|
818
824
|
|
819
|
-
# Set x-goog-api-client
|
825
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
820
826
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
821
827
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
822
828
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
823
829
|
transports_version_send: [:rest]
|
824
830
|
|
831
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
825
832
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
826
833
|
|
827
834
|
options.apply_defaults timeout: @config.rpcs.reidentify_content.timeout,
|
@@ -910,12 +917,13 @@ module Google
|
|
910
917
|
# Customize the options with defaults
|
911
918
|
call_metadata = @config.rpcs.list_info_types.metadata.to_h
|
912
919
|
|
913
|
-
# Set x-goog-api-client
|
920
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
914
921
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
915
922
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
916
923
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
917
924
|
transports_version_send: [:rest]
|
918
925
|
|
926
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
919
927
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
920
928
|
|
921
929
|
options.apply_defaults timeout: @config.rpcs.list_info_types.timeout,
|
@@ -1020,12 +1028,13 @@ module Google
|
|
1020
1028
|
# Customize the options with defaults
|
1021
1029
|
call_metadata = @config.rpcs.create_inspect_template.metadata.to_h
|
1022
1030
|
|
1023
|
-
# Set x-goog-api-client
|
1031
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1024
1032
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1025
1033
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1026
1034
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1027
1035
|
transports_version_send: [:rest]
|
1028
1036
|
|
1037
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1029
1038
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1030
1039
|
|
1031
1040
|
options.apply_defaults timeout: @config.rpcs.create_inspect_template.timeout,
|
@@ -1107,12 +1116,13 @@ module Google
|
|
1107
1116
|
# Customize the options with defaults
|
1108
1117
|
call_metadata = @config.rpcs.update_inspect_template.metadata.to_h
|
1109
1118
|
|
1110
|
-
# Set x-goog-api-client
|
1119
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1111
1120
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1112
1121
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1113
1122
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1114
1123
|
transports_version_send: [:rest]
|
1115
1124
|
|
1125
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1116
1126
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1117
1127
|
|
1118
1128
|
options.apply_defaults timeout: @config.rpcs.update_inspect_template.timeout,
|
@@ -1190,12 +1200,13 @@ module Google
|
|
1190
1200
|
# Customize the options with defaults
|
1191
1201
|
call_metadata = @config.rpcs.get_inspect_template.metadata.to_h
|
1192
1202
|
|
1193
|
-
# Set x-goog-api-client
|
1203
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1194
1204
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1195
1205
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1196
1206
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1197
1207
|
transports_version_send: [:rest]
|
1198
1208
|
|
1209
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1199
1210
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1200
1211
|
|
1201
1212
|
options.apply_defaults timeout: @config.rpcs.get_inspect_template.timeout,
|
@@ -1316,12 +1327,13 @@ module Google
|
|
1316
1327
|
# Customize the options with defaults
|
1317
1328
|
call_metadata = @config.rpcs.list_inspect_templates.metadata.to_h
|
1318
1329
|
|
1319
|
-
# Set x-goog-api-client
|
1330
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1320
1331
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1321
1332
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1322
1333
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1323
1334
|
transports_version_send: [:rest]
|
1324
1335
|
|
1336
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1325
1337
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1326
1338
|
|
1327
1339
|
options.apply_defaults timeout: @config.rpcs.list_inspect_templates.timeout,
|
@@ -1400,12 +1412,13 @@ module Google
|
|
1400
1412
|
# Customize the options with defaults
|
1401
1413
|
call_metadata = @config.rpcs.delete_inspect_template.metadata.to_h
|
1402
1414
|
|
1403
|
-
# Set x-goog-api-client
|
1415
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1404
1416
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1405
1417
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1406
1418
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1407
1419
|
transports_version_send: [:rest]
|
1408
1420
|
|
1421
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1409
1422
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1410
1423
|
|
1411
1424
|
options.apply_defaults timeout: @config.rpcs.delete_inspect_template.timeout,
|
@@ -1510,12 +1523,13 @@ module Google
|
|
1510
1523
|
# Customize the options with defaults
|
1511
1524
|
call_metadata = @config.rpcs.create_deidentify_template.metadata.to_h
|
1512
1525
|
|
1513
|
-
# Set x-goog-api-client
|
1526
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1514
1527
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1515
1528
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1516
1529
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1517
1530
|
transports_version_send: [:rest]
|
1518
1531
|
|
1532
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1519
1533
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1520
1534
|
|
1521
1535
|
options.apply_defaults timeout: @config.rpcs.create_deidentify_template.timeout,
|
@@ -1598,12 +1612,13 @@ module Google
|
|
1598
1612
|
# Customize the options with defaults
|
1599
1613
|
call_metadata = @config.rpcs.update_deidentify_template.metadata.to_h
|
1600
1614
|
|
1601
|
-
# Set x-goog-api-client
|
1615
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1602
1616
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1603
1617
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1604
1618
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1605
1619
|
transports_version_send: [:rest]
|
1606
1620
|
|
1621
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1607
1622
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1608
1623
|
|
1609
1624
|
options.apply_defaults timeout: @config.rpcs.update_deidentify_template.timeout,
|
@@ -1681,12 +1696,13 @@ module Google
|
|
1681
1696
|
# Customize the options with defaults
|
1682
1697
|
call_metadata = @config.rpcs.get_deidentify_template.metadata.to_h
|
1683
1698
|
|
1684
|
-
# Set x-goog-api-client
|
1699
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1685
1700
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1686
1701
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1687
1702
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1688
1703
|
transports_version_send: [:rest]
|
1689
1704
|
|
1705
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1690
1706
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1691
1707
|
|
1692
1708
|
options.apply_defaults timeout: @config.rpcs.get_deidentify_template.timeout,
|
@@ -1807,12 +1823,13 @@ module Google
|
|
1807
1823
|
# Customize the options with defaults
|
1808
1824
|
call_metadata = @config.rpcs.list_deidentify_templates.metadata.to_h
|
1809
1825
|
|
1810
|
-
# Set x-goog-api-client
|
1826
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1811
1827
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1812
1828
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1813
1829
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1814
1830
|
transports_version_send: [:rest]
|
1815
1831
|
|
1832
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1816
1833
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1817
1834
|
|
1818
1835
|
options.apply_defaults timeout: @config.rpcs.list_deidentify_templates.timeout,
|
@@ -1892,12 +1909,13 @@ module Google
|
|
1892
1909
|
# Customize the options with defaults
|
1893
1910
|
call_metadata = @config.rpcs.delete_deidentify_template.metadata.to_h
|
1894
1911
|
|
1895
|
-
# Set x-goog-api-client
|
1912
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1896
1913
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1897
1914
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1898
1915
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1899
1916
|
transports_version_send: [:rest]
|
1900
1917
|
|
1918
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1901
1919
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1902
1920
|
|
1903
1921
|
options.apply_defaults timeout: @config.rpcs.delete_deidentify_template.timeout,
|
@@ -1998,12 +2016,13 @@ module Google
|
|
1998
2016
|
# Customize the options with defaults
|
1999
2017
|
call_metadata = @config.rpcs.create_job_trigger.metadata.to_h
|
2000
2018
|
|
2001
|
-
# Set x-goog-api-client
|
2019
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2002
2020
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2003
2021
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2004
2022
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2005
2023
|
transports_version_send: [:rest]
|
2006
2024
|
|
2025
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2007
2026
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2008
2027
|
|
2009
2028
|
options.apply_defaults timeout: @config.rpcs.create_job_trigger.timeout,
|
@@ -2084,12 +2103,13 @@ module Google
|
|
2084
2103
|
# Customize the options with defaults
|
2085
2104
|
call_metadata = @config.rpcs.update_job_trigger.metadata.to_h
|
2086
2105
|
|
2087
|
-
# Set x-goog-api-client
|
2106
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2088
2107
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2089
2108
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2090
2109
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2091
2110
|
transports_version_send: [:rest]
|
2092
2111
|
|
2112
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2093
2113
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2094
2114
|
|
2095
2115
|
options.apply_defaults timeout: @config.rpcs.update_job_trigger.timeout,
|
@@ -2167,12 +2187,13 @@ module Google
|
|
2167
2187
|
# Customize the options with defaults
|
2168
2188
|
call_metadata = @config.rpcs.hybrid_inspect_job_trigger.metadata.to_h
|
2169
2189
|
|
2170
|
-
# Set x-goog-api-client
|
2190
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2171
2191
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2172
2192
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2173
2193
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2174
2194
|
transports_version_send: [:rest]
|
2175
2195
|
|
2196
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2176
2197
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2177
2198
|
|
2178
2199
|
options.apply_defaults timeout: @config.rpcs.hybrid_inspect_job_trigger.timeout,
|
@@ -2249,12 +2270,13 @@ module Google
|
|
2249
2270
|
# Customize the options with defaults
|
2250
2271
|
call_metadata = @config.rpcs.get_job_trigger.metadata.to_h
|
2251
2272
|
|
2252
|
-
# Set x-goog-api-client
|
2273
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2253
2274
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2254
2275
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2255
2276
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2256
2277
|
transports_version_send: [:rest]
|
2257
2278
|
|
2279
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2258
2280
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2259
2281
|
|
2260
2282
|
options.apply_defaults timeout: @config.rpcs.get_job_trigger.timeout,
|
@@ -2400,12 +2422,13 @@ module Google
|
|
2400
2422
|
# Customize the options with defaults
|
2401
2423
|
call_metadata = @config.rpcs.list_job_triggers.metadata.to_h
|
2402
2424
|
|
2403
|
-
# Set x-goog-api-client
|
2425
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2404
2426
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2405
2427
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2406
2428
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2407
2429
|
transports_version_send: [:rest]
|
2408
2430
|
|
2431
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2409
2432
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2410
2433
|
|
2411
2434
|
options.apply_defaults timeout: @config.rpcs.list_job_triggers.timeout,
|
@@ -2483,12 +2506,13 @@ module Google
|
|
2483
2506
|
# Customize the options with defaults
|
2484
2507
|
call_metadata = @config.rpcs.delete_job_trigger.metadata.to_h
|
2485
2508
|
|
2486
|
-
# Set x-goog-api-client
|
2509
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2487
2510
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2488
2511
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2489
2512
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2490
2513
|
transports_version_send: [:rest]
|
2491
2514
|
|
2515
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2492
2516
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2493
2517
|
|
2494
2518
|
options.apply_defaults timeout: @config.rpcs.delete_job_trigger.timeout,
|
@@ -2563,12 +2587,13 @@ module Google
|
|
2563
2587
|
# Customize the options with defaults
|
2564
2588
|
call_metadata = @config.rpcs.activate_job_trigger.metadata.to_h
|
2565
2589
|
|
2566
|
-
# Set x-goog-api-client
|
2590
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2567
2591
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2568
2592
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2569
2593
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2570
2594
|
transports_version_send: [:rest]
|
2571
2595
|
|
2596
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2572
2597
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2573
2598
|
|
2574
2599
|
options.apply_defaults timeout: @config.rpcs.activate_job_trigger.timeout,
|
@@ -2657,12 +2682,13 @@ module Google
|
|
2657
2682
|
# Customize the options with defaults
|
2658
2683
|
call_metadata = @config.rpcs.create_discovery_config.metadata.to_h
|
2659
2684
|
|
2660
|
-
# Set x-goog-api-client
|
2685
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2661
2686
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2662
2687
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2663
2688
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2664
2689
|
transports_version_send: [:rest]
|
2665
2690
|
|
2691
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2666
2692
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2667
2693
|
|
2668
2694
|
options.apply_defaults timeout: @config.rpcs.create_discovery_config.timeout,
|
@@ -2740,12 +2766,13 @@ module Google
|
|
2740
2766
|
# Customize the options with defaults
|
2741
2767
|
call_metadata = @config.rpcs.update_discovery_config.metadata.to_h
|
2742
2768
|
|
2743
|
-
# Set x-goog-api-client
|
2769
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2744
2770
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2745
2771
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2746
2772
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2747
2773
|
transports_version_send: [:rest]
|
2748
2774
|
|
2775
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2749
2776
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2750
2777
|
|
2751
2778
|
options.apply_defaults timeout: @config.rpcs.update_discovery_config.timeout,
|
@@ -2819,12 +2846,13 @@ module Google
|
|
2819
2846
|
# Customize the options with defaults
|
2820
2847
|
call_metadata = @config.rpcs.get_discovery_config.metadata.to_h
|
2821
2848
|
|
2822
|
-
# Set x-goog-api-client
|
2849
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2823
2850
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2824
2851
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2825
2852
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2826
2853
|
transports_version_send: [:rest]
|
2827
2854
|
|
2855
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2828
2856
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2829
2857
|
|
2830
2858
|
options.apply_defaults timeout: @config.rpcs.get_discovery_config.timeout,
|
@@ -2929,12 +2957,13 @@ module Google
|
|
2929
2957
|
# Customize the options with defaults
|
2930
2958
|
call_metadata = @config.rpcs.list_discovery_configs.metadata.to_h
|
2931
2959
|
|
2932
|
-
# Set x-goog-api-client
|
2960
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2933
2961
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2934
2962
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2935
2963
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2936
2964
|
transports_version_send: [:rest]
|
2937
2965
|
|
2966
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2938
2967
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2939
2968
|
|
2940
2969
|
options.apply_defaults timeout: @config.rpcs.list_discovery_configs.timeout,
|
@@ -3009,12 +3038,13 @@ module Google
|
|
3009
3038
|
# Customize the options with defaults
|
3010
3039
|
call_metadata = @config.rpcs.delete_discovery_config.metadata.to_h
|
3011
3040
|
|
3012
|
-
# Set x-goog-api-client
|
3041
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3013
3042
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3014
3043
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3015
3044
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3016
3045
|
transports_version_send: [:rest]
|
3017
3046
|
|
3047
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3018
3048
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3019
3049
|
|
3020
3050
|
options.apply_defaults timeout: @config.rpcs.delete_discovery_config.timeout,
|
@@ -3123,12 +3153,13 @@ module Google
|
|
3123
3153
|
# Customize the options with defaults
|
3124
3154
|
call_metadata = @config.rpcs.create_dlp_job.metadata.to_h
|
3125
3155
|
|
3126
|
-
# Set x-goog-api-client
|
3156
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3127
3157
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3128
3158
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3129
3159
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3130
3160
|
transports_version_send: [:rest]
|
3131
3161
|
|
3162
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3132
3163
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3133
3164
|
|
3134
3165
|
options.apply_defaults timeout: @config.rpcs.create_dlp_job.timeout,
|
@@ -3276,12 +3307,13 @@ module Google
|
|
3276
3307
|
# Customize the options with defaults
|
3277
3308
|
call_metadata = @config.rpcs.list_dlp_jobs.metadata.to_h
|
3278
3309
|
|
3279
|
-
# Set x-goog-api-client
|
3310
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3280
3311
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3281
3312
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3282
3313
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3283
3314
|
transports_version_send: [:rest]
|
3284
3315
|
|
3316
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3285
3317
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3286
3318
|
|
3287
3319
|
options.apply_defaults timeout: @config.rpcs.list_dlp_jobs.timeout,
|
@@ -3360,12 +3392,13 @@ module Google
|
|
3360
3392
|
# Customize the options with defaults
|
3361
3393
|
call_metadata = @config.rpcs.get_dlp_job.metadata.to_h
|
3362
3394
|
|
3363
|
-
# Set x-goog-api-client
|
3395
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3364
3396
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3365
3397
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3366
3398
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3367
3399
|
transports_version_send: [:rest]
|
3368
3400
|
|
3401
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3369
3402
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3370
3403
|
|
3371
3404
|
options.apply_defaults timeout: @config.rpcs.get_dlp_job.timeout,
|
@@ -3445,12 +3478,13 @@ module Google
|
|
3445
3478
|
# Customize the options with defaults
|
3446
3479
|
call_metadata = @config.rpcs.delete_dlp_job.metadata.to_h
|
3447
3480
|
|
3448
|
-
# Set x-goog-api-client
|
3481
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3449
3482
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3450
3483
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3451
3484
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3452
3485
|
transports_version_send: [:rest]
|
3453
3486
|
|
3487
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3454
3488
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3455
3489
|
|
3456
3490
|
options.apply_defaults timeout: @config.rpcs.delete_dlp_job.timeout,
|
@@ -3530,12 +3564,13 @@ module Google
|
|
3530
3564
|
# Customize the options with defaults
|
3531
3565
|
call_metadata = @config.rpcs.cancel_dlp_job.metadata.to_h
|
3532
3566
|
|
3533
|
-
# Set x-goog-api-client
|
3567
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3534
3568
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3535
3569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3536
3570
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3537
3571
|
transports_version_send: [:rest]
|
3538
3572
|
|
3573
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3539
3574
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3540
3575
|
|
3541
3576
|
options.apply_defaults timeout: @config.rpcs.cancel_dlp_job.timeout,
|
@@ -3639,12 +3674,13 @@ module Google
|
|
3639
3674
|
# Customize the options with defaults
|
3640
3675
|
call_metadata = @config.rpcs.create_stored_info_type.metadata.to_h
|
3641
3676
|
|
3642
|
-
# Set x-goog-api-client
|
3677
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3643
3678
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3644
3679
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3645
3680
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3646
3681
|
transports_version_send: [:rest]
|
3647
3682
|
|
3683
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3648
3684
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3649
3685
|
|
3650
3686
|
options.apply_defaults timeout: @config.rpcs.create_stored_info_type.timeout,
|
@@ -3729,12 +3765,13 @@ module Google
|
|
3729
3765
|
# Customize the options with defaults
|
3730
3766
|
call_metadata = @config.rpcs.update_stored_info_type.metadata.to_h
|
3731
3767
|
|
3732
|
-
# Set x-goog-api-client
|
3768
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3733
3769
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3734
3770
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3735
3771
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3736
3772
|
transports_version_send: [:rest]
|
3737
3773
|
|
3774
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3738
3775
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3739
3776
|
|
3740
3777
|
options.apply_defaults timeout: @config.rpcs.update_stored_info_type.timeout,
|
@@ -3812,12 +3849,13 @@ module Google
|
|
3812
3849
|
# Customize the options with defaults
|
3813
3850
|
call_metadata = @config.rpcs.get_stored_info_type.metadata.to_h
|
3814
3851
|
|
3815
|
-
# Set x-goog-api-client
|
3852
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3816
3853
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3817
3854
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3818
3855
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3819
3856
|
transports_version_send: [:rest]
|
3820
3857
|
|
3858
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3821
3859
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3822
3860
|
|
3823
3861
|
options.apply_defaults timeout: @config.rpcs.get_stored_info_type.timeout,
|
@@ -3935,12 +3973,13 @@ module Google
|
|
3935
3973
|
# Customize the options with defaults
|
3936
3974
|
call_metadata = @config.rpcs.list_stored_info_types.metadata.to_h
|
3937
3975
|
|
3938
|
-
# Set x-goog-api-client
|
3976
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3939
3977
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3940
3978
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3941
3979
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3942
3980
|
transports_version_send: [:rest]
|
3943
3981
|
|
3982
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3944
3983
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3945
3984
|
|
3946
3985
|
options.apply_defaults timeout: @config.rpcs.list_stored_info_types.timeout,
|
@@ -4019,12 +4058,13 @@ module Google
|
|
4019
4058
|
# Customize the options with defaults
|
4020
4059
|
call_metadata = @config.rpcs.delete_stored_info_type.metadata.to_h
|
4021
4060
|
|
4022
|
-
# Set x-goog-api-client
|
4061
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4023
4062
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4024
4063
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4025
4064
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4026
4065
|
transports_version_send: [:rest]
|
4027
4066
|
|
4067
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4028
4068
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4029
4069
|
|
4030
4070
|
options.apply_defaults timeout: @config.rpcs.delete_stored_info_type.timeout,
|
@@ -4044,7 +4084,7 @@ module Google
|
|
4044
4084
|
end
|
4045
4085
|
|
4046
4086
|
##
|
4047
|
-
# Lists data profiles for an organization.
|
4087
|
+
# Lists project data profiles for an organization.
|
4048
4088
|
#
|
4049
4089
|
# @overload list_project_data_profiles(request, options = nil)
|
4050
4090
|
# Pass arguments to `list_project_data_profiles` via a request object, either of type
|
@@ -4080,7 +4120,7 @@ module Google
|
|
4080
4120
|
#
|
4081
4121
|
# Supported fields are:
|
4082
4122
|
#
|
4083
|
-
# - `project_id`:
|
4123
|
+
# - `project_id`: Google Cloud project ID
|
4084
4124
|
# - `sensitivity_level`: How sensitive the data in a project is, at most.
|
4085
4125
|
# - `data_risk_level`: How much risk is associated with this data.
|
4086
4126
|
# - `profile_last_generated`: When the profile was last updated in epoch
|
@@ -4145,12 +4185,13 @@ module Google
|
|
4145
4185
|
# Customize the options with defaults
|
4146
4186
|
call_metadata = @config.rpcs.list_project_data_profiles.metadata.to_h
|
4147
4187
|
|
4148
|
-
# Set x-goog-api-client
|
4188
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4149
4189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4150
4190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4151
4191
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4152
4192
|
transports_version_send: [:rest]
|
4153
4193
|
|
4194
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4154
4195
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4155
4196
|
|
4156
4197
|
options.apply_defaults timeout: @config.rpcs.list_project_data_profiles.timeout,
|
@@ -4171,7 +4212,7 @@ module Google
|
|
4171
4212
|
end
|
4172
4213
|
|
4173
4214
|
##
|
4174
|
-
# Lists data profiles for an organization.
|
4215
|
+
# Lists table data profiles for an organization.
|
4175
4216
|
#
|
4176
4217
|
# @overload list_table_data_profiles(request, options = nil)
|
4177
4218
|
# Pass arguments to `list_table_data_profiles` via a request object, either of type
|
@@ -4210,7 +4251,7 @@ module Google
|
|
4210
4251
|
#
|
4211
4252
|
# Supported fields are:
|
4212
4253
|
#
|
4213
|
-
# - `project_id`: The
|
4254
|
+
# - `project_id`: The Google Cloud project ID.
|
4214
4255
|
# - `dataset_id`: The ID of a BigQuery dataset.
|
4215
4256
|
# - `table_id`: The ID of a BigQuery table.
|
4216
4257
|
# - `sensitivity_level`: How sensitive the data in a table is, at most.
|
@@ -4230,7 +4271,7 @@ module Google
|
|
4230
4271
|
# sequence of restrictions implicitly uses `AND`.
|
4231
4272
|
# * A restriction has the form of `{field} {operator} {value}`.
|
4232
4273
|
# * Supported fields/values:
|
4233
|
-
# - `project_id` - The
|
4274
|
+
# - `project_id` - The Google Cloud project ID.
|
4234
4275
|
# - `dataset_id` - The BigQuery dataset ID.
|
4235
4276
|
# - `table_id` - The ID of the BigQuery table.
|
4236
4277
|
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
@@ -4285,12 +4326,13 @@ module Google
|
|
4285
4326
|
# Customize the options with defaults
|
4286
4327
|
call_metadata = @config.rpcs.list_table_data_profiles.metadata.to_h
|
4287
4328
|
|
4288
|
-
# Set x-goog-api-client
|
4329
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4289
4330
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4290
4331
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4291
4332
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4292
4333
|
transports_version_send: [:rest]
|
4293
4334
|
|
4335
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4294
4336
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4295
4337
|
|
4296
4338
|
options.apply_defaults timeout: @config.rpcs.list_table_data_profiles.timeout,
|
@@ -4311,7 +4353,7 @@ module Google
|
|
4311
4353
|
end
|
4312
4354
|
|
4313
4355
|
##
|
4314
|
-
# Lists data profiles for an organization.
|
4356
|
+
# Lists column data profiles for an organization.
|
4315
4357
|
#
|
4316
4358
|
# @overload list_column_data_profiles(request, options = nil)
|
4317
4359
|
# Pass arguments to `list_column_data_profiles` via a request object, either of type
|
@@ -4426,12 +4468,13 @@ module Google
|
|
4426
4468
|
# Customize the options with defaults
|
4427
4469
|
call_metadata = @config.rpcs.list_column_data_profiles.metadata.to_h
|
4428
4470
|
|
4429
|
-
# Set x-goog-api-client
|
4471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4430
4472
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4431
4473
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4432
4474
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4433
4475
|
transports_version_send: [:rest]
|
4434
4476
|
|
4477
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4435
4478
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4436
4479
|
|
4437
4480
|
options.apply_defaults timeout: @config.rpcs.list_column_data_profiles.timeout,
|
@@ -4506,12 +4549,13 @@ module Google
|
|
4506
4549
|
# Customize the options with defaults
|
4507
4550
|
call_metadata = @config.rpcs.get_project_data_profile.metadata.to_h
|
4508
4551
|
|
4509
|
-
# Set x-goog-api-client
|
4552
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4510
4553
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4511
4554
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4512
4555
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4513
4556
|
transports_version_send: [:rest]
|
4514
4557
|
|
4558
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4515
4559
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4516
4560
|
|
4517
4561
|
options.apply_defaults timeout: @config.rpcs.get_project_data_profile.timeout,
|
@@ -4585,12 +4629,13 @@ module Google
|
|
4585
4629
|
# Customize the options with defaults
|
4586
4630
|
call_metadata = @config.rpcs.get_table_data_profile.metadata.to_h
|
4587
4631
|
|
4588
|
-
# Set x-goog-api-client
|
4632
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4589
4633
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4590
4634
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4591
4635
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4592
4636
|
transports_version_send: [:rest]
|
4593
4637
|
|
4638
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4594
4639
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4595
4640
|
|
4596
4641
|
options.apply_defaults timeout: @config.rpcs.get_table_data_profile.timeout,
|
@@ -4664,12 +4709,13 @@ module Google
|
|
4664
4709
|
# Customize the options with defaults
|
4665
4710
|
call_metadata = @config.rpcs.get_column_data_profile.metadata.to_h
|
4666
4711
|
|
4667
|
-
# Set x-goog-api-client
|
4712
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4668
4713
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4669
4714
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4670
4715
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4671
4716
|
transports_version_send: [:rest]
|
4672
4717
|
|
4718
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4673
4719
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4674
4720
|
|
4675
4721
|
options.apply_defaults timeout: @config.rpcs.get_column_data_profile.timeout,
|
@@ -4688,6 +4734,86 @@ module Google
|
|
4688
4734
|
raise ::Google::Cloud::Error.from_error(e)
|
4689
4735
|
end
|
4690
4736
|
|
4737
|
+
##
|
4738
|
+
# Delete a TableDataProfile. Will not prevent the profile from being
|
4739
|
+
# regenerated if the table is still included in a discovery configuration.
|
4740
|
+
#
|
4741
|
+
# @overload delete_table_data_profile(request, options = nil)
|
4742
|
+
# Pass arguments to `delete_table_data_profile` via a request object, either of type
|
4743
|
+
# {::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest} or an equivalent Hash.
|
4744
|
+
#
|
4745
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest, ::Hash]
|
4746
|
+
# A request object representing the call parameters. Required. To specify no
|
4747
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4748
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4749
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4750
|
+
#
|
4751
|
+
# @overload delete_table_data_profile(name: nil)
|
4752
|
+
# Pass arguments to `delete_table_data_profile` via keyword arguments. Note that at
|
4753
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4754
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4755
|
+
#
|
4756
|
+
# @param name [::String]
|
4757
|
+
# Required. Resource name of the table data profile.
|
4758
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4759
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
4760
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4761
|
+
#
|
4762
|
+
# @return [::Google::Protobuf::Empty]
|
4763
|
+
#
|
4764
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4765
|
+
#
|
4766
|
+
# @example Basic example
|
4767
|
+
# require "google/cloud/dlp/v2"
|
4768
|
+
#
|
4769
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4770
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4771
|
+
#
|
4772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4773
|
+
# request = Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest.new
|
4774
|
+
#
|
4775
|
+
# # Call the delete_table_data_profile method.
|
4776
|
+
# result = client.delete_table_data_profile request
|
4777
|
+
#
|
4778
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4779
|
+
# p result
|
4780
|
+
#
|
4781
|
+
def delete_table_data_profile request, options = nil
|
4782
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4783
|
+
|
4784
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest
|
4785
|
+
|
4786
|
+
# Converts hash and nil to an options object
|
4787
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4788
|
+
|
4789
|
+
# Customize the options with defaults
|
4790
|
+
call_metadata = @config.rpcs.delete_table_data_profile.metadata.to_h
|
4791
|
+
|
4792
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4793
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4794
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4795
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4796
|
+
transports_version_send: [:rest]
|
4797
|
+
|
4798
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4799
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4800
|
+
|
4801
|
+
options.apply_defaults timeout: @config.rpcs.delete_table_data_profile.timeout,
|
4802
|
+
metadata: call_metadata,
|
4803
|
+
retry_policy: @config.rpcs.delete_table_data_profile.retry_policy
|
4804
|
+
|
4805
|
+
options.apply_defaults timeout: @config.timeout,
|
4806
|
+
metadata: @config.metadata,
|
4807
|
+
retry_policy: @config.retry_policy
|
4808
|
+
|
4809
|
+
@dlp_service_stub.delete_table_data_profile request, options do |result, operation|
|
4810
|
+
yield result, operation if block_given?
|
4811
|
+
return result
|
4812
|
+
end
|
4813
|
+
rescue ::Gapic::Rest::Error => e
|
4814
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4815
|
+
end
|
4816
|
+
|
4691
4817
|
##
|
4692
4818
|
# Inspect hybrid content and store findings to a job.
|
4693
4819
|
# To review the findings, inspect the job. Inspection will occur
|
@@ -4747,12 +4873,13 @@ module Google
|
|
4747
4873
|
# Customize the options with defaults
|
4748
4874
|
call_metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
|
4749
4875
|
|
4750
|
-
# Set x-goog-api-client
|
4876
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4751
4877
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4752
4878
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4753
4879
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4754
4880
|
transports_version_send: [:rest]
|
4755
4881
|
|
4882
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4756
4883
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4757
4884
|
|
4758
4885
|
options.apply_defaults timeout: @config.rpcs.hybrid_inspect_dlp_job.timeout,
|
@@ -4826,12 +4953,13 @@ module Google
|
|
4826
4953
|
# Customize the options with defaults
|
4827
4954
|
call_metadata = @config.rpcs.finish_dlp_job.metadata.to_h
|
4828
4955
|
|
4829
|
-
# Set x-goog-api-client
|
4956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4830
4957
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4831
4958
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4832
4959
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4833
4960
|
transports_version_send: [:rest]
|
4834
4961
|
|
4962
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4835
4963
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4836
4964
|
|
4837
4965
|
options.apply_defaults timeout: @config.rpcs.finish_dlp_job.timeout,
|
@@ -4850,6 +4978,516 @@ module Google
|
|
4850
4978
|
raise ::Google::Cloud::Error.from_error(e)
|
4851
4979
|
end
|
4852
4980
|
|
4981
|
+
##
|
4982
|
+
# Create a Connection to an external data source.
|
4983
|
+
#
|
4984
|
+
# @overload create_connection(request, options = nil)
|
4985
|
+
# Pass arguments to `create_connection` via a request object, either of type
|
4986
|
+
# {::Google::Cloud::Dlp::V2::CreateConnectionRequest} or an equivalent Hash.
|
4987
|
+
#
|
4988
|
+
# @param request [::Google::Cloud::Dlp::V2::CreateConnectionRequest, ::Hash]
|
4989
|
+
# A request object representing the call parameters. Required. To specify no
|
4990
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4991
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4992
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4993
|
+
#
|
4994
|
+
# @overload create_connection(parent: nil, connection: nil)
|
4995
|
+
# Pass arguments to `create_connection` via keyword arguments. Note that at
|
4996
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4997
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4998
|
+
#
|
4999
|
+
# @param parent [::String]
|
5000
|
+
# Required. Parent resource name in the format:
|
5001
|
+
# `projects/{project}/locations/{location}`.
|
5002
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5003
|
+
# Required. The connection resource.
|
5004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5005
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5007
|
+
#
|
5008
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5009
|
+
#
|
5010
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5011
|
+
#
|
5012
|
+
# @example Basic example
|
5013
|
+
# require "google/cloud/dlp/v2"
|
5014
|
+
#
|
5015
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5016
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5017
|
+
#
|
5018
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5019
|
+
# request = Google::Cloud::Dlp::V2::CreateConnectionRequest.new
|
5020
|
+
#
|
5021
|
+
# # Call the create_connection method.
|
5022
|
+
# result = client.create_connection request
|
5023
|
+
#
|
5024
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5025
|
+
# p result
|
5026
|
+
#
|
5027
|
+
def create_connection request, options = nil
|
5028
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5029
|
+
|
5030
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateConnectionRequest
|
5031
|
+
|
5032
|
+
# Converts hash and nil to an options object
|
5033
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5034
|
+
|
5035
|
+
# Customize the options with defaults
|
5036
|
+
call_metadata = @config.rpcs.create_connection.metadata.to_h
|
5037
|
+
|
5038
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5039
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5040
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5041
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5042
|
+
transports_version_send: [:rest]
|
5043
|
+
|
5044
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5045
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5046
|
+
|
5047
|
+
options.apply_defaults timeout: @config.rpcs.create_connection.timeout,
|
5048
|
+
metadata: call_metadata,
|
5049
|
+
retry_policy: @config.rpcs.create_connection.retry_policy
|
5050
|
+
|
5051
|
+
options.apply_defaults timeout: @config.timeout,
|
5052
|
+
metadata: @config.metadata,
|
5053
|
+
retry_policy: @config.retry_policy
|
5054
|
+
|
5055
|
+
@dlp_service_stub.create_connection request, options do |result, operation|
|
5056
|
+
yield result, operation if block_given?
|
5057
|
+
return result
|
5058
|
+
end
|
5059
|
+
rescue ::Gapic::Rest::Error => e
|
5060
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5061
|
+
end
|
5062
|
+
|
5063
|
+
##
|
5064
|
+
# Get a Connection by name.
|
5065
|
+
#
|
5066
|
+
# @overload get_connection(request, options = nil)
|
5067
|
+
# Pass arguments to `get_connection` via a request object, either of type
|
5068
|
+
# {::Google::Cloud::Dlp::V2::GetConnectionRequest} or an equivalent Hash.
|
5069
|
+
#
|
5070
|
+
# @param request [::Google::Cloud::Dlp::V2::GetConnectionRequest, ::Hash]
|
5071
|
+
# A request object representing the call parameters. Required. To specify no
|
5072
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5073
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5074
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5075
|
+
#
|
5076
|
+
# @overload get_connection(name: nil)
|
5077
|
+
# Pass arguments to `get_connection` via keyword arguments. Note that at
|
5078
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5079
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5080
|
+
#
|
5081
|
+
# @param name [::String]
|
5082
|
+
# Required. Resource name in the format:
|
5083
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5085
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5087
|
+
#
|
5088
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5089
|
+
#
|
5090
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5091
|
+
#
|
5092
|
+
# @example Basic example
|
5093
|
+
# require "google/cloud/dlp/v2"
|
5094
|
+
#
|
5095
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5096
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5097
|
+
#
|
5098
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5099
|
+
# request = Google::Cloud::Dlp::V2::GetConnectionRequest.new
|
5100
|
+
#
|
5101
|
+
# # Call the get_connection method.
|
5102
|
+
# result = client.get_connection request
|
5103
|
+
#
|
5104
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5105
|
+
# p result
|
5106
|
+
#
|
5107
|
+
def get_connection request, options = nil
|
5108
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5109
|
+
|
5110
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetConnectionRequest
|
5111
|
+
|
5112
|
+
# Converts hash and nil to an options object
|
5113
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5114
|
+
|
5115
|
+
# Customize the options with defaults
|
5116
|
+
call_metadata = @config.rpcs.get_connection.metadata.to_h
|
5117
|
+
|
5118
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5119
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5120
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5121
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5122
|
+
transports_version_send: [:rest]
|
5123
|
+
|
5124
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5125
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5126
|
+
|
5127
|
+
options.apply_defaults timeout: @config.rpcs.get_connection.timeout,
|
5128
|
+
metadata: call_metadata,
|
5129
|
+
retry_policy: @config.rpcs.get_connection.retry_policy
|
5130
|
+
|
5131
|
+
options.apply_defaults timeout: @config.timeout,
|
5132
|
+
metadata: @config.metadata,
|
5133
|
+
retry_policy: @config.retry_policy
|
5134
|
+
|
5135
|
+
@dlp_service_stub.get_connection request, options do |result, operation|
|
5136
|
+
yield result, operation if block_given?
|
5137
|
+
return result
|
5138
|
+
end
|
5139
|
+
rescue ::Gapic::Rest::Error => e
|
5140
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5141
|
+
end
|
5142
|
+
|
5143
|
+
##
|
5144
|
+
# Lists Connections in a parent.
|
5145
|
+
#
|
5146
|
+
# @overload list_connections(request, options = nil)
|
5147
|
+
# Pass arguments to `list_connections` via a request object, either of type
|
5148
|
+
# {::Google::Cloud::Dlp::V2::ListConnectionsRequest} or an equivalent Hash.
|
5149
|
+
#
|
5150
|
+
# @param request [::Google::Cloud::Dlp::V2::ListConnectionsRequest, ::Hash]
|
5151
|
+
# A request object representing the call parameters. Required. To specify no
|
5152
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5153
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5154
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5155
|
+
#
|
5156
|
+
# @overload list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5157
|
+
# Pass arguments to `list_connections` via keyword arguments. Note that at
|
5158
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5159
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5160
|
+
#
|
5161
|
+
# @param parent [::String]
|
5162
|
+
# Required. Parent name, for example:
|
5163
|
+
# `projects/project-id/locations/global`.
|
5164
|
+
# @param page_size [::Integer]
|
5165
|
+
# Optional. Number of results per page, max 1000.
|
5166
|
+
# @param page_token [::String]
|
5167
|
+
# Optional. Page token from a previous page to return the next set of
|
5168
|
+
# results. If set, all other request fields must match the original request.
|
5169
|
+
# @param filter [::String]
|
5170
|
+
# Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
|
5171
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5172
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5173
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5174
|
+
#
|
5175
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5176
|
+
#
|
5177
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5178
|
+
#
|
5179
|
+
# @example Basic example
|
5180
|
+
# require "google/cloud/dlp/v2"
|
5181
|
+
#
|
5182
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5183
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5184
|
+
#
|
5185
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5186
|
+
# request = Google::Cloud::Dlp::V2::ListConnectionsRequest.new
|
5187
|
+
#
|
5188
|
+
# # Call the list_connections method.
|
5189
|
+
# result = client.list_connections request
|
5190
|
+
#
|
5191
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5192
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5193
|
+
# result.each do |item|
|
5194
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5195
|
+
# p item
|
5196
|
+
# end
|
5197
|
+
#
|
5198
|
+
def list_connections request, options = nil
|
5199
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5200
|
+
|
5201
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListConnectionsRequest
|
5202
|
+
|
5203
|
+
# Converts hash and nil to an options object
|
5204
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5205
|
+
|
5206
|
+
# Customize the options with defaults
|
5207
|
+
call_metadata = @config.rpcs.list_connections.metadata.to_h
|
5208
|
+
|
5209
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5210
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5211
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5212
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5213
|
+
transports_version_send: [:rest]
|
5214
|
+
|
5215
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5216
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5217
|
+
|
5218
|
+
options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
|
5219
|
+
metadata: call_metadata,
|
5220
|
+
retry_policy: @config.rpcs.list_connections.retry_policy
|
5221
|
+
|
5222
|
+
options.apply_defaults timeout: @config.timeout,
|
5223
|
+
metadata: @config.metadata,
|
5224
|
+
retry_policy: @config.retry_policy
|
5225
|
+
|
5226
|
+
@dlp_service_stub.list_connections request, options do |result, operation|
|
5227
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_connections, "connections", request, result, options
|
5228
|
+
yield result, operation if block_given?
|
5229
|
+
return result
|
5230
|
+
end
|
5231
|
+
rescue ::Gapic::Rest::Error => e
|
5232
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5233
|
+
end
|
5234
|
+
|
5235
|
+
##
|
5236
|
+
# Searches for Connections in a parent.
|
5237
|
+
#
|
5238
|
+
# @overload search_connections(request, options = nil)
|
5239
|
+
# Pass arguments to `search_connections` via a request object, either of type
|
5240
|
+
# {::Google::Cloud::Dlp::V2::SearchConnectionsRequest} or an equivalent Hash.
|
5241
|
+
#
|
5242
|
+
# @param request [::Google::Cloud::Dlp::V2::SearchConnectionsRequest, ::Hash]
|
5243
|
+
# A request object representing the call parameters. Required. To specify no
|
5244
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5245
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5246
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5247
|
+
#
|
5248
|
+
# @overload search_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5249
|
+
# Pass arguments to `search_connections` via keyword arguments. Note that at
|
5250
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5251
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5252
|
+
#
|
5253
|
+
# @param parent [::String]
|
5254
|
+
# Required. Parent name, typically an organization, without location.
|
5255
|
+
# For example: `organizations/12345678`.
|
5256
|
+
# @param page_size [::Integer]
|
5257
|
+
# Optional. Number of results per page, max 1000.
|
5258
|
+
# @param page_token [::String]
|
5259
|
+
# Optional. Page token from a previous page to return the next set of
|
5260
|
+
# results. If set, all other request fields must match the original request.
|
5261
|
+
# @param filter [::String]
|
5262
|
+
# Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR
|
5263
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5264
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5265
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5266
|
+
#
|
5267
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5268
|
+
#
|
5269
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5270
|
+
#
|
5271
|
+
# @example Basic example
|
5272
|
+
# require "google/cloud/dlp/v2"
|
5273
|
+
#
|
5274
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5275
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5276
|
+
#
|
5277
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5278
|
+
# request = Google::Cloud::Dlp::V2::SearchConnectionsRequest.new
|
5279
|
+
#
|
5280
|
+
# # Call the search_connections method.
|
5281
|
+
# result = client.search_connections request
|
5282
|
+
#
|
5283
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5284
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5285
|
+
# result.each do |item|
|
5286
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5287
|
+
# p item
|
5288
|
+
# end
|
5289
|
+
#
|
5290
|
+
def search_connections request, options = nil
|
5291
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5292
|
+
|
5293
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::SearchConnectionsRequest
|
5294
|
+
|
5295
|
+
# Converts hash and nil to an options object
|
5296
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5297
|
+
|
5298
|
+
# Customize the options with defaults
|
5299
|
+
call_metadata = @config.rpcs.search_connections.metadata.to_h
|
5300
|
+
|
5301
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5302
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5303
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5304
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5305
|
+
transports_version_send: [:rest]
|
5306
|
+
|
5307
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5308
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5309
|
+
|
5310
|
+
options.apply_defaults timeout: @config.rpcs.search_connections.timeout,
|
5311
|
+
metadata: call_metadata,
|
5312
|
+
retry_policy: @config.rpcs.search_connections.retry_policy
|
5313
|
+
|
5314
|
+
options.apply_defaults timeout: @config.timeout,
|
5315
|
+
metadata: @config.metadata,
|
5316
|
+
retry_policy: @config.retry_policy
|
5317
|
+
|
5318
|
+
@dlp_service_stub.search_connections request, options do |result, operation|
|
5319
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :search_connections, "connections", request, result, options
|
5320
|
+
yield result, operation if block_given?
|
5321
|
+
return result
|
5322
|
+
end
|
5323
|
+
rescue ::Gapic::Rest::Error => e
|
5324
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5325
|
+
end
|
5326
|
+
|
5327
|
+
##
|
5328
|
+
# Delete a Connection.
|
5329
|
+
#
|
5330
|
+
# @overload delete_connection(request, options = nil)
|
5331
|
+
# Pass arguments to `delete_connection` via a request object, either of type
|
5332
|
+
# {::Google::Cloud::Dlp::V2::DeleteConnectionRequest} or an equivalent Hash.
|
5333
|
+
#
|
5334
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteConnectionRequest, ::Hash]
|
5335
|
+
# A request object representing the call parameters. Required. To specify no
|
5336
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5337
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5338
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5339
|
+
#
|
5340
|
+
# @overload delete_connection(name: nil)
|
5341
|
+
# Pass arguments to `delete_connection` via keyword arguments. Note that at
|
5342
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5343
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5344
|
+
#
|
5345
|
+
# @param name [::String]
|
5346
|
+
# Required. Resource name of the Connection to be deleted, in the format:
|
5347
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5348
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5349
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
5350
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5351
|
+
#
|
5352
|
+
# @return [::Google::Protobuf::Empty]
|
5353
|
+
#
|
5354
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5355
|
+
#
|
5356
|
+
# @example Basic example
|
5357
|
+
# require "google/cloud/dlp/v2"
|
5358
|
+
#
|
5359
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5360
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5361
|
+
#
|
5362
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5363
|
+
# request = Google::Cloud::Dlp::V2::DeleteConnectionRequest.new
|
5364
|
+
#
|
5365
|
+
# # Call the delete_connection method.
|
5366
|
+
# result = client.delete_connection request
|
5367
|
+
#
|
5368
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5369
|
+
# p result
|
5370
|
+
#
|
5371
|
+
def delete_connection request, options = nil
|
5372
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5373
|
+
|
5374
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteConnectionRequest
|
5375
|
+
|
5376
|
+
# Converts hash and nil to an options object
|
5377
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5378
|
+
|
5379
|
+
# Customize the options with defaults
|
5380
|
+
call_metadata = @config.rpcs.delete_connection.metadata.to_h
|
5381
|
+
|
5382
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5383
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5384
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5385
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5386
|
+
transports_version_send: [:rest]
|
5387
|
+
|
5388
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5389
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5390
|
+
|
5391
|
+
options.apply_defaults timeout: @config.rpcs.delete_connection.timeout,
|
5392
|
+
metadata: call_metadata,
|
5393
|
+
retry_policy: @config.rpcs.delete_connection.retry_policy
|
5394
|
+
|
5395
|
+
options.apply_defaults timeout: @config.timeout,
|
5396
|
+
metadata: @config.metadata,
|
5397
|
+
retry_policy: @config.retry_policy
|
5398
|
+
|
5399
|
+
@dlp_service_stub.delete_connection request, options do |result, operation|
|
5400
|
+
yield result, operation if block_given?
|
5401
|
+
return result
|
5402
|
+
end
|
5403
|
+
rescue ::Gapic::Rest::Error => e
|
5404
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5405
|
+
end
|
5406
|
+
|
5407
|
+
##
|
5408
|
+
# Update a Connection.
|
5409
|
+
#
|
5410
|
+
# @overload update_connection(request, options = nil)
|
5411
|
+
# Pass arguments to `update_connection` via a request object, either of type
|
5412
|
+
# {::Google::Cloud::Dlp::V2::UpdateConnectionRequest} or an equivalent Hash.
|
5413
|
+
#
|
5414
|
+
# @param request [::Google::Cloud::Dlp::V2::UpdateConnectionRequest, ::Hash]
|
5415
|
+
# A request object representing the call parameters. Required. To specify no
|
5416
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5417
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5418
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5419
|
+
#
|
5420
|
+
# @overload update_connection(name: nil, connection: nil, update_mask: nil)
|
5421
|
+
# Pass arguments to `update_connection` via keyword arguments. Note that at
|
5422
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5423
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5424
|
+
#
|
5425
|
+
# @param name [::String]
|
5426
|
+
# Required. Resource name in the format:
|
5427
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5428
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5429
|
+
# Required. The connection with new values for the relevant fields.
|
5430
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5431
|
+
# Optional. Mask to control which fields get updated.
|
5432
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5433
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5434
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5435
|
+
#
|
5436
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5437
|
+
#
|
5438
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5439
|
+
#
|
5440
|
+
# @example Basic example
|
5441
|
+
# require "google/cloud/dlp/v2"
|
5442
|
+
#
|
5443
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5444
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5445
|
+
#
|
5446
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5447
|
+
# request = Google::Cloud::Dlp::V2::UpdateConnectionRequest.new
|
5448
|
+
#
|
5449
|
+
# # Call the update_connection method.
|
5450
|
+
# result = client.update_connection request
|
5451
|
+
#
|
5452
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5453
|
+
# p result
|
5454
|
+
#
|
5455
|
+
def update_connection request, options = nil
|
5456
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5457
|
+
|
5458
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateConnectionRequest
|
5459
|
+
|
5460
|
+
# Converts hash and nil to an options object
|
5461
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5462
|
+
|
5463
|
+
# Customize the options with defaults
|
5464
|
+
call_metadata = @config.rpcs.update_connection.metadata.to_h
|
5465
|
+
|
5466
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5467
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5468
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5469
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5470
|
+
transports_version_send: [:rest]
|
5471
|
+
|
5472
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5473
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5474
|
+
|
5475
|
+
options.apply_defaults timeout: @config.rpcs.update_connection.timeout,
|
5476
|
+
metadata: call_metadata,
|
5477
|
+
retry_policy: @config.rpcs.update_connection.retry_policy
|
5478
|
+
|
5479
|
+
options.apply_defaults timeout: @config.timeout,
|
5480
|
+
metadata: @config.metadata,
|
5481
|
+
retry_policy: @config.retry_policy
|
5482
|
+
|
5483
|
+
@dlp_service_stub.update_connection request, options do |result, operation|
|
5484
|
+
yield result, operation if block_given?
|
5485
|
+
return result
|
5486
|
+
end
|
5487
|
+
rescue ::Gapic::Rest::Error => e
|
5488
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5489
|
+
end
|
5490
|
+
|
4853
5491
|
##
|
4854
5492
|
# Configuration class for the DlpService REST API.
|
4855
5493
|
#
|
@@ -5199,6 +5837,11 @@ module Google
|
|
5199
5837
|
#
|
5200
5838
|
attr_reader :get_column_data_profile
|
5201
5839
|
##
|
5840
|
+
# RPC-specific configuration for `delete_table_data_profile`
|
5841
|
+
# @return [::Gapic::Config::Method]
|
5842
|
+
#
|
5843
|
+
attr_reader :delete_table_data_profile
|
5844
|
+
##
|
5202
5845
|
# RPC-specific configuration for `hybrid_inspect_dlp_job`
|
5203
5846
|
# @return [::Gapic::Config::Method]
|
5204
5847
|
#
|
@@ -5208,6 +5851,36 @@ module Google
|
|
5208
5851
|
# @return [::Gapic::Config::Method]
|
5209
5852
|
#
|
5210
5853
|
attr_reader :finish_dlp_job
|
5854
|
+
##
|
5855
|
+
# RPC-specific configuration for `create_connection`
|
5856
|
+
# @return [::Gapic::Config::Method]
|
5857
|
+
#
|
5858
|
+
attr_reader :create_connection
|
5859
|
+
##
|
5860
|
+
# RPC-specific configuration for `get_connection`
|
5861
|
+
# @return [::Gapic::Config::Method]
|
5862
|
+
#
|
5863
|
+
attr_reader :get_connection
|
5864
|
+
##
|
5865
|
+
# RPC-specific configuration for `list_connections`
|
5866
|
+
# @return [::Gapic::Config::Method]
|
5867
|
+
#
|
5868
|
+
attr_reader :list_connections
|
5869
|
+
##
|
5870
|
+
# RPC-specific configuration for `search_connections`
|
5871
|
+
# @return [::Gapic::Config::Method]
|
5872
|
+
#
|
5873
|
+
attr_reader :search_connections
|
5874
|
+
##
|
5875
|
+
# RPC-specific configuration for `delete_connection`
|
5876
|
+
# @return [::Gapic::Config::Method]
|
5877
|
+
#
|
5878
|
+
attr_reader :delete_connection
|
5879
|
+
##
|
5880
|
+
# RPC-specific configuration for `update_connection`
|
5881
|
+
# @return [::Gapic::Config::Method]
|
5882
|
+
#
|
5883
|
+
attr_reader :update_connection
|
5211
5884
|
|
5212
5885
|
# @private
|
5213
5886
|
def initialize parent_rpcs = nil
|
@@ -5297,10 +5970,24 @@ module Google
|
|
5297
5970
|
@get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
|
5298
5971
|
get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile
|
5299
5972
|
@get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config
|
5973
|
+
delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile
|
5974
|
+
@delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config
|
5300
5975
|
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
5301
5976
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
5302
5977
|
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
5303
5978
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
5979
|
+
create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection
|
5980
|
+
@create_connection = ::Gapic::Config::Method.new create_connection_config
|
5981
|
+
get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection
|
5982
|
+
@get_connection = ::Gapic::Config::Method.new get_connection_config
|
5983
|
+
list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections
|
5984
|
+
@list_connections = ::Gapic::Config::Method.new list_connections_config
|
5985
|
+
search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections
|
5986
|
+
@search_connections = ::Gapic::Config::Method.new search_connections_config
|
5987
|
+
delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection
|
5988
|
+
@delete_connection = ::Gapic::Config::Method.new delete_connection_config
|
5989
|
+
update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection
|
5990
|
+
@update_connection = ::Gapic::Config::Method.new update_connection_config
|
5304
5991
|
|
5305
5992
|
yield self if block_given?
|
5306
5993
|
end
|