google-cloud-dlp-v2 0.22.0 → 0.23.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/lib/google/cloud/dlp/v2/dlp_service/client.rb +789 -51
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +19 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +740 -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 +29 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +18 -3
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +495 -13
- data/proto_docs/google/privacy/dlp/v2/storage.rb +11 -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,518 @@ 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 fields/values
|
5171
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
5172
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5173
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5174
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5175
|
+
#
|
5176
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5177
|
+
#
|
5178
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5179
|
+
#
|
5180
|
+
# @example Basic example
|
5181
|
+
# require "google/cloud/dlp/v2"
|
5182
|
+
#
|
5183
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5184
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5185
|
+
#
|
5186
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5187
|
+
# request = Google::Cloud::Dlp::V2::ListConnectionsRequest.new
|
5188
|
+
#
|
5189
|
+
# # Call the list_connections method.
|
5190
|
+
# result = client.list_connections request
|
5191
|
+
#
|
5192
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5193
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5194
|
+
# result.each do |item|
|
5195
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5196
|
+
# p item
|
5197
|
+
# end
|
5198
|
+
#
|
5199
|
+
def list_connections request, options = nil
|
5200
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5201
|
+
|
5202
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListConnectionsRequest
|
5203
|
+
|
5204
|
+
# Converts hash and nil to an options object
|
5205
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5206
|
+
|
5207
|
+
# Customize the options with defaults
|
5208
|
+
call_metadata = @config.rpcs.list_connections.metadata.to_h
|
5209
|
+
|
5210
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5211
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5212
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5213
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5214
|
+
transports_version_send: [:rest]
|
5215
|
+
|
5216
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5217
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5218
|
+
|
5219
|
+
options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
|
5220
|
+
metadata: call_metadata,
|
5221
|
+
retry_policy: @config.rpcs.list_connections.retry_policy
|
5222
|
+
|
5223
|
+
options.apply_defaults timeout: @config.timeout,
|
5224
|
+
metadata: @config.metadata,
|
5225
|
+
retry_policy: @config.retry_policy
|
5226
|
+
|
5227
|
+
@dlp_service_stub.list_connections request, options do |result, operation|
|
5228
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_connections, "connections", request, result, options
|
5229
|
+
yield result, operation if block_given?
|
5230
|
+
return result
|
5231
|
+
end
|
5232
|
+
rescue ::Gapic::Rest::Error => e
|
5233
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5234
|
+
end
|
5235
|
+
|
5236
|
+
##
|
5237
|
+
# Searches for Connections in a parent.
|
5238
|
+
#
|
5239
|
+
# @overload search_connections(request, options = nil)
|
5240
|
+
# Pass arguments to `search_connections` via a request object, either of type
|
5241
|
+
# {::Google::Cloud::Dlp::V2::SearchConnectionsRequest} or an equivalent Hash.
|
5242
|
+
#
|
5243
|
+
# @param request [::Google::Cloud::Dlp::V2::SearchConnectionsRequest, ::Hash]
|
5244
|
+
# A request object representing the call parameters. Required. To specify no
|
5245
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5246
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5247
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5248
|
+
#
|
5249
|
+
# @overload search_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5250
|
+
# Pass arguments to `search_connections` via keyword arguments. Note that at
|
5251
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5252
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5253
|
+
#
|
5254
|
+
# @param parent [::String]
|
5255
|
+
# Required. Parent name, typically an organization, without location.
|
5256
|
+
# For example: `organizations/12345678`.
|
5257
|
+
# @param page_size [::Integer]
|
5258
|
+
# Optional. Number of results per page, max 1000.
|
5259
|
+
# @param page_token [::String]
|
5260
|
+
# Optional. Page token from a previous page to return the next set of
|
5261
|
+
# results. If set, all other request fields must match the original request.
|
5262
|
+
# @param filter [::String]
|
5263
|
+
# Optional. * Supported fields/values
|
5264
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
5265
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5266
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5267
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5268
|
+
#
|
5269
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5270
|
+
#
|
5271
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5272
|
+
#
|
5273
|
+
# @example Basic example
|
5274
|
+
# require "google/cloud/dlp/v2"
|
5275
|
+
#
|
5276
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5277
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5278
|
+
#
|
5279
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5280
|
+
# request = Google::Cloud::Dlp::V2::SearchConnectionsRequest.new
|
5281
|
+
#
|
5282
|
+
# # Call the search_connections method.
|
5283
|
+
# result = client.search_connections request
|
5284
|
+
#
|
5285
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5286
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5287
|
+
# result.each do |item|
|
5288
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5289
|
+
# p item
|
5290
|
+
# end
|
5291
|
+
#
|
5292
|
+
def search_connections request, options = nil
|
5293
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5294
|
+
|
5295
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::SearchConnectionsRequest
|
5296
|
+
|
5297
|
+
# Converts hash and nil to an options object
|
5298
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5299
|
+
|
5300
|
+
# Customize the options with defaults
|
5301
|
+
call_metadata = @config.rpcs.search_connections.metadata.to_h
|
5302
|
+
|
5303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5304
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5305
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5306
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5307
|
+
transports_version_send: [:rest]
|
5308
|
+
|
5309
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5310
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5311
|
+
|
5312
|
+
options.apply_defaults timeout: @config.rpcs.search_connections.timeout,
|
5313
|
+
metadata: call_metadata,
|
5314
|
+
retry_policy: @config.rpcs.search_connections.retry_policy
|
5315
|
+
|
5316
|
+
options.apply_defaults timeout: @config.timeout,
|
5317
|
+
metadata: @config.metadata,
|
5318
|
+
retry_policy: @config.retry_policy
|
5319
|
+
|
5320
|
+
@dlp_service_stub.search_connections request, options do |result, operation|
|
5321
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :search_connections, "connections", request, result, options
|
5322
|
+
yield result, operation if block_given?
|
5323
|
+
return result
|
5324
|
+
end
|
5325
|
+
rescue ::Gapic::Rest::Error => e
|
5326
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5327
|
+
end
|
5328
|
+
|
5329
|
+
##
|
5330
|
+
# Delete a Connection.
|
5331
|
+
#
|
5332
|
+
# @overload delete_connection(request, options = nil)
|
5333
|
+
# Pass arguments to `delete_connection` via a request object, either of type
|
5334
|
+
# {::Google::Cloud::Dlp::V2::DeleteConnectionRequest} or an equivalent Hash.
|
5335
|
+
#
|
5336
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteConnectionRequest, ::Hash]
|
5337
|
+
# A request object representing the call parameters. Required. To specify no
|
5338
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5339
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5340
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5341
|
+
#
|
5342
|
+
# @overload delete_connection(name: nil)
|
5343
|
+
# Pass arguments to `delete_connection` via keyword arguments. Note that at
|
5344
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5345
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5346
|
+
#
|
5347
|
+
# @param name [::String]
|
5348
|
+
# Required. Resource name of the Connection to be deleted, in the format:
|
5349
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5350
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5351
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
5352
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5353
|
+
#
|
5354
|
+
# @return [::Google::Protobuf::Empty]
|
5355
|
+
#
|
5356
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5357
|
+
#
|
5358
|
+
# @example Basic example
|
5359
|
+
# require "google/cloud/dlp/v2"
|
5360
|
+
#
|
5361
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5362
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5363
|
+
#
|
5364
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5365
|
+
# request = Google::Cloud::Dlp::V2::DeleteConnectionRequest.new
|
5366
|
+
#
|
5367
|
+
# # Call the delete_connection method.
|
5368
|
+
# result = client.delete_connection request
|
5369
|
+
#
|
5370
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5371
|
+
# p result
|
5372
|
+
#
|
5373
|
+
def delete_connection request, options = nil
|
5374
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5375
|
+
|
5376
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteConnectionRequest
|
5377
|
+
|
5378
|
+
# Converts hash and nil to an options object
|
5379
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5380
|
+
|
5381
|
+
# Customize the options with defaults
|
5382
|
+
call_metadata = @config.rpcs.delete_connection.metadata.to_h
|
5383
|
+
|
5384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5385
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5386
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5387
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5388
|
+
transports_version_send: [:rest]
|
5389
|
+
|
5390
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5391
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5392
|
+
|
5393
|
+
options.apply_defaults timeout: @config.rpcs.delete_connection.timeout,
|
5394
|
+
metadata: call_metadata,
|
5395
|
+
retry_policy: @config.rpcs.delete_connection.retry_policy
|
5396
|
+
|
5397
|
+
options.apply_defaults timeout: @config.timeout,
|
5398
|
+
metadata: @config.metadata,
|
5399
|
+
retry_policy: @config.retry_policy
|
5400
|
+
|
5401
|
+
@dlp_service_stub.delete_connection request, options do |result, operation|
|
5402
|
+
yield result, operation if block_given?
|
5403
|
+
return result
|
5404
|
+
end
|
5405
|
+
rescue ::Gapic::Rest::Error => e
|
5406
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5407
|
+
end
|
5408
|
+
|
5409
|
+
##
|
5410
|
+
# Update a Connection.
|
5411
|
+
#
|
5412
|
+
# @overload update_connection(request, options = nil)
|
5413
|
+
# Pass arguments to `update_connection` via a request object, either of type
|
5414
|
+
# {::Google::Cloud::Dlp::V2::UpdateConnectionRequest} or an equivalent Hash.
|
5415
|
+
#
|
5416
|
+
# @param request [::Google::Cloud::Dlp::V2::UpdateConnectionRequest, ::Hash]
|
5417
|
+
# A request object representing the call parameters. Required. To specify no
|
5418
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5419
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5420
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5421
|
+
#
|
5422
|
+
# @overload update_connection(name: nil, connection: nil, update_mask: nil)
|
5423
|
+
# Pass arguments to `update_connection` via keyword arguments. Note that at
|
5424
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5425
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5426
|
+
#
|
5427
|
+
# @param name [::String]
|
5428
|
+
# Required. Resource name in the format:
|
5429
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5430
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5431
|
+
# Required. The connection with new values for the relevant fields.
|
5432
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5433
|
+
# Optional. Mask to control which fields get updated.
|
5434
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5435
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5436
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5437
|
+
#
|
5438
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5439
|
+
#
|
5440
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5441
|
+
#
|
5442
|
+
# @example Basic example
|
5443
|
+
# require "google/cloud/dlp/v2"
|
5444
|
+
#
|
5445
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5446
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5447
|
+
#
|
5448
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5449
|
+
# request = Google::Cloud::Dlp::V2::UpdateConnectionRequest.new
|
5450
|
+
#
|
5451
|
+
# # Call the update_connection method.
|
5452
|
+
# result = client.update_connection request
|
5453
|
+
#
|
5454
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5455
|
+
# p result
|
5456
|
+
#
|
5457
|
+
def update_connection request, options = nil
|
5458
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5459
|
+
|
5460
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateConnectionRequest
|
5461
|
+
|
5462
|
+
# Converts hash and nil to an options object
|
5463
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5464
|
+
|
5465
|
+
# Customize the options with defaults
|
5466
|
+
call_metadata = @config.rpcs.update_connection.metadata.to_h
|
5467
|
+
|
5468
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5469
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5470
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5471
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5472
|
+
transports_version_send: [:rest]
|
5473
|
+
|
5474
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5475
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5476
|
+
|
5477
|
+
options.apply_defaults timeout: @config.rpcs.update_connection.timeout,
|
5478
|
+
metadata: call_metadata,
|
5479
|
+
retry_policy: @config.rpcs.update_connection.retry_policy
|
5480
|
+
|
5481
|
+
options.apply_defaults timeout: @config.timeout,
|
5482
|
+
metadata: @config.metadata,
|
5483
|
+
retry_policy: @config.retry_policy
|
5484
|
+
|
5485
|
+
@dlp_service_stub.update_connection request, options do |result, operation|
|
5486
|
+
yield result, operation if block_given?
|
5487
|
+
return result
|
5488
|
+
end
|
5489
|
+
rescue ::Gapic::Rest::Error => e
|
5490
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5491
|
+
end
|
5492
|
+
|
4853
5493
|
##
|
4854
5494
|
# Configuration class for the DlpService REST API.
|
4855
5495
|
#
|
@@ -5199,6 +5839,11 @@ module Google
|
|
5199
5839
|
#
|
5200
5840
|
attr_reader :get_column_data_profile
|
5201
5841
|
##
|
5842
|
+
# RPC-specific configuration for `delete_table_data_profile`
|
5843
|
+
# @return [::Gapic::Config::Method]
|
5844
|
+
#
|
5845
|
+
attr_reader :delete_table_data_profile
|
5846
|
+
##
|
5202
5847
|
# RPC-specific configuration for `hybrid_inspect_dlp_job`
|
5203
5848
|
# @return [::Gapic::Config::Method]
|
5204
5849
|
#
|
@@ -5208,6 +5853,36 @@ module Google
|
|
5208
5853
|
# @return [::Gapic::Config::Method]
|
5209
5854
|
#
|
5210
5855
|
attr_reader :finish_dlp_job
|
5856
|
+
##
|
5857
|
+
# RPC-specific configuration for `create_connection`
|
5858
|
+
# @return [::Gapic::Config::Method]
|
5859
|
+
#
|
5860
|
+
attr_reader :create_connection
|
5861
|
+
##
|
5862
|
+
# RPC-specific configuration for `get_connection`
|
5863
|
+
# @return [::Gapic::Config::Method]
|
5864
|
+
#
|
5865
|
+
attr_reader :get_connection
|
5866
|
+
##
|
5867
|
+
# RPC-specific configuration for `list_connections`
|
5868
|
+
# @return [::Gapic::Config::Method]
|
5869
|
+
#
|
5870
|
+
attr_reader :list_connections
|
5871
|
+
##
|
5872
|
+
# RPC-specific configuration for `search_connections`
|
5873
|
+
# @return [::Gapic::Config::Method]
|
5874
|
+
#
|
5875
|
+
attr_reader :search_connections
|
5876
|
+
##
|
5877
|
+
# RPC-specific configuration for `delete_connection`
|
5878
|
+
# @return [::Gapic::Config::Method]
|
5879
|
+
#
|
5880
|
+
attr_reader :delete_connection
|
5881
|
+
##
|
5882
|
+
# RPC-specific configuration for `update_connection`
|
5883
|
+
# @return [::Gapic::Config::Method]
|
5884
|
+
#
|
5885
|
+
attr_reader :update_connection
|
5211
5886
|
|
5212
5887
|
# @private
|
5213
5888
|
def initialize parent_rpcs = nil
|
@@ -5297,10 +5972,24 @@ module Google
|
|
5297
5972
|
@get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
|
5298
5973
|
get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile
|
5299
5974
|
@get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config
|
5975
|
+
delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile
|
5976
|
+
@delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config
|
5300
5977
|
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
5301
5978
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
5302
5979
|
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
5303
5980
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
5981
|
+
create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection
|
5982
|
+
@create_connection = ::Gapic::Config::Method.new create_connection_config
|
5983
|
+
get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection
|
5984
|
+
@get_connection = ::Gapic::Config::Method.new get_connection_config
|
5985
|
+
list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections
|
5986
|
+
@list_connections = ::Gapic::Config::Method.new list_connections_config
|
5987
|
+
search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections
|
5988
|
+
@search_connections = ::Gapic::Config::Method.new search_connections_config
|
5989
|
+
delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection
|
5990
|
+
@delete_connection = ::Gapic::Config::Method.new delete_connection_config
|
5991
|
+
update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection
|
5992
|
+
@update_connection = ::Gapic::Config::Method.new update_connection_config
|
5304
5993
|
|
5305
5994
|
yield self if block_given?
|
5306
5995
|
end
|