google-cloud-dlp-v2 0.21.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/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +1755 -208
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +148 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +1632 -176
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +1368 -543
- 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 +40 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +127 -50
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +891 -65
- data/proto_docs/google/privacy/dlp/v2/storage.rb +46 -18
- metadata +4 -4
@@ -36,9 +36,12 @@ module Google
|
|
36
36
|
# scheduling of data scans on Google Cloud Platform based data sets.
|
37
37
|
#
|
38
38
|
# To learn more about concepts and find how-to guides see
|
39
|
-
# https://cloud.google.com/
|
39
|
+
# https://cloud.google.com/sensitive-data-protection/docs/.
|
40
40
|
#
|
41
41
|
class Client
|
42
|
+
# @private
|
43
|
+
API_VERSION = ""
|
44
|
+
|
42
45
|
# @private
|
43
46
|
DEFAULT_ENDPOINT_TEMPLATE = "dlp.$UNIVERSE_DOMAIN$"
|
44
47
|
|
@@ -219,6 +222,36 @@ module Google
|
|
219
222
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
220
223
|
}
|
221
224
|
|
225
|
+
default_config.rpcs.list_project_data_profiles.timeout = 300.0
|
226
|
+
default_config.rpcs.list_project_data_profiles.retry_policy = {
|
227
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
228
|
+
}
|
229
|
+
|
230
|
+
default_config.rpcs.list_table_data_profiles.timeout = 300.0
|
231
|
+
default_config.rpcs.list_table_data_profiles.retry_policy = {
|
232
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
233
|
+
}
|
234
|
+
|
235
|
+
default_config.rpcs.list_column_data_profiles.timeout = 300.0
|
236
|
+
default_config.rpcs.list_column_data_profiles.retry_policy = {
|
237
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
238
|
+
}
|
239
|
+
|
240
|
+
default_config.rpcs.get_project_data_profile.timeout = 300.0
|
241
|
+
default_config.rpcs.get_project_data_profile.retry_policy = {
|
242
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
243
|
+
}
|
244
|
+
|
245
|
+
default_config.rpcs.get_table_data_profile.timeout = 300.0
|
246
|
+
default_config.rpcs.get_table_data_profile.retry_policy = {
|
247
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
248
|
+
}
|
249
|
+
|
250
|
+
default_config.rpcs.get_column_data_profile.timeout = 300.0
|
251
|
+
default_config.rpcs.get_column_data_profile.retry_policy = {
|
252
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
253
|
+
}
|
254
|
+
|
222
255
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
223
256
|
|
224
257
|
default_config.rpcs.finish_dlp_job.timeout = 300.0
|
@@ -338,8 +371,10 @@ module Google
|
|
338
371
|
# system will automatically choose what detectors to run. By default this may
|
339
372
|
# be all types, but may change over time as detectors are updated.
|
340
373
|
#
|
341
|
-
# For how to guides, see
|
342
|
-
#
|
374
|
+
# For how to guides, see
|
375
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
|
376
|
+
# and
|
377
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
|
343
378
|
#
|
344
379
|
# @overload inspect_content(request, options = nil)
|
345
380
|
# Pass arguments to `inspect_content` via a request object, either of type
|
@@ -361,7 +396,7 @@ module Google
|
|
361
396
|
#
|
362
397
|
# The format of this value varies depending on whether you have [specified a
|
363
398
|
# processing
|
364
|
-
# location](https://cloud.google.com/
|
399
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
365
400
|
#
|
366
401
|
# + Projects scope, location specified:<br/>
|
367
402
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -421,10 +456,11 @@ module Google
|
|
421
456
|
# Customize the options with defaults
|
422
457
|
metadata = @config.rpcs.inspect_content.metadata.to_h
|
423
458
|
|
424
|
-
# Set x-goog-api-client
|
459
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
425
460
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
426
461
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
427
462
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
463
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
428
464
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
429
465
|
|
430
466
|
header_params = {}
|
@@ -454,8 +490,9 @@ module Google
|
|
454
490
|
##
|
455
491
|
# Redacts potentially sensitive info from an image.
|
456
492
|
# This method has limits on input size, processing time, and output size.
|
457
|
-
# See
|
458
|
-
#
|
493
|
+
# See
|
494
|
+
# https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
|
495
|
+
# to learn more.
|
459
496
|
#
|
460
497
|
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
461
498
|
# system will automatically choose what detectors to run. By default this may
|
@@ -481,7 +518,7 @@ module Google
|
|
481
518
|
#
|
482
519
|
# The format of this value varies depending on whether you have [specified a
|
483
520
|
# processing
|
484
|
-
# location](https://cloud.google.com/
|
521
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
485
522
|
#
|
486
523
|
# + Projects scope, location specified:<br/>
|
487
524
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -539,10 +576,11 @@ module Google
|
|
539
576
|
# Customize the options with defaults
|
540
577
|
metadata = @config.rpcs.redact_image.metadata.to_h
|
541
578
|
|
542
|
-
# Set x-goog-api-client
|
579
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
543
580
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
544
581
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
545
582
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
583
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
546
584
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
547
585
|
|
548
586
|
header_params = {}
|
@@ -572,8 +610,9 @@ module Google
|
|
572
610
|
##
|
573
611
|
# De-identifies potentially sensitive info from a ContentItem.
|
574
612
|
# This method has limits on input size and output size.
|
575
|
-
# See
|
576
|
-
#
|
613
|
+
# See
|
614
|
+
# https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
|
615
|
+
# to learn more.
|
577
616
|
#
|
578
617
|
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
579
618
|
# system will automatically choose what detectors to run. By default this may
|
@@ -599,7 +638,7 @@ module Google
|
|
599
638
|
#
|
600
639
|
# The format of this value varies depending on whether you have [specified a
|
601
640
|
# processing
|
602
|
-
# location](https://cloud.google.com/
|
641
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
603
642
|
#
|
604
643
|
# + Projects scope, location specified:<br/>
|
605
644
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -677,10 +716,11 @@ module Google
|
|
677
716
|
# Customize the options with defaults
|
678
717
|
metadata = @config.rpcs.deidentify_content.metadata.to_h
|
679
718
|
|
680
|
-
# Set x-goog-api-client
|
719
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
681
720
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
682
721
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
683
722
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
723
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
684
724
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
685
725
|
|
686
726
|
header_params = {}
|
@@ -710,7 +750,7 @@ module Google
|
|
710
750
|
##
|
711
751
|
# Re-identifies content that has been de-identified.
|
712
752
|
# See
|
713
|
-
# https://cloud.google.com/
|
753
|
+
# https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
|
714
754
|
# to learn more.
|
715
755
|
#
|
716
756
|
# @overload reidentify_content(request, options = nil)
|
@@ -733,7 +773,7 @@ module Google
|
|
733
773
|
#
|
734
774
|
# The format of this value varies depending on whether you have [specified a
|
735
775
|
# processing
|
736
|
-
# location](https://cloud.google.com/
|
776
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
737
777
|
#
|
738
778
|
# + Projects scope, location specified:<br/>
|
739
779
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -811,10 +851,11 @@ module Google
|
|
811
851
|
# Customize the options with defaults
|
812
852
|
metadata = @config.rpcs.reidentify_content.metadata.to_h
|
813
853
|
|
814
|
-
# Set x-goog-api-client
|
854
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
815
855
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
816
856
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
817
857
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
858
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
818
859
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
819
860
|
|
820
861
|
header_params = {}
|
@@ -843,8 +884,9 @@ module Google
|
|
843
884
|
|
844
885
|
##
|
845
886
|
# Returns a list of the sensitive information types that DLP API
|
846
|
-
# supports. See
|
847
|
-
#
|
887
|
+
# supports. See
|
888
|
+
# https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
|
889
|
+
# to learn more.
|
848
890
|
#
|
849
891
|
# @overload list_info_types(request, options = nil)
|
850
892
|
# Pass arguments to `list_info_types` via a request object, either of type
|
@@ -911,10 +953,11 @@ module Google
|
|
911
953
|
# Customize the options with defaults
|
912
954
|
metadata = @config.rpcs.list_info_types.metadata.to_h
|
913
955
|
|
914
|
-
# Set x-goog-api-client
|
956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
915
957
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
916
958
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
917
959
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
960
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
918
961
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
919
962
|
|
920
963
|
options.apply_defaults timeout: @config.rpcs.list_info_types.timeout,
|
@@ -936,7 +979,9 @@ module Google
|
|
936
979
|
##
|
937
980
|
# Creates an InspectTemplate for reusing frequently used configuration
|
938
981
|
# for inspecting content, images, and storage.
|
939
|
-
# See
|
982
|
+
# See
|
983
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
984
|
+
# to learn more.
|
940
985
|
#
|
941
986
|
# @overload create_inspect_template(request, options = nil)
|
942
987
|
# Pass arguments to `create_inspect_template` via a request object, either of type
|
@@ -958,7 +1003,7 @@ module Google
|
|
958
1003
|
#
|
959
1004
|
# The format of this value varies depending on the scope of the request
|
960
1005
|
# (project or organization) and whether you have [specified a processing
|
961
|
-
# location](https://cloud.google.com/
|
1006
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
962
1007
|
#
|
963
1008
|
# + Projects scope, location specified:<br/>
|
964
1009
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1018,10 +1063,11 @@ module Google
|
|
1018
1063
|
# Customize the options with defaults
|
1019
1064
|
metadata = @config.rpcs.create_inspect_template.metadata.to_h
|
1020
1065
|
|
1021
|
-
# Set x-goog-api-client
|
1066
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1022
1067
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1023
1068
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1024
1069
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1070
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1025
1071
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1026
1072
|
|
1027
1073
|
header_params = {}
|
@@ -1050,7 +1096,9 @@ module Google
|
|
1050
1096
|
|
1051
1097
|
##
|
1052
1098
|
# Updates the InspectTemplate.
|
1053
|
-
# See
|
1099
|
+
# See
|
1100
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1101
|
+
# to learn more.
|
1054
1102
|
#
|
1055
1103
|
# @overload update_inspect_template(request, options = nil)
|
1056
1104
|
# Pass arguments to `update_inspect_template` via a request object, either of type
|
@@ -1110,10 +1158,11 @@ module Google
|
|
1110
1158
|
# Customize the options with defaults
|
1111
1159
|
metadata = @config.rpcs.update_inspect_template.metadata.to_h
|
1112
1160
|
|
1113
|
-
# Set x-goog-api-client
|
1161
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1114
1162
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1115
1163
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1116
1164
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1165
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1117
1166
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1118
1167
|
|
1119
1168
|
header_params = {}
|
@@ -1142,7 +1191,9 @@ module Google
|
|
1142
1191
|
|
1143
1192
|
##
|
1144
1193
|
# Gets an InspectTemplate.
|
1145
|
-
# See
|
1194
|
+
# See
|
1195
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1196
|
+
# to learn more.
|
1146
1197
|
#
|
1147
1198
|
# @overload get_inspect_template(request, options = nil)
|
1148
1199
|
# Pass arguments to `get_inspect_template` via a request object, either of type
|
@@ -1198,10 +1249,11 @@ module Google
|
|
1198
1249
|
# Customize the options with defaults
|
1199
1250
|
metadata = @config.rpcs.get_inspect_template.metadata.to_h
|
1200
1251
|
|
1201
|
-
# Set x-goog-api-client
|
1252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1202
1253
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1203
1254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1204
1255
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1256
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1205
1257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1206
1258
|
|
1207
1259
|
header_params = {}
|
@@ -1230,7 +1282,9 @@ module Google
|
|
1230
1282
|
|
1231
1283
|
##
|
1232
1284
|
# Lists InspectTemplates.
|
1233
|
-
# See
|
1285
|
+
# See
|
1286
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1287
|
+
# to learn more.
|
1234
1288
|
#
|
1235
1289
|
# @overload list_inspect_templates(request, options = nil)
|
1236
1290
|
# Pass arguments to `list_inspect_templates` via a request object, either of type
|
@@ -1252,7 +1306,7 @@ module Google
|
|
1252
1306
|
#
|
1253
1307
|
# The format of this value varies depending on the scope of the request
|
1254
1308
|
# (project or organization) and whether you have [specified a processing
|
1255
|
-
# location](https://cloud.google.com/
|
1309
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1256
1310
|
#
|
1257
1311
|
# + Projects scope, location specified:<br/>
|
1258
1312
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1329,10 +1383,11 @@ module Google
|
|
1329
1383
|
# Customize the options with defaults
|
1330
1384
|
metadata = @config.rpcs.list_inspect_templates.metadata.to_h
|
1331
1385
|
|
1332
|
-
# Set x-goog-api-client
|
1386
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1333
1387
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1334
1388
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1335
1389
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1390
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1336
1391
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1337
1392
|
|
1338
1393
|
header_params = {}
|
@@ -1362,7 +1417,9 @@ module Google
|
|
1362
1417
|
|
1363
1418
|
##
|
1364
1419
|
# Deletes an InspectTemplate.
|
1365
|
-
# See
|
1420
|
+
# See
|
1421
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1422
|
+
# to learn more.
|
1366
1423
|
#
|
1367
1424
|
# @overload delete_inspect_template(request, options = nil)
|
1368
1425
|
# Pass arguments to `delete_inspect_template` via a request object, either of type
|
@@ -1418,10 +1475,11 @@ module Google
|
|
1418
1475
|
# Customize the options with defaults
|
1419
1476
|
metadata = @config.rpcs.delete_inspect_template.metadata.to_h
|
1420
1477
|
|
1421
|
-
# Set x-goog-api-client
|
1478
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1422
1479
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1423
1480
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1424
1481
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1482
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1425
1483
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1426
1484
|
|
1427
1485
|
header_params = {}
|
@@ -1451,8 +1509,9 @@ module Google
|
|
1451
1509
|
##
|
1452
1510
|
# Creates a DeidentifyTemplate for reusing frequently used configuration
|
1453
1511
|
# for de-identifying content, images, and storage.
|
1454
|
-
# See
|
1455
|
-
#
|
1512
|
+
# See
|
1513
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1514
|
+
# to learn more.
|
1456
1515
|
#
|
1457
1516
|
# @overload create_deidentify_template(request, options = nil)
|
1458
1517
|
# Pass arguments to `create_deidentify_template` via a request object, either of type
|
@@ -1474,7 +1533,7 @@ module Google
|
|
1474
1533
|
#
|
1475
1534
|
# The format of this value varies depending on the scope of the request
|
1476
1535
|
# (project or organization) and whether you have [specified a processing
|
1477
|
-
# location](https://cloud.google.com/
|
1536
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1478
1537
|
#
|
1479
1538
|
# + Projects scope, location specified:<br/>
|
1480
1539
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1534,10 +1593,11 @@ module Google
|
|
1534
1593
|
# Customize the options with defaults
|
1535
1594
|
metadata = @config.rpcs.create_deidentify_template.metadata.to_h
|
1536
1595
|
|
1537
|
-
# Set x-goog-api-client
|
1596
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1538
1597
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1539
1598
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1540
1599
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1600
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1541
1601
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1542
1602
|
|
1543
1603
|
header_params = {}
|
@@ -1566,8 +1626,9 @@ module Google
|
|
1566
1626
|
|
1567
1627
|
##
|
1568
1628
|
# Updates the DeidentifyTemplate.
|
1569
|
-
# See
|
1570
|
-
#
|
1629
|
+
# See
|
1630
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1631
|
+
# to learn more.
|
1571
1632
|
#
|
1572
1633
|
# @overload update_deidentify_template(request, options = nil)
|
1573
1634
|
# Pass arguments to `update_deidentify_template` via a request object, either of type
|
@@ -1628,10 +1689,11 @@ module Google
|
|
1628
1689
|
# Customize the options with defaults
|
1629
1690
|
metadata = @config.rpcs.update_deidentify_template.metadata.to_h
|
1630
1691
|
|
1631
|
-
# Set x-goog-api-client
|
1692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1632
1693
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1633
1694
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1634
1695
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1696
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1635
1697
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1636
1698
|
|
1637
1699
|
header_params = {}
|
@@ -1660,8 +1722,9 @@ module Google
|
|
1660
1722
|
|
1661
1723
|
##
|
1662
1724
|
# Gets a DeidentifyTemplate.
|
1663
|
-
# See
|
1664
|
-
#
|
1725
|
+
# See
|
1726
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1727
|
+
# to learn more.
|
1665
1728
|
#
|
1666
1729
|
# @overload get_deidentify_template(request, options = nil)
|
1667
1730
|
# Pass arguments to `get_deidentify_template` via a request object, either of type
|
@@ -1717,10 +1780,11 @@ module Google
|
|
1717
1780
|
# Customize the options with defaults
|
1718
1781
|
metadata = @config.rpcs.get_deidentify_template.metadata.to_h
|
1719
1782
|
|
1720
|
-
# Set x-goog-api-client
|
1783
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1721
1784
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1722
1785
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1723
1786
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1787
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1724
1788
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1725
1789
|
|
1726
1790
|
header_params = {}
|
@@ -1749,8 +1813,9 @@ module Google
|
|
1749
1813
|
|
1750
1814
|
##
|
1751
1815
|
# Lists DeidentifyTemplates.
|
1752
|
-
# See
|
1753
|
-
#
|
1816
|
+
# See
|
1817
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1818
|
+
# to learn more.
|
1754
1819
|
#
|
1755
1820
|
# @overload list_deidentify_templates(request, options = nil)
|
1756
1821
|
# Pass arguments to `list_deidentify_templates` via a request object, either of type
|
@@ -1772,7 +1837,7 @@ module Google
|
|
1772
1837
|
#
|
1773
1838
|
# The format of this value varies depending on the scope of the request
|
1774
1839
|
# (project or organization) and whether you have [specified a processing
|
1775
|
-
# location](https://cloud.google.com/
|
1840
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1776
1841
|
#
|
1777
1842
|
# + Projects scope, location specified:<br/>
|
1778
1843
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1849,10 +1914,11 @@ module Google
|
|
1849
1914
|
# Customize the options with defaults
|
1850
1915
|
metadata = @config.rpcs.list_deidentify_templates.metadata.to_h
|
1851
1916
|
|
1852
|
-
# Set x-goog-api-client
|
1917
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1853
1918
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1854
1919
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1855
1920
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
1921
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1856
1922
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1857
1923
|
|
1858
1924
|
header_params = {}
|
@@ -1882,8 +1948,9 @@ module Google
|
|
1882
1948
|
|
1883
1949
|
##
|
1884
1950
|
# Deletes a DeidentifyTemplate.
|
1885
|
-
# See
|
1886
|
-
#
|
1951
|
+
# See
|
1952
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1953
|
+
# to learn more.
|
1887
1954
|
#
|
1888
1955
|
# @overload delete_deidentify_template(request, options = nil)
|
1889
1956
|
# Pass arguments to `delete_deidentify_template` via a request object, either of type
|
@@ -1940,10 +2007,11 @@ module Google
|
|
1940
2007
|
# Customize the options with defaults
|
1941
2008
|
metadata = @config.rpcs.delete_deidentify_template.metadata.to_h
|
1942
2009
|
|
1943
|
-
# Set x-goog-api-client
|
2010
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1944
2011
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1945
2012
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1946
2013
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2014
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1947
2015
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1948
2016
|
|
1949
2017
|
header_params = {}
|
@@ -1973,7 +2041,9 @@ module Google
|
|
1973
2041
|
##
|
1974
2042
|
# Creates a job trigger to run DLP actions such as scanning storage for
|
1975
2043
|
# sensitive information on a set schedule.
|
1976
|
-
# See
|
2044
|
+
# See
|
2045
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2046
|
+
# to learn more.
|
1977
2047
|
#
|
1978
2048
|
# @overload create_job_trigger(request, options = nil)
|
1979
2049
|
# Pass arguments to `create_job_trigger` via a request object, either of type
|
@@ -1995,7 +2065,7 @@ module Google
|
|
1995
2065
|
#
|
1996
2066
|
# The format of this value varies depending on whether you have [specified a
|
1997
2067
|
# processing
|
1998
|
-
# location](https://cloud.google.com/
|
2068
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1999
2069
|
#
|
2000
2070
|
# + Projects scope, location specified:<br/>
|
2001
2071
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2051,10 +2121,11 @@ module Google
|
|
2051
2121
|
# Customize the options with defaults
|
2052
2122
|
metadata = @config.rpcs.create_job_trigger.metadata.to_h
|
2053
2123
|
|
2054
|
-
# Set x-goog-api-client
|
2124
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2055
2125
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2056
2126
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2057
2127
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2128
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2058
2129
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2059
2130
|
|
2060
2131
|
header_params = {}
|
@@ -2083,7 +2154,9 @@ module Google
|
|
2083
2154
|
|
2084
2155
|
##
|
2085
2156
|
# Updates a job trigger.
|
2086
|
-
# See
|
2157
|
+
# See
|
2158
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2159
|
+
# to learn more.
|
2087
2160
|
#
|
2088
2161
|
# @overload update_job_trigger(request, options = nil)
|
2089
2162
|
# Pass arguments to `update_job_trigger` via a request object, either of type
|
@@ -2142,10 +2215,11 @@ module Google
|
|
2142
2215
|
# Customize the options with defaults
|
2143
2216
|
metadata = @config.rpcs.update_job_trigger.metadata.to_h
|
2144
2217
|
|
2145
|
-
# Set x-goog-api-client
|
2218
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2146
2219
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2147
2220
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2148
2221
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2222
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2149
2223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2150
2224
|
|
2151
2225
|
header_params = {}
|
@@ -2232,10 +2306,11 @@ module Google
|
|
2232
2306
|
# Customize the options with defaults
|
2233
2307
|
metadata = @config.rpcs.hybrid_inspect_job_trigger.metadata.to_h
|
2234
2308
|
|
2235
|
-
# Set x-goog-api-client
|
2309
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2236
2310
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2237
2311
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2238
2312
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2313
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2239
2314
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2240
2315
|
|
2241
2316
|
header_params = {}
|
@@ -2264,7 +2339,9 @@ module Google
|
|
2264
2339
|
|
2265
2340
|
##
|
2266
2341
|
# Gets a job trigger.
|
2267
|
-
# See
|
2342
|
+
# See
|
2343
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2344
|
+
# to learn more.
|
2268
2345
|
#
|
2269
2346
|
# @overload get_job_trigger(request, options = nil)
|
2270
2347
|
# Pass arguments to `get_job_trigger` via a request object, either of type
|
@@ -2319,10 +2396,11 @@ module Google
|
|
2319
2396
|
# Customize the options with defaults
|
2320
2397
|
metadata = @config.rpcs.get_job_trigger.metadata.to_h
|
2321
2398
|
|
2322
|
-
# Set x-goog-api-client
|
2399
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2323
2400
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2324
2401
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2325
2402
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2403
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2326
2404
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2327
2405
|
|
2328
2406
|
header_params = {}
|
@@ -2351,7 +2429,9 @@ module Google
|
|
2351
2429
|
|
2352
2430
|
##
|
2353
2431
|
# Lists job triggers.
|
2354
|
-
# See
|
2432
|
+
# See
|
2433
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2434
|
+
# to learn more.
|
2355
2435
|
#
|
2356
2436
|
# @overload list_job_triggers(request, options = nil)
|
2357
2437
|
# Pass arguments to `list_job_triggers` via a request object, either of type
|
@@ -2373,7 +2453,7 @@ module Google
|
|
2373
2453
|
#
|
2374
2454
|
# The format of this value varies depending on whether you have [specified a
|
2375
2455
|
# processing
|
2376
|
-
# location](https://cloud.google.com/
|
2456
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
2377
2457
|
#
|
2378
2458
|
# + Projects scope, location specified:<br/>
|
2379
2459
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2475,10 +2555,11 @@ module Google
|
|
2475
2555
|
# Customize the options with defaults
|
2476
2556
|
metadata = @config.rpcs.list_job_triggers.metadata.to_h
|
2477
2557
|
|
2478
|
-
# Set x-goog-api-client
|
2558
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2479
2559
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2480
2560
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2481
2561
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2562
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2482
2563
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2483
2564
|
|
2484
2565
|
header_params = {}
|
@@ -2508,7 +2589,9 @@ module Google
|
|
2508
2589
|
|
2509
2590
|
##
|
2510
2591
|
# Deletes a job trigger.
|
2511
|
-
# See
|
2592
|
+
# See
|
2593
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2594
|
+
# to learn more.
|
2512
2595
|
#
|
2513
2596
|
# @overload delete_job_trigger(request, options = nil)
|
2514
2597
|
# Pass arguments to `delete_job_trigger` via a request object, either of type
|
@@ -2563,10 +2646,11 @@ module Google
|
|
2563
2646
|
# Customize the options with defaults
|
2564
2647
|
metadata = @config.rpcs.delete_job_trigger.metadata.to_h
|
2565
2648
|
|
2566
|
-
# Set x-goog-api-client
|
2649
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2567
2650
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2568
2651
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2569
2652
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2653
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2570
2654
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2571
2655
|
|
2572
2656
|
header_params = {}
|
@@ -2650,10 +2734,11 @@ module Google
|
|
2650
2734
|
# Customize the options with defaults
|
2651
2735
|
metadata = @config.rpcs.activate_job_trigger.metadata.to_h
|
2652
2736
|
|
2653
|
-
# Set x-goog-api-client
|
2737
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2654
2738
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2655
2739
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2656
2740
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2741
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2657
2742
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2658
2743
|
|
2659
2744
|
header_params = {}
|
@@ -2751,10 +2836,11 @@ module Google
|
|
2751
2836
|
# Customize the options with defaults
|
2752
2837
|
metadata = @config.rpcs.create_discovery_config.metadata.to_h
|
2753
2838
|
|
2754
|
-
# Set x-goog-api-client
|
2839
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2755
2840
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2756
2841
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2757
2842
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2843
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2758
2844
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2759
2845
|
|
2760
2846
|
header_params = {}
|
@@ -2841,10 +2927,11 @@ module Google
|
|
2841
2927
|
# Customize the options with defaults
|
2842
2928
|
metadata = @config.rpcs.update_discovery_config.metadata.to_h
|
2843
2929
|
|
2844
|
-
# Set x-goog-api-client
|
2930
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2845
2931
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2846
2932
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2847
2933
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
2934
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2848
2935
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2849
2936
|
|
2850
2937
|
header_params = {}
|
@@ -2927,10 +3014,11 @@ module Google
|
|
2927
3014
|
# Customize the options with defaults
|
2928
3015
|
metadata = @config.rpcs.get_discovery_config.metadata.to_h
|
2929
3016
|
|
2930
|
-
# Set x-goog-api-client
|
3017
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2931
3018
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2932
3019
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2933
3020
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3021
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2934
3022
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2935
3023
|
|
2936
3024
|
header_params = {}
|
@@ -3044,10 +3132,11 @@ module Google
|
|
3044
3132
|
# Customize the options with defaults
|
3045
3133
|
metadata = @config.rpcs.list_discovery_configs.metadata.to_h
|
3046
3134
|
|
3047
|
-
# Set x-goog-api-client
|
3135
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3048
3136
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3049
3137
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3050
3138
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3139
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3051
3140
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3052
3141
|
|
3053
3142
|
header_params = {}
|
@@ -3131,10 +3220,11 @@ module Google
|
|
3131
3220
|
# Customize the options with defaults
|
3132
3221
|
metadata = @config.rpcs.delete_discovery_config.metadata.to_h
|
3133
3222
|
|
3134
|
-
# Set x-goog-api-client
|
3223
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3135
3224
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3136
3225
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3137
3226
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3227
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3138
3228
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3139
3229
|
|
3140
3230
|
header_params = {}
|
@@ -3163,8 +3253,11 @@ module Google
|
|
3163
3253
|
|
3164
3254
|
##
|
3165
3255
|
# Creates a new job to inspect storage or calculate risk metrics.
|
3166
|
-
# See
|
3167
|
-
# https://cloud.google.com/
|
3256
|
+
# See
|
3257
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3258
|
+
# and
|
3259
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3260
|
+
# to learn more.
|
3168
3261
|
#
|
3169
3262
|
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
3170
3263
|
# system will automatically choose what detectors to run. By default this may
|
@@ -3190,7 +3283,7 @@ module Google
|
|
3190
3283
|
#
|
3191
3284
|
# The format of this value varies depending on whether you have [specified a
|
3192
3285
|
# processing
|
3193
|
-
# location](https://cloud.google.com/
|
3286
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3194
3287
|
#
|
3195
3288
|
# + Projects scope, location specified:<br/>
|
3196
3289
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3249,10 +3342,11 @@ module Google
|
|
3249
3342
|
# Customize the options with defaults
|
3250
3343
|
metadata = @config.rpcs.create_dlp_job.metadata.to_h
|
3251
3344
|
|
3252
|
-
# Set x-goog-api-client
|
3345
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3253
3346
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3254
3347
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3255
3348
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3349
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3256
3350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3257
3351
|
|
3258
3352
|
header_params = {}
|
@@ -3281,8 +3375,11 @@ module Google
|
|
3281
3375
|
|
3282
3376
|
##
|
3283
3377
|
# Lists DlpJobs that match the specified filter in the request.
|
3284
|
-
# See
|
3285
|
-
# https://cloud.google.com/
|
3378
|
+
# See
|
3379
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3380
|
+
# and
|
3381
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3382
|
+
# to learn more.
|
3286
3383
|
#
|
3287
3384
|
# @overload list_dlp_jobs(request, options = nil)
|
3288
3385
|
# Pass arguments to `list_dlp_jobs` via a request object, either of type
|
@@ -3304,7 +3401,7 @@ module Google
|
|
3304
3401
|
#
|
3305
3402
|
# The format of this value varies depending on whether you have [specified a
|
3306
3403
|
# processing
|
3307
|
-
# location](https://cloud.google.com/
|
3404
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3308
3405
|
#
|
3309
3406
|
# + Projects scope, location specified:<br/>
|
3310
3407
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3406,10 +3503,11 @@ module Google
|
|
3406
3503
|
# Customize the options with defaults
|
3407
3504
|
metadata = @config.rpcs.list_dlp_jobs.metadata.to_h
|
3408
3505
|
|
3409
|
-
# Set x-goog-api-client
|
3506
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3410
3507
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3411
3508
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3412
3509
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3510
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3413
3511
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3414
3512
|
|
3415
3513
|
header_params = {}
|
@@ -3439,8 +3537,11 @@ module Google
|
|
3439
3537
|
|
3440
3538
|
##
|
3441
3539
|
# Gets the latest state of a long-running DlpJob.
|
3442
|
-
# See
|
3443
|
-
# https://cloud.google.com/
|
3540
|
+
# See
|
3541
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3542
|
+
# and
|
3543
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3544
|
+
# to learn more.
|
3444
3545
|
#
|
3445
3546
|
# @overload get_dlp_job(request, options = nil)
|
3446
3547
|
# Pass arguments to `get_dlp_job` via a request object, either of type
|
@@ -3494,10 +3595,11 @@ module Google
|
|
3494
3595
|
# Customize the options with defaults
|
3495
3596
|
metadata = @config.rpcs.get_dlp_job.metadata.to_h
|
3496
3597
|
|
3497
|
-
# Set x-goog-api-client
|
3598
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3498
3599
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3499
3600
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3500
3601
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3602
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3501
3603
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3502
3604
|
|
3503
3605
|
header_params = {}
|
@@ -3528,8 +3630,11 @@ module Google
|
|
3528
3630
|
# Deletes a long-running DlpJob. This method indicates that the client is
|
3529
3631
|
# no longer interested in the DlpJob result. The job will be canceled if
|
3530
3632
|
# possible.
|
3531
|
-
# See
|
3532
|
-
# https://cloud.google.com/
|
3633
|
+
# See
|
3634
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3635
|
+
# and
|
3636
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3637
|
+
# to learn more.
|
3533
3638
|
#
|
3534
3639
|
# @overload delete_dlp_job(request, options = nil)
|
3535
3640
|
# Pass arguments to `delete_dlp_job` via a request object, either of type
|
@@ -3583,10 +3688,11 @@ module Google
|
|
3583
3688
|
# Customize the options with defaults
|
3584
3689
|
metadata = @config.rpcs.delete_dlp_job.metadata.to_h
|
3585
3690
|
|
3586
|
-
# Set x-goog-api-client
|
3691
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3587
3692
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3588
3693
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3589
3694
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3695
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3590
3696
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3591
3697
|
|
3592
3698
|
header_params = {}
|
@@ -3617,8 +3723,11 @@ module Google
|
|
3617
3723
|
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
3618
3724
|
# makes a best effort to cancel the DlpJob, but success is not
|
3619
3725
|
# guaranteed.
|
3620
|
-
# See
|
3621
|
-
# https://cloud.google.com/
|
3726
|
+
# See
|
3727
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3728
|
+
# and
|
3729
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3730
|
+
# to learn more.
|
3622
3731
|
#
|
3623
3732
|
# @overload cancel_dlp_job(request, options = nil)
|
3624
3733
|
# Pass arguments to `cancel_dlp_job` via a request object, either of type
|
@@ -3672,10 +3781,11 @@ module Google
|
|
3672
3781
|
# Customize the options with defaults
|
3673
3782
|
metadata = @config.rpcs.cancel_dlp_job.metadata.to_h
|
3674
3783
|
|
3675
|
-
# Set x-goog-api-client
|
3784
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3676
3785
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3677
3786
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3678
3787
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3788
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3679
3789
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3680
3790
|
|
3681
3791
|
header_params = {}
|
@@ -3704,8 +3814,9 @@ module Google
|
|
3704
3814
|
|
3705
3815
|
##
|
3706
3816
|
# Creates a pre-built stored infoType to be used for inspection.
|
3707
|
-
# See
|
3708
|
-
#
|
3817
|
+
# See
|
3818
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
3819
|
+
# to learn more.
|
3709
3820
|
#
|
3710
3821
|
# @overload create_stored_info_type(request, options = nil)
|
3711
3822
|
# Pass arguments to `create_stored_info_type` via a request object, either of type
|
@@ -3727,7 +3838,7 @@ module Google
|
|
3727
3838
|
#
|
3728
3839
|
# The format of this value varies depending on the scope of the request
|
3729
3840
|
# (project or organization) and whether you have [specified a processing
|
3730
|
-
# location](https://cloud.google.com/
|
3841
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3731
3842
|
#
|
3732
3843
|
# + Projects scope, location specified:<br/>
|
3733
3844
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3787,10 +3898,11 @@ module Google
|
|
3787
3898
|
# Customize the options with defaults
|
3788
3899
|
metadata = @config.rpcs.create_stored_info_type.metadata.to_h
|
3789
3900
|
|
3790
|
-
# Set x-goog-api-client
|
3901
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3791
3902
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3792
3903
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3793
3904
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
3905
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3794
3906
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3795
3907
|
|
3796
3908
|
header_params = {}
|
@@ -3820,8 +3932,9 @@ module Google
|
|
3820
3932
|
##
|
3821
3933
|
# Updates the stored infoType by creating a new version. The existing version
|
3822
3934
|
# will continue to be used until the new version is ready.
|
3823
|
-
# See
|
3824
|
-
#
|
3935
|
+
# See
|
3936
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
3937
|
+
# to learn more.
|
3825
3938
|
#
|
3826
3939
|
# @overload update_stored_info_type(request, options = nil)
|
3827
3940
|
# Pass arguments to `update_stored_info_type` via a request object, either of type
|
@@ -3883,10 +3996,11 @@ module Google
|
|
3883
3996
|
# Customize the options with defaults
|
3884
3997
|
metadata = @config.rpcs.update_stored_info_type.metadata.to_h
|
3885
3998
|
|
3886
|
-
# Set x-goog-api-client
|
3999
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3887
4000
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3888
4001
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3889
4002
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4003
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3890
4004
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3891
4005
|
|
3892
4006
|
header_params = {}
|
@@ -3915,8 +4029,9 @@ module Google
|
|
3915
4029
|
|
3916
4030
|
##
|
3917
4031
|
# Gets a stored infoType.
|
3918
|
-
# See
|
3919
|
-
#
|
4032
|
+
# See
|
4033
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
4034
|
+
# to learn more.
|
3920
4035
|
#
|
3921
4036
|
# @overload get_stored_info_type(request, options = nil)
|
3922
4037
|
# Pass arguments to `get_stored_info_type` via a request object, either of type
|
@@ -3972,10 +4087,11 @@ module Google
|
|
3972
4087
|
# Customize the options with defaults
|
3973
4088
|
metadata = @config.rpcs.get_stored_info_type.metadata.to_h
|
3974
4089
|
|
3975
|
-
# Set x-goog-api-client
|
4090
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3976
4091
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3977
4092
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3978
4093
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4094
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3979
4095
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3980
4096
|
|
3981
4097
|
header_params = {}
|
@@ -4004,8 +4120,9 @@ module Google
|
|
4004
4120
|
|
4005
4121
|
##
|
4006
4122
|
# Lists stored infoTypes.
|
4007
|
-
# See
|
4008
|
-
#
|
4123
|
+
# See
|
4124
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
4125
|
+
# to learn more.
|
4009
4126
|
#
|
4010
4127
|
# @overload list_stored_info_types(request, options = nil)
|
4011
4128
|
# Pass arguments to `list_stored_info_types` via a request object, either of type
|
@@ -4027,7 +4144,7 @@ module Google
|
|
4027
4144
|
#
|
4028
4145
|
# The format of this value varies depending on the scope of the request
|
4029
4146
|
# (project or organization) and whether you have [specified a processing
|
4030
|
-
# location](https://cloud.google.com/
|
4147
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
4031
4148
|
#
|
4032
4149
|
# + Projects scope, location specified:<br/>
|
4033
4150
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -4101,10 +4218,11 @@ module Google
|
|
4101
4218
|
# Customize the options with defaults
|
4102
4219
|
metadata = @config.rpcs.list_stored_info_types.metadata.to_h
|
4103
4220
|
|
4104
|
-
# Set x-goog-api-client
|
4221
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4105
4222
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4106
4223
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4107
4224
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4225
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4108
4226
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4109
4227
|
|
4110
4228
|
header_params = {}
|
@@ -4134,8 +4252,9 @@ module Google
|
|
4134
4252
|
|
4135
4253
|
##
|
4136
4254
|
# Deletes a stored infoType.
|
4137
|
-
# See
|
4138
|
-
#
|
4255
|
+
# See
|
4256
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
4257
|
+
# to learn more.
|
4139
4258
|
#
|
4140
4259
|
# @overload delete_stored_info_type(request, options = nil)
|
4141
4260
|
# Pass arguments to `delete_stored_info_type` via a request object, either of type
|
@@ -4191,10 +4310,11 @@ module Google
|
|
4191
4310
|
# Customize the options with defaults
|
4192
4311
|
metadata = @config.rpcs.delete_stored_info_type.metadata.to_h
|
4193
4312
|
|
4194
|
-
# Set x-goog-api-client
|
4313
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4195
4314
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4196
4315
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4197
4316
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4317
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4198
4318
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4199
4319
|
|
4200
4320
|
header_params = {}
|
@@ -4222,36 +4342,75 @@ module Google
|
|
4222
4342
|
end
|
4223
4343
|
|
4224
4344
|
##
|
4225
|
-
#
|
4226
|
-
# To review the findings, inspect the job. Inspection will occur
|
4227
|
-
# asynchronously.
|
4345
|
+
# Lists project data profiles for an organization.
|
4228
4346
|
#
|
4229
|
-
# @overload
|
4230
|
-
# Pass arguments to `
|
4231
|
-
# {::Google::Cloud::Dlp::V2::
|
4347
|
+
# @overload list_project_data_profiles(request, options = nil)
|
4348
|
+
# Pass arguments to `list_project_data_profiles` via a request object, either of type
|
4349
|
+
# {::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest} or an equivalent Hash.
|
4232
4350
|
#
|
4233
|
-
# @param request [::Google::Cloud::Dlp::V2::
|
4351
|
+
# @param request [::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest, ::Hash]
|
4234
4352
|
# A request object representing the call parameters. Required. To specify no
|
4235
4353
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4236
4354
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4237
4355
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4238
4356
|
#
|
4239
|
-
# @overload
|
4240
|
-
# Pass arguments to `
|
4357
|
+
# @overload list_project_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
4358
|
+
# Pass arguments to `list_project_data_profiles` via keyword arguments. Note that at
|
4241
4359
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4242
4360
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4243
4361
|
#
|
4244
|
-
# @param
|
4245
|
-
# Required.
|
4246
|
-
#
|
4247
|
-
#
|
4248
|
-
#
|
4362
|
+
# @param parent [::String]
|
4363
|
+
# Required. organizations/\\{org_id}/locations/\\{loc_id}
|
4364
|
+
# @param page_token [::String]
|
4365
|
+
# Page token to continue retrieval.
|
4366
|
+
# @param page_size [::Integer]
|
4367
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
4368
|
+
# returns a page of max size 100.
|
4369
|
+
# @param order_by [::String]
|
4370
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4371
|
+
# postfix. This list is case insensitive. The default sorting order is
|
4372
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
4373
|
+
# field at a time is allowed.
|
4374
|
+
#
|
4375
|
+
# Examples:
|
4376
|
+
# * `project_id`
|
4377
|
+
# * `sensitivity_level desc`
|
4378
|
+
#
|
4379
|
+
# Supported fields are:
|
4380
|
+
#
|
4381
|
+
# - `project_id`: Google Cloud project ID
|
4382
|
+
# - `sensitivity_level`: How sensitive the data in a project is, at most.
|
4383
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4384
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
4385
|
+
# seconds.
|
4386
|
+
# @param filter [::String]
|
4387
|
+
# Allows filtering.
|
4388
|
+
#
|
4389
|
+
# Supported syntax:
|
4390
|
+
#
|
4391
|
+
# * Filter expressions are made up of one or more restrictions.
|
4392
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
4393
|
+
# sequence of restrictions implicitly uses `AND`.
|
4394
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
4395
|
+
# * Supported fields/values:
|
4396
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
4397
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
4398
|
+
# - `status_code` - an RPC status code as defined in
|
4399
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
4400
|
+
# * The operator must be `=` or `!=`.
|
4401
|
+
#
|
4402
|
+
# Examples:
|
4403
|
+
#
|
4404
|
+
# * `project_id = 12345 AND status_code = 1`
|
4405
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
4406
|
+
#
|
4407
|
+
# The length of this field should be no more than 500 characters.
|
4249
4408
|
#
|
4250
4409
|
# @yield [response, operation] Access the result along with the RPC operation
|
4251
|
-
# @yieldparam response [::Google::Cloud::Dlp::V2::
|
4410
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
4252
4411
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4253
4412
|
#
|
4254
|
-
# @return [::Google::Cloud::Dlp::V2::
|
4413
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
4255
4414
|
#
|
4256
4415
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4257
4416
|
#
|
@@ -4262,48 +4421,54 @@ module Google
|
|
4262
4421
|
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
4263
4422
|
#
|
4264
4423
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4265
|
-
# request = Google::Cloud::Dlp::V2::
|
4424
|
+
# request = Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest.new
|
4266
4425
|
#
|
4267
|
-
# # Call the
|
4268
|
-
# result = client.
|
4426
|
+
# # Call the list_project_data_profiles method.
|
4427
|
+
# result = client.list_project_data_profiles request
|
4269
4428
|
#
|
4270
|
-
# # The returned object is of type
|
4271
|
-
#
|
4429
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4430
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4431
|
+
# result.each do |item|
|
4432
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::ProjectDataProfile.
|
4433
|
+
# p item
|
4434
|
+
# end
|
4272
4435
|
#
|
4273
|
-
def
|
4436
|
+
def list_project_data_profiles request, options = nil
|
4274
4437
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4275
4438
|
|
4276
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::
|
4439
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest
|
4277
4440
|
|
4278
4441
|
# Converts hash and nil to an options object
|
4279
4442
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4280
4443
|
|
4281
4444
|
# Customize the options with defaults
|
4282
|
-
metadata = @config.rpcs.
|
4445
|
+
metadata = @config.rpcs.list_project_data_profiles.metadata.to_h
|
4283
4446
|
|
4284
|
-
# Set x-goog-api-client
|
4447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4285
4448
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4286
4449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4287
4450
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4451
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4288
4452
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4289
4453
|
|
4290
4454
|
header_params = {}
|
4291
|
-
if request.
|
4292
|
-
header_params["
|
4455
|
+
if request.parent
|
4456
|
+
header_params["parent"] = request.parent
|
4293
4457
|
end
|
4294
4458
|
|
4295
4459
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4296
4460
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4297
4461
|
|
4298
|
-
options.apply_defaults timeout: @config.rpcs.
|
4462
|
+
options.apply_defaults timeout: @config.rpcs.list_project_data_profiles.timeout,
|
4299
4463
|
metadata: metadata,
|
4300
|
-
retry_policy: @config.rpcs.
|
4464
|
+
retry_policy: @config.rpcs.list_project_data_profiles.retry_policy
|
4301
4465
|
|
4302
4466
|
options.apply_defaults timeout: @config.timeout,
|
4303
4467
|
metadata: @config.metadata,
|
4304
4468
|
retry_policy: @config.retry_policy
|
4305
4469
|
|
4306
|
-
@dlp_service_stub.call_rpc :
|
4470
|
+
@dlp_service_stub.call_rpc :list_project_data_profiles, request, options: options do |response, operation|
|
4471
|
+
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, request, response, operation, options
|
4307
4472
|
yield response, operation if block_given?
|
4308
4473
|
return response
|
4309
4474
|
end
|
@@ -4312,32 +4477,88 @@ module Google
|
|
4312
4477
|
end
|
4313
4478
|
|
4314
4479
|
##
|
4315
|
-
#
|
4316
|
-
# of any enabled actions that have not yet run.
|
4480
|
+
# Lists table data profiles for an organization.
|
4317
4481
|
#
|
4318
|
-
# @overload
|
4319
|
-
# Pass arguments to `
|
4320
|
-
# {::Google::Cloud::Dlp::V2::
|
4482
|
+
# @overload list_table_data_profiles(request, options = nil)
|
4483
|
+
# Pass arguments to `list_table_data_profiles` via a request object, either of type
|
4484
|
+
# {::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest} or an equivalent Hash.
|
4321
4485
|
#
|
4322
|
-
# @param request [::Google::Cloud::Dlp::V2::
|
4486
|
+
# @param request [::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest, ::Hash]
|
4323
4487
|
# A request object representing the call parameters. Required. To specify no
|
4324
4488
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4325
4489
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4326
4490
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4327
4491
|
#
|
4328
|
-
# @overload
|
4329
|
-
# Pass arguments to `
|
4492
|
+
# @overload list_table_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
4493
|
+
# Pass arguments to `list_table_data_profiles` via keyword arguments. Note that at
|
4330
4494
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4331
4495
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4332
4496
|
#
|
4333
|
-
# @param
|
4334
|
-
# Required.
|
4497
|
+
# @param parent [::String]
|
4498
|
+
# Required. Resource name of the organization or project, for
|
4499
|
+
# example `organizations/433245324/locations/europe` or
|
4500
|
+
# `projects/project-id/locations/asia`.
|
4501
|
+
# @param page_token [::String]
|
4502
|
+
# Page token to continue retrieval.
|
4503
|
+
# @param page_size [::Integer]
|
4504
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
4505
|
+
# returns a page of max size 100.
|
4506
|
+
# @param order_by [::String]
|
4507
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4508
|
+
# postfix. This list is case insensitive. The default sorting order is
|
4509
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
4510
|
+
# field at a time is allowed.
|
4511
|
+
#
|
4512
|
+
# Examples:
|
4513
|
+
# * `project_id asc`
|
4514
|
+
# * `table_id`
|
4515
|
+
# * `sensitivity_level desc`
|
4516
|
+
#
|
4517
|
+
# Supported fields are:
|
4518
|
+
#
|
4519
|
+
# - `project_id`: The Google Cloud project ID.
|
4520
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
4521
|
+
# - `table_id`: The ID of a BigQuery table.
|
4522
|
+
# - `sensitivity_level`: How sensitive the data in a table is, at most.
|
4523
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4524
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
4525
|
+
# seconds.
|
4526
|
+
# - `last_modified`: The last time the resource was modified.
|
4527
|
+
# - `resource_visibility`: Visibility restriction for this resource.
|
4528
|
+
# - `row_count`: Number of rows in this resource.
|
4529
|
+
# @param filter [::String]
|
4530
|
+
# Allows filtering.
|
4531
|
+
#
|
4532
|
+
# Supported syntax:
|
4533
|
+
#
|
4534
|
+
# * Filter expressions are made up of one or more restrictions.
|
4535
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
4536
|
+
# sequence of restrictions implicitly uses `AND`.
|
4537
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
4538
|
+
# * Supported fields/values:
|
4539
|
+
# - `project_id` - The Google Cloud project ID.
|
4540
|
+
# - `dataset_id` - The BigQuery dataset ID.
|
4541
|
+
# - `table_id` - The ID of the BigQuery table.
|
4542
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
4543
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
4544
|
+
# - `resource_visibility`: PUBLIC|RESTRICTED
|
4545
|
+
# - `status_code` - an RPC status code as defined in
|
4546
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
4547
|
+
# * The operator must be `=` or `!=`.
|
4548
|
+
#
|
4549
|
+
# Examples:
|
4550
|
+
#
|
4551
|
+
# * `project_id = 12345 AND status_code = 1`
|
4552
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
4553
|
+
# * `project_id = 12345 AND resource_visibility = PUBLIC`
|
4554
|
+
#
|
4555
|
+
# The length of this field should be no more than 500 characters.
|
4335
4556
|
#
|
4336
4557
|
# @yield [response, operation] Access the result along with the RPC operation
|
4337
|
-
# @yieldparam response [::Google::
|
4558
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
4338
4559
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4339
4560
|
#
|
4340
|
-
# @return [::Google::
|
4561
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
4341
4562
|
#
|
4342
4563
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4343
4564
|
#
|
@@ -4348,48 +4569,54 @@ module Google
|
|
4348
4569
|
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
4349
4570
|
#
|
4350
4571
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4351
|
-
# request = Google::Cloud::Dlp::V2::
|
4572
|
+
# request = Google::Cloud::Dlp::V2::ListTableDataProfilesRequest.new
|
4352
4573
|
#
|
4353
|
-
# # Call the
|
4354
|
-
# result = client.
|
4574
|
+
# # Call the list_table_data_profiles method.
|
4575
|
+
# result = client.list_table_data_profiles request
|
4355
4576
|
#
|
4356
|
-
# # The returned object is of type
|
4357
|
-
#
|
4577
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4578
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4579
|
+
# result.each do |item|
|
4580
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::TableDataProfile.
|
4581
|
+
# p item
|
4582
|
+
# end
|
4358
4583
|
#
|
4359
|
-
def
|
4584
|
+
def list_table_data_profiles request, options = nil
|
4360
4585
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4361
4586
|
|
4362
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::
|
4587
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest
|
4363
4588
|
|
4364
4589
|
# Converts hash and nil to an options object
|
4365
4590
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4366
4591
|
|
4367
4592
|
# Customize the options with defaults
|
4368
|
-
metadata = @config.rpcs.
|
4593
|
+
metadata = @config.rpcs.list_table_data_profiles.metadata.to_h
|
4369
4594
|
|
4370
|
-
# Set x-goog-api-client
|
4595
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4371
4596
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4372
4597
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4373
4598
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4599
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4374
4600
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4375
4601
|
|
4376
4602
|
header_params = {}
|
4377
|
-
if request.
|
4378
|
-
header_params["
|
4603
|
+
if request.parent
|
4604
|
+
header_params["parent"] = request.parent
|
4379
4605
|
end
|
4380
4606
|
|
4381
4607
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4382
4608
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4383
4609
|
|
4384
|
-
options.apply_defaults timeout: @config.rpcs.
|
4610
|
+
options.apply_defaults timeout: @config.rpcs.list_table_data_profiles.timeout,
|
4385
4611
|
metadata: metadata,
|
4386
|
-
retry_policy: @config.rpcs.
|
4612
|
+
retry_policy: @config.rpcs.list_table_data_profiles.retry_policy
|
4387
4613
|
|
4388
4614
|
options.apply_defaults timeout: @config.timeout,
|
4389
4615
|
metadata: @config.metadata,
|
4390
4616
|
retry_policy: @config.retry_policy
|
4391
4617
|
|
4392
|
-
@dlp_service_stub.call_rpc :
|
4618
|
+
@dlp_service_stub.call_rpc :list_table_data_profiles, request, options: options do |response, operation|
|
4619
|
+
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, request, response, operation, options
|
4393
4620
|
yield response, operation if block_given?
|
4394
4621
|
return response
|
4395
4622
|
end
|
@@ -4398,63 +4625,1292 @@ module Google
|
|
4398
4625
|
end
|
4399
4626
|
|
4400
4627
|
##
|
4401
|
-
#
|
4628
|
+
# Lists column data profiles for an organization.
|
4402
4629
|
#
|
4403
|
-
#
|
4404
|
-
#
|
4405
|
-
#
|
4406
|
-
# applied individually to specific RPCs. See
|
4407
|
-
# {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration::Rpcs}
|
4408
|
-
# for a list of RPCs that can be configured independently.
|
4630
|
+
# @overload list_column_data_profiles(request, options = nil)
|
4631
|
+
# Pass arguments to `list_column_data_profiles` via a request object, either of type
|
4632
|
+
# {::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest} or an equivalent Hash.
|
4409
4633
|
#
|
4410
|
-
#
|
4411
|
-
#
|
4634
|
+
# @param request [::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest, ::Hash]
|
4635
|
+
# A request object representing the call parameters. Required. To specify no
|
4636
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4637
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4638
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4412
4639
|
#
|
4413
|
-
# @
|
4640
|
+
# @overload list_column_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
4641
|
+
# Pass arguments to `list_column_data_profiles` via keyword arguments. Note that at
|
4642
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4643
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4414
4644
|
#
|
4415
|
-
#
|
4416
|
-
#
|
4417
|
-
#
|
4418
|
-
#
|
4419
|
-
#
|
4420
|
-
#
|
4421
|
-
#
|
4645
|
+
# @param parent [::String]
|
4646
|
+
# Required. Resource name of the organization or project, for
|
4647
|
+
# example `organizations/433245324/locations/europe` or
|
4648
|
+
# `projects/project-id/locations/asia`.
|
4649
|
+
# @param page_token [::String]
|
4650
|
+
# Page token to continue retrieval.
|
4651
|
+
# @param page_size [::Integer]
|
4652
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
4653
|
+
# returns a page of max size 100.
|
4654
|
+
# @param order_by [::String]
|
4655
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4656
|
+
# postfix. This list is case insensitive. The default sorting order is
|
4657
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
4658
|
+
# field at a time is allowed.
|
4422
4659
|
#
|
4423
|
-
#
|
4424
|
-
#
|
4425
|
-
#
|
4426
|
-
#
|
4427
|
-
# end
|
4660
|
+
# Examples:
|
4661
|
+
# * `project_id asc`
|
4662
|
+
# * `table_id`
|
4663
|
+
# * `sensitivity_level desc`
|
4428
4664
|
#
|
4429
|
-
#
|
4430
|
-
#
|
4431
|
-
#
|
4432
|
-
#
|
4433
|
-
#
|
4434
|
-
#
|
4435
|
-
#
|
4436
|
-
#
|
4437
|
-
#
|
4438
|
-
#
|
4439
|
-
#
|
4440
|
-
#
|
4441
|
-
#
|
4442
|
-
#
|
4443
|
-
#
|
4444
|
-
#
|
4445
|
-
#
|
4446
|
-
#
|
4447
|
-
#
|
4448
|
-
#
|
4449
|
-
#
|
4450
|
-
#
|
4451
|
-
#
|
4452
|
-
#
|
4453
|
-
#
|
4454
|
-
#
|
4455
|
-
#
|
4456
|
-
#
|
4457
|
-
#
|
4665
|
+
# Supported fields are:
|
4666
|
+
#
|
4667
|
+
# - `project_id`: The Google Cloud project ID.
|
4668
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
4669
|
+
# - `table_id`: The ID of a BigQuery table.
|
4670
|
+
# - `sensitivity_level`: How sensitive the data in a column is, at most.
|
4671
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4672
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
4673
|
+
# seconds.
|
4674
|
+
# @param filter [::String]
|
4675
|
+
# Allows filtering.
|
4676
|
+
#
|
4677
|
+
# Supported syntax:
|
4678
|
+
#
|
4679
|
+
# * Filter expressions are made up of one or more restrictions.
|
4680
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
4681
|
+
# sequence of restrictions implicitly uses `AND`.
|
4682
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
4683
|
+
# * Supported fields/values:
|
4684
|
+
# - `table_data_profile_name` - The name of the related table data
|
4685
|
+
# profile.
|
4686
|
+
# - `project_id` - The Google Cloud project ID. (REQUIRED)
|
4687
|
+
# - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
|
4688
|
+
# - `table_id` - The BigQuery table ID. (REQUIRED)
|
4689
|
+
# - `field_id` - The ID of the BigQuery field.
|
4690
|
+
# - `info_type` - The infotype detected in the resource.
|
4691
|
+
# - `sensitivity_level` - HIGH|MEDIUM|LOW
|
4692
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4693
|
+
# - `status_code` - an RPC status code as defined in
|
4694
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
4695
|
+
# * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
4696
|
+
# filters also support `!=`.
|
4697
|
+
#
|
4698
|
+
# Examples:
|
4699
|
+
#
|
4700
|
+
# * project_id = 12345 AND status_code = 1
|
4701
|
+
# * project_id = 12345 AND sensitivity_level = HIGH
|
4702
|
+
# * project_id = 12345 AND info_type = STREET_ADDRESS
|
4703
|
+
#
|
4704
|
+
# The length of this field should be no more than 500 characters.
|
4705
|
+
#
|
4706
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4707
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
4708
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4709
|
+
#
|
4710
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
4711
|
+
#
|
4712
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4713
|
+
#
|
4714
|
+
# @example Basic example
|
4715
|
+
# require "google/cloud/dlp/v2"
|
4716
|
+
#
|
4717
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4718
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
4719
|
+
#
|
4720
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4721
|
+
# request = Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest.new
|
4722
|
+
#
|
4723
|
+
# # Call the list_column_data_profiles method.
|
4724
|
+
# result = client.list_column_data_profiles request
|
4725
|
+
#
|
4726
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4727
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4728
|
+
# result.each do |item|
|
4729
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::ColumnDataProfile.
|
4730
|
+
# p item
|
4731
|
+
# end
|
4732
|
+
#
|
4733
|
+
def list_column_data_profiles request, options = nil
|
4734
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4735
|
+
|
4736
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest
|
4737
|
+
|
4738
|
+
# Converts hash and nil to an options object
|
4739
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4740
|
+
|
4741
|
+
# Customize the options with defaults
|
4742
|
+
metadata = @config.rpcs.list_column_data_profiles.metadata.to_h
|
4743
|
+
|
4744
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4745
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4746
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4747
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4748
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4749
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4750
|
+
|
4751
|
+
header_params = {}
|
4752
|
+
if request.parent
|
4753
|
+
header_params["parent"] = request.parent
|
4754
|
+
end
|
4755
|
+
|
4756
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4757
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4758
|
+
|
4759
|
+
options.apply_defaults timeout: @config.rpcs.list_column_data_profiles.timeout,
|
4760
|
+
metadata: metadata,
|
4761
|
+
retry_policy: @config.rpcs.list_column_data_profiles.retry_policy
|
4762
|
+
|
4763
|
+
options.apply_defaults timeout: @config.timeout,
|
4764
|
+
metadata: @config.metadata,
|
4765
|
+
retry_policy: @config.retry_policy
|
4766
|
+
|
4767
|
+
@dlp_service_stub.call_rpc :list_column_data_profiles, request, options: options do |response, operation|
|
4768
|
+
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, request, response, operation, options
|
4769
|
+
yield response, operation if block_given?
|
4770
|
+
return response
|
4771
|
+
end
|
4772
|
+
rescue ::GRPC::BadStatus => e
|
4773
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4774
|
+
end
|
4775
|
+
|
4776
|
+
##
|
4777
|
+
# Gets a project data profile.
|
4778
|
+
#
|
4779
|
+
# @overload get_project_data_profile(request, options = nil)
|
4780
|
+
# Pass arguments to `get_project_data_profile` via a request object, either of type
|
4781
|
+
# {::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest} or an equivalent Hash.
|
4782
|
+
#
|
4783
|
+
# @param request [::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest, ::Hash]
|
4784
|
+
# A request object representing the call parameters. Required. To specify no
|
4785
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4786
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4787
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4788
|
+
#
|
4789
|
+
# @overload get_project_data_profile(name: nil)
|
4790
|
+
# Pass arguments to `get_project_data_profile` via keyword arguments. Note that at
|
4791
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4792
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4793
|
+
#
|
4794
|
+
# @param name [::String]
|
4795
|
+
# Required. Resource name, for example
|
4796
|
+
# `organizations/12345/locations/us/projectDataProfiles/53234423`.
|
4797
|
+
#
|
4798
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4799
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
4800
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4801
|
+
#
|
4802
|
+
# @return [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
4803
|
+
#
|
4804
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4805
|
+
#
|
4806
|
+
# @example Basic example
|
4807
|
+
# require "google/cloud/dlp/v2"
|
4808
|
+
#
|
4809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4810
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
4811
|
+
#
|
4812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4813
|
+
# request = Google::Cloud::Dlp::V2::GetProjectDataProfileRequest.new
|
4814
|
+
#
|
4815
|
+
# # Call the get_project_data_profile method.
|
4816
|
+
# result = client.get_project_data_profile request
|
4817
|
+
#
|
4818
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::ProjectDataProfile.
|
4819
|
+
# p result
|
4820
|
+
#
|
4821
|
+
def get_project_data_profile request, options = nil
|
4822
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4823
|
+
|
4824
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest
|
4825
|
+
|
4826
|
+
# Converts hash and nil to an options object
|
4827
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4828
|
+
|
4829
|
+
# Customize the options with defaults
|
4830
|
+
metadata = @config.rpcs.get_project_data_profile.metadata.to_h
|
4831
|
+
|
4832
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4833
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4834
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4835
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4836
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4837
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4838
|
+
|
4839
|
+
header_params = {}
|
4840
|
+
if request.name
|
4841
|
+
header_params["name"] = request.name
|
4842
|
+
end
|
4843
|
+
|
4844
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4845
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4846
|
+
|
4847
|
+
options.apply_defaults timeout: @config.rpcs.get_project_data_profile.timeout,
|
4848
|
+
metadata: metadata,
|
4849
|
+
retry_policy: @config.rpcs.get_project_data_profile.retry_policy
|
4850
|
+
|
4851
|
+
options.apply_defaults timeout: @config.timeout,
|
4852
|
+
metadata: @config.metadata,
|
4853
|
+
retry_policy: @config.retry_policy
|
4854
|
+
|
4855
|
+
@dlp_service_stub.call_rpc :get_project_data_profile, request, options: options do |response, operation|
|
4856
|
+
yield response, operation if block_given?
|
4857
|
+
return response
|
4858
|
+
end
|
4859
|
+
rescue ::GRPC::BadStatus => e
|
4860
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4861
|
+
end
|
4862
|
+
|
4863
|
+
##
|
4864
|
+
# Gets a table data profile.
|
4865
|
+
#
|
4866
|
+
# @overload get_table_data_profile(request, options = nil)
|
4867
|
+
# Pass arguments to `get_table_data_profile` via a request object, either of type
|
4868
|
+
# {::Google::Cloud::Dlp::V2::GetTableDataProfileRequest} or an equivalent Hash.
|
4869
|
+
#
|
4870
|
+
# @param request [::Google::Cloud::Dlp::V2::GetTableDataProfileRequest, ::Hash]
|
4871
|
+
# A request object representing the call parameters. Required. To specify no
|
4872
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4873
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4874
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4875
|
+
#
|
4876
|
+
# @overload get_table_data_profile(name: nil)
|
4877
|
+
# Pass arguments to `get_table_data_profile` via keyword arguments. Note that at
|
4878
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4879
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4880
|
+
#
|
4881
|
+
# @param name [::String]
|
4882
|
+
# Required. Resource name, for example
|
4883
|
+
# `organizations/12345/locations/us/tableDataProfiles/53234423`.
|
4884
|
+
#
|
4885
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4886
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::TableDataProfile]
|
4887
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4888
|
+
#
|
4889
|
+
# @return [::Google::Cloud::Dlp::V2::TableDataProfile]
|
4890
|
+
#
|
4891
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4892
|
+
#
|
4893
|
+
# @example Basic example
|
4894
|
+
# require "google/cloud/dlp/v2"
|
4895
|
+
#
|
4896
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4897
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
4898
|
+
#
|
4899
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4900
|
+
# request = Google::Cloud::Dlp::V2::GetTableDataProfileRequest.new
|
4901
|
+
#
|
4902
|
+
# # Call the get_table_data_profile method.
|
4903
|
+
# result = client.get_table_data_profile request
|
4904
|
+
#
|
4905
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::TableDataProfile.
|
4906
|
+
# p result
|
4907
|
+
#
|
4908
|
+
def get_table_data_profile request, options = nil
|
4909
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4910
|
+
|
4911
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetTableDataProfileRequest
|
4912
|
+
|
4913
|
+
# Converts hash and nil to an options object
|
4914
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4915
|
+
|
4916
|
+
# Customize the options with defaults
|
4917
|
+
metadata = @config.rpcs.get_table_data_profile.metadata.to_h
|
4918
|
+
|
4919
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4920
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4921
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4922
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
4923
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4924
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4925
|
+
|
4926
|
+
header_params = {}
|
4927
|
+
if request.name
|
4928
|
+
header_params["name"] = request.name
|
4929
|
+
end
|
4930
|
+
|
4931
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4932
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4933
|
+
|
4934
|
+
options.apply_defaults timeout: @config.rpcs.get_table_data_profile.timeout,
|
4935
|
+
metadata: metadata,
|
4936
|
+
retry_policy: @config.rpcs.get_table_data_profile.retry_policy
|
4937
|
+
|
4938
|
+
options.apply_defaults timeout: @config.timeout,
|
4939
|
+
metadata: @config.metadata,
|
4940
|
+
retry_policy: @config.retry_policy
|
4941
|
+
|
4942
|
+
@dlp_service_stub.call_rpc :get_table_data_profile, request, options: options do |response, operation|
|
4943
|
+
yield response, operation if block_given?
|
4944
|
+
return response
|
4945
|
+
end
|
4946
|
+
rescue ::GRPC::BadStatus => e
|
4947
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4948
|
+
end
|
4949
|
+
|
4950
|
+
##
|
4951
|
+
# Gets a column data profile.
|
4952
|
+
#
|
4953
|
+
# @overload get_column_data_profile(request, options = nil)
|
4954
|
+
# Pass arguments to `get_column_data_profile` via a request object, either of type
|
4955
|
+
# {::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest} or an equivalent Hash.
|
4956
|
+
#
|
4957
|
+
# @param request [::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest, ::Hash]
|
4958
|
+
# A request object representing the call parameters. Required. To specify no
|
4959
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4960
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4961
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4962
|
+
#
|
4963
|
+
# @overload get_column_data_profile(name: nil)
|
4964
|
+
# Pass arguments to `get_column_data_profile` via keyword arguments. Note that at
|
4965
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4966
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4967
|
+
#
|
4968
|
+
# @param name [::String]
|
4969
|
+
# Required. Resource name, for example
|
4970
|
+
# `organizations/12345/locations/us/columnDataProfiles/53234423`.
|
4971
|
+
#
|
4972
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4973
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
4974
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4975
|
+
#
|
4976
|
+
# @return [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
4977
|
+
#
|
4978
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4979
|
+
#
|
4980
|
+
# @example Basic example
|
4981
|
+
# require "google/cloud/dlp/v2"
|
4982
|
+
#
|
4983
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4984
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
4985
|
+
#
|
4986
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4987
|
+
# request = Google::Cloud::Dlp::V2::GetColumnDataProfileRequest.new
|
4988
|
+
#
|
4989
|
+
# # Call the get_column_data_profile method.
|
4990
|
+
# result = client.get_column_data_profile request
|
4991
|
+
#
|
4992
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::ColumnDataProfile.
|
4993
|
+
# p result
|
4994
|
+
#
|
4995
|
+
def get_column_data_profile request, options = nil
|
4996
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4997
|
+
|
4998
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest
|
4999
|
+
|
5000
|
+
# Converts hash and nil to an options object
|
5001
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5002
|
+
|
5003
|
+
# Customize the options with defaults
|
5004
|
+
metadata = @config.rpcs.get_column_data_profile.metadata.to_h
|
5005
|
+
|
5006
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5007
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5008
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5009
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5010
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5011
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5012
|
+
|
5013
|
+
header_params = {}
|
5014
|
+
if request.name
|
5015
|
+
header_params["name"] = request.name
|
5016
|
+
end
|
5017
|
+
|
5018
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5019
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5020
|
+
|
5021
|
+
options.apply_defaults timeout: @config.rpcs.get_column_data_profile.timeout,
|
5022
|
+
metadata: metadata,
|
5023
|
+
retry_policy: @config.rpcs.get_column_data_profile.retry_policy
|
5024
|
+
|
5025
|
+
options.apply_defaults timeout: @config.timeout,
|
5026
|
+
metadata: @config.metadata,
|
5027
|
+
retry_policy: @config.retry_policy
|
5028
|
+
|
5029
|
+
@dlp_service_stub.call_rpc :get_column_data_profile, request, options: options do |response, operation|
|
5030
|
+
yield response, operation if block_given?
|
5031
|
+
return response
|
5032
|
+
end
|
5033
|
+
rescue ::GRPC::BadStatus => e
|
5034
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5035
|
+
end
|
5036
|
+
|
5037
|
+
##
|
5038
|
+
# Delete a TableDataProfile. Will not prevent the profile from being
|
5039
|
+
# regenerated if the table is still included in a discovery configuration.
|
5040
|
+
#
|
5041
|
+
# @overload delete_table_data_profile(request, options = nil)
|
5042
|
+
# Pass arguments to `delete_table_data_profile` via a request object, either of type
|
5043
|
+
# {::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest} or an equivalent Hash.
|
5044
|
+
#
|
5045
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest, ::Hash]
|
5046
|
+
# A request object representing the call parameters. Required. To specify no
|
5047
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5048
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5049
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5050
|
+
#
|
5051
|
+
# @overload delete_table_data_profile(name: nil)
|
5052
|
+
# Pass arguments to `delete_table_data_profile` via keyword arguments. Note that at
|
5053
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5054
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5055
|
+
#
|
5056
|
+
# @param name [::String]
|
5057
|
+
# Required. Resource name of the table data profile.
|
5058
|
+
#
|
5059
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5060
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5061
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5062
|
+
#
|
5063
|
+
# @return [::Google::Protobuf::Empty]
|
5064
|
+
#
|
5065
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5066
|
+
#
|
5067
|
+
# @example Basic example
|
5068
|
+
# require "google/cloud/dlp/v2"
|
5069
|
+
#
|
5070
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5071
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5072
|
+
#
|
5073
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5074
|
+
# request = Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest.new
|
5075
|
+
#
|
5076
|
+
# # Call the delete_table_data_profile method.
|
5077
|
+
# result = client.delete_table_data_profile request
|
5078
|
+
#
|
5079
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5080
|
+
# p result
|
5081
|
+
#
|
5082
|
+
def delete_table_data_profile request, options = nil
|
5083
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5084
|
+
|
5085
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest
|
5086
|
+
|
5087
|
+
# Converts hash and nil to an options object
|
5088
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5089
|
+
|
5090
|
+
# Customize the options with defaults
|
5091
|
+
metadata = @config.rpcs.delete_table_data_profile.metadata.to_h
|
5092
|
+
|
5093
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5094
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5095
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5096
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5097
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5098
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5099
|
+
|
5100
|
+
header_params = {}
|
5101
|
+
if request.name
|
5102
|
+
header_params["name"] = request.name
|
5103
|
+
end
|
5104
|
+
|
5105
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5106
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5107
|
+
|
5108
|
+
options.apply_defaults timeout: @config.rpcs.delete_table_data_profile.timeout,
|
5109
|
+
metadata: metadata,
|
5110
|
+
retry_policy: @config.rpcs.delete_table_data_profile.retry_policy
|
5111
|
+
|
5112
|
+
options.apply_defaults timeout: @config.timeout,
|
5113
|
+
metadata: @config.metadata,
|
5114
|
+
retry_policy: @config.retry_policy
|
5115
|
+
|
5116
|
+
@dlp_service_stub.call_rpc :delete_table_data_profile, request, options: options do |response, operation|
|
5117
|
+
yield response, operation if block_given?
|
5118
|
+
return response
|
5119
|
+
end
|
5120
|
+
rescue ::GRPC::BadStatus => e
|
5121
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5122
|
+
end
|
5123
|
+
|
5124
|
+
##
|
5125
|
+
# Inspect hybrid content and store findings to a job.
|
5126
|
+
# To review the findings, inspect the job. Inspection will occur
|
5127
|
+
# asynchronously.
|
5128
|
+
#
|
5129
|
+
# @overload hybrid_inspect_dlp_job(request, options = nil)
|
5130
|
+
# Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
|
5131
|
+
# {::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
|
5132
|
+
#
|
5133
|
+
# @param request [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Hash]
|
5134
|
+
# A request object representing the call parameters. Required. To specify no
|
5135
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5136
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5137
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5138
|
+
#
|
5139
|
+
# @overload hybrid_inspect_dlp_job(name: nil, hybrid_item: nil)
|
5140
|
+
# Pass arguments to `hybrid_inspect_dlp_job` via keyword arguments. Note that at
|
5141
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5142
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5143
|
+
#
|
5144
|
+
# @param name [::String]
|
5145
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for
|
5146
|
+
# example `projects/dlp-test-project/dlpJob/53234423`.
|
5147
|
+
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
5148
|
+
# The item to inspect.
|
5149
|
+
#
|
5150
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5151
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::HybridInspectResponse]
|
5152
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5153
|
+
#
|
5154
|
+
# @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
|
5155
|
+
#
|
5156
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5157
|
+
#
|
5158
|
+
# @example Basic example
|
5159
|
+
# require "google/cloud/dlp/v2"
|
5160
|
+
#
|
5161
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5162
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5163
|
+
#
|
5164
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5165
|
+
# request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
|
5166
|
+
#
|
5167
|
+
# # Call the hybrid_inspect_dlp_job method.
|
5168
|
+
# result = client.hybrid_inspect_dlp_job request
|
5169
|
+
#
|
5170
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
|
5171
|
+
# p result
|
5172
|
+
#
|
5173
|
+
def hybrid_inspect_dlp_job request, options = nil
|
5174
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5175
|
+
|
5176
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
|
5177
|
+
|
5178
|
+
# Converts hash and nil to an options object
|
5179
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5180
|
+
|
5181
|
+
# Customize the options with defaults
|
5182
|
+
metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
|
5183
|
+
|
5184
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5185
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5186
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5187
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5188
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5189
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5190
|
+
|
5191
|
+
header_params = {}
|
5192
|
+
if request.name
|
5193
|
+
header_params["name"] = request.name
|
5194
|
+
end
|
5195
|
+
|
5196
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5197
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5198
|
+
|
5199
|
+
options.apply_defaults timeout: @config.rpcs.hybrid_inspect_dlp_job.timeout,
|
5200
|
+
metadata: metadata,
|
5201
|
+
retry_policy: @config.rpcs.hybrid_inspect_dlp_job.retry_policy
|
5202
|
+
|
5203
|
+
options.apply_defaults timeout: @config.timeout,
|
5204
|
+
metadata: @config.metadata,
|
5205
|
+
retry_policy: @config.retry_policy
|
5206
|
+
|
5207
|
+
@dlp_service_stub.call_rpc :hybrid_inspect_dlp_job, request, options: options do |response, operation|
|
5208
|
+
yield response, operation if block_given?
|
5209
|
+
return response
|
5210
|
+
end
|
5211
|
+
rescue ::GRPC::BadStatus => e
|
5212
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5213
|
+
end
|
5214
|
+
|
5215
|
+
##
|
5216
|
+
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
5217
|
+
# of any enabled actions that have not yet run.
|
5218
|
+
#
|
5219
|
+
# @overload finish_dlp_job(request, options = nil)
|
5220
|
+
# Pass arguments to `finish_dlp_job` via a request object, either of type
|
5221
|
+
# {::Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
|
5222
|
+
#
|
5223
|
+
# @param request [::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Hash]
|
5224
|
+
# A request object representing the call parameters. Required. To specify no
|
5225
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5226
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5227
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5228
|
+
#
|
5229
|
+
# @overload finish_dlp_job(name: nil)
|
5230
|
+
# Pass arguments to `finish_dlp_job` via keyword arguments. Note that at
|
5231
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5232
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5233
|
+
#
|
5234
|
+
# @param name [::String]
|
5235
|
+
# Required. The name of the DlpJob resource to be finished.
|
5236
|
+
#
|
5237
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5238
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5239
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5240
|
+
#
|
5241
|
+
# @return [::Google::Protobuf::Empty]
|
5242
|
+
#
|
5243
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5244
|
+
#
|
5245
|
+
# @example Basic example
|
5246
|
+
# require "google/cloud/dlp/v2"
|
5247
|
+
#
|
5248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5249
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5250
|
+
#
|
5251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5252
|
+
# request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
|
5253
|
+
#
|
5254
|
+
# # Call the finish_dlp_job method.
|
5255
|
+
# result = client.finish_dlp_job request
|
5256
|
+
#
|
5257
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5258
|
+
# p result
|
5259
|
+
#
|
5260
|
+
def finish_dlp_job request, options = nil
|
5261
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5262
|
+
|
5263
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::FinishDlpJobRequest
|
5264
|
+
|
5265
|
+
# Converts hash and nil to an options object
|
5266
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5267
|
+
|
5268
|
+
# Customize the options with defaults
|
5269
|
+
metadata = @config.rpcs.finish_dlp_job.metadata.to_h
|
5270
|
+
|
5271
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5272
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5273
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5274
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5275
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5276
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5277
|
+
|
5278
|
+
header_params = {}
|
5279
|
+
if request.name
|
5280
|
+
header_params["name"] = request.name
|
5281
|
+
end
|
5282
|
+
|
5283
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5284
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5285
|
+
|
5286
|
+
options.apply_defaults timeout: @config.rpcs.finish_dlp_job.timeout,
|
5287
|
+
metadata: metadata,
|
5288
|
+
retry_policy: @config.rpcs.finish_dlp_job.retry_policy
|
5289
|
+
|
5290
|
+
options.apply_defaults timeout: @config.timeout,
|
5291
|
+
metadata: @config.metadata,
|
5292
|
+
retry_policy: @config.retry_policy
|
5293
|
+
|
5294
|
+
@dlp_service_stub.call_rpc :finish_dlp_job, request, options: options do |response, operation|
|
5295
|
+
yield response, operation if block_given?
|
5296
|
+
return response
|
5297
|
+
end
|
5298
|
+
rescue ::GRPC::BadStatus => e
|
5299
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5300
|
+
end
|
5301
|
+
|
5302
|
+
##
|
5303
|
+
# Create a Connection to an external data source.
|
5304
|
+
#
|
5305
|
+
# @overload create_connection(request, options = nil)
|
5306
|
+
# Pass arguments to `create_connection` via a request object, either of type
|
5307
|
+
# {::Google::Cloud::Dlp::V2::CreateConnectionRequest} or an equivalent Hash.
|
5308
|
+
#
|
5309
|
+
# @param request [::Google::Cloud::Dlp::V2::CreateConnectionRequest, ::Hash]
|
5310
|
+
# A request object representing the call parameters. Required. To specify no
|
5311
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5312
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5313
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5314
|
+
#
|
5315
|
+
# @overload create_connection(parent: nil, connection: nil)
|
5316
|
+
# Pass arguments to `create_connection` via keyword arguments. Note that at
|
5317
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5318
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5319
|
+
#
|
5320
|
+
# @param parent [::String]
|
5321
|
+
# Required. Parent resource name in the format:
|
5322
|
+
# `projects/{project}/locations/{location}`.
|
5323
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5324
|
+
# Required. The connection resource.
|
5325
|
+
#
|
5326
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5327
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::Connection]
|
5328
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5329
|
+
#
|
5330
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5331
|
+
#
|
5332
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5333
|
+
#
|
5334
|
+
# @example Basic example
|
5335
|
+
# require "google/cloud/dlp/v2"
|
5336
|
+
#
|
5337
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5338
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5339
|
+
#
|
5340
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5341
|
+
# request = Google::Cloud::Dlp::V2::CreateConnectionRequest.new
|
5342
|
+
#
|
5343
|
+
# # Call the create_connection method.
|
5344
|
+
# result = client.create_connection request
|
5345
|
+
#
|
5346
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5347
|
+
# p result
|
5348
|
+
#
|
5349
|
+
def create_connection request, options = nil
|
5350
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5351
|
+
|
5352
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateConnectionRequest
|
5353
|
+
|
5354
|
+
# Converts hash and nil to an options object
|
5355
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5356
|
+
|
5357
|
+
# Customize the options with defaults
|
5358
|
+
metadata = @config.rpcs.create_connection.metadata.to_h
|
5359
|
+
|
5360
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5361
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5362
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5363
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5364
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5365
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5366
|
+
|
5367
|
+
header_params = {}
|
5368
|
+
if request.parent
|
5369
|
+
header_params["parent"] = request.parent
|
5370
|
+
end
|
5371
|
+
|
5372
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5373
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5374
|
+
|
5375
|
+
options.apply_defaults timeout: @config.rpcs.create_connection.timeout,
|
5376
|
+
metadata: metadata,
|
5377
|
+
retry_policy: @config.rpcs.create_connection.retry_policy
|
5378
|
+
|
5379
|
+
options.apply_defaults timeout: @config.timeout,
|
5380
|
+
metadata: @config.metadata,
|
5381
|
+
retry_policy: @config.retry_policy
|
5382
|
+
|
5383
|
+
@dlp_service_stub.call_rpc :create_connection, request, options: options do |response, operation|
|
5384
|
+
yield response, operation if block_given?
|
5385
|
+
return response
|
5386
|
+
end
|
5387
|
+
rescue ::GRPC::BadStatus => e
|
5388
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5389
|
+
end
|
5390
|
+
|
5391
|
+
##
|
5392
|
+
# Get a Connection by name.
|
5393
|
+
#
|
5394
|
+
# @overload get_connection(request, options = nil)
|
5395
|
+
# Pass arguments to `get_connection` via a request object, either of type
|
5396
|
+
# {::Google::Cloud::Dlp::V2::GetConnectionRequest} or an equivalent Hash.
|
5397
|
+
#
|
5398
|
+
# @param request [::Google::Cloud::Dlp::V2::GetConnectionRequest, ::Hash]
|
5399
|
+
# A request object representing the call parameters. Required. To specify no
|
5400
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5401
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5402
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5403
|
+
#
|
5404
|
+
# @overload get_connection(name: nil)
|
5405
|
+
# Pass arguments to `get_connection` via keyword arguments. Note that at
|
5406
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5407
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5408
|
+
#
|
5409
|
+
# @param name [::String]
|
5410
|
+
# Required. Resource name in the format:
|
5411
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5412
|
+
#
|
5413
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5414
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::Connection]
|
5415
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5416
|
+
#
|
5417
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5418
|
+
#
|
5419
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5420
|
+
#
|
5421
|
+
# @example Basic example
|
5422
|
+
# require "google/cloud/dlp/v2"
|
5423
|
+
#
|
5424
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5425
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5426
|
+
#
|
5427
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5428
|
+
# request = Google::Cloud::Dlp::V2::GetConnectionRequest.new
|
5429
|
+
#
|
5430
|
+
# # Call the get_connection method.
|
5431
|
+
# result = client.get_connection request
|
5432
|
+
#
|
5433
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5434
|
+
# p result
|
5435
|
+
#
|
5436
|
+
def get_connection request, options = nil
|
5437
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5438
|
+
|
5439
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetConnectionRequest
|
5440
|
+
|
5441
|
+
# Converts hash and nil to an options object
|
5442
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5443
|
+
|
5444
|
+
# Customize the options with defaults
|
5445
|
+
metadata = @config.rpcs.get_connection.metadata.to_h
|
5446
|
+
|
5447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5448
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5449
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5450
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5451
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5452
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5453
|
+
|
5454
|
+
header_params = {}
|
5455
|
+
if request.name
|
5456
|
+
header_params["name"] = request.name
|
5457
|
+
end
|
5458
|
+
|
5459
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5460
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5461
|
+
|
5462
|
+
options.apply_defaults timeout: @config.rpcs.get_connection.timeout,
|
5463
|
+
metadata: metadata,
|
5464
|
+
retry_policy: @config.rpcs.get_connection.retry_policy
|
5465
|
+
|
5466
|
+
options.apply_defaults timeout: @config.timeout,
|
5467
|
+
metadata: @config.metadata,
|
5468
|
+
retry_policy: @config.retry_policy
|
5469
|
+
|
5470
|
+
@dlp_service_stub.call_rpc :get_connection, request, options: options do |response, operation|
|
5471
|
+
yield response, operation if block_given?
|
5472
|
+
return response
|
5473
|
+
end
|
5474
|
+
rescue ::GRPC::BadStatus => e
|
5475
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5476
|
+
end
|
5477
|
+
|
5478
|
+
##
|
5479
|
+
# Lists Connections in a parent.
|
5480
|
+
#
|
5481
|
+
# @overload list_connections(request, options = nil)
|
5482
|
+
# Pass arguments to `list_connections` via a request object, either of type
|
5483
|
+
# {::Google::Cloud::Dlp::V2::ListConnectionsRequest} or an equivalent Hash.
|
5484
|
+
#
|
5485
|
+
# @param request [::Google::Cloud::Dlp::V2::ListConnectionsRequest, ::Hash]
|
5486
|
+
# A request object representing the call parameters. Required. To specify no
|
5487
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5488
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5489
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5490
|
+
#
|
5491
|
+
# @overload list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5492
|
+
# Pass arguments to `list_connections` via keyword arguments. Note that at
|
5493
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5494
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5495
|
+
#
|
5496
|
+
# @param parent [::String]
|
5497
|
+
# Required. Parent name, for example:
|
5498
|
+
# `projects/project-id/locations/global`.
|
5499
|
+
# @param page_size [::Integer]
|
5500
|
+
# Optional. Number of results per page, max 1000.
|
5501
|
+
# @param page_token [::String]
|
5502
|
+
# Optional. Page token from a previous page to return the next set of
|
5503
|
+
# results. If set, all other request fields must match the original request.
|
5504
|
+
# @param filter [::String]
|
5505
|
+
# Optional. * Supported fields/values
|
5506
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
5507
|
+
#
|
5508
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5509
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5510
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5511
|
+
#
|
5512
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5513
|
+
#
|
5514
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5515
|
+
#
|
5516
|
+
# @example Basic example
|
5517
|
+
# require "google/cloud/dlp/v2"
|
5518
|
+
#
|
5519
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5520
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5521
|
+
#
|
5522
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5523
|
+
# request = Google::Cloud::Dlp::V2::ListConnectionsRequest.new
|
5524
|
+
#
|
5525
|
+
# # Call the list_connections method.
|
5526
|
+
# result = client.list_connections request
|
5527
|
+
#
|
5528
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5529
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5530
|
+
# result.each do |item|
|
5531
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5532
|
+
# p item
|
5533
|
+
# end
|
5534
|
+
#
|
5535
|
+
def list_connections request, options = nil
|
5536
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5537
|
+
|
5538
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListConnectionsRequest
|
5539
|
+
|
5540
|
+
# Converts hash and nil to an options object
|
5541
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5542
|
+
|
5543
|
+
# Customize the options with defaults
|
5544
|
+
metadata = @config.rpcs.list_connections.metadata.to_h
|
5545
|
+
|
5546
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5547
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5548
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5549
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5550
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5551
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5552
|
+
|
5553
|
+
header_params = {}
|
5554
|
+
if request.parent
|
5555
|
+
header_params["parent"] = request.parent
|
5556
|
+
end
|
5557
|
+
|
5558
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5559
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5560
|
+
|
5561
|
+
options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
|
5562
|
+
metadata: metadata,
|
5563
|
+
retry_policy: @config.rpcs.list_connections.retry_policy
|
5564
|
+
|
5565
|
+
options.apply_defaults timeout: @config.timeout,
|
5566
|
+
metadata: @config.metadata,
|
5567
|
+
retry_policy: @config.retry_policy
|
5568
|
+
|
5569
|
+
@dlp_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
|
5570
|
+
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_connections, request, response, operation, options
|
5571
|
+
yield response, operation if block_given?
|
5572
|
+
return response
|
5573
|
+
end
|
5574
|
+
rescue ::GRPC::BadStatus => e
|
5575
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5576
|
+
end
|
5577
|
+
|
5578
|
+
##
|
5579
|
+
# Searches for Connections in a parent.
|
5580
|
+
#
|
5581
|
+
# @overload search_connections(request, options = nil)
|
5582
|
+
# Pass arguments to `search_connections` via a request object, either of type
|
5583
|
+
# {::Google::Cloud::Dlp::V2::SearchConnectionsRequest} or an equivalent Hash.
|
5584
|
+
#
|
5585
|
+
# @param request [::Google::Cloud::Dlp::V2::SearchConnectionsRequest, ::Hash]
|
5586
|
+
# A request object representing the call parameters. Required. To specify no
|
5587
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5588
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5589
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5590
|
+
#
|
5591
|
+
# @overload search_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5592
|
+
# Pass arguments to `search_connections` via keyword arguments. Note that at
|
5593
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5594
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5595
|
+
#
|
5596
|
+
# @param parent [::String]
|
5597
|
+
# Required. Parent name, typically an organization, without location.
|
5598
|
+
# For example: `organizations/12345678`.
|
5599
|
+
# @param page_size [::Integer]
|
5600
|
+
# Optional. Number of results per page, max 1000.
|
5601
|
+
# @param page_token [::String]
|
5602
|
+
# Optional. Page token from a previous page to return the next set of
|
5603
|
+
# results. If set, all other request fields must match the original request.
|
5604
|
+
# @param filter [::String]
|
5605
|
+
# Optional. * Supported fields/values
|
5606
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
5607
|
+
#
|
5608
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5609
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5610
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5611
|
+
#
|
5612
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5613
|
+
#
|
5614
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5615
|
+
#
|
5616
|
+
# @example Basic example
|
5617
|
+
# require "google/cloud/dlp/v2"
|
5618
|
+
#
|
5619
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5620
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5621
|
+
#
|
5622
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5623
|
+
# request = Google::Cloud::Dlp::V2::SearchConnectionsRequest.new
|
5624
|
+
#
|
5625
|
+
# # Call the search_connections method.
|
5626
|
+
# result = client.search_connections request
|
5627
|
+
#
|
5628
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5629
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5630
|
+
# result.each do |item|
|
5631
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5632
|
+
# p item
|
5633
|
+
# end
|
5634
|
+
#
|
5635
|
+
def search_connections request, options = nil
|
5636
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5637
|
+
|
5638
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::SearchConnectionsRequest
|
5639
|
+
|
5640
|
+
# Converts hash and nil to an options object
|
5641
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5642
|
+
|
5643
|
+
# Customize the options with defaults
|
5644
|
+
metadata = @config.rpcs.search_connections.metadata.to_h
|
5645
|
+
|
5646
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5647
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5648
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5649
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5650
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5651
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5652
|
+
|
5653
|
+
header_params = {}
|
5654
|
+
if request.parent
|
5655
|
+
header_params["parent"] = request.parent
|
5656
|
+
end
|
5657
|
+
|
5658
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5659
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5660
|
+
|
5661
|
+
options.apply_defaults timeout: @config.rpcs.search_connections.timeout,
|
5662
|
+
metadata: metadata,
|
5663
|
+
retry_policy: @config.rpcs.search_connections.retry_policy
|
5664
|
+
|
5665
|
+
options.apply_defaults timeout: @config.timeout,
|
5666
|
+
metadata: @config.metadata,
|
5667
|
+
retry_policy: @config.retry_policy
|
5668
|
+
|
5669
|
+
@dlp_service_stub.call_rpc :search_connections, request, options: options do |response, operation|
|
5670
|
+
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :search_connections, request, response, operation, options
|
5671
|
+
yield response, operation if block_given?
|
5672
|
+
return response
|
5673
|
+
end
|
5674
|
+
rescue ::GRPC::BadStatus => e
|
5675
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5676
|
+
end
|
5677
|
+
|
5678
|
+
##
|
5679
|
+
# Delete a Connection.
|
5680
|
+
#
|
5681
|
+
# @overload delete_connection(request, options = nil)
|
5682
|
+
# Pass arguments to `delete_connection` via a request object, either of type
|
5683
|
+
# {::Google::Cloud::Dlp::V2::DeleteConnectionRequest} or an equivalent Hash.
|
5684
|
+
#
|
5685
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteConnectionRequest, ::Hash]
|
5686
|
+
# A request object representing the call parameters. Required. To specify no
|
5687
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5688
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5689
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5690
|
+
#
|
5691
|
+
# @overload delete_connection(name: nil)
|
5692
|
+
# Pass arguments to `delete_connection` via keyword arguments. Note that at
|
5693
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5694
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5695
|
+
#
|
5696
|
+
# @param name [::String]
|
5697
|
+
# Required. Resource name of the Connection to be deleted, in the format:
|
5698
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5699
|
+
#
|
5700
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5701
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5702
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5703
|
+
#
|
5704
|
+
# @return [::Google::Protobuf::Empty]
|
5705
|
+
#
|
5706
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5707
|
+
#
|
5708
|
+
# @example Basic example
|
5709
|
+
# require "google/cloud/dlp/v2"
|
5710
|
+
#
|
5711
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5712
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5713
|
+
#
|
5714
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5715
|
+
# request = Google::Cloud::Dlp::V2::DeleteConnectionRequest.new
|
5716
|
+
#
|
5717
|
+
# # Call the delete_connection method.
|
5718
|
+
# result = client.delete_connection request
|
5719
|
+
#
|
5720
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5721
|
+
# p result
|
5722
|
+
#
|
5723
|
+
def delete_connection request, options = nil
|
5724
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5725
|
+
|
5726
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteConnectionRequest
|
5727
|
+
|
5728
|
+
# Converts hash and nil to an options object
|
5729
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5730
|
+
|
5731
|
+
# Customize the options with defaults
|
5732
|
+
metadata = @config.rpcs.delete_connection.metadata.to_h
|
5733
|
+
|
5734
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5735
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5736
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5737
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5738
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5739
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5740
|
+
|
5741
|
+
header_params = {}
|
5742
|
+
if request.name
|
5743
|
+
header_params["name"] = request.name
|
5744
|
+
end
|
5745
|
+
|
5746
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5747
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5748
|
+
|
5749
|
+
options.apply_defaults timeout: @config.rpcs.delete_connection.timeout,
|
5750
|
+
metadata: metadata,
|
5751
|
+
retry_policy: @config.rpcs.delete_connection.retry_policy
|
5752
|
+
|
5753
|
+
options.apply_defaults timeout: @config.timeout,
|
5754
|
+
metadata: @config.metadata,
|
5755
|
+
retry_policy: @config.retry_policy
|
5756
|
+
|
5757
|
+
@dlp_service_stub.call_rpc :delete_connection, request, options: options do |response, operation|
|
5758
|
+
yield response, operation if block_given?
|
5759
|
+
return response
|
5760
|
+
end
|
5761
|
+
rescue ::GRPC::BadStatus => e
|
5762
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5763
|
+
end
|
5764
|
+
|
5765
|
+
##
|
5766
|
+
# Update a Connection.
|
5767
|
+
#
|
5768
|
+
# @overload update_connection(request, options = nil)
|
5769
|
+
# Pass arguments to `update_connection` via a request object, either of type
|
5770
|
+
# {::Google::Cloud::Dlp::V2::UpdateConnectionRequest} or an equivalent Hash.
|
5771
|
+
#
|
5772
|
+
# @param request [::Google::Cloud::Dlp::V2::UpdateConnectionRequest, ::Hash]
|
5773
|
+
# A request object representing the call parameters. Required. To specify no
|
5774
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5775
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5776
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5777
|
+
#
|
5778
|
+
# @overload update_connection(name: nil, connection: nil, update_mask: nil)
|
5779
|
+
# Pass arguments to `update_connection` via keyword arguments. Note that at
|
5780
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5781
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5782
|
+
#
|
5783
|
+
# @param name [::String]
|
5784
|
+
# Required. Resource name in the format:
|
5785
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5786
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5787
|
+
# Required. The connection with new values for the relevant fields.
|
5788
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5789
|
+
# Optional. Mask to control which fields get updated.
|
5790
|
+
#
|
5791
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5792
|
+
# @yieldparam response [::Google::Cloud::Dlp::V2::Connection]
|
5793
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5794
|
+
#
|
5795
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5796
|
+
#
|
5797
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5798
|
+
#
|
5799
|
+
# @example Basic example
|
5800
|
+
# require "google/cloud/dlp/v2"
|
5801
|
+
#
|
5802
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5803
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Client.new
|
5804
|
+
#
|
5805
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5806
|
+
# request = Google::Cloud::Dlp::V2::UpdateConnectionRequest.new
|
5807
|
+
#
|
5808
|
+
# # Call the update_connection method.
|
5809
|
+
# result = client.update_connection request
|
5810
|
+
#
|
5811
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5812
|
+
# p result
|
5813
|
+
#
|
5814
|
+
def update_connection request, options = nil
|
5815
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5816
|
+
|
5817
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateConnectionRequest
|
5818
|
+
|
5819
|
+
# Converts hash and nil to an options object
|
5820
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5821
|
+
|
5822
|
+
# Customize the options with defaults
|
5823
|
+
metadata = @config.rpcs.update_connection.metadata.to_h
|
5824
|
+
|
5825
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5826
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5827
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5828
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION
|
5829
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5830
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5831
|
+
|
5832
|
+
header_params = {}
|
5833
|
+
if request.name
|
5834
|
+
header_params["name"] = request.name
|
5835
|
+
end
|
5836
|
+
|
5837
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5838
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5839
|
+
|
5840
|
+
options.apply_defaults timeout: @config.rpcs.update_connection.timeout,
|
5841
|
+
metadata: metadata,
|
5842
|
+
retry_policy: @config.rpcs.update_connection.retry_policy
|
5843
|
+
|
5844
|
+
options.apply_defaults timeout: @config.timeout,
|
5845
|
+
metadata: @config.metadata,
|
5846
|
+
retry_policy: @config.retry_policy
|
5847
|
+
|
5848
|
+
@dlp_service_stub.call_rpc :update_connection, request, options: options do |response, operation|
|
5849
|
+
yield response, operation if block_given?
|
5850
|
+
return response
|
5851
|
+
end
|
5852
|
+
rescue ::GRPC::BadStatus => e
|
5853
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5854
|
+
end
|
5855
|
+
|
5856
|
+
##
|
5857
|
+
# Configuration class for the DlpService API.
|
5858
|
+
#
|
5859
|
+
# This class represents the configuration for DlpService,
|
5860
|
+
# providing control over timeouts, retry behavior, logging, transport
|
5861
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
5862
|
+
# applied individually to specific RPCs. See
|
5863
|
+
# {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration::Rpcs}
|
5864
|
+
# for a list of RPCs that can be configured independently.
|
5865
|
+
#
|
5866
|
+
# Configuration can be applied globally to all clients, or to a single client
|
5867
|
+
# on construction.
|
5868
|
+
#
|
5869
|
+
# @example
|
5870
|
+
#
|
5871
|
+
# # Modify the global config, setting the timeout for
|
5872
|
+
# # inspect_content to 20 seconds,
|
5873
|
+
# # and all remaining timeouts to 10 seconds.
|
5874
|
+
# ::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
|
5875
|
+
# config.timeout = 10.0
|
5876
|
+
# config.rpcs.inspect_content.timeout = 20.0
|
5877
|
+
# end
|
5878
|
+
#
|
5879
|
+
# # Apply the above configuration only to a new client.
|
5880
|
+
# client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
|
5881
|
+
# config.timeout = 10.0
|
5882
|
+
# config.rpcs.inspect_content.timeout = 20.0
|
5883
|
+
# end
|
5884
|
+
#
|
5885
|
+
# @!attribute [rw] endpoint
|
5886
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
5887
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
5888
|
+
# @return [::String,nil]
|
5889
|
+
# @!attribute [rw] credentials
|
5890
|
+
# Credentials to send with calls. You may provide any of the following types:
|
5891
|
+
# * (`String`) The path to a service account key file in JSON format
|
5892
|
+
# * (`Hash`) A service account key as a Hash
|
5893
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
5894
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
5895
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
5896
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
5897
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
5898
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
5899
|
+
# * (`nil`) indicating no credentials
|
5900
|
+
# @return [::Object]
|
5901
|
+
# @!attribute [rw] scope
|
5902
|
+
# The OAuth scopes
|
5903
|
+
# @return [::Array<::String>]
|
5904
|
+
# @!attribute [rw] lib_name
|
5905
|
+
# The library name as recorded in instrumentation and logging
|
5906
|
+
# @return [::String]
|
5907
|
+
# @!attribute [rw] lib_version
|
5908
|
+
# The library version as recorded in instrumentation and logging
|
5909
|
+
# @return [::String]
|
5910
|
+
# @!attribute [rw] channel_args
|
5911
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
5912
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
5913
|
+
# @return [::Hash]
|
4458
5914
|
# @!attribute [rw] interceptors
|
4459
5915
|
# An array of interceptors that are run before calls are executed.
|
4460
5916
|
# @return [::Array<::GRPC::ClientInterceptor>]
|
@@ -4736,6 +6192,41 @@ module Google
|
|
4736
6192
|
#
|
4737
6193
|
attr_reader :delete_stored_info_type
|
4738
6194
|
##
|
6195
|
+
# RPC-specific configuration for `list_project_data_profiles`
|
6196
|
+
# @return [::Gapic::Config::Method]
|
6197
|
+
#
|
6198
|
+
attr_reader :list_project_data_profiles
|
6199
|
+
##
|
6200
|
+
# RPC-specific configuration for `list_table_data_profiles`
|
6201
|
+
# @return [::Gapic::Config::Method]
|
6202
|
+
#
|
6203
|
+
attr_reader :list_table_data_profiles
|
6204
|
+
##
|
6205
|
+
# RPC-specific configuration for `list_column_data_profiles`
|
6206
|
+
# @return [::Gapic::Config::Method]
|
6207
|
+
#
|
6208
|
+
attr_reader :list_column_data_profiles
|
6209
|
+
##
|
6210
|
+
# RPC-specific configuration for `get_project_data_profile`
|
6211
|
+
# @return [::Gapic::Config::Method]
|
6212
|
+
#
|
6213
|
+
attr_reader :get_project_data_profile
|
6214
|
+
##
|
6215
|
+
# RPC-specific configuration for `get_table_data_profile`
|
6216
|
+
# @return [::Gapic::Config::Method]
|
6217
|
+
#
|
6218
|
+
attr_reader :get_table_data_profile
|
6219
|
+
##
|
6220
|
+
# RPC-specific configuration for `get_column_data_profile`
|
6221
|
+
# @return [::Gapic::Config::Method]
|
6222
|
+
#
|
6223
|
+
attr_reader :get_column_data_profile
|
6224
|
+
##
|
6225
|
+
# RPC-specific configuration for `delete_table_data_profile`
|
6226
|
+
# @return [::Gapic::Config::Method]
|
6227
|
+
#
|
6228
|
+
attr_reader :delete_table_data_profile
|
6229
|
+
##
|
4739
6230
|
# RPC-specific configuration for `hybrid_inspect_dlp_job`
|
4740
6231
|
# @return [::Gapic::Config::Method]
|
4741
6232
|
#
|
@@ -4745,6 +6236,36 @@ module Google
|
|
4745
6236
|
# @return [::Gapic::Config::Method]
|
4746
6237
|
#
|
4747
6238
|
attr_reader :finish_dlp_job
|
6239
|
+
##
|
6240
|
+
# RPC-specific configuration for `create_connection`
|
6241
|
+
# @return [::Gapic::Config::Method]
|
6242
|
+
#
|
6243
|
+
attr_reader :create_connection
|
6244
|
+
##
|
6245
|
+
# RPC-specific configuration for `get_connection`
|
6246
|
+
# @return [::Gapic::Config::Method]
|
6247
|
+
#
|
6248
|
+
attr_reader :get_connection
|
6249
|
+
##
|
6250
|
+
# RPC-specific configuration for `list_connections`
|
6251
|
+
# @return [::Gapic::Config::Method]
|
6252
|
+
#
|
6253
|
+
attr_reader :list_connections
|
6254
|
+
##
|
6255
|
+
# RPC-specific configuration for `search_connections`
|
6256
|
+
# @return [::Gapic::Config::Method]
|
6257
|
+
#
|
6258
|
+
attr_reader :search_connections
|
6259
|
+
##
|
6260
|
+
# RPC-specific configuration for `delete_connection`
|
6261
|
+
# @return [::Gapic::Config::Method]
|
6262
|
+
#
|
6263
|
+
attr_reader :delete_connection
|
6264
|
+
##
|
6265
|
+
# RPC-specific configuration for `update_connection`
|
6266
|
+
# @return [::Gapic::Config::Method]
|
6267
|
+
#
|
6268
|
+
attr_reader :update_connection
|
4748
6269
|
|
4749
6270
|
# @private
|
4750
6271
|
def initialize parent_rpcs = nil
|
@@ -4822,10 +6343,36 @@ module Google
|
|
4822
6343
|
@list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
|
4823
6344
|
delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type
|
4824
6345
|
@delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
|
6346
|
+
list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles
|
6347
|
+
@list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config
|
6348
|
+
list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles
|
6349
|
+
@list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config
|
6350
|
+
list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles
|
6351
|
+
@list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config
|
6352
|
+
get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile
|
6353
|
+
@get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config
|
6354
|
+
get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile
|
6355
|
+
@get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
|
6356
|
+
get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile
|
6357
|
+
@get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config
|
6358
|
+
delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile
|
6359
|
+
@delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config
|
4825
6360
|
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
4826
6361
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
4827
6362
|
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
4828
6363
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
6364
|
+
create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection
|
6365
|
+
@create_connection = ::Gapic::Config::Method.new create_connection_config
|
6366
|
+
get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection
|
6367
|
+
@get_connection = ::Gapic::Config::Method.new get_connection_config
|
6368
|
+
list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections
|
6369
|
+
@list_connections = ::Gapic::Config::Method.new list_connections_config
|
6370
|
+
search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections
|
6371
|
+
@search_connections = ::Gapic::Config::Method.new search_connections_config
|
6372
|
+
delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection
|
6373
|
+
@delete_connection = ::Gapic::Config::Method.new delete_connection_config
|
6374
|
+
update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection
|
6375
|
+
@update_connection = ::Gapic::Config::Method.new update_connection_config
|
4829
6376
|
|
4830
6377
|
yield self if block_given?
|
4831
6378
|
end
|