google-cloud-dlp-v2 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +980 -171
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +129 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +906 -139
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service.rb +1 -1
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +12 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +112 -50
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +399 -55
- data/proto_docs/google/privacy/dlp/v2/storage.rb +35 -18
- metadata +4 -4
|
@@ -38,7 +38,7 @@ module Google
|
|
|
38
38
|
# scheduling of data scans on Google Cloud Platform based data sets.
|
|
39
39
|
#
|
|
40
40
|
# To learn more about concepts and find how-to guides see
|
|
41
|
-
# https://cloud.google.com/
|
|
41
|
+
# https://cloud.google.com/sensitive-data-protection/docs/.
|
|
42
42
|
#
|
|
43
43
|
class Client
|
|
44
44
|
# @private
|
|
@@ -221,6 +221,36 @@ module Google
|
|
|
221
221
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
default_config.rpcs.list_project_data_profiles.timeout = 300.0
|
|
225
|
+
default_config.rpcs.list_project_data_profiles.retry_policy = {
|
|
226
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
default_config.rpcs.list_table_data_profiles.timeout = 300.0
|
|
230
|
+
default_config.rpcs.list_table_data_profiles.retry_policy = {
|
|
231
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
default_config.rpcs.list_column_data_profiles.timeout = 300.0
|
|
235
|
+
default_config.rpcs.list_column_data_profiles.retry_policy = {
|
|
236
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
default_config.rpcs.get_project_data_profile.timeout = 300.0
|
|
240
|
+
default_config.rpcs.get_project_data_profile.retry_policy = {
|
|
241
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
default_config.rpcs.get_table_data_profile.timeout = 300.0
|
|
245
|
+
default_config.rpcs.get_table_data_profile.retry_policy = {
|
|
246
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
default_config.rpcs.get_column_data_profile.timeout = 300.0
|
|
250
|
+
default_config.rpcs.get_column_data_profile.retry_policy = {
|
|
251
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
252
|
+
}
|
|
253
|
+
|
|
224
254
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
|
225
255
|
|
|
226
256
|
default_config.rpcs.finish_dlp_job.timeout = 300.0
|
|
@@ -331,8 +361,10 @@ module Google
|
|
|
331
361
|
# system will automatically choose what detectors to run. By default this may
|
|
332
362
|
# be all types, but may change over time as detectors are updated.
|
|
333
363
|
#
|
|
334
|
-
# For how to guides, see
|
|
335
|
-
#
|
|
364
|
+
# For how to guides, see
|
|
365
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
|
|
366
|
+
# and
|
|
367
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
|
|
336
368
|
#
|
|
337
369
|
# @overload inspect_content(request, options = nil)
|
|
338
370
|
# Pass arguments to `inspect_content` via a request object, either of type
|
|
@@ -354,7 +386,7 @@ module Google
|
|
|
354
386
|
#
|
|
355
387
|
# The format of this value varies depending on whether you have [specified a
|
|
356
388
|
# processing
|
|
357
|
-
# location](https://cloud.google.com/
|
|
389
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
358
390
|
#
|
|
359
391
|
# + Projects scope, location specified:<br/>
|
|
360
392
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -440,8 +472,9 @@ module Google
|
|
|
440
472
|
##
|
|
441
473
|
# Redacts potentially sensitive info from an image.
|
|
442
474
|
# This method has limits on input size, processing time, and output size.
|
|
443
|
-
# See
|
|
444
|
-
#
|
|
475
|
+
# See
|
|
476
|
+
# https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
|
|
477
|
+
# to learn more.
|
|
445
478
|
#
|
|
446
479
|
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
447
480
|
# system will automatically choose what detectors to run. By default this may
|
|
@@ -467,7 +500,7 @@ module Google
|
|
|
467
500
|
#
|
|
468
501
|
# The format of this value varies depending on whether you have [specified a
|
|
469
502
|
# processing
|
|
470
|
-
# location](https://cloud.google.com/
|
|
503
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
471
504
|
#
|
|
472
505
|
# + Projects scope, location specified:<br/>
|
|
473
506
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -551,8 +584,9 @@ module Google
|
|
|
551
584
|
##
|
|
552
585
|
# De-identifies potentially sensitive info from a ContentItem.
|
|
553
586
|
# This method has limits on input size and output size.
|
|
554
|
-
# See
|
|
555
|
-
#
|
|
587
|
+
# See
|
|
588
|
+
# https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
|
|
589
|
+
# to learn more.
|
|
556
590
|
#
|
|
557
591
|
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
558
592
|
# system will automatically choose what detectors to run. By default this may
|
|
@@ -578,7 +612,7 @@ module Google
|
|
|
578
612
|
#
|
|
579
613
|
# The format of this value varies depending on whether you have [specified a
|
|
580
614
|
# processing
|
|
581
|
-
# location](https://cloud.google.com/
|
|
615
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
582
616
|
#
|
|
583
617
|
# + Projects scope, location specified:<br/>
|
|
584
618
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -682,7 +716,7 @@ module Google
|
|
|
682
716
|
##
|
|
683
717
|
# Re-identifies content that has been de-identified.
|
|
684
718
|
# See
|
|
685
|
-
# https://cloud.google.com/
|
|
719
|
+
# https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
|
|
686
720
|
# to learn more.
|
|
687
721
|
#
|
|
688
722
|
# @overload reidentify_content(request, options = nil)
|
|
@@ -705,7 +739,7 @@ module Google
|
|
|
705
739
|
#
|
|
706
740
|
# The format of this value varies depending on whether you have [specified a
|
|
707
741
|
# processing
|
|
708
|
-
# location](https://cloud.google.com/
|
|
742
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
709
743
|
#
|
|
710
744
|
# + Projects scope, location specified:<br/>
|
|
711
745
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -808,8 +842,9 @@ module Google
|
|
|
808
842
|
|
|
809
843
|
##
|
|
810
844
|
# Returns a list of the sensitive information types that DLP API
|
|
811
|
-
# supports. See
|
|
812
|
-
#
|
|
845
|
+
# supports. See
|
|
846
|
+
# https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
|
|
847
|
+
# to learn more.
|
|
813
848
|
#
|
|
814
849
|
# @overload list_info_types(request, options = nil)
|
|
815
850
|
# Pass arguments to `list_info_types` via a request object, either of type
|
|
@@ -902,7 +937,9 @@ module Google
|
|
|
902
937
|
##
|
|
903
938
|
# Creates an InspectTemplate for reusing frequently used configuration
|
|
904
939
|
# for inspecting content, images, and storage.
|
|
905
|
-
# See
|
|
940
|
+
# See
|
|
941
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
|
942
|
+
# to learn more.
|
|
906
943
|
#
|
|
907
944
|
# @overload create_inspect_template(request, options = nil)
|
|
908
945
|
# Pass arguments to `create_inspect_template` via a request object, either of type
|
|
@@ -924,7 +961,7 @@ module Google
|
|
|
924
961
|
#
|
|
925
962
|
# The format of this value varies depending on the scope of the request
|
|
926
963
|
# (project or organization) and whether you have [specified a processing
|
|
927
|
-
# location](https://cloud.google.com/
|
|
964
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
928
965
|
#
|
|
929
966
|
# + Projects scope, location specified:<br/>
|
|
930
967
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1009,7 +1046,9 @@ module Google
|
|
|
1009
1046
|
|
|
1010
1047
|
##
|
|
1011
1048
|
# Updates the InspectTemplate.
|
|
1012
|
-
# See
|
|
1049
|
+
# See
|
|
1050
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
|
1051
|
+
# to learn more.
|
|
1013
1052
|
#
|
|
1014
1053
|
# @overload update_inspect_template(request, options = nil)
|
|
1015
1054
|
# Pass arguments to `update_inspect_template` via a request object, either of type
|
|
@@ -1094,7 +1133,9 @@ module Google
|
|
|
1094
1133
|
|
|
1095
1134
|
##
|
|
1096
1135
|
# Gets an InspectTemplate.
|
|
1097
|
-
# See
|
|
1136
|
+
# See
|
|
1137
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
|
1138
|
+
# to learn more.
|
|
1098
1139
|
#
|
|
1099
1140
|
# @overload get_inspect_template(request, options = nil)
|
|
1100
1141
|
# Pass arguments to `get_inspect_template` via a request object, either of type
|
|
@@ -1175,7 +1216,9 @@ module Google
|
|
|
1175
1216
|
|
|
1176
1217
|
##
|
|
1177
1218
|
# Lists InspectTemplates.
|
|
1178
|
-
# See
|
|
1219
|
+
# See
|
|
1220
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
|
1221
|
+
# to learn more.
|
|
1179
1222
|
#
|
|
1180
1223
|
# @overload list_inspect_templates(request, options = nil)
|
|
1181
1224
|
# Pass arguments to `list_inspect_templates` via a request object, either of type
|
|
@@ -1197,7 +1240,7 @@ module Google
|
|
|
1197
1240
|
#
|
|
1198
1241
|
# The format of this value varies depending on the scope of the request
|
|
1199
1242
|
# (project or organization) and whether you have [specified a processing
|
|
1200
|
-
# location](https://cloud.google.com/
|
|
1243
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1201
1244
|
#
|
|
1202
1245
|
# + Projects scope, location specified:<br/>
|
|
1203
1246
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1300,7 +1343,9 @@ module Google
|
|
|
1300
1343
|
|
|
1301
1344
|
##
|
|
1302
1345
|
# Deletes an InspectTemplate.
|
|
1303
|
-
# See
|
|
1346
|
+
# See
|
|
1347
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
|
1348
|
+
# to learn more.
|
|
1304
1349
|
#
|
|
1305
1350
|
# @overload delete_inspect_template(request, options = nil)
|
|
1306
1351
|
# Pass arguments to `delete_inspect_template` via a request object, either of type
|
|
@@ -1382,8 +1427,9 @@ module Google
|
|
|
1382
1427
|
##
|
|
1383
1428
|
# Creates a DeidentifyTemplate for reusing frequently used configuration
|
|
1384
1429
|
# for de-identifying content, images, and storage.
|
|
1385
|
-
# See
|
|
1386
|
-
#
|
|
1430
|
+
# See
|
|
1431
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
|
1432
|
+
# to learn more.
|
|
1387
1433
|
#
|
|
1388
1434
|
# @overload create_deidentify_template(request, options = nil)
|
|
1389
1435
|
# Pass arguments to `create_deidentify_template` via a request object, either of type
|
|
@@ -1405,7 +1451,7 @@ module Google
|
|
|
1405
1451
|
#
|
|
1406
1452
|
# The format of this value varies depending on the scope of the request
|
|
1407
1453
|
# (project or organization) and whether you have [specified a processing
|
|
1408
|
-
# location](https://cloud.google.com/
|
|
1454
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1409
1455
|
#
|
|
1410
1456
|
# + Projects scope, location specified:<br/>
|
|
1411
1457
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1490,8 +1536,9 @@ module Google
|
|
|
1490
1536
|
|
|
1491
1537
|
##
|
|
1492
1538
|
# Updates the DeidentifyTemplate.
|
|
1493
|
-
# See
|
|
1494
|
-
#
|
|
1539
|
+
# See
|
|
1540
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
|
1541
|
+
# to learn more.
|
|
1495
1542
|
#
|
|
1496
1543
|
# @overload update_deidentify_template(request, options = nil)
|
|
1497
1544
|
# Pass arguments to `update_deidentify_template` via a request object, either of type
|
|
@@ -1577,8 +1624,9 @@ module Google
|
|
|
1577
1624
|
|
|
1578
1625
|
##
|
|
1579
1626
|
# Gets a DeidentifyTemplate.
|
|
1580
|
-
# See
|
|
1581
|
-
#
|
|
1627
|
+
# See
|
|
1628
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
|
1629
|
+
# to learn more.
|
|
1582
1630
|
#
|
|
1583
1631
|
# @overload get_deidentify_template(request, options = nil)
|
|
1584
1632
|
# Pass arguments to `get_deidentify_template` via a request object, either of type
|
|
@@ -1659,8 +1707,9 @@ module Google
|
|
|
1659
1707
|
|
|
1660
1708
|
##
|
|
1661
1709
|
# Lists DeidentifyTemplates.
|
|
1662
|
-
# See
|
|
1663
|
-
#
|
|
1710
|
+
# See
|
|
1711
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
|
1712
|
+
# to learn more.
|
|
1664
1713
|
#
|
|
1665
1714
|
# @overload list_deidentify_templates(request, options = nil)
|
|
1666
1715
|
# Pass arguments to `list_deidentify_templates` via a request object, either of type
|
|
@@ -1682,7 +1731,7 @@ module Google
|
|
|
1682
1731
|
#
|
|
1683
1732
|
# The format of this value varies depending on the scope of the request
|
|
1684
1733
|
# (project or organization) and whether you have [specified a processing
|
|
1685
|
-
# location](https://cloud.google.com/
|
|
1734
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1686
1735
|
#
|
|
1687
1736
|
# + Projects scope, location specified:<br/>
|
|
1688
1737
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1785,8 +1834,9 @@ module Google
|
|
|
1785
1834
|
|
|
1786
1835
|
##
|
|
1787
1836
|
# Deletes a DeidentifyTemplate.
|
|
1788
|
-
# See
|
|
1789
|
-
#
|
|
1837
|
+
# See
|
|
1838
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
|
1839
|
+
# to learn more.
|
|
1790
1840
|
#
|
|
1791
1841
|
# @overload delete_deidentify_template(request, options = nil)
|
|
1792
1842
|
# Pass arguments to `delete_deidentify_template` via a request object, either of type
|
|
@@ -1869,7 +1919,9 @@ module Google
|
|
|
1869
1919
|
##
|
|
1870
1920
|
# Creates a job trigger to run DLP actions such as scanning storage for
|
|
1871
1921
|
# sensitive information on a set schedule.
|
|
1872
|
-
# See
|
|
1922
|
+
# See
|
|
1923
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
|
1924
|
+
# to learn more.
|
|
1873
1925
|
#
|
|
1874
1926
|
# @overload create_job_trigger(request, options = nil)
|
|
1875
1927
|
# Pass arguments to `create_job_trigger` via a request object, either of type
|
|
@@ -1891,7 +1943,7 @@ module Google
|
|
|
1891
1943
|
#
|
|
1892
1944
|
# The format of this value varies depending on whether you have [specified a
|
|
1893
1945
|
# processing
|
|
1894
|
-
# location](https://cloud.google.com/
|
|
1946
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1895
1947
|
#
|
|
1896
1948
|
# + Projects scope, location specified:<br/>
|
|
1897
1949
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1972,7 +2024,9 @@ module Google
|
|
|
1972
2024
|
|
|
1973
2025
|
##
|
|
1974
2026
|
# Updates a job trigger.
|
|
1975
|
-
# See
|
|
2027
|
+
# See
|
|
2028
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
|
2029
|
+
# to learn more.
|
|
1976
2030
|
#
|
|
1977
2031
|
# @overload update_job_trigger(request, options = nil)
|
|
1978
2032
|
# Pass arguments to `update_job_trigger` via a request object, either of type
|
|
@@ -2139,7 +2193,9 @@ module Google
|
|
|
2139
2193
|
|
|
2140
2194
|
##
|
|
2141
2195
|
# Gets a job trigger.
|
|
2142
|
-
# See
|
|
2196
|
+
# See
|
|
2197
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
|
2198
|
+
# to learn more.
|
|
2143
2199
|
#
|
|
2144
2200
|
# @overload get_job_trigger(request, options = nil)
|
|
2145
2201
|
# Pass arguments to `get_job_trigger` via a request object, either of type
|
|
@@ -2219,7 +2275,9 @@ module Google
|
|
|
2219
2275
|
|
|
2220
2276
|
##
|
|
2221
2277
|
# Lists job triggers.
|
|
2222
|
-
# See
|
|
2278
|
+
# See
|
|
2279
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
|
2280
|
+
# to learn more.
|
|
2223
2281
|
#
|
|
2224
2282
|
# @overload list_job_triggers(request, options = nil)
|
|
2225
2283
|
# Pass arguments to `list_job_triggers` via a request object, either of type
|
|
@@ -2241,7 +2299,7 @@ module Google
|
|
|
2241
2299
|
#
|
|
2242
2300
|
# The format of this value varies depending on whether you have [specified a
|
|
2243
2301
|
# processing
|
|
2244
|
-
# location](https://cloud.google.com/
|
|
2302
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
2245
2303
|
#
|
|
2246
2304
|
# + Projects scope, location specified:<br/>
|
|
2247
2305
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -2369,7 +2427,9 @@ module Google
|
|
|
2369
2427
|
|
|
2370
2428
|
##
|
|
2371
2429
|
# Deletes a job trigger.
|
|
2372
|
-
# See
|
|
2430
|
+
# See
|
|
2431
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
|
2432
|
+
# to learn more.
|
|
2373
2433
|
#
|
|
2374
2434
|
# @overload delete_job_trigger(request, options = nil)
|
|
2375
2435
|
# Pass arguments to `delete_job_trigger` via a request object, either of type
|
|
@@ -2975,8 +3035,11 @@ module Google
|
|
|
2975
3035
|
|
|
2976
3036
|
##
|
|
2977
3037
|
# Creates a new job to inspect storage or calculate risk metrics.
|
|
2978
|
-
# See
|
|
2979
|
-
# https://cloud.google.com/
|
|
3038
|
+
# See
|
|
3039
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
|
3040
|
+
# and
|
|
3041
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
|
3042
|
+
# to learn more.
|
|
2980
3043
|
#
|
|
2981
3044
|
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
|
2982
3045
|
# system will automatically choose what detectors to run. By default this may
|
|
@@ -3002,7 +3065,7 @@ module Google
|
|
|
3002
3065
|
#
|
|
3003
3066
|
# The format of this value varies depending on whether you have [specified a
|
|
3004
3067
|
# processing
|
|
3005
|
-
# location](https://cloud.google.com/
|
|
3068
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
3006
3069
|
#
|
|
3007
3070
|
# + Projects scope, location specified:<br/>
|
|
3008
3071
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -3086,8 +3149,11 @@ module Google
|
|
|
3086
3149
|
|
|
3087
3150
|
##
|
|
3088
3151
|
# Lists DlpJobs that match the specified filter in the request.
|
|
3089
|
-
# See
|
|
3090
|
-
# https://cloud.google.com/
|
|
3152
|
+
# See
|
|
3153
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
|
3154
|
+
# and
|
|
3155
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
|
3156
|
+
# to learn more.
|
|
3091
3157
|
#
|
|
3092
3158
|
# @overload list_dlp_jobs(request, options = nil)
|
|
3093
3159
|
# Pass arguments to `list_dlp_jobs` via a request object, either of type
|
|
@@ -3109,7 +3175,7 @@ module Google
|
|
|
3109
3175
|
#
|
|
3110
3176
|
# The format of this value varies depending on whether you have [specified a
|
|
3111
3177
|
# processing
|
|
3112
|
-
# location](https://cloud.google.com/
|
|
3178
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
3113
3179
|
#
|
|
3114
3180
|
# + Projects scope, location specified:<br/>
|
|
3115
3181
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -3237,8 +3303,11 @@ module Google
|
|
|
3237
3303
|
|
|
3238
3304
|
##
|
|
3239
3305
|
# Gets the latest state of a long-running DlpJob.
|
|
3240
|
-
# See
|
|
3241
|
-
# https://cloud.google.com/
|
|
3306
|
+
# See
|
|
3307
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
|
3308
|
+
# and
|
|
3309
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
|
3310
|
+
# to learn more.
|
|
3242
3311
|
#
|
|
3243
3312
|
# @overload get_dlp_job(request, options = nil)
|
|
3244
3313
|
# Pass arguments to `get_dlp_job` via a request object, either of type
|
|
@@ -3319,8 +3388,11 @@ module Google
|
|
|
3319
3388
|
# Deletes a long-running DlpJob. This method indicates that the client is
|
|
3320
3389
|
# no longer interested in the DlpJob result. The job will be canceled if
|
|
3321
3390
|
# possible.
|
|
3322
|
-
# See
|
|
3323
|
-
# https://cloud.google.com/
|
|
3391
|
+
# See
|
|
3392
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
|
3393
|
+
# and
|
|
3394
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
|
3395
|
+
# to learn more.
|
|
3324
3396
|
#
|
|
3325
3397
|
# @overload delete_dlp_job(request, options = nil)
|
|
3326
3398
|
# Pass arguments to `delete_dlp_job` via a request object, either of type
|
|
@@ -3401,8 +3473,11 @@ module Google
|
|
|
3401
3473
|
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
|
3402
3474
|
# makes a best effort to cancel the DlpJob, but success is not
|
|
3403
3475
|
# guaranteed.
|
|
3404
|
-
# See
|
|
3405
|
-
# https://cloud.google.com/
|
|
3476
|
+
# See
|
|
3477
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
|
3478
|
+
# and
|
|
3479
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
|
3480
|
+
# to learn more.
|
|
3406
3481
|
#
|
|
3407
3482
|
# @overload cancel_dlp_job(request, options = nil)
|
|
3408
3483
|
# Pass arguments to `cancel_dlp_job` via a request object, either of type
|
|
@@ -3481,8 +3556,9 @@ module Google
|
|
|
3481
3556
|
|
|
3482
3557
|
##
|
|
3483
3558
|
# Creates a pre-built stored infoType to be used for inspection.
|
|
3484
|
-
# See
|
|
3485
|
-
#
|
|
3559
|
+
# See
|
|
3560
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
|
3561
|
+
# to learn more.
|
|
3486
3562
|
#
|
|
3487
3563
|
# @overload create_stored_info_type(request, options = nil)
|
|
3488
3564
|
# Pass arguments to `create_stored_info_type` via a request object, either of type
|
|
@@ -3504,7 +3580,7 @@ module Google
|
|
|
3504
3580
|
#
|
|
3505
3581
|
# The format of this value varies depending on the scope of the request
|
|
3506
3582
|
# (project or organization) and whether you have [specified a processing
|
|
3507
|
-
# location](https://cloud.google.com/
|
|
3583
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
3508
3584
|
#
|
|
3509
3585
|
# + Projects scope, location specified:<br/>
|
|
3510
3586
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -3590,8 +3666,9 @@ module Google
|
|
|
3590
3666
|
##
|
|
3591
3667
|
# Updates the stored infoType by creating a new version. The existing version
|
|
3592
3668
|
# will continue to be used until the new version is ready.
|
|
3593
|
-
# See
|
|
3594
|
-
#
|
|
3669
|
+
# See
|
|
3670
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
|
3671
|
+
# to learn more.
|
|
3595
3672
|
#
|
|
3596
3673
|
# @overload update_stored_info_type(request, options = nil)
|
|
3597
3674
|
# Pass arguments to `update_stored_info_type` via a request object, either of type
|
|
@@ -3678,8 +3755,9 @@ module Google
|
|
|
3678
3755
|
|
|
3679
3756
|
##
|
|
3680
3757
|
# Gets a stored infoType.
|
|
3681
|
-
# See
|
|
3682
|
-
#
|
|
3758
|
+
# See
|
|
3759
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
|
3760
|
+
# to learn more.
|
|
3683
3761
|
#
|
|
3684
3762
|
# @overload get_stored_info_type(request, options = nil)
|
|
3685
3763
|
# Pass arguments to `get_stored_info_type` via a request object, either of type
|
|
@@ -3760,8 +3838,9 @@ module Google
|
|
|
3760
3838
|
|
|
3761
3839
|
##
|
|
3762
3840
|
# Lists stored infoTypes.
|
|
3763
|
-
# See
|
|
3764
|
-
#
|
|
3841
|
+
# See
|
|
3842
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
|
3843
|
+
# to learn more.
|
|
3765
3844
|
#
|
|
3766
3845
|
# @overload list_stored_info_types(request, options = nil)
|
|
3767
3846
|
# Pass arguments to `list_stored_info_types` via a request object, either of type
|
|
@@ -3783,7 +3862,7 @@ module Google
|
|
|
3783
3862
|
#
|
|
3784
3863
|
# The format of this value varies depending on the scope of the request
|
|
3785
3864
|
# (project or organization) and whether you have [specified a processing
|
|
3786
|
-
# location](https://cloud.google.com/
|
|
3865
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
3787
3866
|
#
|
|
3788
3867
|
# + Projects scope, location specified:<br/>
|
|
3789
3868
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -3883,8 +3962,9 @@ module Google
|
|
|
3883
3962
|
|
|
3884
3963
|
##
|
|
3885
3964
|
# Deletes a stored infoType.
|
|
3886
|
-
# See
|
|
3887
|
-
#
|
|
3965
|
+
# See
|
|
3966
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
|
3967
|
+
# to learn more.
|
|
3888
3968
|
#
|
|
3889
3969
|
# @overload delete_stored_info_type(request, options = nil)
|
|
3890
3970
|
# Pass arguments to `delete_stored_info_type` via a request object, either of type
|
|
@@ -3964,35 +4044,74 @@ module Google
|
|
|
3964
4044
|
end
|
|
3965
4045
|
|
|
3966
4046
|
##
|
|
3967
|
-
#
|
|
3968
|
-
# To review the findings, inspect the job. Inspection will occur
|
|
3969
|
-
# asynchronously.
|
|
4047
|
+
# Lists data profiles for an organization.
|
|
3970
4048
|
#
|
|
3971
|
-
# @overload
|
|
3972
|
-
# Pass arguments to `
|
|
3973
|
-
# {::Google::Cloud::Dlp::V2::
|
|
4049
|
+
# @overload list_project_data_profiles(request, options = nil)
|
|
4050
|
+
# Pass arguments to `list_project_data_profiles` via a request object, either of type
|
|
4051
|
+
# {::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest} or an equivalent Hash.
|
|
3974
4052
|
#
|
|
3975
|
-
# @param request [::Google::Cloud::Dlp::V2::
|
|
4053
|
+
# @param request [::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest, ::Hash]
|
|
3976
4054
|
# A request object representing the call parameters. Required. To specify no
|
|
3977
4055
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3978
4056
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3979
4057
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3980
4058
|
#
|
|
3981
|
-
# @overload
|
|
3982
|
-
# Pass arguments to `
|
|
4059
|
+
# @overload list_project_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
|
4060
|
+
# Pass arguments to `list_project_data_profiles` via keyword arguments. Note that at
|
|
3983
4061
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3984
4062
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3985
4063
|
#
|
|
3986
|
-
# @param
|
|
3987
|
-
# Required.
|
|
3988
|
-
#
|
|
3989
|
-
#
|
|
3990
|
-
#
|
|
4064
|
+
# @param parent [::String]
|
|
4065
|
+
# Required. organizations/\\{org_id}/locations/\\{loc_id}
|
|
4066
|
+
# @param page_token [::String]
|
|
4067
|
+
# Page token to continue retrieval.
|
|
4068
|
+
# @param page_size [::Integer]
|
|
4069
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
|
4070
|
+
# returns a page of max size 100.
|
|
4071
|
+
# @param order_by [::String]
|
|
4072
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
4073
|
+
# postfix. This list is case insensitive. The default sorting order is
|
|
4074
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
|
4075
|
+
# field at a time is allowed.
|
|
4076
|
+
#
|
|
4077
|
+
# Examples:
|
|
4078
|
+
# * `project_id`
|
|
4079
|
+
# * `sensitivity_level desc`
|
|
4080
|
+
#
|
|
4081
|
+
# Supported fields are:
|
|
4082
|
+
#
|
|
4083
|
+
# - `project_id`: GCP project ID
|
|
4084
|
+
# - `sensitivity_level`: How sensitive the data in a project is, at most.
|
|
4085
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
|
4086
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
|
4087
|
+
# seconds.
|
|
4088
|
+
# @param filter [::String]
|
|
4089
|
+
# Allows filtering.
|
|
4090
|
+
#
|
|
4091
|
+
# Supported syntax:
|
|
4092
|
+
#
|
|
4093
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
4094
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
4095
|
+
# sequence of restrictions implicitly uses `AND`.
|
|
4096
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
|
4097
|
+
# * Supported fields/values:
|
|
4098
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
4099
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
|
4100
|
+
# - `status_code` - an RPC status code as defined in
|
|
4101
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
4102
|
+
# * The operator must be `=` or `!=`.
|
|
4103
|
+
#
|
|
4104
|
+
# Examples:
|
|
4105
|
+
#
|
|
4106
|
+
# * `project_id = 12345 AND status_code = 1`
|
|
4107
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
4108
|
+
#
|
|
4109
|
+
# The length of this field should be no more than 500 characters.
|
|
3991
4110
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3992
|
-
# @yieldparam result [::Google::Cloud::Dlp::V2::
|
|
4111
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
|
3993
4112
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3994
4113
|
#
|
|
3995
|
-
# @return [::Google::Cloud::Dlp::V2::
|
|
4114
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
|
3996
4115
|
#
|
|
3997
4116
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3998
4117
|
#
|
|
@@ -4003,24 +4122,28 @@ module Google
|
|
|
4003
4122
|
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4004
4123
|
#
|
|
4005
4124
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4006
|
-
# request = Google::Cloud::Dlp::V2::
|
|
4125
|
+
# request = Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest.new
|
|
4007
4126
|
#
|
|
4008
|
-
# # Call the
|
|
4009
|
-
# result = client.
|
|
4127
|
+
# # Call the list_project_data_profiles method.
|
|
4128
|
+
# result = client.list_project_data_profiles request
|
|
4010
4129
|
#
|
|
4011
|
-
# # The returned object is of type
|
|
4012
|
-
#
|
|
4130
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4131
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4132
|
+
# result.each do |item|
|
|
4133
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::ProjectDataProfile.
|
|
4134
|
+
# p item
|
|
4135
|
+
# end
|
|
4013
4136
|
#
|
|
4014
|
-
def
|
|
4137
|
+
def list_project_data_profiles request, options = nil
|
|
4015
4138
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4016
4139
|
|
|
4017
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::
|
|
4140
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest
|
|
4018
4141
|
|
|
4019
4142
|
# Converts hash and nil to an options object
|
|
4020
4143
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4021
4144
|
|
|
4022
4145
|
# Customize the options with defaults
|
|
4023
|
-
call_metadata = @config.rpcs.
|
|
4146
|
+
call_metadata = @config.rpcs.list_project_data_profiles.metadata.to_h
|
|
4024
4147
|
|
|
4025
4148
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
4026
4149
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -4030,15 +4153,16 @@ module Google
|
|
|
4030
4153
|
|
|
4031
4154
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4032
4155
|
|
|
4033
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
4156
|
+
options.apply_defaults timeout: @config.rpcs.list_project_data_profiles.timeout,
|
|
4034
4157
|
metadata: call_metadata,
|
|
4035
|
-
retry_policy: @config.rpcs.
|
|
4158
|
+
retry_policy: @config.rpcs.list_project_data_profiles.retry_policy
|
|
4036
4159
|
|
|
4037
4160
|
options.apply_defaults timeout: @config.timeout,
|
|
4038
4161
|
metadata: @config.metadata,
|
|
4039
4162
|
retry_policy: @config.retry_policy
|
|
4040
4163
|
|
|
4041
|
-
@dlp_service_stub.
|
|
4164
|
+
@dlp_service_stub.list_project_data_profiles request, options do |result, operation|
|
|
4165
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, "project_data_profiles", request, result, options
|
|
4042
4166
|
yield result, operation if block_given?
|
|
4043
4167
|
return result
|
|
4044
4168
|
end
|
|
@@ -4047,31 +4171,87 @@ module Google
|
|
|
4047
4171
|
end
|
|
4048
4172
|
|
|
4049
4173
|
##
|
|
4050
|
-
#
|
|
4051
|
-
# of any enabled actions that have not yet run.
|
|
4174
|
+
# Lists data profiles for an organization.
|
|
4052
4175
|
#
|
|
4053
|
-
# @overload
|
|
4054
|
-
# Pass arguments to `
|
|
4055
|
-
# {::Google::Cloud::Dlp::V2::
|
|
4176
|
+
# @overload list_table_data_profiles(request, options = nil)
|
|
4177
|
+
# Pass arguments to `list_table_data_profiles` via a request object, either of type
|
|
4178
|
+
# {::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest} or an equivalent Hash.
|
|
4056
4179
|
#
|
|
4057
|
-
# @param request [::Google::Cloud::Dlp::V2::
|
|
4180
|
+
# @param request [::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest, ::Hash]
|
|
4058
4181
|
# A request object representing the call parameters. Required. To specify no
|
|
4059
4182
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4060
4183
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4061
4184
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4062
4185
|
#
|
|
4063
|
-
# @overload
|
|
4064
|
-
# Pass arguments to `
|
|
4186
|
+
# @overload list_table_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
|
4187
|
+
# Pass arguments to `list_table_data_profiles` via keyword arguments. Note that at
|
|
4065
4188
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4066
4189
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4067
4190
|
#
|
|
4068
|
-
# @param
|
|
4069
|
-
# Required.
|
|
4191
|
+
# @param parent [::String]
|
|
4192
|
+
# Required. Resource name of the organization or project, for
|
|
4193
|
+
# example `organizations/433245324/locations/europe` or
|
|
4194
|
+
# `projects/project-id/locations/asia`.
|
|
4195
|
+
# @param page_token [::String]
|
|
4196
|
+
# Page token to continue retrieval.
|
|
4197
|
+
# @param page_size [::Integer]
|
|
4198
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
|
4199
|
+
# returns a page of max size 100.
|
|
4200
|
+
# @param order_by [::String]
|
|
4201
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
4202
|
+
# postfix. This list is case insensitive. The default sorting order is
|
|
4203
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
|
4204
|
+
# field at a time is allowed.
|
|
4205
|
+
#
|
|
4206
|
+
# Examples:
|
|
4207
|
+
# * `project_id asc`
|
|
4208
|
+
# * `table_id`
|
|
4209
|
+
# * `sensitivity_level desc`
|
|
4210
|
+
#
|
|
4211
|
+
# Supported fields are:
|
|
4212
|
+
#
|
|
4213
|
+
# - `project_id`: The GCP project ID.
|
|
4214
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
|
4215
|
+
# - `table_id`: The ID of a BigQuery table.
|
|
4216
|
+
# - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
4217
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
|
4218
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
|
4219
|
+
# seconds.
|
|
4220
|
+
# - `last_modified`: The last time the resource was modified.
|
|
4221
|
+
# - `resource_visibility`: Visibility restriction for this resource.
|
|
4222
|
+
# - `row_count`: Number of rows in this resource.
|
|
4223
|
+
# @param filter [::String]
|
|
4224
|
+
# Allows filtering.
|
|
4225
|
+
#
|
|
4226
|
+
# Supported syntax:
|
|
4227
|
+
#
|
|
4228
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
4229
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
4230
|
+
# sequence of restrictions implicitly uses `AND`.
|
|
4231
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
|
4232
|
+
# * Supported fields/values:
|
|
4233
|
+
# - `project_id` - The GCP project ID.
|
|
4234
|
+
# - `dataset_id` - The BigQuery dataset ID.
|
|
4235
|
+
# - `table_id` - The ID of the BigQuery table.
|
|
4236
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
4237
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
|
4238
|
+
# - `resource_visibility`: PUBLIC|RESTRICTED
|
|
4239
|
+
# - `status_code` - an RPC status code as defined in
|
|
4240
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
4241
|
+
# * The operator must be `=` or `!=`.
|
|
4242
|
+
#
|
|
4243
|
+
# Examples:
|
|
4244
|
+
#
|
|
4245
|
+
# * `project_id = 12345 AND status_code = 1`
|
|
4246
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
4247
|
+
# * `project_id = 12345 AND resource_visibility = PUBLIC`
|
|
4248
|
+
#
|
|
4249
|
+
# The length of this field should be no more than 500 characters.
|
|
4070
4250
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4071
|
-
# @yieldparam result [::Google::
|
|
4251
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
|
4072
4252
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4073
4253
|
#
|
|
4074
|
-
# @return [::Google::
|
|
4254
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
|
4075
4255
|
#
|
|
4076
4256
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4077
4257
|
#
|
|
@@ -4082,24 +4262,28 @@ module Google
|
|
|
4082
4262
|
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4083
4263
|
#
|
|
4084
4264
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4085
|
-
# request = Google::Cloud::Dlp::V2::
|
|
4265
|
+
# request = Google::Cloud::Dlp::V2::ListTableDataProfilesRequest.new
|
|
4086
4266
|
#
|
|
4087
|
-
# # Call the
|
|
4088
|
-
# result = client.
|
|
4267
|
+
# # Call the list_table_data_profiles method.
|
|
4268
|
+
# result = client.list_table_data_profiles request
|
|
4089
4269
|
#
|
|
4090
|
-
# # The returned object is of type
|
|
4091
|
-
#
|
|
4270
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4271
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4272
|
+
# result.each do |item|
|
|
4273
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::TableDataProfile.
|
|
4274
|
+
# p item
|
|
4275
|
+
# end
|
|
4092
4276
|
#
|
|
4093
|
-
def
|
|
4277
|
+
def list_table_data_profiles request, options = nil
|
|
4094
4278
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4095
4279
|
|
|
4096
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::
|
|
4280
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest
|
|
4097
4281
|
|
|
4098
4282
|
# Converts hash and nil to an options object
|
|
4099
4283
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4100
4284
|
|
|
4101
4285
|
# Customize the options with defaults
|
|
4102
|
-
call_metadata = @config.rpcs.
|
|
4286
|
+
call_metadata = @config.rpcs.list_table_data_profiles.metadata.to_h
|
|
4103
4287
|
|
|
4104
4288
|
# Set x-goog-api-client and x-goog-user-project headers
|
|
4105
4289
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -4109,15 +4293,16 @@ module Google
|
|
|
4109
4293
|
|
|
4110
4294
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4111
4295
|
|
|
4112
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
4296
|
+
options.apply_defaults timeout: @config.rpcs.list_table_data_profiles.timeout,
|
|
4113
4297
|
metadata: call_metadata,
|
|
4114
|
-
retry_policy: @config.rpcs.
|
|
4298
|
+
retry_policy: @config.rpcs.list_table_data_profiles.retry_policy
|
|
4115
4299
|
|
|
4116
4300
|
options.apply_defaults timeout: @config.timeout,
|
|
4117
4301
|
metadata: @config.metadata,
|
|
4118
4302
|
retry_policy: @config.retry_policy
|
|
4119
4303
|
|
|
4120
|
-
@dlp_service_stub.
|
|
4304
|
+
@dlp_service_stub.list_table_data_profiles request, options do |result, operation|
|
|
4305
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, "table_data_profiles", request, result, options
|
|
4121
4306
|
yield result, operation if block_given?
|
|
4122
4307
|
return result
|
|
4123
4308
|
end
|
|
@@ -4126,38 +4311,578 @@ module Google
|
|
|
4126
4311
|
end
|
|
4127
4312
|
|
|
4128
4313
|
##
|
|
4129
|
-
#
|
|
4314
|
+
# Lists data profiles for an organization.
|
|
4130
4315
|
#
|
|
4131
|
-
#
|
|
4132
|
-
#
|
|
4133
|
-
#
|
|
4134
|
-
# applied individually to specific RPCs. See
|
|
4135
|
-
# {::Google::Cloud::Dlp::V2::DlpService::Rest::Client::Configuration::Rpcs}
|
|
4136
|
-
# for a list of RPCs that can be configured independently.
|
|
4316
|
+
# @overload list_column_data_profiles(request, options = nil)
|
|
4317
|
+
# Pass arguments to `list_column_data_profiles` via a request object, either of type
|
|
4318
|
+
# {::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest} or an equivalent Hash.
|
|
4137
4319
|
#
|
|
4138
|
-
#
|
|
4139
|
-
#
|
|
4320
|
+
# @param request [::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest, ::Hash]
|
|
4321
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4322
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4323
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4324
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4140
4325
|
#
|
|
4141
|
-
# @
|
|
4326
|
+
# @overload list_column_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
|
4327
|
+
# Pass arguments to `list_column_data_profiles` via keyword arguments. Note that at
|
|
4328
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4329
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4142
4330
|
#
|
|
4143
|
-
#
|
|
4144
|
-
#
|
|
4145
|
-
#
|
|
4146
|
-
#
|
|
4147
|
-
#
|
|
4148
|
-
#
|
|
4149
|
-
#
|
|
4331
|
+
# @param parent [::String]
|
|
4332
|
+
# Required. Resource name of the organization or project, for
|
|
4333
|
+
# example `organizations/433245324/locations/europe` or
|
|
4334
|
+
# `projects/project-id/locations/asia`.
|
|
4335
|
+
# @param page_token [::String]
|
|
4336
|
+
# Page token to continue retrieval.
|
|
4337
|
+
# @param page_size [::Integer]
|
|
4338
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
|
4339
|
+
# returns a page of max size 100.
|
|
4340
|
+
# @param order_by [::String]
|
|
4341
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
4342
|
+
# postfix. This list is case insensitive. The default sorting order is
|
|
4343
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
|
4344
|
+
# field at a time is allowed.
|
|
4150
4345
|
#
|
|
4151
|
-
#
|
|
4152
|
-
#
|
|
4153
|
-
#
|
|
4154
|
-
#
|
|
4346
|
+
# Examples:
|
|
4347
|
+
# * `project_id asc`
|
|
4348
|
+
# * `table_id`
|
|
4349
|
+
# * `sensitivity_level desc`
|
|
4350
|
+
#
|
|
4351
|
+
# Supported fields are:
|
|
4352
|
+
#
|
|
4353
|
+
# - `project_id`: The Google Cloud project ID.
|
|
4354
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
|
4355
|
+
# - `table_id`: The ID of a BigQuery table.
|
|
4356
|
+
# - `sensitivity_level`: How sensitive the data in a column is, at most.
|
|
4357
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
|
4358
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
|
4359
|
+
# seconds.
|
|
4360
|
+
# @param filter [::String]
|
|
4361
|
+
# Allows filtering.
|
|
4362
|
+
#
|
|
4363
|
+
# Supported syntax:
|
|
4364
|
+
#
|
|
4365
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
4366
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
4367
|
+
# sequence of restrictions implicitly uses `AND`.
|
|
4368
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
|
4369
|
+
# * Supported fields/values:
|
|
4370
|
+
# - `table_data_profile_name` - The name of the related table data
|
|
4371
|
+
# profile.
|
|
4372
|
+
# - `project_id` - The Google Cloud project ID. (REQUIRED)
|
|
4373
|
+
# - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
|
|
4374
|
+
# - `table_id` - The BigQuery table ID. (REQUIRED)
|
|
4375
|
+
# - `field_id` - The ID of the BigQuery field.
|
|
4376
|
+
# - `info_type` - The infotype detected in the resource.
|
|
4377
|
+
# - `sensitivity_level` - HIGH|MEDIUM|LOW
|
|
4378
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
|
4379
|
+
# - `status_code` - an RPC status code as defined in
|
|
4380
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
4381
|
+
# * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
|
4382
|
+
# filters also support `!=`.
|
|
4383
|
+
#
|
|
4384
|
+
# Examples:
|
|
4385
|
+
#
|
|
4386
|
+
# * project_id = 12345 AND status_code = 1
|
|
4387
|
+
# * project_id = 12345 AND sensitivity_level = HIGH
|
|
4388
|
+
# * project_id = 12345 AND info_type = STREET_ADDRESS
|
|
4389
|
+
#
|
|
4390
|
+
# The length of this field should be no more than 500 characters.
|
|
4391
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4392
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
|
4393
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4394
|
+
#
|
|
4395
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
|
4396
|
+
#
|
|
4397
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4398
|
+
#
|
|
4399
|
+
# @example Basic example
|
|
4400
|
+
# require "google/cloud/dlp/v2"
|
|
4401
|
+
#
|
|
4402
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4403
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4404
|
+
#
|
|
4405
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4406
|
+
# request = Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest.new
|
|
4407
|
+
#
|
|
4408
|
+
# # Call the list_column_data_profiles method.
|
|
4409
|
+
# result = client.list_column_data_profiles request
|
|
4410
|
+
#
|
|
4411
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4412
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4413
|
+
# result.each do |item|
|
|
4414
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::ColumnDataProfile.
|
|
4415
|
+
# p item
|
|
4155
4416
|
# end
|
|
4156
4417
|
#
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4418
|
+
def list_column_data_profiles request, options = nil
|
|
4419
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4420
|
+
|
|
4421
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest
|
|
4422
|
+
|
|
4423
|
+
# Converts hash and nil to an options object
|
|
4424
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4425
|
+
|
|
4426
|
+
# Customize the options with defaults
|
|
4427
|
+
call_metadata = @config.rpcs.list_column_data_profiles.metadata.to_h
|
|
4428
|
+
|
|
4429
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
4430
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4431
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4432
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
|
4433
|
+
transports_version_send: [:rest]
|
|
4434
|
+
|
|
4435
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4436
|
+
|
|
4437
|
+
options.apply_defaults timeout: @config.rpcs.list_column_data_profiles.timeout,
|
|
4438
|
+
metadata: call_metadata,
|
|
4439
|
+
retry_policy: @config.rpcs.list_column_data_profiles.retry_policy
|
|
4440
|
+
|
|
4441
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4442
|
+
metadata: @config.metadata,
|
|
4443
|
+
retry_policy: @config.retry_policy
|
|
4444
|
+
|
|
4445
|
+
@dlp_service_stub.list_column_data_profiles request, options do |result, operation|
|
|
4446
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, "column_data_profiles", request, result, options
|
|
4447
|
+
yield result, operation if block_given?
|
|
4448
|
+
return result
|
|
4449
|
+
end
|
|
4450
|
+
rescue ::Gapic::Rest::Error => e
|
|
4451
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4452
|
+
end
|
|
4453
|
+
|
|
4454
|
+
##
|
|
4455
|
+
# Gets a project data profile.
|
|
4456
|
+
#
|
|
4457
|
+
# @overload get_project_data_profile(request, options = nil)
|
|
4458
|
+
# Pass arguments to `get_project_data_profile` via a request object, either of type
|
|
4459
|
+
# {::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest} or an equivalent Hash.
|
|
4460
|
+
#
|
|
4461
|
+
# @param request [::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest, ::Hash]
|
|
4462
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4463
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4464
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4465
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4466
|
+
#
|
|
4467
|
+
# @overload get_project_data_profile(name: nil)
|
|
4468
|
+
# Pass arguments to `get_project_data_profile` via keyword arguments. Note that at
|
|
4469
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4470
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4471
|
+
#
|
|
4472
|
+
# @param name [::String]
|
|
4473
|
+
# Required. Resource name, for example
|
|
4474
|
+
# `organizations/12345/locations/us/projectDataProfiles/53234423`.
|
|
4475
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4476
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
|
4477
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4478
|
+
#
|
|
4479
|
+
# @return [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
|
4480
|
+
#
|
|
4481
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4482
|
+
#
|
|
4483
|
+
# @example Basic example
|
|
4484
|
+
# require "google/cloud/dlp/v2"
|
|
4485
|
+
#
|
|
4486
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4487
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4488
|
+
#
|
|
4489
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4490
|
+
# request = Google::Cloud::Dlp::V2::GetProjectDataProfileRequest.new
|
|
4491
|
+
#
|
|
4492
|
+
# # Call the get_project_data_profile method.
|
|
4493
|
+
# result = client.get_project_data_profile request
|
|
4494
|
+
#
|
|
4495
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::ProjectDataProfile.
|
|
4496
|
+
# p result
|
|
4497
|
+
#
|
|
4498
|
+
def get_project_data_profile request, options = nil
|
|
4499
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4500
|
+
|
|
4501
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest
|
|
4502
|
+
|
|
4503
|
+
# Converts hash and nil to an options object
|
|
4504
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4505
|
+
|
|
4506
|
+
# Customize the options with defaults
|
|
4507
|
+
call_metadata = @config.rpcs.get_project_data_profile.metadata.to_h
|
|
4508
|
+
|
|
4509
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
4510
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4511
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4512
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
|
4513
|
+
transports_version_send: [:rest]
|
|
4514
|
+
|
|
4515
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4516
|
+
|
|
4517
|
+
options.apply_defaults timeout: @config.rpcs.get_project_data_profile.timeout,
|
|
4518
|
+
metadata: call_metadata,
|
|
4519
|
+
retry_policy: @config.rpcs.get_project_data_profile.retry_policy
|
|
4520
|
+
|
|
4521
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4522
|
+
metadata: @config.metadata,
|
|
4523
|
+
retry_policy: @config.retry_policy
|
|
4524
|
+
|
|
4525
|
+
@dlp_service_stub.get_project_data_profile request, options do |result, operation|
|
|
4526
|
+
yield result, operation if block_given?
|
|
4527
|
+
return result
|
|
4528
|
+
end
|
|
4529
|
+
rescue ::Gapic::Rest::Error => e
|
|
4530
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4531
|
+
end
|
|
4532
|
+
|
|
4533
|
+
##
|
|
4534
|
+
# Gets a table data profile.
|
|
4535
|
+
#
|
|
4536
|
+
# @overload get_table_data_profile(request, options = nil)
|
|
4537
|
+
# Pass arguments to `get_table_data_profile` via a request object, either of type
|
|
4538
|
+
# {::Google::Cloud::Dlp::V2::GetTableDataProfileRequest} or an equivalent Hash.
|
|
4539
|
+
#
|
|
4540
|
+
# @param request [::Google::Cloud::Dlp::V2::GetTableDataProfileRequest, ::Hash]
|
|
4541
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4542
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4543
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4544
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4545
|
+
#
|
|
4546
|
+
# @overload get_table_data_profile(name: nil)
|
|
4547
|
+
# Pass arguments to `get_table_data_profile` via keyword arguments. Note that at
|
|
4548
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4549
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4550
|
+
#
|
|
4551
|
+
# @param name [::String]
|
|
4552
|
+
# Required. Resource name, for example
|
|
4553
|
+
# `organizations/12345/locations/us/tableDataProfiles/53234423`.
|
|
4554
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4555
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::TableDataProfile]
|
|
4556
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4557
|
+
#
|
|
4558
|
+
# @return [::Google::Cloud::Dlp::V2::TableDataProfile]
|
|
4559
|
+
#
|
|
4560
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4561
|
+
#
|
|
4562
|
+
# @example Basic example
|
|
4563
|
+
# require "google/cloud/dlp/v2"
|
|
4564
|
+
#
|
|
4565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4566
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4567
|
+
#
|
|
4568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4569
|
+
# request = Google::Cloud::Dlp::V2::GetTableDataProfileRequest.new
|
|
4570
|
+
#
|
|
4571
|
+
# # Call the get_table_data_profile method.
|
|
4572
|
+
# result = client.get_table_data_profile request
|
|
4573
|
+
#
|
|
4574
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::TableDataProfile.
|
|
4575
|
+
# p result
|
|
4576
|
+
#
|
|
4577
|
+
def get_table_data_profile request, options = nil
|
|
4578
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4579
|
+
|
|
4580
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetTableDataProfileRequest
|
|
4581
|
+
|
|
4582
|
+
# Converts hash and nil to an options object
|
|
4583
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4584
|
+
|
|
4585
|
+
# Customize the options with defaults
|
|
4586
|
+
call_metadata = @config.rpcs.get_table_data_profile.metadata.to_h
|
|
4587
|
+
|
|
4588
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
4589
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4590
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4591
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
|
4592
|
+
transports_version_send: [:rest]
|
|
4593
|
+
|
|
4594
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4595
|
+
|
|
4596
|
+
options.apply_defaults timeout: @config.rpcs.get_table_data_profile.timeout,
|
|
4597
|
+
metadata: call_metadata,
|
|
4598
|
+
retry_policy: @config.rpcs.get_table_data_profile.retry_policy
|
|
4599
|
+
|
|
4600
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4601
|
+
metadata: @config.metadata,
|
|
4602
|
+
retry_policy: @config.retry_policy
|
|
4603
|
+
|
|
4604
|
+
@dlp_service_stub.get_table_data_profile request, options do |result, operation|
|
|
4605
|
+
yield result, operation if block_given?
|
|
4606
|
+
return result
|
|
4607
|
+
end
|
|
4608
|
+
rescue ::Gapic::Rest::Error => e
|
|
4609
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4610
|
+
end
|
|
4611
|
+
|
|
4612
|
+
##
|
|
4613
|
+
# Gets a column data profile.
|
|
4614
|
+
#
|
|
4615
|
+
# @overload get_column_data_profile(request, options = nil)
|
|
4616
|
+
# Pass arguments to `get_column_data_profile` via a request object, either of type
|
|
4617
|
+
# {::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest} or an equivalent Hash.
|
|
4618
|
+
#
|
|
4619
|
+
# @param request [::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest, ::Hash]
|
|
4620
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4621
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4622
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4623
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4624
|
+
#
|
|
4625
|
+
# @overload get_column_data_profile(name: nil)
|
|
4626
|
+
# Pass arguments to `get_column_data_profile` via keyword arguments. Note that at
|
|
4627
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4628
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4629
|
+
#
|
|
4630
|
+
# @param name [::String]
|
|
4631
|
+
# Required. Resource name, for example
|
|
4632
|
+
# `organizations/12345/locations/us/columnDataProfiles/53234423`.
|
|
4633
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4634
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
|
4635
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4636
|
+
#
|
|
4637
|
+
# @return [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
|
4638
|
+
#
|
|
4639
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4640
|
+
#
|
|
4641
|
+
# @example Basic example
|
|
4642
|
+
# require "google/cloud/dlp/v2"
|
|
4643
|
+
#
|
|
4644
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4645
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4646
|
+
#
|
|
4647
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4648
|
+
# request = Google::Cloud::Dlp::V2::GetColumnDataProfileRequest.new
|
|
4649
|
+
#
|
|
4650
|
+
# # Call the get_column_data_profile method.
|
|
4651
|
+
# result = client.get_column_data_profile request
|
|
4652
|
+
#
|
|
4653
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::ColumnDataProfile.
|
|
4654
|
+
# p result
|
|
4655
|
+
#
|
|
4656
|
+
def get_column_data_profile request, options = nil
|
|
4657
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4658
|
+
|
|
4659
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest
|
|
4660
|
+
|
|
4661
|
+
# Converts hash and nil to an options object
|
|
4662
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4663
|
+
|
|
4664
|
+
# Customize the options with defaults
|
|
4665
|
+
call_metadata = @config.rpcs.get_column_data_profile.metadata.to_h
|
|
4666
|
+
|
|
4667
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
4668
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4669
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4670
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
|
4671
|
+
transports_version_send: [:rest]
|
|
4672
|
+
|
|
4673
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4674
|
+
|
|
4675
|
+
options.apply_defaults timeout: @config.rpcs.get_column_data_profile.timeout,
|
|
4676
|
+
metadata: call_metadata,
|
|
4677
|
+
retry_policy: @config.rpcs.get_column_data_profile.retry_policy
|
|
4678
|
+
|
|
4679
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4680
|
+
metadata: @config.metadata,
|
|
4681
|
+
retry_policy: @config.retry_policy
|
|
4682
|
+
|
|
4683
|
+
@dlp_service_stub.get_column_data_profile request, options do |result, operation|
|
|
4684
|
+
yield result, operation if block_given?
|
|
4685
|
+
return result
|
|
4686
|
+
end
|
|
4687
|
+
rescue ::Gapic::Rest::Error => e
|
|
4688
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4689
|
+
end
|
|
4690
|
+
|
|
4691
|
+
##
|
|
4692
|
+
# Inspect hybrid content and store findings to a job.
|
|
4693
|
+
# To review the findings, inspect the job. Inspection will occur
|
|
4694
|
+
# asynchronously.
|
|
4695
|
+
#
|
|
4696
|
+
# @overload hybrid_inspect_dlp_job(request, options = nil)
|
|
4697
|
+
# Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
|
|
4698
|
+
# {::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
|
|
4699
|
+
#
|
|
4700
|
+
# @param request [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Hash]
|
|
4701
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4702
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4703
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4704
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4705
|
+
#
|
|
4706
|
+
# @overload hybrid_inspect_dlp_job(name: nil, hybrid_item: nil)
|
|
4707
|
+
# Pass arguments to `hybrid_inspect_dlp_job` via keyword arguments. Note that at
|
|
4708
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4709
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4710
|
+
#
|
|
4711
|
+
# @param name [::String]
|
|
4712
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for
|
|
4713
|
+
# example `projects/dlp-test-project/dlpJob/53234423`.
|
|
4714
|
+
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
|
4715
|
+
# The item to inspect.
|
|
4716
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4717
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::HybridInspectResponse]
|
|
4718
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4719
|
+
#
|
|
4720
|
+
# @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
|
|
4721
|
+
#
|
|
4722
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4723
|
+
#
|
|
4724
|
+
# @example Basic example
|
|
4725
|
+
# require "google/cloud/dlp/v2"
|
|
4726
|
+
#
|
|
4727
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4728
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4729
|
+
#
|
|
4730
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4731
|
+
# request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
|
|
4732
|
+
#
|
|
4733
|
+
# # Call the hybrid_inspect_dlp_job method.
|
|
4734
|
+
# result = client.hybrid_inspect_dlp_job request
|
|
4735
|
+
#
|
|
4736
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
|
|
4737
|
+
# p result
|
|
4738
|
+
#
|
|
4739
|
+
def hybrid_inspect_dlp_job request, options = nil
|
|
4740
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4741
|
+
|
|
4742
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
|
|
4743
|
+
|
|
4744
|
+
# Converts hash and nil to an options object
|
|
4745
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4746
|
+
|
|
4747
|
+
# Customize the options with defaults
|
|
4748
|
+
call_metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
|
|
4749
|
+
|
|
4750
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
4751
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4752
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4753
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
|
4754
|
+
transports_version_send: [:rest]
|
|
4755
|
+
|
|
4756
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4757
|
+
|
|
4758
|
+
options.apply_defaults timeout: @config.rpcs.hybrid_inspect_dlp_job.timeout,
|
|
4759
|
+
metadata: call_metadata,
|
|
4760
|
+
retry_policy: @config.rpcs.hybrid_inspect_dlp_job.retry_policy
|
|
4761
|
+
|
|
4762
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4763
|
+
metadata: @config.metadata,
|
|
4764
|
+
retry_policy: @config.retry_policy
|
|
4765
|
+
|
|
4766
|
+
@dlp_service_stub.hybrid_inspect_dlp_job request, options do |result, operation|
|
|
4767
|
+
yield result, operation if block_given?
|
|
4768
|
+
return result
|
|
4769
|
+
end
|
|
4770
|
+
rescue ::Gapic::Rest::Error => e
|
|
4771
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4772
|
+
end
|
|
4773
|
+
|
|
4774
|
+
##
|
|
4775
|
+
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
|
4776
|
+
# of any enabled actions that have not yet run.
|
|
4777
|
+
#
|
|
4778
|
+
# @overload finish_dlp_job(request, options = nil)
|
|
4779
|
+
# Pass arguments to `finish_dlp_job` via a request object, either of type
|
|
4780
|
+
# {::Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
|
|
4781
|
+
#
|
|
4782
|
+
# @param request [::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Hash]
|
|
4783
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4784
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4785
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4786
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4787
|
+
#
|
|
4788
|
+
# @overload finish_dlp_job(name: nil)
|
|
4789
|
+
# Pass arguments to `finish_dlp_job` via keyword arguments. Note that at
|
|
4790
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4791
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4792
|
+
#
|
|
4793
|
+
# @param name [::String]
|
|
4794
|
+
# Required. The name of the DlpJob resource to be finished.
|
|
4795
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4796
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
4797
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4798
|
+
#
|
|
4799
|
+
# @return [::Google::Protobuf::Empty]
|
|
4800
|
+
#
|
|
4801
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4802
|
+
#
|
|
4803
|
+
# @example Basic example
|
|
4804
|
+
# require "google/cloud/dlp/v2"
|
|
4805
|
+
#
|
|
4806
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4807
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
|
4808
|
+
#
|
|
4809
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4810
|
+
# request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
|
|
4811
|
+
#
|
|
4812
|
+
# # Call the finish_dlp_job method.
|
|
4813
|
+
# result = client.finish_dlp_job request
|
|
4814
|
+
#
|
|
4815
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
4816
|
+
# p result
|
|
4817
|
+
#
|
|
4818
|
+
def finish_dlp_job request, options = nil
|
|
4819
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4820
|
+
|
|
4821
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::FinishDlpJobRequest
|
|
4822
|
+
|
|
4823
|
+
# Converts hash and nil to an options object
|
|
4824
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4825
|
+
|
|
4826
|
+
# Customize the options with defaults
|
|
4827
|
+
call_metadata = @config.rpcs.finish_dlp_job.metadata.to_h
|
|
4828
|
+
|
|
4829
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
4830
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4831
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4832
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
|
4833
|
+
transports_version_send: [:rest]
|
|
4834
|
+
|
|
4835
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4836
|
+
|
|
4837
|
+
options.apply_defaults timeout: @config.rpcs.finish_dlp_job.timeout,
|
|
4838
|
+
metadata: call_metadata,
|
|
4839
|
+
retry_policy: @config.rpcs.finish_dlp_job.retry_policy
|
|
4840
|
+
|
|
4841
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4842
|
+
metadata: @config.metadata,
|
|
4843
|
+
retry_policy: @config.retry_policy
|
|
4844
|
+
|
|
4845
|
+
@dlp_service_stub.finish_dlp_job request, options do |result, operation|
|
|
4846
|
+
yield result, operation if block_given?
|
|
4847
|
+
return result
|
|
4848
|
+
end
|
|
4849
|
+
rescue ::Gapic::Rest::Error => e
|
|
4850
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4851
|
+
end
|
|
4852
|
+
|
|
4853
|
+
##
|
|
4854
|
+
# Configuration class for the DlpService REST API.
|
|
4855
|
+
#
|
|
4856
|
+
# This class represents the configuration for DlpService REST,
|
|
4857
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
4858
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
4859
|
+
# applied individually to specific RPCs. See
|
|
4860
|
+
# {::Google::Cloud::Dlp::V2::DlpService::Rest::Client::Configuration::Rpcs}
|
|
4861
|
+
# for a list of RPCs that can be configured independently.
|
|
4862
|
+
#
|
|
4863
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
4864
|
+
# on construction.
|
|
4865
|
+
#
|
|
4866
|
+
# @example
|
|
4867
|
+
#
|
|
4868
|
+
# # Modify the global config, setting the timeout for
|
|
4869
|
+
# # inspect_content to 20 seconds,
|
|
4870
|
+
# # and all remaining timeouts to 10 seconds.
|
|
4871
|
+
# ::Google::Cloud::Dlp::V2::DlpService::Rest::Client.configure do |config|
|
|
4872
|
+
# config.timeout = 10.0
|
|
4873
|
+
# config.rpcs.inspect_content.timeout = 20.0
|
|
4874
|
+
# end
|
|
4875
|
+
#
|
|
4876
|
+
# # Apply the above configuration only to a new client.
|
|
4877
|
+
# client = ::Google::Cloud::Dlp::V2::DlpService::Rest::Client.new do |config|
|
|
4878
|
+
# config.timeout = 10.0
|
|
4879
|
+
# config.rpcs.inspect_content.timeout = 20.0
|
|
4880
|
+
# end
|
|
4881
|
+
#
|
|
4882
|
+
# @!attribute [rw] endpoint
|
|
4883
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
4884
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
4885
|
+
# @return [::String,nil]
|
|
4161
4886
|
# @!attribute [rw] credentials
|
|
4162
4887
|
# Credentials to send with calls. You may provide any of the following types:
|
|
4163
4888
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -4444,6 +5169,36 @@ module Google
|
|
|
4444
5169
|
#
|
|
4445
5170
|
attr_reader :delete_stored_info_type
|
|
4446
5171
|
##
|
|
5172
|
+
# RPC-specific configuration for `list_project_data_profiles`
|
|
5173
|
+
# @return [::Gapic::Config::Method]
|
|
5174
|
+
#
|
|
5175
|
+
attr_reader :list_project_data_profiles
|
|
5176
|
+
##
|
|
5177
|
+
# RPC-specific configuration for `list_table_data_profiles`
|
|
5178
|
+
# @return [::Gapic::Config::Method]
|
|
5179
|
+
#
|
|
5180
|
+
attr_reader :list_table_data_profiles
|
|
5181
|
+
##
|
|
5182
|
+
# RPC-specific configuration for `list_column_data_profiles`
|
|
5183
|
+
# @return [::Gapic::Config::Method]
|
|
5184
|
+
#
|
|
5185
|
+
attr_reader :list_column_data_profiles
|
|
5186
|
+
##
|
|
5187
|
+
# RPC-specific configuration for `get_project_data_profile`
|
|
5188
|
+
# @return [::Gapic::Config::Method]
|
|
5189
|
+
#
|
|
5190
|
+
attr_reader :get_project_data_profile
|
|
5191
|
+
##
|
|
5192
|
+
# RPC-specific configuration for `get_table_data_profile`
|
|
5193
|
+
# @return [::Gapic::Config::Method]
|
|
5194
|
+
#
|
|
5195
|
+
attr_reader :get_table_data_profile
|
|
5196
|
+
##
|
|
5197
|
+
# RPC-specific configuration for `get_column_data_profile`
|
|
5198
|
+
# @return [::Gapic::Config::Method]
|
|
5199
|
+
#
|
|
5200
|
+
attr_reader :get_column_data_profile
|
|
5201
|
+
##
|
|
4447
5202
|
# RPC-specific configuration for `hybrid_inspect_dlp_job`
|
|
4448
5203
|
# @return [::Gapic::Config::Method]
|
|
4449
5204
|
#
|
|
@@ -4530,6 +5285,18 @@ module Google
|
|
|
4530
5285
|
@list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
|
|
4531
5286
|
delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type
|
|
4532
5287
|
@delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
|
|
5288
|
+
list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles
|
|
5289
|
+
@list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config
|
|
5290
|
+
list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles
|
|
5291
|
+
@list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config
|
|
5292
|
+
list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles
|
|
5293
|
+
@list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config
|
|
5294
|
+
get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile
|
|
5295
|
+
@get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config
|
|
5296
|
+
get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile
|
|
5297
|
+
@get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
|
|
5298
|
+
get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile
|
|
5299
|
+
@get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config
|
|
4533
5300
|
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
|
4534
5301
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
|
4535
5302
|
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|