google-cloud-dlp-v2 0.21.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -38,9 +38,12 @@ module Google
|
|
38
38
|
# scheduling of data scans on Google Cloud Platform based data sets.
|
39
39
|
#
|
40
40
|
# To learn more about concepts and find how-to guides see
|
41
|
-
# https://cloud.google.com/
|
41
|
+
# https://cloud.google.com/sensitive-data-protection/docs/.
|
42
42
|
#
|
43
43
|
class Client
|
44
|
+
# @private
|
45
|
+
API_VERSION = ""
|
46
|
+
|
44
47
|
# @private
|
45
48
|
DEFAULT_ENDPOINT_TEMPLATE = "dlp.$UNIVERSE_DOMAIN$"
|
46
49
|
|
@@ -221,6 +224,36 @@ module Google
|
|
221
224
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
222
225
|
}
|
223
226
|
|
227
|
+
default_config.rpcs.list_project_data_profiles.timeout = 300.0
|
228
|
+
default_config.rpcs.list_project_data_profiles.retry_policy = {
|
229
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
230
|
+
}
|
231
|
+
|
232
|
+
default_config.rpcs.list_table_data_profiles.timeout = 300.0
|
233
|
+
default_config.rpcs.list_table_data_profiles.retry_policy = {
|
234
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
235
|
+
}
|
236
|
+
|
237
|
+
default_config.rpcs.list_column_data_profiles.timeout = 300.0
|
238
|
+
default_config.rpcs.list_column_data_profiles.retry_policy = {
|
239
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
240
|
+
}
|
241
|
+
|
242
|
+
default_config.rpcs.get_project_data_profile.timeout = 300.0
|
243
|
+
default_config.rpcs.get_project_data_profile.retry_policy = {
|
244
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
245
|
+
}
|
246
|
+
|
247
|
+
default_config.rpcs.get_table_data_profile.timeout = 300.0
|
248
|
+
default_config.rpcs.get_table_data_profile.retry_policy = {
|
249
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
250
|
+
}
|
251
|
+
|
252
|
+
default_config.rpcs.get_column_data_profile.timeout = 300.0
|
253
|
+
default_config.rpcs.get_column_data_profile.retry_policy = {
|
254
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
255
|
+
}
|
256
|
+
|
224
257
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
225
258
|
|
226
259
|
default_config.rpcs.finish_dlp_job.timeout = 300.0
|
@@ -331,8 +364,10 @@ module Google
|
|
331
364
|
# system will automatically choose what detectors to run. By default this may
|
332
365
|
# be all types, but may change over time as detectors are updated.
|
333
366
|
#
|
334
|
-
# For how to guides, see
|
335
|
-
#
|
367
|
+
# For how to guides, see
|
368
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
|
369
|
+
# and
|
370
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
|
336
371
|
#
|
337
372
|
# @overload inspect_content(request, options = nil)
|
338
373
|
# Pass arguments to `inspect_content` via a request object, either of type
|
@@ -354,7 +389,7 @@ module Google
|
|
354
389
|
#
|
355
390
|
# The format of this value varies depending on whether you have [specified a
|
356
391
|
# processing
|
357
|
-
# location](https://cloud.google.com/
|
392
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
358
393
|
#
|
359
394
|
# + Projects scope, location specified:<br/>
|
360
395
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -413,12 +448,13 @@ module Google
|
|
413
448
|
# Customize the options with defaults
|
414
449
|
call_metadata = @config.rpcs.inspect_content.metadata.to_h
|
415
450
|
|
416
|
-
# Set x-goog-api-client
|
451
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
417
452
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
418
453
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
419
454
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
420
455
|
transports_version_send: [:rest]
|
421
456
|
|
457
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
422
458
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
423
459
|
|
424
460
|
options.apply_defaults timeout: @config.rpcs.inspect_content.timeout,
|
@@ -440,8 +476,9 @@ module Google
|
|
440
476
|
##
|
441
477
|
# Redacts potentially sensitive info from an image.
|
442
478
|
# This method has limits on input size, processing time, and output size.
|
443
|
-
# See
|
444
|
-
#
|
479
|
+
# See
|
480
|
+
# https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
|
481
|
+
# to learn more.
|
445
482
|
#
|
446
483
|
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
447
484
|
# system will automatically choose what detectors to run. By default this may
|
@@ -467,7 +504,7 @@ module Google
|
|
467
504
|
#
|
468
505
|
# The format of this value varies depending on whether you have [specified a
|
469
506
|
# processing
|
470
|
-
# location](https://cloud.google.com/
|
507
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
471
508
|
#
|
472
509
|
# + Projects scope, location specified:<br/>
|
473
510
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -524,12 +561,13 @@ module Google
|
|
524
561
|
# Customize the options with defaults
|
525
562
|
call_metadata = @config.rpcs.redact_image.metadata.to_h
|
526
563
|
|
527
|
-
# Set x-goog-api-client
|
564
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
528
565
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
529
566
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
530
567
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
531
568
|
transports_version_send: [:rest]
|
532
569
|
|
570
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
533
571
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
534
572
|
|
535
573
|
options.apply_defaults timeout: @config.rpcs.redact_image.timeout,
|
@@ -551,8 +589,9 @@ module Google
|
|
551
589
|
##
|
552
590
|
# De-identifies potentially sensitive info from a ContentItem.
|
553
591
|
# This method has limits on input size and output size.
|
554
|
-
# See
|
555
|
-
#
|
592
|
+
# See
|
593
|
+
# https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
|
594
|
+
# to learn more.
|
556
595
|
#
|
557
596
|
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
558
597
|
# system will automatically choose what detectors to run. By default this may
|
@@ -578,7 +617,7 @@ module Google
|
|
578
617
|
#
|
579
618
|
# The format of this value varies depending on whether you have [specified a
|
580
619
|
# processing
|
581
|
-
# location](https://cloud.google.com/
|
620
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
582
621
|
#
|
583
622
|
# + Projects scope, location specified:<br/>
|
584
623
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -655,12 +694,13 @@ module Google
|
|
655
694
|
# Customize the options with defaults
|
656
695
|
call_metadata = @config.rpcs.deidentify_content.metadata.to_h
|
657
696
|
|
658
|
-
# Set x-goog-api-client
|
697
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
659
698
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
660
699
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
661
700
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
662
701
|
transports_version_send: [:rest]
|
663
702
|
|
703
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
664
704
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
665
705
|
|
666
706
|
options.apply_defaults timeout: @config.rpcs.deidentify_content.timeout,
|
@@ -682,7 +722,7 @@ module Google
|
|
682
722
|
##
|
683
723
|
# Re-identifies content that has been de-identified.
|
684
724
|
# See
|
685
|
-
# https://cloud.google.com/
|
725
|
+
# https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
|
686
726
|
# to learn more.
|
687
727
|
#
|
688
728
|
# @overload reidentify_content(request, options = nil)
|
@@ -705,7 +745,7 @@ module Google
|
|
705
745
|
#
|
706
746
|
# The format of this value varies depending on whether you have [specified a
|
707
747
|
# processing
|
708
|
-
# location](https://cloud.google.com/
|
748
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
709
749
|
#
|
710
750
|
# + Projects scope, location specified:<br/>
|
711
751
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -782,12 +822,13 @@ module Google
|
|
782
822
|
# Customize the options with defaults
|
783
823
|
call_metadata = @config.rpcs.reidentify_content.metadata.to_h
|
784
824
|
|
785
|
-
# Set x-goog-api-client
|
825
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
786
826
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
787
827
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
788
828
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
789
829
|
transports_version_send: [:rest]
|
790
830
|
|
831
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
791
832
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
792
833
|
|
793
834
|
options.apply_defaults timeout: @config.rpcs.reidentify_content.timeout,
|
@@ -808,8 +849,9 @@ module Google
|
|
808
849
|
|
809
850
|
##
|
810
851
|
# Returns a list of the sensitive information types that DLP API
|
811
|
-
# supports. See
|
812
|
-
#
|
852
|
+
# supports. See
|
853
|
+
# https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
|
854
|
+
# to learn more.
|
813
855
|
#
|
814
856
|
# @overload list_info_types(request, options = nil)
|
815
857
|
# Pass arguments to `list_info_types` via a request object, either of type
|
@@ -875,12 +917,13 @@ module Google
|
|
875
917
|
# Customize the options with defaults
|
876
918
|
call_metadata = @config.rpcs.list_info_types.metadata.to_h
|
877
919
|
|
878
|
-
# Set x-goog-api-client
|
920
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
879
921
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
880
922
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
881
923
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
882
924
|
transports_version_send: [:rest]
|
883
925
|
|
926
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
884
927
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
885
928
|
|
886
929
|
options.apply_defaults timeout: @config.rpcs.list_info_types.timeout,
|
@@ -902,7 +945,9 @@ module Google
|
|
902
945
|
##
|
903
946
|
# Creates an InspectTemplate for reusing frequently used configuration
|
904
947
|
# for inspecting content, images, and storage.
|
905
|
-
# See
|
948
|
+
# See
|
949
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
950
|
+
# to learn more.
|
906
951
|
#
|
907
952
|
# @overload create_inspect_template(request, options = nil)
|
908
953
|
# Pass arguments to `create_inspect_template` via a request object, either of type
|
@@ -924,7 +969,7 @@ module Google
|
|
924
969
|
#
|
925
970
|
# The format of this value varies depending on the scope of the request
|
926
971
|
# (project or organization) and whether you have [specified a processing
|
927
|
-
# location](https://cloud.google.com/
|
972
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
928
973
|
#
|
929
974
|
# + Projects scope, location specified:<br/>
|
930
975
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -983,12 +1028,13 @@ module Google
|
|
983
1028
|
# Customize the options with defaults
|
984
1029
|
call_metadata = @config.rpcs.create_inspect_template.metadata.to_h
|
985
1030
|
|
986
|
-
# Set x-goog-api-client
|
1031
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
987
1032
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
988
1033
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
989
1034
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
990
1035
|
transports_version_send: [:rest]
|
991
1036
|
|
1037
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
992
1038
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
993
1039
|
|
994
1040
|
options.apply_defaults timeout: @config.rpcs.create_inspect_template.timeout,
|
@@ -1009,7 +1055,9 @@ module Google
|
|
1009
1055
|
|
1010
1056
|
##
|
1011
1057
|
# Updates the InspectTemplate.
|
1012
|
-
# See
|
1058
|
+
# See
|
1059
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1060
|
+
# to learn more.
|
1013
1061
|
#
|
1014
1062
|
# @overload update_inspect_template(request, options = nil)
|
1015
1063
|
# Pass arguments to `update_inspect_template` via a request object, either of type
|
@@ -1068,12 +1116,13 @@ module Google
|
|
1068
1116
|
# Customize the options with defaults
|
1069
1117
|
call_metadata = @config.rpcs.update_inspect_template.metadata.to_h
|
1070
1118
|
|
1071
|
-
# Set x-goog-api-client
|
1119
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1072
1120
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1073
1121
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1074
1122
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1075
1123
|
transports_version_send: [:rest]
|
1076
1124
|
|
1125
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1077
1126
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1078
1127
|
|
1079
1128
|
options.apply_defaults timeout: @config.rpcs.update_inspect_template.timeout,
|
@@ -1094,7 +1143,9 @@ module Google
|
|
1094
1143
|
|
1095
1144
|
##
|
1096
1145
|
# Gets an InspectTemplate.
|
1097
|
-
# See
|
1146
|
+
# See
|
1147
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1148
|
+
# to learn more.
|
1098
1149
|
#
|
1099
1150
|
# @overload get_inspect_template(request, options = nil)
|
1100
1151
|
# Pass arguments to `get_inspect_template` via a request object, either of type
|
@@ -1149,12 +1200,13 @@ module Google
|
|
1149
1200
|
# Customize the options with defaults
|
1150
1201
|
call_metadata = @config.rpcs.get_inspect_template.metadata.to_h
|
1151
1202
|
|
1152
|
-
# Set x-goog-api-client
|
1203
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1153
1204
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1154
1205
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1155
1206
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1156
1207
|
transports_version_send: [:rest]
|
1157
1208
|
|
1209
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1158
1210
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1159
1211
|
|
1160
1212
|
options.apply_defaults timeout: @config.rpcs.get_inspect_template.timeout,
|
@@ -1175,7 +1227,9 @@ module Google
|
|
1175
1227
|
|
1176
1228
|
##
|
1177
1229
|
# Lists InspectTemplates.
|
1178
|
-
# See
|
1230
|
+
# See
|
1231
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1232
|
+
# to learn more.
|
1179
1233
|
#
|
1180
1234
|
# @overload list_inspect_templates(request, options = nil)
|
1181
1235
|
# Pass arguments to `list_inspect_templates` via a request object, either of type
|
@@ -1197,7 +1251,7 @@ module Google
|
|
1197
1251
|
#
|
1198
1252
|
# The format of this value varies depending on the scope of the request
|
1199
1253
|
# (project or organization) and whether you have [specified a processing
|
1200
|
-
# location](https://cloud.google.com/
|
1254
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1201
1255
|
#
|
1202
1256
|
# + Projects scope, location specified:<br/>
|
1203
1257
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1273,12 +1327,13 @@ module Google
|
|
1273
1327
|
# Customize the options with defaults
|
1274
1328
|
call_metadata = @config.rpcs.list_inspect_templates.metadata.to_h
|
1275
1329
|
|
1276
|
-
# Set x-goog-api-client
|
1330
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1277
1331
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1278
1332
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1279
1333
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1280
1334
|
transports_version_send: [:rest]
|
1281
1335
|
|
1336
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1282
1337
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
1338
|
|
1284
1339
|
options.apply_defaults timeout: @config.rpcs.list_inspect_templates.timeout,
|
@@ -1300,7 +1355,9 @@ module Google
|
|
1300
1355
|
|
1301
1356
|
##
|
1302
1357
|
# Deletes an InspectTemplate.
|
1303
|
-
# See
|
1358
|
+
# See
|
1359
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates
|
1360
|
+
# to learn more.
|
1304
1361
|
#
|
1305
1362
|
# @overload delete_inspect_template(request, options = nil)
|
1306
1363
|
# Pass arguments to `delete_inspect_template` via a request object, either of type
|
@@ -1355,12 +1412,13 @@ module Google
|
|
1355
1412
|
# Customize the options with defaults
|
1356
1413
|
call_metadata = @config.rpcs.delete_inspect_template.metadata.to_h
|
1357
1414
|
|
1358
|
-
# Set x-goog-api-client
|
1415
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1359
1416
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1360
1417
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1361
1418
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1362
1419
|
transports_version_send: [:rest]
|
1363
1420
|
|
1421
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1364
1422
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1365
1423
|
|
1366
1424
|
options.apply_defaults timeout: @config.rpcs.delete_inspect_template.timeout,
|
@@ -1382,8 +1440,9 @@ module Google
|
|
1382
1440
|
##
|
1383
1441
|
# Creates a DeidentifyTemplate for reusing frequently used configuration
|
1384
1442
|
# for de-identifying content, images, and storage.
|
1385
|
-
# See
|
1386
|
-
#
|
1443
|
+
# See
|
1444
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1445
|
+
# to learn more.
|
1387
1446
|
#
|
1388
1447
|
# @overload create_deidentify_template(request, options = nil)
|
1389
1448
|
# Pass arguments to `create_deidentify_template` via a request object, either of type
|
@@ -1405,7 +1464,7 @@ module Google
|
|
1405
1464
|
#
|
1406
1465
|
# The format of this value varies depending on the scope of the request
|
1407
1466
|
# (project or organization) and whether you have [specified a processing
|
1408
|
-
# location](https://cloud.google.com/
|
1467
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1409
1468
|
#
|
1410
1469
|
# + Projects scope, location specified:<br/>
|
1411
1470
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1464,12 +1523,13 @@ module Google
|
|
1464
1523
|
# Customize the options with defaults
|
1465
1524
|
call_metadata = @config.rpcs.create_deidentify_template.metadata.to_h
|
1466
1525
|
|
1467
|
-
# Set x-goog-api-client
|
1526
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1468
1527
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1469
1528
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1470
1529
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1471
1530
|
transports_version_send: [:rest]
|
1472
1531
|
|
1532
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1473
1533
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1474
1534
|
|
1475
1535
|
options.apply_defaults timeout: @config.rpcs.create_deidentify_template.timeout,
|
@@ -1490,8 +1550,9 @@ module Google
|
|
1490
1550
|
|
1491
1551
|
##
|
1492
1552
|
# Updates the DeidentifyTemplate.
|
1493
|
-
# See
|
1494
|
-
#
|
1553
|
+
# See
|
1554
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1555
|
+
# to learn more.
|
1495
1556
|
#
|
1496
1557
|
# @overload update_deidentify_template(request, options = nil)
|
1497
1558
|
# Pass arguments to `update_deidentify_template` via a request object, either of type
|
@@ -1551,12 +1612,13 @@ module Google
|
|
1551
1612
|
# Customize the options with defaults
|
1552
1613
|
call_metadata = @config.rpcs.update_deidentify_template.metadata.to_h
|
1553
1614
|
|
1554
|
-
# Set x-goog-api-client
|
1615
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1555
1616
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1556
1617
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1557
1618
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1558
1619
|
transports_version_send: [:rest]
|
1559
1620
|
|
1621
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1560
1622
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1561
1623
|
|
1562
1624
|
options.apply_defaults timeout: @config.rpcs.update_deidentify_template.timeout,
|
@@ -1577,8 +1639,9 @@ module Google
|
|
1577
1639
|
|
1578
1640
|
##
|
1579
1641
|
# Gets a DeidentifyTemplate.
|
1580
|
-
# See
|
1581
|
-
#
|
1642
|
+
# See
|
1643
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1644
|
+
# to learn more.
|
1582
1645
|
#
|
1583
1646
|
# @overload get_deidentify_template(request, options = nil)
|
1584
1647
|
# Pass arguments to `get_deidentify_template` via a request object, either of type
|
@@ -1633,12 +1696,13 @@ module Google
|
|
1633
1696
|
# Customize the options with defaults
|
1634
1697
|
call_metadata = @config.rpcs.get_deidentify_template.metadata.to_h
|
1635
1698
|
|
1636
|
-
# Set x-goog-api-client
|
1699
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1637
1700
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1638
1701
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1639
1702
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1640
1703
|
transports_version_send: [:rest]
|
1641
1704
|
|
1705
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1642
1706
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1643
1707
|
|
1644
1708
|
options.apply_defaults timeout: @config.rpcs.get_deidentify_template.timeout,
|
@@ -1659,8 +1723,9 @@ module Google
|
|
1659
1723
|
|
1660
1724
|
##
|
1661
1725
|
# Lists DeidentifyTemplates.
|
1662
|
-
# See
|
1663
|
-
#
|
1726
|
+
# See
|
1727
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1728
|
+
# to learn more.
|
1664
1729
|
#
|
1665
1730
|
# @overload list_deidentify_templates(request, options = nil)
|
1666
1731
|
# Pass arguments to `list_deidentify_templates` via a request object, either of type
|
@@ -1682,7 +1747,7 @@ module Google
|
|
1682
1747
|
#
|
1683
1748
|
# The format of this value varies depending on the scope of the request
|
1684
1749
|
# (project or organization) and whether you have [specified a processing
|
1685
|
-
# location](https://cloud.google.com/
|
1750
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1686
1751
|
#
|
1687
1752
|
# + Projects scope, location specified:<br/>
|
1688
1753
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1758,12 +1823,13 @@ module Google
|
|
1758
1823
|
# Customize the options with defaults
|
1759
1824
|
call_metadata = @config.rpcs.list_deidentify_templates.metadata.to_h
|
1760
1825
|
|
1761
|
-
# Set x-goog-api-client
|
1826
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1762
1827
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1763
1828
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1764
1829
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1765
1830
|
transports_version_send: [:rest]
|
1766
1831
|
|
1832
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1767
1833
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1768
1834
|
|
1769
1835
|
options.apply_defaults timeout: @config.rpcs.list_deidentify_templates.timeout,
|
@@ -1785,8 +1851,9 @@ module Google
|
|
1785
1851
|
|
1786
1852
|
##
|
1787
1853
|
# Deletes a DeidentifyTemplate.
|
1788
|
-
# See
|
1789
|
-
#
|
1854
|
+
# See
|
1855
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
|
1856
|
+
# to learn more.
|
1790
1857
|
#
|
1791
1858
|
# @overload delete_deidentify_template(request, options = nil)
|
1792
1859
|
# Pass arguments to `delete_deidentify_template` via a request object, either of type
|
@@ -1842,12 +1909,13 @@ module Google
|
|
1842
1909
|
# Customize the options with defaults
|
1843
1910
|
call_metadata = @config.rpcs.delete_deidentify_template.metadata.to_h
|
1844
1911
|
|
1845
|
-
# Set x-goog-api-client
|
1912
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1846
1913
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1847
1914
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1848
1915
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1849
1916
|
transports_version_send: [:rest]
|
1850
1917
|
|
1918
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1851
1919
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1852
1920
|
|
1853
1921
|
options.apply_defaults timeout: @config.rpcs.delete_deidentify_template.timeout,
|
@@ -1869,7 +1937,9 @@ module Google
|
|
1869
1937
|
##
|
1870
1938
|
# Creates a job trigger to run DLP actions such as scanning storage for
|
1871
1939
|
# sensitive information on a set schedule.
|
1872
|
-
# See
|
1940
|
+
# See
|
1941
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
1942
|
+
# to learn more.
|
1873
1943
|
#
|
1874
1944
|
# @overload create_job_trigger(request, options = nil)
|
1875
1945
|
# Pass arguments to `create_job_trigger` via a request object, either of type
|
@@ -1891,7 +1961,7 @@ module Google
|
|
1891
1961
|
#
|
1892
1962
|
# The format of this value varies depending on whether you have [specified a
|
1893
1963
|
# processing
|
1894
|
-
# location](https://cloud.google.com/
|
1964
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
1895
1965
|
#
|
1896
1966
|
# + Projects scope, location specified:<br/>
|
1897
1967
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1946,12 +2016,13 @@ module Google
|
|
1946
2016
|
# Customize the options with defaults
|
1947
2017
|
call_metadata = @config.rpcs.create_job_trigger.metadata.to_h
|
1948
2018
|
|
1949
|
-
# Set x-goog-api-client
|
2019
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1950
2020
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1951
2021
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1952
2022
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
1953
2023
|
transports_version_send: [:rest]
|
1954
2024
|
|
2025
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1955
2026
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1956
2027
|
|
1957
2028
|
options.apply_defaults timeout: @config.rpcs.create_job_trigger.timeout,
|
@@ -1972,7 +2043,9 @@ module Google
|
|
1972
2043
|
|
1973
2044
|
##
|
1974
2045
|
# Updates a job trigger.
|
1975
|
-
# See
|
2046
|
+
# See
|
2047
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2048
|
+
# to learn more.
|
1976
2049
|
#
|
1977
2050
|
# @overload update_job_trigger(request, options = nil)
|
1978
2051
|
# Pass arguments to `update_job_trigger` via a request object, either of type
|
@@ -2030,12 +2103,13 @@ module Google
|
|
2030
2103
|
# Customize the options with defaults
|
2031
2104
|
call_metadata = @config.rpcs.update_job_trigger.metadata.to_h
|
2032
2105
|
|
2033
|
-
# Set x-goog-api-client
|
2106
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2034
2107
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2035
2108
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2036
2109
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2037
2110
|
transports_version_send: [:rest]
|
2038
2111
|
|
2112
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2039
2113
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2040
2114
|
|
2041
2115
|
options.apply_defaults timeout: @config.rpcs.update_job_trigger.timeout,
|
@@ -2113,12 +2187,13 @@ module Google
|
|
2113
2187
|
# Customize the options with defaults
|
2114
2188
|
call_metadata = @config.rpcs.hybrid_inspect_job_trigger.metadata.to_h
|
2115
2189
|
|
2116
|
-
# Set x-goog-api-client
|
2190
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2117
2191
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2118
2192
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2119
2193
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2120
2194
|
transports_version_send: [:rest]
|
2121
2195
|
|
2196
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2122
2197
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2123
2198
|
|
2124
2199
|
options.apply_defaults timeout: @config.rpcs.hybrid_inspect_job_trigger.timeout,
|
@@ -2139,7 +2214,9 @@ module Google
|
|
2139
2214
|
|
2140
2215
|
##
|
2141
2216
|
# Gets a job trigger.
|
2142
|
-
# See
|
2217
|
+
# See
|
2218
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2219
|
+
# to learn more.
|
2143
2220
|
#
|
2144
2221
|
# @overload get_job_trigger(request, options = nil)
|
2145
2222
|
# Pass arguments to `get_job_trigger` via a request object, either of type
|
@@ -2193,12 +2270,13 @@ module Google
|
|
2193
2270
|
# Customize the options with defaults
|
2194
2271
|
call_metadata = @config.rpcs.get_job_trigger.metadata.to_h
|
2195
2272
|
|
2196
|
-
# Set x-goog-api-client
|
2273
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2197
2274
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2198
2275
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2199
2276
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2200
2277
|
transports_version_send: [:rest]
|
2201
2278
|
|
2279
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2202
2280
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2203
2281
|
|
2204
2282
|
options.apply_defaults timeout: @config.rpcs.get_job_trigger.timeout,
|
@@ -2219,7 +2297,9 @@ module Google
|
|
2219
2297
|
|
2220
2298
|
##
|
2221
2299
|
# Lists job triggers.
|
2222
|
-
# See
|
2300
|
+
# See
|
2301
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2302
|
+
# to learn more.
|
2223
2303
|
#
|
2224
2304
|
# @overload list_job_triggers(request, options = nil)
|
2225
2305
|
# Pass arguments to `list_job_triggers` via a request object, either of type
|
@@ -2241,7 +2321,7 @@ module Google
|
|
2241
2321
|
#
|
2242
2322
|
# The format of this value varies depending on whether you have [specified a
|
2243
2323
|
# processing
|
2244
|
-
# location](https://cloud.google.com/
|
2324
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
2245
2325
|
#
|
2246
2326
|
# + Projects scope, location specified:<br/>
|
2247
2327
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2342,12 +2422,13 @@ module Google
|
|
2342
2422
|
# Customize the options with defaults
|
2343
2423
|
call_metadata = @config.rpcs.list_job_triggers.metadata.to_h
|
2344
2424
|
|
2345
|
-
# Set x-goog-api-client
|
2425
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2346
2426
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2347
2427
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2348
2428
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2349
2429
|
transports_version_send: [:rest]
|
2350
2430
|
|
2431
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2351
2432
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2352
2433
|
|
2353
2434
|
options.apply_defaults timeout: @config.rpcs.list_job_triggers.timeout,
|
@@ -2369,7 +2450,9 @@ module Google
|
|
2369
2450
|
|
2370
2451
|
##
|
2371
2452
|
# Deletes a job trigger.
|
2372
|
-
# See
|
2453
|
+
# See
|
2454
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
|
2455
|
+
# to learn more.
|
2373
2456
|
#
|
2374
2457
|
# @overload delete_job_trigger(request, options = nil)
|
2375
2458
|
# Pass arguments to `delete_job_trigger` via a request object, either of type
|
@@ -2423,12 +2506,13 @@ module Google
|
|
2423
2506
|
# Customize the options with defaults
|
2424
2507
|
call_metadata = @config.rpcs.delete_job_trigger.metadata.to_h
|
2425
2508
|
|
2426
|
-
# Set x-goog-api-client
|
2509
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2427
2510
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2428
2511
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2429
2512
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2430
2513
|
transports_version_send: [:rest]
|
2431
2514
|
|
2515
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2432
2516
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2433
2517
|
|
2434
2518
|
options.apply_defaults timeout: @config.rpcs.delete_job_trigger.timeout,
|
@@ -2503,12 +2587,13 @@ module Google
|
|
2503
2587
|
# Customize the options with defaults
|
2504
2588
|
call_metadata = @config.rpcs.activate_job_trigger.metadata.to_h
|
2505
2589
|
|
2506
|
-
# Set x-goog-api-client
|
2590
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2507
2591
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2508
2592
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2509
2593
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2510
2594
|
transports_version_send: [:rest]
|
2511
2595
|
|
2596
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2512
2597
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2513
2598
|
|
2514
2599
|
options.apply_defaults timeout: @config.rpcs.activate_job_trigger.timeout,
|
@@ -2597,12 +2682,13 @@ module Google
|
|
2597
2682
|
# Customize the options with defaults
|
2598
2683
|
call_metadata = @config.rpcs.create_discovery_config.metadata.to_h
|
2599
2684
|
|
2600
|
-
# Set x-goog-api-client
|
2685
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2601
2686
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2602
2687
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2603
2688
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2604
2689
|
transports_version_send: [:rest]
|
2605
2690
|
|
2691
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2606
2692
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2607
2693
|
|
2608
2694
|
options.apply_defaults timeout: @config.rpcs.create_discovery_config.timeout,
|
@@ -2680,12 +2766,13 @@ module Google
|
|
2680
2766
|
# Customize the options with defaults
|
2681
2767
|
call_metadata = @config.rpcs.update_discovery_config.metadata.to_h
|
2682
2768
|
|
2683
|
-
# Set x-goog-api-client
|
2769
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2684
2770
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2685
2771
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2686
2772
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2687
2773
|
transports_version_send: [:rest]
|
2688
2774
|
|
2775
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2689
2776
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2690
2777
|
|
2691
2778
|
options.apply_defaults timeout: @config.rpcs.update_discovery_config.timeout,
|
@@ -2759,12 +2846,13 @@ module Google
|
|
2759
2846
|
# Customize the options with defaults
|
2760
2847
|
call_metadata = @config.rpcs.get_discovery_config.metadata.to_h
|
2761
2848
|
|
2762
|
-
# Set x-goog-api-client
|
2849
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2763
2850
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2764
2851
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2765
2852
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2766
2853
|
transports_version_send: [:rest]
|
2767
2854
|
|
2855
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2768
2856
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2769
2857
|
|
2770
2858
|
options.apply_defaults timeout: @config.rpcs.get_discovery_config.timeout,
|
@@ -2869,12 +2957,13 @@ module Google
|
|
2869
2957
|
# Customize the options with defaults
|
2870
2958
|
call_metadata = @config.rpcs.list_discovery_configs.metadata.to_h
|
2871
2959
|
|
2872
|
-
# Set x-goog-api-client
|
2960
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2873
2961
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2874
2962
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2875
2963
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2876
2964
|
transports_version_send: [:rest]
|
2877
2965
|
|
2966
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2878
2967
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2879
2968
|
|
2880
2969
|
options.apply_defaults timeout: @config.rpcs.list_discovery_configs.timeout,
|
@@ -2949,12 +3038,13 @@ module Google
|
|
2949
3038
|
# Customize the options with defaults
|
2950
3039
|
call_metadata = @config.rpcs.delete_discovery_config.metadata.to_h
|
2951
3040
|
|
2952
|
-
# Set x-goog-api-client
|
3041
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2953
3042
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2954
3043
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2955
3044
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
2956
3045
|
transports_version_send: [:rest]
|
2957
3046
|
|
3047
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2958
3048
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2959
3049
|
|
2960
3050
|
options.apply_defaults timeout: @config.rpcs.delete_discovery_config.timeout,
|
@@ -2975,8 +3065,11 @@ module Google
|
|
2975
3065
|
|
2976
3066
|
##
|
2977
3067
|
# Creates a new job to inspect storage or calculate risk metrics.
|
2978
|
-
# See
|
2979
|
-
# https://cloud.google.com/
|
3068
|
+
# See
|
3069
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3070
|
+
# and
|
3071
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3072
|
+
# to learn more.
|
2980
3073
|
#
|
2981
3074
|
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
2982
3075
|
# system will automatically choose what detectors to run. By default this may
|
@@ -3002,7 +3095,7 @@ module Google
|
|
3002
3095
|
#
|
3003
3096
|
# The format of this value varies depending on whether you have [specified a
|
3004
3097
|
# processing
|
3005
|
-
# location](https://cloud.google.com/
|
3098
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3006
3099
|
#
|
3007
3100
|
# + Projects scope, location specified:<br/>
|
3008
3101
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3060,12 +3153,13 @@ module Google
|
|
3060
3153
|
# Customize the options with defaults
|
3061
3154
|
call_metadata = @config.rpcs.create_dlp_job.metadata.to_h
|
3062
3155
|
|
3063
|
-
# Set x-goog-api-client
|
3156
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3064
3157
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3065
3158
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3066
3159
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3067
3160
|
transports_version_send: [:rest]
|
3068
3161
|
|
3162
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3069
3163
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3070
3164
|
|
3071
3165
|
options.apply_defaults timeout: @config.rpcs.create_dlp_job.timeout,
|
@@ -3086,8 +3180,11 @@ module Google
|
|
3086
3180
|
|
3087
3181
|
##
|
3088
3182
|
# Lists DlpJobs that match the specified filter in the request.
|
3089
|
-
# See
|
3090
|
-
# https://cloud.google.com/
|
3183
|
+
# See
|
3184
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3185
|
+
# and
|
3186
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3187
|
+
# to learn more.
|
3091
3188
|
#
|
3092
3189
|
# @overload list_dlp_jobs(request, options = nil)
|
3093
3190
|
# Pass arguments to `list_dlp_jobs` via a request object, either of type
|
@@ -3109,7 +3206,7 @@ module Google
|
|
3109
3206
|
#
|
3110
3207
|
# The format of this value varies depending on whether you have [specified a
|
3111
3208
|
# processing
|
3112
|
-
# location](https://cloud.google.com/
|
3209
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3113
3210
|
#
|
3114
3211
|
# + Projects scope, location specified:<br/>
|
3115
3212
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3210,12 +3307,13 @@ module Google
|
|
3210
3307
|
# Customize the options with defaults
|
3211
3308
|
call_metadata = @config.rpcs.list_dlp_jobs.metadata.to_h
|
3212
3309
|
|
3213
|
-
# Set x-goog-api-client
|
3310
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3214
3311
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3215
3312
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3216
3313
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3217
3314
|
transports_version_send: [:rest]
|
3218
3315
|
|
3316
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3219
3317
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3220
3318
|
|
3221
3319
|
options.apply_defaults timeout: @config.rpcs.list_dlp_jobs.timeout,
|
@@ -3237,8 +3335,11 @@ module Google
|
|
3237
3335
|
|
3238
3336
|
##
|
3239
3337
|
# Gets the latest state of a long-running DlpJob.
|
3240
|
-
# See
|
3241
|
-
# https://cloud.google.com/
|
3338
|
+
# See
|
3339
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3340
|
+
# and
|
3341
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3342
|
+
# to learn more.
|
3242
3343
|
#
|
3243
3344
|
# @overload get_dlp_job(request, options = nil)
|
3244
3345
|
# Pass arguments to `get_dlp_job` via a request object, either of type
|
@@ -3291,12 +3392,13 @@ module Google
|
|
3291
3392
|
# Customize the options with defaults
|
3292
3393
|
call_metadata = @config.rpcs.get_dlp_job.metadata.to_h
|
3293
3394
|
|
3294
|
-
# Set x-goog-api-client
|
3395
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3295
3396
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3296
3397
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3297
3398
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3298
3399
|
transports_version_send: [:rest]
|
3299
3400
|
|
3401
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3300
3402
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3301
3403
|
|
3302
3404
|
options.apply_defaults timeout: @config.rpcs.get_dlp_job.timeout,
|
@@ -3319,8 +3421,11 @@ module Google
|
|
3319
3421
|
# Deletes a long-running DlpJob. This method indicates that the client is
|
3320
3422
|
# no longer interested in the DlpJob result. The job will be canceled if
|
3321
3423
|
# possible.
|
3322
|
-
# See
|
3323
|
-
# https://cloud.google.com/
|
3424
|
+
# See
|
3425
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3426
|
+
# and
|
3427
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3428
|
+
# to learn more.
|
3324
3429
|
#
|
3325
3430
|
# @overload delete_dlp_job(request, options = nil)
|
3326
3431
|
# Pass arguments to `delete_dlp_job` via a request object, either of type
|
@@ -3373,12 +3478,13 @@ module Google
|
|
3373
3478
|
# Customize the options with defaults
|
3374
3479
|
call_metadata = @config.rpcs.delete_dlp_job.metadata.to_h
|
3375
3480
|
|
3376
|
-
# Set x-goog-api-client
|
3481
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3377
3482
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3378
3483
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3379
3484
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3380
3485
|
transports_version_send: [:rest]
|
3381
3486
|
|
3487
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3382
3488
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3383
3489
|
|
3384
3490
|
options.apply_defaults timeout: @config.rpcs.delete_dlp_job.timeout,
|
@@ -3401,8 +3507,11 @@ module Google
|
|
3401
3507
|
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
3402
3508
|
# makes a best effort to cancel the DlpJob, but success is not
|
3403
3509
|
# guaranteed.
|
3404
|
-
# See
|
3405
|
-
# https://cloud.google.com/
|
3510
|
+
# See
|
3511
|
+
# https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
|
3512
|
+
# and
|
3513
|
+
# https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
|
3514
|
+
# to learn more.
|
3406
3515
|
#
|
3407
3516
|
# @overload cancel_dlp_job(request, options = nil)
|
3408
3517
|
# Pass arguments to `cancel_dlp_job` via a request object, either of type
|
@@ -3455,12 +3564,13 @@ module Google
|
|
3455
3564
|
# Customize the options with defaults
|
3456
3565
|
call_metadata = @config.rpcs.cancel_dlp_job.metadata.to_h
|
3457
3566
|
|
3458
|
-
# Set x-goog-api-client
|
3567
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3459
3568
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3460
3569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3461
3570
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3462
3571
|
transports_version_send: [:rest]
|
3463
3572
|
|
3573
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3464
3574
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3465
3575
|
|
3466
3576
|
options.apply_defaults timeout: @config.rpcs.cancel_dlp_job.timeout,
|
@@ -3481,8 +3591,9 @@ module Google
|
|
3481
3591
|
|
3482
3592
|
##
|
3483
3593
|
# Creates a pre-built stored infoType to be used for inspection.
|
3484
|
-
# See
|
3485
|
-
#
|
3594
|
+
# See
|
3595
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
3596
|
+
# to learn more.
|
3486
3597
|
#
|
3487
3598
|
# @overload create_stored_info_type(request, options = nil)
|
3488
3599
|
# Pass arguments to `create_stored_info_type` via a request object, either of type
|
@@ -3504,7 +3615,7 @@ module Google
|
|
3504
3615
|
#
|
3505
3616
|
# The format of this value varies depending on the scope of the request
|
3506
3617
|
# (project or organization) and whether you have [specified a processing
|
3507
|
-
# location](https://cloud.google.com/
|
3618
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3508
3619
|
#
|
3509
3620
|
# + Projects scope, location specified:<br/>
|
3510
3621
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3563,12 +3674,13 @@ module Google
|
|
3563
3674
|
# Customize the options with defaults
|
3564
3675
|
call_metadata = @config.rpcs.create_stored_info_type.metadata.to_h
|
3565
3676
|
|
3566
|
-
# Set x-goog-api-client
|
3677
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3567
3678
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3568
3679
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3569
3680
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3570
3681
|
transports_version_send: [:rest]
|
3571
3682
|
|
3683
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3572
3684
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3573
3685
|
|
3574
3686
|
options.apply_defaults timeout: @config.rpcs.create_stored_info_type.timeout,
|
@@ -3590,8 +3702,9 @@ module Google
|
|
3590
3702
|
##
|
3591
3703
|
# Updates the stored infoType by creating a new version. The existing version
|
3592
3704
|
# will continue to be used until the new version is ready.
|
3593
|
-
# See
|
3594
|
-
#
|
3705
|
+
# See
|
3706
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
3707
|
+
# to learn more.
|
3595
3708
|
#
|
3596
3709
|
# @overload update_stored_info_type(request, options = nil)
|
3597
3710
|
# Pass arguments to `update_stored_info_type` via a request object, either of type
|
@@ -3652,12 +3765,13 @@ module Google
|
|
3652
3765
|
# Customize the options with defaults
|
3653
3766
|
call_metadata = @config.rpcs.update_stored_info_type.metadata.to_h
|
3654
3767
|
|
3655
|
-
# Set x-goog-api-client
|
3768
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3656
3769
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3657
3770
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3658
3771
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3659
3772
|
transports_version_send: [:rest]
|
3660
3773
|
|
3774
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3661
3775
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3662
3776
|
|
3663
3777
|
options.apply_defaults timeout: @config.rpcs.update_stored_info_type.timeout,
|
@@ -3678,8 +3792,9 @@ module Google
|
|
3678
3792
|
|
3679
3793
|
##
|
3680
3794
|
# Gets a stored infoType.
|
3681
|
-
# See
|
3682
|
-
#
|
3795
|
+
# See
|
3796
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
3797
|
+
# to learn more.
|
3683
3798
|
#
|
3684
3799
|
# @overload get_stored_info_type(request, options = nil)
|
3685
3800
|
# Pass arguments to `get_stored_info_type` via a request object, either of type
|
@@ -3734,12 +3849,13 @@ module Google
|
|
3734
3849
|
# Customize the options with defaults
|
3735
3850
|
call_metadata = @config.rpcs.get_stored_info_type.metadata.to_h
|
3736
3851
|
|
3737
|
-
# Set x-goog-api-client
|
3852
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3738
3853
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3739
3854
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3740
3855
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3741
3856
|
transports_version_send: [:rest]
|
3742
3857
|
|
3858
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3743
3859
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3744
3860
|
|
3745
3861
|
options.apply_defaults timeout: @config.rpcs.get_stored_info_type.timeout,
|
@@ -3760,8 +3876,9 @@ module Google
|
|
3760
3876
|
|
3761
3877
|
##
|
3762
3878
|
# Lists stored infoTypes.
|
3763
|
-
# See
|
3764
|
-
#
|
3879
|
+
# See
|
3880
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
3881
|
+
# to learn more.
|
3765
3882
|
#
|
3766
3883
|
# @overload list_stored_info_types(request, options = nil)
|
3767
3884
|
# Pass arguments to `list_stored_info_types` via a request object, either of type
|
@@ -3783,7 +3900,7 @@ module Google
|
|
3783
3900
|
#
|
3784
3901
|
# The format of this value varies depending on the scope of the request
|
3785
3902
|
# (project or organization) and whether you have [specified a processing
|
3786
|
-
# location](https://cloud.google.com/
|
3903
|
+
# location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
3787
3904
|
#
|
3788
3905
|
# + Projects scope, location specified:<br/>
|
3789
3906
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3856,12 +3973,13 @@ module Google
|
|
3856
3973
|
# Customize the options with defaults
|
3857
3974
|
call_metadata = @config.rpcs.list_stored_info_types.metadata.to_h
|
3858
3975
|
|
3859
|
-
# Set x-goog-api-client
|
3976
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3860
3977
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3861
3978
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3862
3979
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3863
3980
|
transports_version_send: [:rest]
|
3864
3981
|
|
3982
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3865
3983
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3866
3984
|
|
3867
3985
|
options.apply_defaults timeout: @config.rpcs.list_stored_info_types.timeout,
|
@@ -3883,8 +4001,9 @@ module Google
|
|
3883
4001
|
|
3884
4002
|
##
|
3885
4003
|
# Deletes a stored infoType.
|
3886
|
-
# See
|
3887
|
-
#
|
4004
|
+
# See
|
4005
|
+
# https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
|
4006
|
+
# to learn more.
|
3888
4007
|
#
|
3889
4008
|
# @overload delete_stored_info_type(request, options = nil)
|
3890
4009
|
# Pass arguments to `delete_stored_info_type` via a request object, either of type
|
@@ -3939,12 +4058,13 @@ module Google
|
|
3939
4058
|
# Customize the options with defaults
|
3940
4059
|
call_metadata = @config.rpcs.delete_stored_info_type.metadata.to_h
|
3941
4060
|
|
3942
|
-
# Set x-goog-api-client
|
4061
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3943
4062
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3944
4063
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3945
4064
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
3946
4065
|
transports_version_send: [:rest]
|
3947
4066
|
|
4067
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3948
4068
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3949
4069
|
|
3950
4070
|
options.apply_defaults timeout: @config.rpcs.delete_stored_info_type.timeout,
|
@@ -3964,35 +4084,74 @@ module Google
|
|
3964
4084
|
end
|
3965
4085
|
|
3966
4086
|
##
|
3967
|
-
#
|
3968
|
-
# To review the findings, inspect the job. Inspection will occur
|
3969
|
-
# asynchronously.
|
4087
|
+
# Lists project data profiles for an organization.
|
3970
4088
|
#
|
3971
|
-
# @overload
|
3972
|
-
# Pass arguments to `
|
3973
|
-
# {::Google::Cloud::Dlp::V2::
|
4089
|
+
# @overload list_project_data_profiles(request, options = nil)
|
4090
|
+
# Pass arguments to `list_project_data_profiles` via a request object, either of type
|
4091
|
+
# {::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest} or an equivalent Hash.
|
3974
4092
|
#
|
3975
|
-
# @param request [::Google::Cloud::Dlp::V2::
|
4093
|
+
# @param request [::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest, ::Hash]
|
3976
4094
|
# A request object representing the call parameters. Required. To specify no
|
3977
4095
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3978
4096
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3979
4097
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3980
4098
|
#
|
3981
|
-
# @overload
|
3982
|
-
# Pass arguments to `
|
4099
|
+
# @overload list_project_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
4100
|
+
# Pass arguments to `list_project_data_profiles` via keyword arguments. Note that at
|
3983
4101
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3984
4102
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3985
4103
|
#
|
3986
|
-
# @param
|
3987
|
-
# Required.
|
3988
|
-
#
|
3989
|
-
#
|
3990
|
-
#
|
4104
|
+
# @param parent [::String]
|
4105
|
+
# Required. organizations/\\{org_id}/locations/\\{loc_id}
|
4106
|
+
# @param page_token [::String]
|
4107
|
+
# Page token to continue retrieval.
|
4108
|
+
# @param page_size [::Integer]
|
4109
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
4110
|
+
# returns a page of max size 100.
|
4111
|
+
# @param order_by [::String]
|
4112
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4113
|
+
# postfix. This list is case insensitive. The default sorting order is
|
4114
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
4115
|
+
# field at a time is allowed.
|
4116
|
+
#
|
4117
|
+
# Examples:
|
4118
|
+
# * `project_id`
|
4119
|
+
# * `sensitivity_level desc`
|
4120
|
+
#
|
4121
|
+
# Supported fields are:
|
4122
|
+
#
|
4123
|
+
# - `project_id`: Google Cloud project ID
|
4124
|
+
# - `sensitivity_level`: How sensitive the data in a project is, at most.
|
4125
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4126
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
4127
|
+
# seconds.
|
4128
|
+
# @param filter [::String]
|
4129
|
+
# Allows filtering.
|
4130
|
+
#
|
4131
|
+
# Supported syntax:
|
4132
|
+
#
|
4133
|
+
# * Filter expressions are made up of one or more restrictions.
|
4134
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
4135
|
+
# sequence of restrictions implicitly uses `AND`.
|
4136
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
4137
|
+
# * Supported fields/values:
|
4138
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
4139
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
4140
|
+
# - `status_code` - an RPC status code as defined in
|
4141
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
4142
|
+
# * The operator must be `=` or `!=`.
|
4143
|
+
#
|
4144
|
+
# Examples:
|
4145
|
+
#
|
4146
|
+
# * `project_id = 12345 AND status_code = 1`
|
4147
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
4148
|
+
#
|
4149
|
+
# The length of this field should be no more than 500 characters.
|
3991
4150
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
3992
|
-
# @yieldparam result [::Google::Cloud::Dlp::V2::
|
4151
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
3993
4152
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3994
4153
|
#
|
3995
|
-
# @return [::Google::Cloud::Dlp::V2::
|
4154
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
|
3996
4155
|
#
|
3997
4156
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3998
4157
|
#
|
@@ -4003,42 +4162,48 @@ module Google
|
|
4003
4162
|
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4004
4163
|
#
|
4005
4164
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4006
|
-
# request = Google::Cloud::Dlp::V2::
|
4165
|
+
# request = Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest.new
|
4007
4166
|
#
|
4008
|
-
# # Call the
|
4009
|
-
# result = client.
|
4167
|
+
# # Call the list_project_data_profiles method.
|
4168
|
+
# result = client.list_project_data_profiles request
|
4010
4169
|
#
|
4011
|
-
# # The returned object is of type
|
4012
|
-
#
|
4170
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4171
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4172
|
+
# result.each do |item|
|
4173
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::ProjectDataProfile.
|
4174
|
+
# p item
|
4175
|
+
# end
|
4013
4176
|
#
|
4014
|
-
def
|
4177
|
+
def list_project_data_profiles request, options = nil
|
4015
4178
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4016
4179
|
|
4017
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::
|
4180
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest
|
4018
4181
|
|
4019
4182
|
# Converts hash and nil to an options object
|
4020
4183
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4021
4184
|
|
4022
4185
|
# Customize the options with defaults
|
4023
|
-
call_metadata = @config.rpcs.
|
4186
|
+
call_metadata = @config.rpcs.list_project_data_profiles.metadata.to_h
|
4024
4187
|
|
4025
|
-
# Set x-goog-api-client
|
4188
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4026
4189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4027
4190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4028
4191
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4029
4192
|
transports_version_send: [:rest]
|
4030
4193
|
|
4194
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4031
4195
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4032
4196
|
|
4033
|
-
options.apply_defaults timeout: @config.rpcs.
|
4197
|
+
options.apply_defaults timeout: @config.rpcs.list_project_data_profiles.timeout,
|
4034
4198
|
metadata: call_metadata,
|
4035
|
-
retry_policy: @config.rpcs.
|
4199
|
+
retry_policy: @config.rpcs.list_project_data_profiles.retry_policy
|
4036
4200
|
|
4037
4201
|
options.apply_defaults timeout: @config.timeout,
|
4038
4202
|
metadata: @config.metadata,
|
4039
4203
|
retry_policy: @config.retry_policy
|
4040
4204
|
|
4041
|
-
@dlp_service_stub.
|
4205
|
+
@dlp_service_stub.list_project_data_profiles request, options do |result, operation|
|
4206
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, "project_data_profiles", request, result, options
|
4042
4207
|
yield result, operation if block_given?
|
4043
4208
|
return result
|
4044
4209
|
end
|
@@ -4047,31 +4212,87 @@ module Google
|
|
4047
4212
|
end
|
4048
4213
|
|
4049
4214
|
##
|
4050
|
-
#
|
4051
|
-
# of any enabled actions that have not yet run.
|
4215
|
+
# Lists table data profiles for an organization.
|
4052
4216
|
#
|
4053
|
-
# @overload
|
4054
|
-
# Pass arguments to `
|
4055
|
-
# {::Google::Cloud::Dlp::V2::
|
4217
|
+
# @overload list_table_data_profiles(request, options = nil)
|
4218
|
+
# Pass arguments to `list_table_data_profiles` via a request object, either of type
|
4219
|
+
# {::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest} or an equivalent Hash.
|
4056
4220
|
#
|
4057
|
-
# @param request [::Google::Cloud::Dlp::V2::
|
4221
|
+
# @param request [::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest, ::Hash]
|
4058
4222
|
# A request object representing the call parameters. Required. To specify no
|
4059
4223
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4060
4224
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4061
4225
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4062
4226
|
#
|
4063
|
-
# @overload
|
4064
|
-
# Pass arguments to `
|
4227
|
+
# @overload list_table_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
4228
|
+
# Pass arguments to `list_table_data_profiles` via keyword arguments. Note that at
|
4065
4229
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4066
4230
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4067
4231
|
#
|
4068
|
-
# @param
|
4069
|
-
# Required.
|
4232
|
+
# @param parent [::String]
|
4233
|
+
# Required. Resource name of the organization or project, for
|
4234
|
+
# example `organizations/433245324/locations/europe` or
|
4235
|
+
# `projects/project-id/locations/asia`.
|
4236
|
+
# @param page_token [::String]
|
4237
|
+
# Page token to continue retrieval.
|
4238
|
+
# @param page_size [::Integer]
|
4239
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
4240
|
+
# returns a page of max size 100.
|
4241
|
+
# @param order_by [::String]
|
4242
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4243
|
+
# postfix. This list is case insensitive. The default sorting order is
|
4244
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
4245
|
+
# field at a time is allowed.
|
4246
|
+
#
|
4247
|
+
# Examples:
|
4248
|
+
# * `project_id asc`
|
4249
|
+
# * `table_id`
|
4250
|
+
# * `sensitivity_level desc`
|
4251
|
+
#
|
4252
|
+
# Supported fields are:
|
4253
|
+
#
|
4254
|
+
# - `project_id`: The Google Cloud project ID.
|
4255
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
4256
|
+
# - `table_id`: The ID of a BigQuery table.
|
4257
|
+
# - `sensitivity_level`: How sensitive the data in a table is, at most.
|
4258
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4259
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
4260
|
+
# seconds.
|
4261
|
+
# - `last_modified`: The last time the resource was modified.
|
4262
|
+
# - `resource_visibility`: Visibility restriction for this resource.
|
4263
|
+
# - `row_count`: Number of rows in this resource.
|
4264
|
+
# @param filter [::String]
|
4265
|
+
# Allows filtering.
|
4266
|
+
#
|
4267
|
+
# Supported syntax:
|
4268
|
+
#
|
4269
|
+
# * Filter expressions are made up of one or more restrictions.
|
4270
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
4271
|
+
# sequence of restrictions implicitly uses `AND`.
|
4272
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
4273
|
+
# * Supported fields/values:
|
4274
|
+
# - `project_id` - The Google Cloud project ID.
|
4275
|
+
# - `dataset_id` - The BigQuery dataset ID.
|
4276
|
+
# - `table_id` - The ID of the BigQuery table.
|
4277
|
+
# - `sensitivity_level` - HIGH|MODERATE|LOW
|
4278
|
+
# - `data_risk_level` - HIGH|MODERATE|LOW
|
4279
|
+
# - `resource_visibility`: PUBLIC|RESTRICTED
|
4280
|
+
# - `status_code` - an RPC status code as defined in
|
4281
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
4282
|
+
# * The operator must be `=` or `!=`.
|
4283
|
+
#
|
4284
|
+
# Examples:
|
4285
|
+
#
|
4286
|
+
# * `project_id = 12345 AND status_code = 1`
|
4287
|
+
# * `project_id = 12345 AND sensitivity_level = HIGH`
|
4288
|
+
# * `project_id = 12345 AND resource_visibility = PUBLIC`
|
4289
|
+
#
|
4290
|
+
# The length of this field should be no more than 500 characters.
|
4070
4291
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
4071
|
-
# @yieldparam result [::Google::
|
4292
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
4072
4293
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4073
4294
|
#
|
4074
|
-
# @return [::Google::
|
4295
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
|
4075
4296
|
#
|
4076
4297
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4077
4298
|
#
|
@@ -4082,42 +4303,48 @@ module Google
|
|
4082
4303
|
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4083
4304
|
#
|
4084
4305
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4085
|
-
# request = Google::Cloud::Dlp::V2::
|
4306
|
+
# request = Google::Cloud::Dlp::V2::ListTableDataProfilesRequest.new
|
4086
4307
|
#
|
4087
|
-
# # Call the
|
4088
|
-
# result = client.
|
4308
|
+
# # Call the list_table_data_profiles method.
|
4309
|
+
# result = client.list_table_data_profiles request
|
4089
4310
|
#
|
4090
|
-
# # The returned object is of type
|
4091
|
-
#
|
4311
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4312
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4313
|
+
# result.each do |item|
|
4314
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::TableDataProfile.
|
4315
|
+
# p item
|
4316
|
+
# end
|
4092
4317
|
#
|
4093
|
-
def
|
4318
|
+
def list_table_data_profiles request, options = nil
|
4094
4319
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4095
4320
|
|
4096
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::
|
4321
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest
|
4097
4322
|
|
4098
4323
|
# Converts hash and nil to an options object
|
4099
4324
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4100
4325
|
|
4101
4326
|
# Customize the options with defaults
|
4102
|
-
call_metadata = @config.rpcs.
|
4327
|
+
call_metadata = @config.rpcs.list_table_data_profiles.metadata.to_h
|
4103
4328
|
|
4104
|
-
# Set x-goog-api-client
|
4329
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4105
4330
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4106
4331
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4107
4332
|
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4108
4333
|
transports_version_send: [:rest]
|
4109
4334
|
|
4335
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4110
4336
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4111
4337
|
|
4112
|
-
options.apply_defaults timeout: @config.rpcs.
|
4338
|
+
options.apply_defaults timeout: @config.rpcs.list_table_data_profiles.timeout,
|
4113
4339
|
metadata: call_metadata,
|
4114
|
-
retry_policy: @config.rpcs.
|
4340
|
+
retry_policy: @config.rpcs.list_table_data_profiles.retry_policy
|
4115
4341
|
|
4116
4342
|
options.apply_defaults timeout: @config.timeout,
|
4117
4343
|
metadata: @config.metadata,
|
4118
4344
|
retry_policy: @config.retry_policy
|
4119
4345
|
|
4120
|
-
@dlp_service_stub.
|
4346
|
+
@dlp_service_stub.list_table_data_profiles request, options do |result, operation|
|
4347
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, "table_data_profiles", request, result, options
|
4121
4348
|
yield result, operation if block_given?
|
4122
4349
|
return result
|
4123
4350
|
end
|
@@ -4126,36 +4353,1174 @@ module Google
|
|
4126
4353
|
end
|
4127
4354
|
|
4128
4355
|
##
|
4129
|
-
#
|
4356
|
+
# Lists column data profiles for an organization.
|
4130
4357
|
#
|
4131
|
-
#
|
4132
|
-
#
|
4133
|
-
#
|
4134
|
-
# applied individually to specific RPCs. See
|
4135
|
-
# {::Google::Cloud::Dlp::V2::DlpService::Rest::Client::Configuration::Rpcs}
|
4136
|
-
# for a list of RPCs that can be configured independently.
|
4358
|
+
# @overload list_column_data_profiles(request, options = nil)
|
4359
|
+
# Pass arguments to `list_column_data_profiles` via a request object, either of type
|
4360
|
+
# {::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest} or an equivalent Hash.
|
4137
4361
|
#
|
4138
|
-
#
|
4139
|
-
#
|
4362
|
+
# @param request [::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest, ::Hash]
|
4363
|
+
# A request object representing the call parameters. Required. To specify no
|
4364
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4365
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4366
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4140
4367
|
#
|
4141
|
-
# @
|
4368
|
+
# @overload list_column_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
|
4369
|
+
# Pass arguments to `list_column_data_profiles` via keyword arguments. Note that at
|
4370
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4371
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4142
4372
|
#
|
4143
|
-
#
|
4144
|
-
#
|
4145
|
-
#
|
4146
|
-
#
|
4147
|
-
#
|
4148
|
-
#
|
4149
|
-
#
|
4373
|
+
# @param parent [::String]
|
4374
|
+
# Required. Resource name of the organization or project, for
|
4375
|
+
# example `organizations/433245324/locations/europe` or
|
4376
|
+
# `projects/project-id/locations/asia`.
|
4377
|
+
# @param page_token [::String]
|
4378
|
+
# Page token to continue retrieval.
|
4379
|
+
# @param page_size [::Integer]
|
4380
|
+
# Size of the page. This value can be limited by the server. If zero, server
|
4381
|
+
# returns a page of max size 100.
|
4382
|
+
# @param order_by [::String]
|
4383
|
+
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4384
|
+
# postfix. This list is case insensitive. The default sorting order is
|
4385
|
+
# ascending. Redundant space characters are insignificant. Only one order
|
4386
|
+
# field at a time is allowed.
|
4150
4387
|
#
|
4151
|
-
#
|
4152
|
-
#
|
4153
|
-
#
|
4154
|
-
#
|
4388
|
+
# Examples:
|
4389
|
+
# * `project_id asc`
|
4390
|
+
# * `table_id`
|
4391
|
+
# * `sensitivity_level desc`
|
4392
|
+
#
|
4393
|
+
# Supported fields are:
|
4394
|
+
#
|
4395
|
+
# - `project_id`: The Google Cloud project ID.
|
4396
|
+
# - `dataset_id`: The ID of a BigQuery dataset.
|
4397
|
+
# - `table_id`: The ID of a BigQuery table.
|
4398
|
+
# - `sensitivity_level`: How sensitive the data in a column is, at most.
|
4399
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4400
|
+
# - `profile_last_generated`: When the profile was last updated in epoch
|
4401
|
+
# seconds.
|
4402
|
+
# @param filter [::String]
|
4403
|
+
# Allows filtering.
|
4404
|
+
#
|
4405
|
+
# Supported syntax:
|
4406
|
+
#
|
4407
|
+
# * Filter expressions are made up of one or more restrictions.
|
4408
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
4409
|
+
# sequence of restrictions implicitly uses `AND`.
|
4410
|
+
# * A restriction has the form of `{field} {operator} {value}`.
|
4411
|
+
# * Supported fields/values:
|
4412
|
+
# - `table_data_profile_name` - The name of the related table data
|
4413
|
+
# profile.
|
4414
|
+
# - `project_id` - The Google Cloud project ID. (REQUIRED)
|
4415
|
+
# - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
|
4416
|
+
# - `table_id` - The BigQuery table ID. (REQUIRED)
|
4417
|
+
# - `field_id` - The ID of the BigQuery field.
|
4418
|
+
# - `info_type` - The infotype detected in the resource.
|
4419
|
+
# - `sensitivity_level` - HIGH|MEDIUM|LOW
|
4420
|
+
# - `data_risk_level`: How much risk is associated with this data.
|
4421
|
+
# - `status_code` - an RPC status code as defined in
|
4422
|
+
# https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
4423
|
+
# * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
4424
|
+
# filters also support `!=`.
|
4425
|
+
#
|
4426
|
+
# Examples:
|
4427
|
+
#
|
4428
|
+
# * project_id = 12345 AND status_code = 1
|
4429
|
+
# * project_id = 12345 AND sensitivity_level = HIGH
|
4430
|
+
# * project_id = 12345 AND info_type = STREET_ADDRESS
|
4431
|
+
#
|
4432
|
+
# The length of this field should be no more than 500 characters.
|
4433
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4434
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
4435
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4436
|
+
#
|
4437
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
|
4438
|
+
#
|
4439
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4440
|
+
#
|
4441
|
+
# @example Basic example
|
4442
|
+
# require "google/cloud/dlp/v2"
|
4443
|
+
#
|
4444
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4445
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4446
|
+
#
|
4447
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4448
|
+
# request = Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest.new
|
4449
|
+
#
|
4450
|
+
# # Call the list_column_data_profiles method.
|
4451
|
+
# result = client.list_column_data_profiles request
|
4452
|
+
#
|
4453
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4454
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4455
|
+
# result.each do |item|
|
4456
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::ColumnDataProfile.
|
4457
|
+
# p item
|
4155
4458
|
# end
|
4156
4459
|
#
|
4157
|
-
|
4158
|
-
|
4460
|
+
def list_column_data_profiles request, options = nil
|
4461
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4462
|
+
|
4463
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest
|
4464
|
+
|
4465
|
+
# Converts hash and nil to an options object
|
4466
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4467
|
+
|
4468
|
+
# Customize the options with defaults
|
4469
|
+
call_metadata = @config.rpcs.list_column_data_profiles.metadata.to_h
|
4470
|
+
|
4471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4472
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4473
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4474
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4475
|
+
transports_version_send: [:rest]
|
4476
|
+
|
4477
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4478
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4479
|
+
|
4480
|
+
options.apply_defaults timeout: @config.rpcs.list_column_data_profiles.timeout,
|
4481
|
+
metadata: call_metadata,
|
4482
|
+
retry_policy: @config.rpcs.list_column_data_profiles.retry_policy
|
4483
|
+
|
4484
|
+
options.apply_defaults timeout: @config.timeout,
|
4485
|
+
metadata: @config.metadata,
|
4486
|
+
retry_policy: @config.retry_policy
|
4487
|
+
|
4488
|
+
@dlp_service_stub.list_column_data_profiles request, options do |result, operation|
|
4489
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, "column_data_profiles", request, result, options
|
4490
|
+
yield result, operation if block_given?
|
4491
|
+
return result
|
4492
|
+
end
|
4493
|
+
rescue ::Gapic::Rest::Error => e
|
4494
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4495
|
+
end
|
4496
|
+
|
4497
|
+
##
|
4498
|
+
# Gets a project data profile.
|
4499
|
+
#
|
4500
|
+
# @overload get_project_data_profile(request, options = nil)
|
4501
|
+
# Pass arguments to `get_project_data_profile` via a request object, either of type
|
4502
|
+
# {::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest} or an equivalent Hash.
|
4503
|
+
#
|
4504
|
+
# @param request [::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest, ::Hash]
|
4505
|
+
# A request object representing the call parameters. Required. To specify no
|
4506
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4507
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4508
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4509
|
+
#
|
4510
|
+
# @overload get_project_data_profile(name: nil)
|
4511
|
+
# Pass arguments to `get_project_data_profile` via keyword arguments. Note that at
|
4512
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4513
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4514
|
+
#
|
4515
|
+
# @param name [::String]
|
4516
|
+
# Required. Resource name, for example
|
4517
|
+
# `organizations/12345/locations/us/projectDataProfiles/53234423`.
|
4518
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4519
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
4520
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4521
|
+
#
|
4522
|
+
# @return [::Google::Cloud::Dlp::V2::ProjectDataProfile]
|
4523
|
+
#
|
4524
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4525
|
+
#
|
4526
|
+
# @example Basic example
|
4527
|
+
# require "google/cloud/dlp/v2"
|
4528
|
+
#
|
4529
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4530
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4531
|
+
#
|
4532
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4533
|
+
# request = Google::Cloud::Dlp::V2::GetProjectDataProfileRequest.new
|
4534
|
+
#
|
4535
|
+
# # Call the get_project_data_profile method.
|
4536
|
+
# result = client.get_project_data_profile request
|
4537
|
+
#
|
4538
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::ProjectDataProfile.
|
4539
|
+
# p result
|
4540
|
+
#
|
4541
|
+
def get_project_data_profile request, options = nil
|
4542
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4543
|
+
|
4544
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest
|
4545
|
+
|
4546
|
+
# Converts hash and nil to an options object
|
4547
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4548
|
+
|
4549
|
+
# Customize the options with defaults
|
4550
|
+
call_metadata = @config.rpcs.get_project_data_profile.metadata.to_h
|
4551
|
+
|
4552
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4553
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4554
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4555
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4556
|
+
transports_version_send: [:rest]
|
4557
|
+
|
4558
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4559
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4560
|
+
|
4561
|
+
options.apply_defaults timeout: @config.rpcs.get_project_data_profile.timeout,
|
4562
|
+
metadata: call_metadata,
|
4563
|
+
retry_policy: @config.rpcs.get_project_data_profile.retry_policy
|
4564
|
+
|
4565
|
+
options.apply_defaults timeout: @config.timeout,
|
4566
|
+
metadata: @config.metadata,
|
4567
|
+
retry_policy: @config.retry_policy
|
4568
|
+
|
4569
|
+
@dlp_service_stub.get_project_data_profile request, options do |result, operation|
|
4570
|
+
yield result, operation if block_given?
|
4571
|
+
return result
|
4572
|
+
end
|
4573
|
+
rescue ::Gapic::Rest::Error => e
|
4574
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4575
|
+
end
|
4576
|
+
|
4577
|
+
##
|
4578
|
+
# Gets a table data profile.
|
4579
|
+
#
|
4580
|
+
# @overload get_table_data_profile(request, options = nil)
|
4581
|
+
# Pass arguments to `get_table_data_profile` via a request object, either of type
|
4582
|
+
# {::Google::Cloud::Dlp::V2::GetTableDataProfileRequest} or an equivalent Hash.
|
4583
|
+
#
|
4584
|
+
# @param request [::Google::Cloud::Dlp::V2::GetTableDataProfileRequest, ::Hash]
|
4585
|
+
# A request object representing the call parameters. Required. To specify no
|
4586
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4587
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4588
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4589
|
+
#
|
4590
|
+
# @overload get_table_data_profile(name: nil)
|
4591
|
+
# Pass arguments to `get_table_data_profile` via keyword arguments. Note that at
|
4592
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4593
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4594
|
+
#
|
4595
|
+
# @param name [::String]
|
4596
|
+
# Required. Resource name, for example
|
4597
|
+
# `organizations/12345/locations/us/tableDataProfiles/53234423`.
|
4598
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4599
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::TableDataProfile]
|
4600
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4601
|
+
#
|
4602
|
+
# @return [::Google::Cloud::Dlp::V2::TableDataProfile]
|
4603
|
+
#
|
4604
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4605
|
+
#
|
4606
|
+
# @example Basic example
|
4607
|
+
# require "google/cloud/dlp/v2"
|
4608
|
+
#
|
4609
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4610
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4611
|
+
#
|
4612
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4613
|
+
# request = Google::Cloud::Dlp::V2::GetTableDataProfileRequest.new
|
4614
|
+
#
|
4615
|
+
# # Call the get_table_data_profile method.
|
4616
|
+
# result = client.get_table_data_profile request
|
4617
|
+
#
|
4618
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::TableDataProfile.
|
4619
|
+
# p result
|
4620
|
+
#
|
4621
|
+
def get_table_data_profile request, options = nil
|
4622
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4623
|
+
|
4624
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetTableDataProfileRequest
|
4625
|
+
|
4626
|
+
# Converts hash and nil to an options object
|
4627
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4628
|
+
|
4629
|
+
# Customize the options with defaults
|
4630
|
+
call_metadata = @config.rpcs.get_table_data_profile.metadata.to_h
|
4631
|
+
|
4632
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4633
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4634
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4635
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4636
|
+
transports_version_send: [:rest]
|
4637
|
+
|
4638
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4639
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4640
|
+
|
4641
|
+
options.apply_defaults timeout: @config.rpcs.get_table_data_profile.timeout,
|
4642
|
+
metadata: call_metadata,
|
4643
|
+
retry_policy: @config.rpcs.get_table_data_profile.retry_policy
|
4644
|
+
|
4645
|
+
options.apply_defaults timeout: @config.timeout,
|
4646
|
+
metadata: @config.metadata,
|
4647
|
+
retry_policy: @config.retry_policy
|
4648
|
+
|
4649
|
+
@dlp_service_stub.get_table_data_profile request, options do |result, operation|
|
4650
|
+
yield result, operation if block_given?
|
4651
|
+
return result
|
4652
|
+
end
|
4653
|
+
rescue ::Gapic::Rest::Error => e
|
4654
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4655
|
+
end
|
4656
|
+
|
4657
|
+
##
|
4658
|
+
# Gets a column data profile.
|
4659
|
+
#
|
4660
|
+
# @overload get_column_data_profile(request, options = nil)
|
4661
|
+
# Pass arguments to `get_column_data_profile` via a request object, either of type
|
4662
|
+
# {::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest} or an equivalent Hash.
|
4663
|
+
#
|
4664
|
+
# @param request [::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest, ::Hash]
|
4665
|
+
# A request object representing the call parameters. Required. To specify no
|
4666
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4667
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4668
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4669
|
+
#
|
4670
|
+
# @overload get_column_data_profile(name: nil)
|
4671
|
+
# Pass arguments to `get_column_data_profile` via keyword arguments. Note that at
|
4672
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4673
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4674
|
+
#
|
4675
|
+
# @param name [::String]
|
4676
|
+
# Required. Resource name, for example
|
4677
|
+
# `organizations/12345/locations/us/columnDataProfiles/53234423`.
|
4678
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4679
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
4680
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4681
|
+
#
|
4682
|
+
# @return [::Google::Cloud::Dlp::V2::ColumnDataProfile]
|
4683
|
+
#
|
4684
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4685
|
+
#
|
4686
|
+
# @example Basic example
|
4687
|
+
# require "google/cloud/dlp/v2"
|
4688
|
+
#
|
4689
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4690
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4691
|
+
#
|
4692
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4693
|
+
# request = Google::Cloud::Dlp::V2::GetColumnDataProfileRequest.new
|
4694
|
+
#
|
4695
|
+
# # Call the get_column_data_profile method.
|
4696
|
+
# result = client.get_column_data_profile request
|
4697
|
+
#
|
4698
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::ColumnDataProfile.
|
4699
|
+
# p result
|
4700
|
+
#
|
4701
|
+
def get_column_data_profile request, options = nil
|
4702
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4703
|
+
|
4704
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest
|
4705
|
+
|
4706
|
+
# Converts hash and nil to an options object
|
4707
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4708
|
+
|
4709
|
+
# Customize the options with defaults
|
4710
|
+
call_metadata = @config.rpcs.get_column_data_profile.metadata.to_h
|
4711
|
+
|
4712
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4713
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4714
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4715
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4716
|
+
transports_version_send: [:rest]
|
4717
|
+
|
4718
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4719
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4720
|
+
|
4721
|
+
options.apply_defaults timeout: @config.rpcs.get_column_data_profile.timeout,
|
4722
|
+
metadata: call_metadata,
|
4723
|
+
retry_policy: @config.rpcs.get_column_data_profile.retry_policy
|
4724
|
+
|
4725
|
+
options.apply_defaults timeout: @config.timeout,
|
4726
|
+
metadata: @config.metadata,
|
4727
|
+
retry_policy: @config.retry_policy
|
4728
|
+
|
4729
|
+
@dlp_service_stub.get_column_data_profile request, options do |result, operation|
|
4730
|
+
yield result, operation if block_given?
|
4731
|
+
return result
|
4732
|
+
end
|
4733
|
+
rescue ::Gapic::Rest::Error => e
|
4734
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4735
|
+
end
|
4736
|
+
|
4737
|
+
##
|
4738
|
+
# Delete a TableDataProfile. Will not prevent the profile from being
|
4739
|
+
# regenerated if the table is still included in a discovery configuration.
|
4740
|
+
#
|
4741
|
+
# @overload delete_table_data_profile(request, options = nil)
|
4742
|
+
# Pass arguments to `delete_table_data_profile` via a request object, either of type
|
4743
|
+
# {::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest} or an equivalent Hash.
|
4744
|
+
#
|
4745
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest, ::Hash]
|
4746
|
+
# A request object representing the call parameters. Required. To specify no
|
4747
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4748
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4749
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4750
|
+
#
|
4751
|
+
# @overload delete_table_data_profile(name: nil)
|
4752
|
+
# Pass arguments to `delete_table_data_profile` via keyword arguments. Note that at
|
4753
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4754
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4755
|
+
#
|
4756
|
+
# @param name [::String]
|
4757
|
+
# Required. Resource name of the table data profile.
|
4758
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4759
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
4760
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4761
|
+
#
|
4762
|
+
# @return [::Google::Protobuf::Empty]
|
4763
|
+
#
|
4764
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4765
|
+
#
|
4766
|
+
# @example Basic example
|
4767
|
+
# require "google/cloud/dlp/v2"
|
4768
|
+
#
|
4769
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4770
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4771
|
+
#
|
4772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4773
|
+
# request = Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest.new
|
4774
|
+
#
|
4775
|
+
# # Call the delete_table_data_profile method.
|
4776
|
+
# result = client.delete_table_data_profile request
|
4777
|
+
#
|
4778
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4779
|
+
# p result
|
4780
|
+
#
|
4781
|
+
def delete_table_data_profile request, options = nil
|
4782
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4783
|
+
|
4784
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteTableDataProfileRequest
|
4785
|
+
|
4786
|
+
# Converts hash and nil to an options object
|
4787
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4788
|
+
|
4789
|
+
# Customize the options with defaults
|
4790
|
+
call_metadata = @config.rpcs.delete_table_data_profile.metadata.to_h
|
4791
|
+
|
4792
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4793
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4794
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4795
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4796
|
+
transports_version_send: [:rest]
|
4797
|
+
|
4798
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4799
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4800
|
+
|
4801
|
+
options.apply_defaults timeout: @config.rpcs.delete_table_data_profile.timeout,
|
4802
|
+
metadata: call_metadata,
|
4803
|
+
retry_policy: @config.rpcs.delete_table_data_profile.retry_policy
|
4804
|
+
|
4805
|
+
options.apply_defaults timeout: @config.timeout,
|
4806
|
+
metadata: @config.metadata,
|
4807
|
+
retry_policy: @config.retry_policy
|
4808
|
+
|
4809
|
+
@dlp_service_stub.delete_table_data_profile request, options do |result, operation|
|
4810
|
+
yield result, operation if block_given?
|
4811
|
+
return result
|
4812
|
+
end
|
4813
|
+
rescue ::Gapic::Rest::Error => e
|
4814
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4815
|
+
end
|
4816
|
+
|
4817
|
+
##
|
4818
|
+
# Inspect hybrid content and store findings to a job.
|
4819
|
+
# To review the findings, inspect the job. Inspection will occur
|
4820
|
+
# asynchronously.
|
4821
|
+
#
|
4822
|
+
# @overload hybrid_inspect_dlp_job(request, options = nil)
|
4823
|
+
# Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
|
4824
|
+
# {::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
|
4825
|
+
#
|
4826
|
+
# @param request [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Hash]
|
4827
|
+
# A request object representing the call parameters. Required. To specify no
|
4828
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4829
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4830
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4831
|
+
#
|
4832
|
+
# @overload hybrid_inspect_dlp_job(name: nil, hybrid_item: nil)
|
4833
|
+
# Pass arguments to `hybrid_inspect_dlp_job` via keyword arguments. Note that at
|
4834
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4835
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4836
|
+
#
|
4837
|
+
# @param name [::String]
|
4838
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for
|
4839
|
+
# example `projects/dlp-test-project/dlpJob/53234423`.
|
4840
|
+
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
4841
|
+
# The item to inspect.
|
4842
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4843
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::HybridInspectResponse]
|
4844
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4845
|
+
#
|
4846
|
+
# @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
|
4847
|
+
#
|
4848
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4849
|
+
#
|
4850
|
+
# @example Basic example
|
4851
|
+
# require "google/cloud/dlp/v2"
|
4852
|
+
#
|
4853
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4854
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4855
|
+
#
|
4856
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4857
|
+
# request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
|
4858
|
+
#
|
4859
|
+
# # Call the hybrid_inspect_dlp_job method.
|
4860
|
+
# result = client.hybrid_inspect_dlp_job request
|
4861
|
+
#
|
4862
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
|
4863
|
+
# p result
|
4864
|
+
#
|
4865
|
+
def hybrid_inspect_dlp_job request, options = nil
|
4866
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4867
|
+
|
4868
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
|
4869
|
+
|
4870
|
+
# Converts hash and nil to an options object
|
4871
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4872
|
+
|
4873
|
+
# Customize the options with defaults
|
4874
|
+
call_metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
|
4875
|
+
|
4876
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4877
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4878
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4879
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4880
|
+
transports_version_send: [:rest]
|
4881
|
+
|
4882
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4883
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4884
|
+
|
4885
|
+
options.apply_defaults timeout: @config.rpcs.hybrid_inspect_dlp_job.timeout,
|
4886
|
+
metadata: call_metadata,
|
4887
|
+
retry_policy: @config.rpcs.hybrid_inspect_dlp_job.retry_policy
|
4888
|
+
|
4889
|
+
options.apply_defaults timeout: @config.timeout,
|
4890
|
+
metadata: @config.metadata,
|
4891
|
+
retry_policy: @config.retry_policy
|
4892
|
+
|
4893
|
+
@dlp_service_stub.hybrid_inspect_dlp_job request, options do |result, operation|
|
4894
|
+
yield result, operation if block_given?
|
4895
|
+
return result
|
4896
|
+
end
|
4897
|
+
rescue ::Gapic::Rest::Error => e
|
4898
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4899
|
+
end
|
4900
|
+
|
4901
|
+
##
|
4902
|
+
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
4903
|
+
# of any enabled actions that have not yet run.
|
4904
|
+
#
|
4905
|
+
# @overload finish_dlp_job(request, options = nil)
|
4906
|
+
# Pass arguments to `finish_dlp_job` via a request object, either of type
|
4907
|
+
# {::Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
|
4908
|
+
#
|
4909
|
+
# @param request [::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Hash]
|
4910
|
+
# A request object representing the call parameters. Required. To specify no
|
4911
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4912
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4913
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4914
|
+
#
|
4915
|
+
# @overload finish_dlp_job(name: nil)
|
4916
|
+
# Pass arguments to `finish_dlp_job` via keyword arguments. Note that at
|
4917
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4918
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4919
|
+
#
|
4920
|
+
# @param name [::String]
|
4921
|
+
# Required. The name of the DlpJob resource to be finished.
|
4922
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4923
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
4924
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4925
|
+
#
|
4926
|
+
# @return [::Google::Protobuf::Empty]
|
4927
|
+
#
|
4928
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4929
|
+
#
|
4930
|
+
# @example Basic example
|
4931
|
+
# require "google/cloud/dlp/v2"
|
4932
|
+
#
|
4933
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4934
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
4935
|
+
#
|
4936
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4937
|
+
# request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
|
4938
|
+
#
|
4939
|
+
# # Call the finish_dlp_job method.
|
4940
|
+
# result = client.finish_dlp_job request
|
4941
|
+
#
|
4942
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4943
|
+
# p result
|
4944
|
+
#
|
4945
|
+
def finish_dlp_job request, options = nil
|
4946
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4947
|
+
|
4948
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::FinishDlpJobRequest
|
4949
|
+
|
4950
|
+
# Converts hash and nil to an options object
|
4951
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4952
|
+
|
4953
|
+
# Customize the options with defaults
|
4954
|
+
call_metadata = @config.rpcs.finish_dlp_job.metadata.to_h
|
4955
|
+
|
4956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4957
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4958
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4959
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
4960
|
+
transports_version_send: [:rest]
|
4961
|
+
|
4962
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4963
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4964
|
+
|
4965
|
+
options.apply_defaults timeout: @config.rpcs.finish_dlp_job.timeout,
|
4966
|
+
metadata: call_metadata,
|
4967
|
+
retry_policy: @config.rpcs.finish_dlp_job.retry_policy
|
4968
|
+
|
4969
|
+
options.apply_defaults timeout: @config.timeout,
|
4970
|
+
metadata: @config.metadata,
|
4971
|
+
retry_policy: @config.retry_policy
|
4972
|
+
|
4973
|
+
@dlp_service_stub.finish_dlp_job request, options do |result, operation|
|
4974
|
+
yield result, operation if block_given?
|
4975
|
+
return result
|
4976
|
+
end
|
4977
|
+
rescue ::Gapic::Rest::Error => e
|
4978
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4979
|
+
end
|
4980
|
+
|
4981
|
+
##
|
4982
|
+
# Create a Connection to an external data source.
|
4983
|
+
#
|
4984
|
+
# @overload create_connection(request, options = nil)
|
4985
|
+
# Pass arguments to `create_connection` via a request object, either of type
|
4986
|
+
# {::Google::Cloud::Dlp::V2::CreateConnectionRequest} or an equivalent Hash.
|
4987
|
+
#
|
4988
|
+
# @param request [::Google::Cloud::Dlp::V2::CreateConnectionRequest, ::Hash]
|
4989
|
+
# A request object representing the call parameters. Required. To specify no
|
4990
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4991
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4992
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4993
|
+
#
|
4994
|
+
# @overload create_connection(parent: nil, connection: nil)
|
4995
|
+
# Pass arguments to `create_connection` via keyword arguments. Note that at
|
4996
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4997
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4998
|
+
#
|
4999
|
+
# @param parent [::String]
|
5000
|
+
# Required. Parent resource name in the format:
|
5001
|
+
# `projects/{project}/locations/{location}`.
|
5002
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5003
|
+
# Required. The connection resource.
|
5004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5005
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5007
|
+
#
|
5008
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5009
|
+
#
|
5010
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5011
|
+
#
|
5012
|
+
# @example Basic example
|
5013
|
+
# require "google/cloud/dlp/v2"
|
5014
|
+
#
|
5015
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5016
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5017
|
+
#
|
5018
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5019
|
+
# request = Google::Cloud::Dlp::V2::CreateConnectionRequest.new
|
5020
|
+
#
|
5021
|
+
# # Call the create_connection method.
|
5022
|
+
# result = client.create_connection request
|
5023
|
+
#
|
5024
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5025
|
+
# p result
|
5026
|
+
#
|
5027
|
+
def create_connection request, options = nil
|
5028
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5029
|
+
|
5030
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateConnectionRequest
|
5031
|
+
|
5032
|
+
# Converts hash and nil to an options object
|
5033
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5034
|
+
|
5035
|
+
# Customize the options with defaults
|
5036
|
+
call_metadata = @config.rpcs.create_connection.metadata.to_h
|
5037
|
+
|
5038
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5039
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5040
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5041
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5042
|
+
transports_version_send: [:rest]
|
5043
|
+
|
5044
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5045
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5046
|
+
|
5047
|
+
options.apply_defaults timeout: @config.rpcs.create_connection.timeout,
|
5048
|
+
metadata: call_metadata,
|
5049
|
+
retry_policy: @config.rpcs.create_connection.retry_policy
|
5050
|
+
|
5051
|
+
options.apply_defaults timeout: @config.timeout,
|
5052
|
+
metadata: @config.metadata,
|
5053
|
+
retry_policy: @config.retry_policy
|
5054
|
+
|
5055
|
+
@dlp_service_stub.create_connection request, options do |result, operation|
|
5056
|
+
yield result, operation if block_given?
|
5057
|
+
return result
|
5058
|
+
end
|
5059
|
+
rescue ::Gapic::Rest::Error => e
|
5060
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5061
|
+
end
|
5062
|
+
|
5063
|
+
##
|
5064
|
+
# Get a Connection by name.
|
5065
|
+
#
|
5066
|
+
# @overload get_connection(request, options = nil)
|
5067
|
+
# Pass arguments to `get_connection` via a request object, either of type
|
5068
|
+
# {::Google::Cloud::Dlp::V2::GetConnectionRequest} or an equivalent Hash.
|
5069
|
+
#
|
5070
|
+
# @param request [::Google::Cloud::Dlp::V2::GetConnectionRequest, ::Hash]
|
5071
|
+
# A request object representing the call parameters. Required. To specify no
|
5072
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5073
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5074
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5075
|
+
#
|
5076
|
+
# @overload get_connection(name: nil)
|
5077
|
+
# Pass arguments to `get_connection` via keyword arguments. Note that at
|
5078
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5079
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5080
|
+
#
|
5081
|
+
# @param name [::String]
|
5082
|
+
# Required. Resource name in the format:
|
5083
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5085
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5087
|
+
#
|
5088
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5089
|
+
#
|
5090
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5091
|
+
#
|
5092
|
+
# @example Basic example
|
5093
|
+
# require "google/cloud/dlp/v2"
|
5094
|
+
#
|
5095
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5096
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5097
|
+
#
|
5098
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5099
|
+
# request = Google::Cloud::Dlp::V2::GetConnectionRequest.new
|
5100
|
+
#
|
5101
|
+
# # Call the get_connection method.
|
5102
|
+
# result = client.get_connection request
|
5103
|
+
#
|
5104
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5105
|
+
# p result
|
5106
|
+
#
|
5107
|
+
def get_connection request, options = nil
|
5108
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5109
|
+
|
5110
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetConnectionRequest
|
5111
|
+
|
5112
|
+
# Converts hash and nil to an options object
|
5113
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5114
|
+
|
5115
|
+
# Customize the options with defaults
|
5116
|
+
call_metadata = @config.rpcs.get_connection.metadata.to_h
|
5117
|
+
|
5118
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5119
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5120
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5121
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5122
|
+
transports_version_send: [:rest]
|
5123
|
+
|
5124
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5125
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5126
|
+
|
5127
|
+
options.apply_defaults timeout: @config.rpcs.get_connection.timeout,
|
5128
|
+
metadata: call_metadata,
|
5129
|
+
retry_policy: @config.rpcs.get_connection.retry_policy
|
5130
|
+
|
5131
|
+
options.apply_defaults timeout: @config.timeout,
|
5132
|
+
metadata: @config.metadata,
|
5133
|
+
retry_policy: @config.retry_policy
|
5134
|
+
|
5135
|
+
@dlp_service_stub.get_connection request, options do |result, operation|
|
5136
|
+
yield result, operation if block_given?
|
5137
|
+
return result
|
5138
|
+
end
|
5139
|
+
rescue ::Gapic::Rest::Error => e
|
5140
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5141
|
+
end
|
5142
|
+
|
5143
|
+
##
|
5144
|
+
# Lists Connections in a parent.
|
5145
|
+
#
|
5146
|
+
# @overload list_connections(request, options = nil)
|
5147
|
+
# Pass arguments to `list_connections` via a request object, either of type
|
5148
|
+
# {::Google::Cloud::Dlp::V2::ListConnectionsRequest} or an equivalent Hash.
|
5149
|
+
#
|
5150
|
+
# @param request [::Google::Cloud::Dlp::V2::ListConnectionsRequest, ::Hash]
|
5151
|
+
# A request object representing the call parameters. Required. To specify no
|
5152
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5153
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5154
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5155
|
+
#
|
5156
|
+
# @overload list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5157
|
+
# Pass arguments to `list_connections` via keyword arguments. Note that at
|
5158
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5159
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5160
|
+
#
|
5161
|
+
# @param parent [::String]
|
5162
|
+
# Required. Parent name, for example:
|
5163
|
+
# `projects/project-id/locations/global`.
|
5164
|
+
# @param page_size [::Integer]
|
5165
|
+
# Optional. Number of results per page, max 1000.
|
5166
|
+
# @param page_token [::String]
|
5167
|
+
# Optional. Page token from a previous page to return the next set of
|
5168
|
+
# results. If set, all other request fields must match the original request.
|
5169
|
+
# @param filter [::String]
|
5170
|
+
# Optional. * Supported fields/values
|
5171
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
5172
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5173
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5174
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5175
|
+
#
|
5176
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5177
|
+
#
|
5178
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5179
|
+
#
|
5180
|
+
# @example Basic example
|
5181
|
+
# require "google/cloud/dlp/v2"
|
5182
|
+
#
|
5183
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5184
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5185
|
+
#
|
5186
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5187
|
+
# request = Google::Cloud::Dlp::V2::ListConnectionsRequest.new
|
5188
|
+
#
|
5189
|
+
# # Call the list_connections method.
|
5190
|
+
# result = client.list_connections request
|
5191
|
+
#
|
5192
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5193
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5194
|
+
# result.each do |item|
|
5195
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5196
|
+
# p item
|
5197
|
+
# end
|
5198
|
+
#
|
5199
|
+
def list_connections request, options = nil
|
5200
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5201
|
+
|
5202
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListConnectionsRequest
|
5203
|
+
|
5204
|
+
# Converts hash and nil to an options object
|
5205
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5206
|
+
|
5207
|
+
# Customize the options with defaults
|
5208
|
+
call_metadata = @config.rpcs.list_connections.metadata.to_h
|
5209
|
+
|
5210
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5211
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5212
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5213
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5214
|
+
transports_version_send: [:rest]
|
5215
|
+
|
5216
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5217
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5218
|
+
|
5219
|
+
options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
|
5220
|
+
metadata: call_metadata,
|
5221
|
+
retry_policy: @config.rpcs.list_connections.retry_policy
|
5222
|
+
|
5223
|
+
options.apply_defaults timeout: @config.timeout,
|
5224
|
+
metadata: @config.metadata,
|
5225
|
+
retry_policy: @config.retry_policy
|
5226
|
+
|
5227
|
+
@dlp_service_stub.list_connections request, options do |result, operation|
|
5228
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_connections, "connections", request, result, options
|
5229
|
+
yield result, operation if block_given?
|
5230
|
+
return result
|
5231
|
+
end
|
5232
|
+
rescue ::Gapic::Rest::Error => e
|
5233
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5234
|
+
end
|
5235
|
+
|
5236
|
+
##
|
5237
|
+
# Searches for Connections in a parent.
|
5238
|
+
#
|
5239
|
+
# @overload search_connections(request, options = nil)
|
5240
|
+
# Pass arguments to `search_connections` via a request object, either of type
|
5241
|
+
# {::Google::Cloud::Dlp::V2::SearchConnectionsRequest} or an equivalent Hash.
|
5242
|
+
#
|
5243
|
+
# @param request [::Google::Cloud::Dlp::V2::SearchConnectionsRequest, ::Hash]
|
5244
|
+
# A request object representing the call parameters. Required. To specify no
|
5245
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5246
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5247
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5248
|
+
#
|
5249
|
+
# @overload search_connections(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
5250
|
+
# Pass arguments to `search_connections` via keyword arguments. Note that at
|
5251
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5252
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5253
|
+
#
|
5254
|
+
# @param parent [::String]
|
5255
|
+
# Required. Parent name, typically an organization, without location.
|
5256
|
+
# For example: `organizations/12345678`.
|
5257
|
+
# @param page_size [::Integer]
|
5258
|
+
# Optional. Number of results per page, max 1000.
|
5259
|
+
# @param page_token [::String]
|
5260
|
+
# Optional. Page token from a previous page to return the next set of
|
5261
|
+
# results. If set, all other request fields must match the original request.
|
5262
|
+
# @param filter [::String]
|
5263
|
+
# Optional. * Supported fields/values
|
5264
|
+
# - `state` - MISSING|AVAILABLE|ERROR
|
5265
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5266
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5267
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5268
|
+
#
|
5269
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dlp::V2::Connection>]
|
5270
|
+
#
|
5271
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5272
|
+
#
|
5273
|
+
# @example Basic example
|
5274
|
+
# require "google/cloud/dlp/v2"
|
5275
|
+
#
|
5276
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5277
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5278
|
+
#
|
5279
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5280
|
+
# request = Google::Cloud::Dlp::V2::SearchConnectionsRequest.new
|
5281
|
+
#
|
5282
|
+
# # Call the search_connections method.
|
5283
|
+
# result = client.search_connections request
|
5284
|
+
#
|
5285
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5286
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5287
|
+
# result.each do |item|
|
5288
|
+
# # Each element is of type ::Google::Cloud::Dlp::V2::Connection.
|
5289
|
+
# p item
|
5290
|
+
# end
|
5291
|
+
#
|
5292
|
+
def search_connections request, options = nil
|
5293
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5294
|
+
|
5295
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::SearchConnectionsRequest
|
5296
|
+
|
5297
|
+
# Converts hash and nil to an options object
|
5298
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5299
|
+
|
5300
|
+
# Customize the options with defaults
|
5301
|
+
call_metadata = @config.rpcs.search_connections.metadata.to_h
|
5302
|
+
|
5303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5304
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5305
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5306
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5307
|
+
transports_version_send: [:rest]
|
5308
|
+
|
5309
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5310
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5311
|
+
|
5312
|
+
options.apply_defaults timeout: @config.rpcs.search_connections.timeout,
|
5313
|
+
metadata: call_metadata,
|
5314
|
+
retry_policy: @config.rpcs.search_connections.retry_policy
|
5315
|
+
|
5316
|
+
options.apply_defaults timeout: @config.timeout,
|
5317
|
+
metadata: @config.metadata,
|
5318
|
+
retry_policy: @config.retry_policy
|
5319
|
+
|
5320
|
+
@dlp_service_stub.search_connections request, options do |result, operation|
|
5321
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :search_connections, "connections", request, result, options
|
5322
|
+
yield result, operation if block_given?
|
5323
|
+
return result
|
5324
|
+
end
|
5325
|
+
rescue ::Gapic::Rest::Error => e
|
5326
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5327
|
+
end
|
5328
|
+
|
5329
|
+
##
|
5330
|
+
# Delete a Connection.
|
5331
|
+
#
|
5332
|
+
# @overload delete_connection(request, options = nil)
|
5333
|
+
# Pass arguments to `delete_connection` via a request object, either of type
|
5334
|
+
# {::Google::Cloud::Dlp::V2::DeleteConnectionRequest} or an equivalent Hash.
|
5335
|
+
#
|
5336
|
+
# @param request [::Google::Cloud::Dlp::V2::DeleteConnectionRequest, ::Hash]
|
5337
|
+
# A request object representing the call parameters. Required. To specify no
|
5338
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5339
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5340
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5341
|
+
#
|
5342
|
+
# @overload delete_connection(name: nil)
|
5343
|
+
# Pass arguments to `delete_connection` via keyword arguments. Note that at
|
5344
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5345
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5346
|
+
#
|
5347
|
+
# @param name [::String]
|
5348
|
+
# Required. Resource name of the Connection to be deleted, in the format:
|
5349
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5350
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5351
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
5352
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5353
|
+
#
|
5354
|
+
# @return [::Google::Protobuf::Empty]
|
5355
|
+
#
|
5356
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5357
|
+
#
|
5358
|
+
# @example Basic example
|
5359
|
+
# require "google/cloud/dlp/v2"
|
5360
|
+
#
|
5361
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5362
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5363
|
+
#
|
5364
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5365
|
+
# request = Google::Cloud::Dlp::V2::DeleteConnectionRequest.new
|
5366
|
+
#
|
5367
|
+
# # Call the delete_connection method.
|
5368
|
+
# result = client.delete_connection request
|
5369
|
+
#
|
5370
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5371
|
+
# p result
|
5372
|
+
#
|
5373
|
+
def delete_connection request, options = nil
|
5374
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5375
|
+
|
5376
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteConnectionRequest
|
5377
|
+
|
5378
|
+
# Converts hash and nil to an options object
|
5379
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5380
|
+
|
5381
|
+
# Customize the options with defaults
|
5382
|
+
call_metadata = @config.rpcs.delete_connection.metadata.to_h
|
5383
|
+
|
5384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5385
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5386
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5387
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5388
|
+
transports_version_send: [:rest]
|
5389
|
+
|
5390
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5391
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5392
|
+
|
5393
|
+
options.apply_defaults timeout: @config.rpcs.delete_connection.timeout,
|
5394
|
+
metadata: call_metadata,
|
5395
|
+
retry_policy: @config.rpcs.delete_connection.retry_policy
|
5396
|
+
|
5397
|
+
options.apply_defaults timeout: @config.timeout,
|
5398
|
+
metadata: @config.metadata,
|
5399
|
+
retry_policy: @config.retry_policy
|
5400
|
+
|
5401
|
+
@dlp_service_stub.delete_connection request, options do |result, operation|
|
5402
|
+
yield result, operation if block_given?
|
5403
|
+
return result
|
5404
|
+
end
|
5405
|
+
rescue ::Gapic::Rest::Error => e
|
5406
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5407
|
+
end
|
5408
|
+
|
5409
|
+
##
|
5410
|
+
# Update a Connection.
|
5411
|
+
#
|
5412
|
+
# @overload update_connection(request, options = nil)
|
5413
|
+
# Pass arguments to `update_connection` via a request object, either of type
|
5414
|
+
# {::Google::Cloud::Dlp::V2::UpdateConnectionRequest} or an equivalent Hash.
|
5415
|
+
#
|
5416
|
+
# @param request [::Google::Cloud::Dlp::V2::UpdateConnectionRequest, ::Hash]
|
5417
|
+
# A request object representing the call parameters. Required. To specify no
|
5418
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5419
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5420
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
5421
|
+
#
|
5422
|
+
# @overload update_connection(name: nil, connection: nil, update_mask: nil)
|
5423
|
+
# Pass arguments to `update_connection` via keyword arguments. Note that at
|
5424
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5425
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5426
|
+
#
|
5427
|
+
# @param name [::String]
|
5428
|
+
# Required. Resource name in the format:
|
5429
|
+
# `projects/{project}/locations/{location}/connections/{connection}`.
|
5430
|
+
# @param connection [::Google::Cloud::Dlp::V2::Connection, ::Hash]
|
5431
|
+
# Required. The connection with new values for the relevant fields.
|
5432
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5433
|
+
# Optional. Mask to control which fields get updated.
|
5434
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
5435
|
+
# @yieldparam result [::Google::Cloud::Dlp::V2::Connection]
|
5436
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
5437
|
+
#
|
5438
|
+
# @return [::Google::Cloud::Dlp::V2::Connection]
|
5439
|
+
#
|
5440
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
5441
|
+
#
|
5442
|
+
# @example Basic example
|
5443
|
+
# require "google/cloud/dlp/v2"
|
5444
|
+
#
|
5445
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5446
|
+
# client = Google::Cloud::Dlp::V2::DlpService::Rest::Client.new
|
5447
|
+
#
|
5448
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5449
|
+
# request = Google::Cloud::Dlp::V2::UpdateConnectionRequest.new
|
5450
|
+
#
|
5451
|
+
# # Call the update_connection method.
|
5452
|
+
# result = client.update_connection request
|
5453
|
+
#
|
5454
|
+
# # The returned object is of type Google::Cloud::Dlp::V2::Connection.
|
5455
|
+
# p result
|
5456
|
+
#
|
5457
|
+
def update_connection request, options = nil
|
5458
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5459
|
+
|
5460
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateConnectionRequest
|
5461
|
+
|
5462
|
+
# Converts hash and nil to an options object
|
5463
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5464
|
+
|
5465
|
+
# Customize the options with defaults
|
5466
|
+
call_metadata = @config.rpcs.update_connection.metadata.to_h
|
5467
|
+
|
5468
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5469
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5470
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5471
|
+
gapic_version: ::Google::Cloud::Dlp::V2::VERSION,
|
5472
|
+
transports_version_send: [:rest]
|
5473
|
+
|
5474
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5475
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5476
|
+
|
5477
|
+
options.apply_defaults timeout: @config.rpcs.update_connection.timeout,
|
5478
|
+
metadata: call_metadata,
|
5479
|
+
retry_policy: @config.rpcs.update_connection.retry_policy
|
5480
|
+
|
5481
|
+
options.apply_defaults timeout: @config.timeout,
|
5482
|
+
metadata: @config.metadata,
|
5483
|
+
retry_policy: @config.retry_policy
|
5484
|
+
|
5485
|
+
@dlp_service_stub.update_connection request, options do |result, operation|
|
5486
|
+
yield result, operation if block_given?
|
5487
|
+
return result
|
5488
|
+
end
|
5489
|
+
rescue ::Gapic::Rest::Error => e
|
5490
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5491
|
+
end
|
5492
|
+
|
5493
|
+
##
|
5494
|
+
# Configuration class for the DlpService REST API.
|
5495
|
+
#
|
5496
|
+
# This class represents the configuration for DlpService REST,
|
5497
|
+
# providing control over timeouts, retry behavior, logging, transport
|
5498
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
5499
|
+
# applied individually to specific RPCs. See
|
5500
|
+
# {::Google::Cloud::Dlp::V2::DlpService::Rest::Client::Configuration::Rpcs}
|
5501
|
+
# for a list of RPCs that can be configured independently.
|
5502
|
+
#
|
5503
|
+
# Configuration can be applied globally to all clients, or to a single client
|
5504
|
+
# on construction.
|
5505
|
+
#
|
5506
|
+
# @example
|
5507
|
+
#
|
5508
|
+
# # Modify the global config, setting the timeout for
|
5509
|
+
# # inspect_content to 20 seconds,
|
5510
|
+
# # and all remaining timeouts to 10 seconds.
|
5511
|
+
# ::Google::Cloud::Dlp::V2::DlpService::Rest::Client.configure do |config|
|
5512
|
+
# config.timeout = 10.0
|
5513
|
+
# config.rpcs.inspect_content.timeout = 20.0
|
5514
|
+
# end
|
5515
|
+
#
|
5516
|
+
# # Apply the above configuration only to a new client.
|
5517
|
+
# client = ::Google::Cloud::Dlp::V2::DlpService::Rest::Client.new do |config|
|
5518
|
+
# config.timeout = 10.0
|
5519
|
+
# config.rpcs.inspect_content.timeout = 20.0
|
5520
|
+
# end
|
5521
|
+
#
|
5522
|
+
# @!attribute [rw] endpoint
|
5523
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
4159
5524
|
# nil, indicating to use the default endpoint in the current universe domain.
|
4160
5525
|
# @return [::String,nil]
|
4161
5526
|
# @!attribute [rw] credentials
|
@@ -4444,6 +5809,41 @@ module Google
|
|
4444
5809
|
#
|
4445
5810
|
attr_reader :delete_stored_info_type
|
4446
5811
|
##
|
5812
|
+
# RPC-specific configuration for `list_project_data_profiles`
|
5813
|
+
# @return [::Gapic::Config::Method]
|
5814
|
+
#
|
5815
|
+
attr_reader :list_project_data_profiles
|
5816
|
+
##
|
5817
|
+
# RPC-specific configuration for `list_table_data_profiles`
|
5818
|
+
# @return [::Gapic::Config::Method]
|
5819
|
+
#
|
5820
|
+
attr_reader :list_table_data_profiles
|
5821
|
+
##
|
5822
|
+
# RPC-specific configuration for `list_column_data_profiles`
|
5823
|
+
# @return [::Gapic::Config::Method]
|
5824
|
+
#
|
5825
|
+
attr_reader :list_column_data_profiles
|
5826
|
+
##
|
5827
|
+
# RPC-specific configuration for `get_project_data_profile`
|
5828
|
+
# @return [::Gapic::Config::Method]
|
5829
|
+
#
|
5830
|
+
attr_reader :get_project_data_profile
|
5831
|
+
##
|
5832
|
+
# RPC-specific configuration for `get_table_data_profile`
|
5833
|
+
# @return [::Gapic::Config::Method]
|
5834
|
+
#
|
5835
|
+
attr_reader :get_table_data_profile
|
5836
|
+
##
|
5837
|
+
# RPC-specific configuration for `get_column_data_profile`
|
5838
|
+
# @return [::Gapic::Config::Method]
|
5839
|
+
#
|
5840
|
+
attr_reader :get_column_data_profile
|
5841
|
+
##
|
5842
|
+
# RPC-specific configuration for `delete_table_data_profile`
|
5843
|
+
# @return [::Gapic::Config::Method]
|
5844
|
+
#
|
5845
|
+
attr_reader :delete_table_data_profile
|
5846
|
+
##
|
4447
5847
|
# RPC-specific configuration for `hybrid_inspect_dlp_job`
|
4448
5848
|
# @return [::Gapic::Config::Method]
|
4449
5849
|
#
|
@@ -4453,6 +5853,36 @@ module Google
|
|
4453
5853
|
# @return [::Gapic::Config::Method]
|
4454
5854
|
#
|
4455
5855
|
attr_reader :finish_dlp_job
|
5856
|
+
##
|
5857
|
+
# RPC-specific configuration for `create_connection`
|
5858
|
+
# @return [::Gapic::Config::Method]
|
5859
|
+
#
|
5860
|
+
attr_reader :create_connection
|
5861
|
+
##
|
5862
|
+
# RPC-specific configuration for `get_connection`
|
5863
|
+
# @return [::Gapic::Config::Method]
|
5864
|
+
#
|
5865
|
+
attr_reader :get_connection
|
5866
|
+
##
|
5867
|
+
# RPC-specific configuration for `list_connections`
|
5868
|
+
# @return [::Gapic::Config::Method]
|
5869
|
+
#
|
5870
|
+
attr_reader :list_connections
|
5871
|
+
##
|
5872
|
+
# RPC-specific configuration for `search_connections`
|
5873
|
+
# @return [::Gapic::Config::Method]
|
5874
|
+
#
|
5875
|
+
attr_reader :search_connections
|
5876
|
+
##
|
5877
|
+
# RPC-specific configuration for `delete_connection`
|
5878
|
+
# @return [::Gapic::Config::Method]
|
5879
|
+
#
|
5880
|
+
attr_reader :delete_connection
|
5881
|
+
##
|
5882
|
+
# RPC-specific configuration for `update_connection`
|
5883
|
+
# @return [::Gapic::Config::Method]
|
5884
|
+
#
|
5885
|
+
attr_reader :update_connection
|
4456
5886
|
|
4457
5887
|
# @private
|
4458
5888
|
def initialize parent_rpcs = nil
|
@@ -4530,10 +5960,36 @@ module Google
|
|
4530
5960
|
@list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
|
4531
5961
|
delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type
|
4532
5962
|
@delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
|
5963
|
+
list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles
|
5964
|
+
@list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config
|
5965
|
+
list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles
|
5966
|
+
@list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config
|
5967
|
+
list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles
|
5968
|
+
@list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config
|
5969
|
+
get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile
|
5970
|
+
@get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config
|
5971
|
+
get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile
|
5972
|
+
@get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
|
5973
|
+
get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile
|
5974
|
+
@get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config
|
5975
|
+
delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile
|
5976
|
+
@delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config
|
4533
5977
|
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
4534
5978
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
4535
5979
|
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
4536
5980
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
5981
|
+
create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection
|
5982
|
+
@create_connection = ::Gapic::Config::Method.new create_connection_config
|
5983
|
+
get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection
|
5984
|
+
@get_connection = ::Gapic::Config::Method.new get_connection_config
|
5985
|
+
list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections
|
5986
|
+
@list_connections = ::Gapic::Config::Method.new list_connections_config
|
5987
|
+
search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections
|
5988
|
+
@search_connections = ::Gapic::Config::Method.new search_connections_config
|
5989
|
+
delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection
|
5990
|
+
@delete_connection = ::Gapic::Config::Method.new delete_connection_config
|
5991
|
+
update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection
|
5992
|
+
@update_connection = ::Gapic::Config::Method.new update_connection_config
|
4537
5993
|
|
4538
5994
|
yield self if block_given?
|
4539
5995
|
end
|