google-cloud-dlp 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service_client.rb +121 -42
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb +134 -56
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb +13 -8
- data/lib/google/cloud/dlp/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +21 -0
- data/lib/google/privacy/dlp/v2/storage_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56ff3ceea747a959f8ad69280ac6a57b2eb49117b0adbc69ebda590e7da5866c
|
4
|
+
data.tar.gz: 357c844cbd49b0f25c25d0a9c488cda24a6a709565495bb27ff6ce6a25cac2f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35df745b1090610c2f5890e046b1a7c83b1c30d0c0850ce2b2c8fbc9616b527a9fc09e86d0102ff08957cdd93b26d03869e95528be7da4c78cb47721384df53a
|
7
|
+
data.tar.gz: 5006cdd93665096ebda209c8e46864586f7b4dcf33b0c356c54769412e33809a3016d25d0966499999db6e9e1bfa316f4767c3b931609789cfab1856b1523413
|
@@ -402,7 +402,10 @@ module Google
|
|
402
402
|
@list_info_types = Google::Gax.create_api_call(
|
403
403
|
@dlp_service_stub.method(:list_info_types),
|
404
404
|
defaults["list_info_types"],
|
405
|
-
exception_transformer: exception_transformer
|
405
|
+
exception_transformer: exception_transformer,
|
406
|
+
params_extractor: proc do |request|
|
407
|
+
{'location_id' => request.location_id}
|
408
|
+
end
|
406
409
|
)
|
407
410
|
@create_inspect_template = Google::Gax.create_api_call(
|
408
411
|
@dlp_service_stub.method(:create_inspect_template),
|
@@ -635,6 +638,9 @@ module Google
|
|
635
638
|
# that are set in this request will replace their corresponding fields in the
|
636
639
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
637
640
|
# are recursively merged.
|
641
|
+
# @param location_id [String]
|
642
|
+
# The geographic location to process content inspection. Reserved for future
|
643
|
+
# extensions.
|
638
644
|
# @param options [Google::Gax::CallOptions]
|
639
645
|
# Overrides the default settings for this call, e.g, timeout,
|
640
646
|
# retries, etc.
|
@@ -655,13 +661,15 @@ module Google
|
|
655
661
|
inspect_config: nil,
|
656
662
|
item: nil,
|
657
663
|
inspect_template_name: nil,
|
664
|
+
location_id: nil,
|
658
665
|
options: nil,
|
659
666
|
&block
|
660
667
|
req = {
|
661
668
|
parent: parent,
|
662
669
|
inspect_config: inspect_config,
|
663
670
|
item: item,
|
664
|
-
inspect_template_name: inspect_template_name
|
671
|
+
inspect_template_name: inspect_template_name,
|
672
|
+
location_id: location_id
|
665
673
|
}.delete_if { |_, v| v.nil? }
|
666
674
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::InspectContentRequest)
|
667
675
|
@inspect_content.call(req, options, &block)
|
@@ -678,6 +686,9 @@ module Google
|
|
678
686
|
#
|
679
687
|
# @param parent [String]
|
680
688
|
# The parent resource name, for example projects/my-project-id.
|
689
|
+
# @param location_id [String]
|
690
|
+
# The geographic location to process the request. Reserved for future
|
691
|
+
# extensions.
|
681
692
|
# @param inspect_config [Google::Privacy::Dlp::V2::InspectConfig | Hash]
|
682
693
|
# Configuration for the inspector.
|
683
694
|
# A hash of the same form as `Google::Privacy::Dlp::V2::InspectConfig`
|
@@ -710,6 +721,7 @@ module Google
|
|
710
721
|
|
711
722
|
def redact_image \
|
712
723
|
parent,
|
724
|
+
location_id: nil,
|
713
725
|
inspect_config: nil,
|
714
726
|
image_redaction_configs: nil,
|
715
727
|
include_findings: nil,
|
@@ -718,6 +730,7 @@ module Google
|
|
718
730
|
&block
|
719
731
|
req = {
|
720
732
|
parent: parent,
|
733
|
+
location_id: location_id,
|
721
734
|
inspect_config: inspect_config,
|
722
735
|
image_redaction_configs: image_redaction_configs,
|
723
736
|
include_findings: include_findings,
|
@@ -766,6 +779,9 @@ module Google
|
|
766
779
|
# that are set in this request will replace their corresponding fields in the
|
767
780
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
768
781
|
# are recursively merged.
|
782
|
+
# @param location_id [String]
|
783
|
+
# The geographic location to process de-identification. Reserved for future
|
784
|
+
# extensions.
|
769
785
|
# @param options [Google::Gax::CallOptions]
|
770
786
|
# Overrides the default settings for this call, e.g, timeout,
|
771
787
|
# retries, etc.
|
@@ -788,6 +804,7 @@ module Google
|
|
788
804
|
item: nil,
|
789
805
|
inspect_template_name: nil,
|
790
806
|
deidentify_template_name: nil,
|
807
|
+
location_id: nil,
|
791
808
|
options: nil,
|
792
809
|
&block
|
793
810
|
req = {
|
@@ -796,7 +813,8 @@ module Google
|
|
796
813
|
inspect_config: inspect_config,
|
797
814
|
item: item,
|
798
815
|
inspect_template_name: inspect_template_name,
|
799
|
-
deidentify_template_name: deidentify_template_name
|
816
|
+
deidentify_template_name: deidentify_template_name,
|
817
|
+
location_id: location_id
|
800
818
|
}.delete_if { |_, v| v.nil? }
|
801
819
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::DeidentifyContentRequest)
|
802
820
|
@deidentify_content.call(req, options, &block)
|
@@ -808,7 +826,7 @@ module Google
|
|
808
826
|
# to learn more.
|
809
827
|
#
|
810
828
|
# @param parent [String]
|
811
|
-
# The parent resource name.
|
829
|
+
# Required. The parent resource name.
|
812
830
|
# @param reidentify_config [Google::Privacy::Dlp::V2::DeidentifyConfig | Hash]
|
813
831
|
# Configuration for the re-identification of the content item.
|
814
832
|
# This field shares the same proto message type that is used for
|
@@ -818,7 +836,8 @@ module Google
|
|
818
836
|
# reverse. This requires that only reversible transformations
|
819
837
|
# be provided here. The reversible transformations are:
|
820
838
|
#
|
821
|
-
# * `
|
839
|
+
# * `CryptoDeterministicConfig`
|
840
|
+
# * `CryptoReplaceFfxFpeConfig`
|
822
841
|
# A hash of the same form as `Google::Privacy::Dlp::V2::DeidentifyConfig`
|
823
842
|
# can also be provided.
|
824
843
|
# @param inspect_config [Google::Privacy::Dlp::V2::InspectConfig | Hash]
|
@@ -842,6 +861,9 @@ module Google
|
|
842
861
|
# that are set in this request will replace their corresponding fields in the
|
843
862
|
# template. Repeated fields are appended. Singular sub-messages and groups
|
844
863
|
# are recursively merged.
|
864
|
+
# @param location_id [String]
|
865
|
+
# The geographic location to process content reidentification. Reserved for
|
866
|
+
# future extensions.
|
845
867
|
# @param options [Google::Gax::CallOptions]
|
846
868
|
# Overrides the default settings for this call, e.g, timeout,
|
847
869
|
# retries, etc.
|
@@ -864,6 +886,7 @@ module Google
|
|
864
886
|
item: nil,
|
865
887
|
inspect_template_name: nil,
|
866
888
|
reidentify_template_name: nil,
|
889
|
+
location_id: nil,
|
867
890
|
options: nil,
|
868
891
|
&block
|
869
892
|
req = {
|
@@ -872,7 +895,8 @@ module Google
|
|
872
895
|
inspect_config: inspect_config,
|
873
896
|
item: item,
|
874
897
|
inspect_template_name: inspect_template_name,
|
875
|
-
reidentify_template_name: reidentify_template_name
|
898
|
+
reidentify_template_name: reidentify_template_name,
|
899
|
+
location_id: location_id
|
876
900
|
}.delete_if { |_, v| v.nil? }
|
877
901
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ReidentifyContentRequest)
|
878
902
|
@reidentify_content.call(req, options, &block)
|
@@ -889,6 +913,9 @@ module Google
|
|
889
913
|
# @param filter [String]
|
890
914
|
# Optional filter to only return infoTypes supported by certain parts of the
|
891
915
|
# API. Defaults to supported_by=INSPECT.
|
916
|
+
# @param location_id [String]
|
917
|
+
# The geographic location to list info types. Reserved for future
|
918
|
+
# extensions.
|
892
919
|
# @param options [Google::Gax::CallOptions]
|
893
920
|
# Overrides the default settings for this call, e.g, timeout,
|
894
921
|
# retries, etc.
|
@@ -906,11 +933,13 @@ module Google
|
|
906
933
|
def list_info_types \
|
907
934
|
language_code: nil,
|
908
935
|
filter: nil,
|
936
|
+
location_id: nil,
|
909
937
|
options: nil,
|
910
938
|
&block
|
911
939
|
req = {
|
912
940
|
language_code: language_code,
|
913
|
-
filter: filter
|
941
|
+
filter: filter,
|
942
|
+
location_id: location_id
|
914
943
|
}.delete_if { |_, v| v.nil? }
|
915
944
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListInfoTypesRequest)
|
916
945
|
@list_info_types.call(req, options, &block)
|
@@ -921,7 +950,7 @@ module Google
|
|
921
950
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
922
951
|
#
|
923
952
|
# @param parent [String]
|
924
|
-
# The parent resource name, for example projects/my-project-id or
|
953
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
925
954
|
# organizations/my-org-id.
|
926
955
|
# @param inspect_template [Google::Privacy::Dlp::V2::InspectTemplate | Hash]
|
927
956
|
# The InspectTemplate to create.
|
@@ -932,6 +961,9 @@ module Google
|
|
932
961
|
# numbers, and hyphens; that is, it must match the regular
|
933
962
|
# expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
|
934
963
|
# characters. Can be empty to allow the system to generate one.
|
964
|
+
# @param location_id [String]
|
965
|
+
# The geographic location to store the inspection template. Reserved for
|
966
|
+
# future extensions.
|
935
967
|
# @param options [Google::Gax::CallOptions]
|
936
968
|
# Overrides the default settings for this call, e.g, timeout,
|
937
969
|
# retries, etc.
|
@@ -951,12 +983,14 @@ module Google
|
|
951
983
|
parent,
|
952
984
|
inspect_template: nil,
|
953
985
|
template_id: nil,
|
986
|
+
location_id: nil,
|
954
987
|
options: nil,
|
955
988
|
&block
|
956
989
|
req = {
|
957
990
|
parent: parent,
|
958
991
|
inspect_template: inspect_template,
|
959
|
-
template_id: template_id
|
992
|
+
template_id: template_id,
|
993
|
+
location_id: location_id
|
960
994
|
}.delete_if { |_, v| v.nil? }
|
961
995
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::CreateInspectTemplateRequest)
|
962
996
|
@create_inspect_template.call(req, options, &block)
|
@@ -966,7 +1000,7 @@ module Google
|
|
966
1000
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
967
1001
|
#
|
968
1002
|
# @param name [String]
|
969
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
1003
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
970
1004
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
971
1005
|
# projects/project-id/inspectTemplates/432452342.
|
972
1006
|
# @param inspect_template [Google::Privacy::Dlp::V2::InspectTemplate | Hash]
|
@@ -1011,7 +1045,7 @@ module Google
|
|
1011
1045
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1012
1046
|
#
|
1013
1047
|
# @param name [String]
|
1014
|
-
# Resource name of the organization and inspectTemplate to be read, for
|
1048
|
+
# Required. Resource name of the organization and inspectTemplate to be read, for
|
1015
1049
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
1016
1050
|
# projects/project-id/inspectTemplates/432452342.
|
1017
1051
|
# @param options [Google::Gax::CallOptions]
|
@@ -1043,7 +1077,7 @@ module Google
|
|
1043
1077
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1044
1078
|
#
|
1045
1079
|
# @param parent [String]
|
1046
|
-
# The parent resource name, for example projects/my-project-id or
|
1080
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1047
1081
|
# organizations/my-org-id.
|
1048
1082
|
# @param page_size [Integer]
|
1049
1083
|
# The maximum number of resources contained in the underlying API
|
@@ -1065,6 +1099,9 @@ module Google
|
|
1065
1099
|
# * `update_time`: corresponds to time the template was last updated.
|
1066
1100
|
# * `name`: corresponds to template's name.
|
1067
1101
|
# * `display_name`: corresponds to template's display name.
|
1102
|
+
# @param location_id [String]
|
1103
|
+
# The geographic location where inspection templates will be retrieved from.
|
1104
|
+
# Use `-` for all locations. Reserved for future extensions.
|
1068
1105
|
# @param options [Google::Gax::CallOptions]
|
1069
1106
|
# Overrides the default settings for this call, e.g, timeout,
|
1070
1107
|
# retries, etc.
|
@@ -1100,12 +1137,14 @@ module Google
|
|
1100
1137
|
parent,
|
1101
1138
|
page_size: nil,
|
1102
1139
|
order_by: nil,
|
1140
|
+
location_id: nil,
|
1103
1141
|
options: nil,
|
1104
1142
|
&block
|
1105
1143
|
req = {
|
1106
1144
|
parent: parent,
|
1107
1145
|
page_size: page_size,
|
1108
|
-
order_by: order_by
|
1146
|
+
order_by: order_by,
|
1147
|
+
location_id: location_id
|
1109
1148
|
}.delete_if { |_, v| v.nil? }
|
1110
1149
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListInspectTemplatesRequest)
|
1111
1150
|
@list_inspect_templates.call(req, options, &block)
|
@@ -1115,7 +1154,7 @@ module Google
|
|
1115
1154
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1116
1155
|
#
|
1117
1156
|
# @param name [String]
|
1118
|
-
# Resource name of the organization and inspectTemplate to be deleted, for
|
1157
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted, for
|
1119
1158
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
1120
1159
|
# projects/project-id/inspectTemplates/432452342.
|
1121
1160
|
# @param options [Google::Gax::CallOptions]
|
@@ -1150,7 +1189,7 @@ module Google
|
|
1150
1189
|
# more.
|
1151
1190
|
#
|
1152
1191
|
# @param parent [String]
|
1153
|
-
# The parent resource name, for example projects/my-project-id or
|
1192
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1154
1193
|
# organizations/my-org-id.
|
1155
1194
|
# @param deidentify_template [Google::Privacy::Dlp::V2::DeidentifyTemplate | Hash]
|
1156
1195
|
# The DeidentifyTemplate to create.
|
@@ -1161,6 +1200,9 @@ module Google
|
|
1161
1200
|
# numbers, and hyphens; that is, it must match the regular
|
1162
1201
|
# expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
|
1163
1202
|
# characters. Can be empty to allow the system to generate one.
|
1203
|
+
# @param location_id [String]
|
1204
|
+
# The geographic location to store the deidentification template. Reserved
|
1205
|
+
# for future extensions.
|
1164
1206
|
# @param options [Google::Gax::CallOptions]
|
1165
1207
|
# Overrides the default settings for this call, e.g, timeout,
|
1166
1208
|
# retries, etc.
|
@@ -1180,12 +1222,14 @@ module Google
|
|
1180
1222
|
parent,
|
1181
1223
|
deidentify_template: nil,
|
1182
1224
|
template_id: nil,
|
1225
|
+
location_id: nil,
|
1183
1226
|
options: nil,
|
1184
1227
|
&block
|
1185
1228
|
req = {
|
1186
1229
|
parent: parent,
|
1187
1230
|
deidentify_template: deidentify_template,
|
1188
|
-
template_id: template_id
|
1231
|
+
template_id: template_id,
|
1232
|
+
location_id: location_id
|
1189
1233
|
}.delete_if { |_, v| v.nil? }
|
1190
1234
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::CreateDeidentifyTemplateRequest)
|
1191
1235
|
@create_deidentify_template.call(req, options, &block)
|
@@ -1196,7 +1240,7 @@ module Google
|
|
1196
1240
|
# more.
|
1197
1241
|
#
|
1198
1242
|
# @param name [String]
|
1199
|
-
# Resource name of organization and deidentify template to be updated, for
|
1243
|
+
# Required. Resource name of organization and deidentify template to be updated, for
|
1200
1244
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1201
1245
|
# projects/project-id/deidentifyTemplates/432452342.
|
1202
1246
|
# @param deidentify_template [Google::Privacy::Dlp::V2::DeidentifyTemplate | Hash]
|
@@ -1242,7 +1286,7 @@ module Google
|
|
1242
1286
|
# more.
|
1243
1287
|
#
|
1244
1288
|
# @param name [String]
|
1245
|
-
# Resource name of the organization and deidentify template to be read, for
|
1289
|
+
# Required. Resource name of the organization and deidentify template to be read, for
|
1246
1290
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1247
1291
|
# projects/project-id/deidentifyTemplates/432452342.
|
1248
1292
|
# @param options [Google::Gax::CallOptions]
|
@@ -1276,7 +1320,7 @@ module Google
|
|
1276
1320
|
# more.
|
1277
1321
|
#
|
1278
1322
|
# @param parent [String]
|
1279
|
-
# The parent resource name, for example projects/my-project-id or
|
1323
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1280
1324
|
# organizations/my-org-id.
|
1281
1325
|
# @param page_size [Integer]
|
1282
1326
|
# The maximum number of resources contained in the underlying API
|
@@ -1298,6 +1342,9 @@ module Google
|
|
1298
1342
|
# * `update_time`: corresponds to time the template was last updated.
|
1299
1343
|
# * `name`: corresponds to template's name.
|
1300
1344
|
# * `display_name`: corresponds to template's display name.
|
1345
|
+
# @param location_id [String]
|
1346
|
+
# The geographic location where deidentifications templates will be retrieved
|
1347
|
+
# from. Use `-` for all locations. Reserved for future extensions.
|
1301
1348
|
# @param options [Google::Gax::CallOptions]
|
1302
1349
|
# Overrides the default settings for this call, e.g, timeout,
|
1303
1350
|
# retries, etc.
|
@@ -1333,12 +1380,14 @@ module Google
|
|
1333
1380
|
parent,
|
1334
1381
|
page_size: nil,
|
1335
1382
|
order_by: nil,
|
1383
|
+
location_id: nil,
|
1336
1384
|
options: nil,
|
1337
1385
|
&block
|
1338
1386
|
req = {
|
1339
1387
|
parent: parent,
|
1340
1388
|
page_size: page_size,
|
1341
|
-
order_by: order_by
|
1389
|
+
order_by: order_by,
|
1390
|
+
location_id: location_id
|
1342
1391
|
}.delete_if { |_, v| v.nil? }
|
1343
1392
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListDeidentifyTemplatesRequest)
|
1344
1393
|
@list_deidentify_templates.call(req, options, &block)
|
@@ -1349,7 +1398,7 @@ module Google
|
|
1349
1398
|
# more.
|
1350
1399
|
#
|
1351
1400
|
# @param name [String]
|
1352
|
-
# Resource name of the organization and deidentify template to be deleted,
|
1401
|
+
# Required. Resource name of the organization and deidentify template to be deleted,
|
1353
1402
|
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
1354
1403
|
# projects/project-id/deidentifyTemplates/432452342.
|
1355
1404
|
# @param options [Google::Gax::CallOptions]
|
@@ -1387,7 +1436,7 @@ module Google
|
|
1387
1436
|
# be all types, but may change over time as detectors are updated.
|
1388
1437
|
#
|
1389
1438
|
# @param parent [String]
|
1390
|
-
# The parent resource name, for example projects/my-project-id.
|
1439
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1391
1440
|
# @param inspect_job [Google::Privacy::Dlp::V2::InspectJobConfig | Hash]
|
1392
1441
|
# A hash of the same form as `Google::Privacy::Dlp::V2::InspectJobConfig`
|
1393
1442
|
# can also be provided.
|
@@ -1399,6 +1448,9 @@ module Google
|
|
1399
1448
|
# numbers, and hyphens; that is, it must match the regular
|
1400
1449
|
# expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
|
1401
1450
|
# characters. Can be empty to allow the system to generate one.
|
1451
|
+
# @param location_id [String]
|
1452
|
+
# The geographic location to store and process the job. Reserved for
|
1453
|
+
# future extensions.
|
1402
1454
|
# @param options [Google::Gax::CallOptions]
|
1403
1455
|
# Overrides the default settings for this call, e.g, timeout,
|
1404
1456
|
# retries, etc.
|
@@ -1419,13 +1471,15 @@ module Google
|
|
1419
1471
|
inspect_job: nil,
|
1420
1472
|
risk_job: nil,
|
1421
1473
|
job_id: nil,
|
1474
|
+
location_id: nil,
|
1422
1475
|
options: nil,
|
1423
1476
|
&block
|
1424
1477
|
req = {
|
1425
1478
|
parent: parent,
|
1426
1479
|
inspect_job: inspect_job,
|
1427
1480
|
risk_job: risk_job,
|
1428
|
-
job_id: job_id
|
1481
|
+
job_id: job_id,
|
1482
|
+
location_id: location_id
|
1429
1483
|
}.delete_if { |_, v| v.nil? }
|
1430
1484
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::CreateDlpJobRequest)
|
1431
1485
|
@create_dlp_job.call(req, options, &block)
|
@@ -1436,7 +1490,7 @@ module Google
|
|
1436
1490
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1437
1491
|
#
|
1438
1492
|
# @param parent [String]
|
1439
|
-
# The parent resource name, for example projects/my-project-id.
|
1493
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1440
1494
|
# @param filter [String]
|
1441
1495
|
# Optional. Allows filtering.
|
1442
1496
|
#
|
@@ -1488,6 +1542,9 @@ module Google
|
|
1488
1542
|
# * `end_time`: corresponds to time the job ended.
|
1489
1543
|
# * `name`: corresponds to job's name.
|
1490
1544
|
# * `state`: corresponds to `state`
|
1545
|
+
# @param location_id [String]
|
1546
|
+
# The geographic location where jobs will be retrieved from.
|
1547
|
+
# Use `-` for all locations. Reserved for future extensions.
|
1491
1548
|
# @param options [Google::Gax::CallOptions]
|
1492
1549
|
# Overrides the default settings for this call, e.g, timeout,
|
1493
1550
|
# retries, etc.
|
@@ -1525,6 +1582,7 @@ module Google
|
|
1525
1582
|
page_size: nil,
|
1526
1583
|
type: nil,
|
1527
1584
|
order_by: nil,
|
1585
|
+
location_id: nil,
|
1528
1586
|
options: nil,
|
1529
1587
|
&block
|
1530
1588
|
req = {
|
@@ -1532,7 +1590,8 @@ module Google
|
|
1532
1590
|
filter: filter,
|
1533
1591
|
page_size: page_size,
|
1534
1592
|
type: type,
|
1535
|
-
order_by: order_by
|
1593
|
+
order_by: order_by,
|
1594
|
+
location_id: location_id
|
1536
1595
|
}.delete_if { |_, v| v.nil? }
|
1537
1596
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListDlpJobsRequest)
|
1538
1597
|
@list_dlp_jobs.call(req, options, &block)
|
@@ -1543,7 +1602,7 @@ module Google
|
|
1543
1602
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1544
1603
|
#
|
1545
1604
|
# @param name [String]
|
1546
|
-
# The name of the DlpJob resource.
|
1605
|
+
# Required. The name of the DlpJob resource.
|
1547
1606
|
# @param options [Google::Gax::CallOptions]
|
1548
1607
|
# Overrides the default settings for this call, e.g, timeout,
|
1549
1608
|
# retries, etc.
|
@@ -1577,7 +1636,7 @@ module Google
|
|
1577
1636
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1578
1637
|
#
|
1579
1638
|
# @param name [String]
|
1580
|
-
# The name of the DlpJob resource to be deleted.
|
1639
|
+
# Required. The name of the DlpJob resource to be deleted.
|
1581
1640
|
# @param options [Google::Gax::CallOptions]
|
1582
1641
|
# Overrides the default settings for this call, e.g, timeout,
|
1583
1642
|
# retries, etc.
|
@@ -1611,7 +1670,7 @@ module Google
|
|
1611
1670
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1612
1671
|
#
|
1613
1672
|
# @param name [String]
|
1614
|
-
# The name of the DlpJob resource to be cancelled.
|
1673
|
+
# Required. The name of the DlpJob resource to be cancelled.
|
1615
1674
|
# @param options [Google::Gax::CallOptions]
|
1616
1675
|
# Overrides the default settings for this call, e.g, timeout,
|
1617
1676
|
# retries, etc.
|
@@ -1642,7 +1701,7 @@ module Google
|
|
1642
1701
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1643
1702
|
#
|
1644
1703
|
# @param parent [String]
|
1645
|
-
# The parent resource name, for example `projects/my-project-id`.
|
1704
|
+
# Required. The parent resource name, for example `projects/my-project-id`.
|
1646
1705
|
# @param page_size [Integer]
|
1647
1706
|
# The maximum number of resources contained in the underlying API
|
1648
1707
|
# response. If page streaming is performed per-resource, this
|
@@ -1690,6 +1749,9 @@ module Google
|
|
1690
1749
|
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
1691
1750
|
#
|
1692
1751
|
# The length of this field should be no more than 500 characters.
|
1752
|
+
# @param location_id [String]
|
1753
|
+
# The geographic location where job triggers will be retrieved from.
|
1754
|
+
# Use `-` for all locations. Reserved for future extensions.
|
1693
1755
|
# @param options [Google::Gax::CallOptions]
|
1694
1756
|
# Overrides the default settings for this call, e.g, timeout,
|
1695
1757
|
# retries, etc.
|
@@ -1726,13 +1788,15 @@ module Google
|
|
1726
1788
|
page_size: nil,
|
1727
1789
|
order_by: nil,
|
1728
1790
|
filter: nil,
|
1791
|
+
location_id: nil,
|
1729
1792
|
options: nil,
|
1730
1793
|
&block
|
1731
1794
|
req = {
|
1732
1795
|
parent: parent,
|
1733
1796
|
page_size: page_size,
|
1734
1797
|
order_by: order_by,
|
1735
|
-
filter: filter
|
1798
|
+
filter: filter,
|
1799
|
+
location_id: location_id
|
1736
1800
|
}.delete_if { |_, v| v.nil? }
|
1737
1801
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListJobTriggersRequest)
|
1738
1802
|
@list_job_triggers.call(req, options, &block)
|
@@ -1742,7 +1806,7 @@ module Google
|
|
1742
1806
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1743
1807
|
#
|
1744
1808
|
# @param name [String]
|
1745
|
-
# Resource name of the project and the triggeredJob, for example
|
1809
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
1746
1810
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1747
1811
|
# @param options [Google::Gax::CallOptions]
|
1748
1812
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -1774,7 +1838,7 @@ module Google
|
|
1774
1838
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1775
1839
|
#
|
1776
1840
|
# @param name [String]
|
1777
|
-
# Resource name of the project and the triggeredJob, for example
|
1841
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
1778
1842
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1779
1843
|
# @param options [Google::Gax::CallOptions]
|
1780
1844
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -1808,7 +1872,7 @@ module Google
|
|
1808
1872
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1809
1873
|
#
|
1810
1874
|
# @param name [String]
|
1811
|
-
# Resource name of the project and the triggeredJob, for example
|
1875
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
1812
1876
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1813
1877
|
# @param job_trigger [Google::Privacy::Dlp::V2::JobTrigger | Hash]
|
1814
1878
|
# New JobTrigger value.
|
@@ -1853,7 +1917,7 @@ module Google
|
|
1853
1917
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1854
1918
|
#
|
1855
1919
|
# @param parent [String]
|
1856
|
-
# The parent resource name, for example projects/my-project-id.
|
1920
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1857
1921
|
# @param job_trigger [Google::Privacy::Dlp::V2::JobTrigger | Hash]
|
1858
1922
|
# The JobTrigger to create.
|
1859
1923
|
# A hash of the same form as `Google::Privacy::Dlp::V2::JobTrigger`
|
@@ -1863,6 +1927,9 @@ module Google
|
|
1863
1927
|
# numbers, and hyphens; that is, it must match the regular
|
1864
1928
|
# expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
|
1865
1929
|
# characters. Can be empty to allow the system to generate one.
|
1930
|
+
# @param location_id [String]
|
1931
|
+
# The geographic location to store the job trigger. Reserved for
|
1932
|
+
# future extensions.
|
1866
1933
|
# @param options [Google::Gax::CallOptions]
|
1867
1934
|
# Overrides the default settings for this call, e.g, timeout,
|
1868
1935
|
# retries, etc.
|
@@ -1882,12 +1949,14 @@ module Google
|
|
1882
1949
|
parent,
|
1883
1950
|
job_trigger: nil,
|
1884
1951
|
trigger_id: nil,
|
1952
|
+
location_id: nil,
|
1885
1953
|
options: nil,
|
1886
1954
|
&block
|
1887
1955
|
req = {
|
1888
1956
|
parent: parent,
|
1889
1957
|
job_trigger: job_trigger,
|
1890
|
-
trigger_id: trigger_id
|
1958
|
+
trigger_id: trigger_id,
|
1959
|
+
location_id: location_id
|
1891
1960
|
}.delete_if { |_, v| v.nil? }
|
1892
1961
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::CreateJobTriggerRequest)
|
1893
1962
|
@create_job_trigger.call(req, options, &block)
|
@@ -1898,7 +1967,7 @@ module Google
|
|
1898
1967
|
# learn more.
|
1899
1968
|
#
|
1900
1969
|
# @param parent [String]
|
1901
|
-
# The parent resource name, for example projects/my-project-id or
|
1970
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1902
1971
|
# organizations/my-org-id.
|
1903
1972
|
# @param config [Google::Privacy::Dlp::V2::StoredInfoTypeConfig | Hash]
|
1904
1973
|
# Configuration of the storedInfoType to create.
|
@@ -1909,6 +1978,9 @@ module Google
|
|
1909
1978
|
# numbers, and hyphens; that is, it must match the regular
|
1910
1979
|
# expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
|
1911
1980
|
# characters. Can be empty to allow the system to generate one.
|
1981
|
+
# @param location_id [String]
|
1982
|
+
# The geographic location to store the stored infoType. Reserved for
|
1983
|
+
# future extensions.
|
1912
1984
|
# @param options [Google::Gax::CallOptions]
|
1913
1985
|
# Overrides the default settings for this call, e.g, timeout,
|
1914
1986
|
# retries, etc.
|
@@ -1928,12 +2000,14 @@ module Google
|
|
1928
2000
|
parent,
|
1929
2001
|
config: nil,
|
1930
2002
|
stored_info_type_id: nil,
|
2003
|
+
location_id: nil,
|
1931
2004
|
options: nil,
|
1932
2005
|
&block
|
1933
2006
|
req = {
|
1934
2007
|
parent: parent,
|
1935
2008
|
config: config,
|
1936
|
-
stored_info_type_id: stored_info_type_id
|
2009
|
+
stored_info_type_id: stored_info_type_id,
|
2010
|
+
location_id: location_id
|
1937
2011
|
}.delete_if { |_, v| v.nil? }
|
1938
2012
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::CreateStoredInfoTypeRequest)
|
1939
2013
|
@create_stored_info_type.call(req, options, &block)
|
@@ -1945,7 +2019,7 @@ module Google
|
|
1945
2019
|
# learn more.
|
1946
2020
|
#
|
1947
2021
|
# @param name [String]
|
1948
|
-
# Resource name of organization and storedInfoType to be updated, for
|
2022
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
1949
2023
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1950
2024
|
# projects/project-id/storedInfoTypes/432452342.
|
1951
2025
|
# @param config [Google::Privacy::Dlp::V2::StoredInfoTypeConfig | Hash]
|
@@ -1993,7 +2067,7 @@ module Google
|
|
1993
2067
|
# learn more.
|
1994
2068
|
#
|
1995
2069
|
# @param name [String]
|
1996
|
-
# Resource name of the organization and storedInfoType to be read, for
|
2070
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
1997
2071
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1998
2072
|
# projects/project-id/storedInfoTypes/432452342.
|
1999
2073
|
# @param options [Google::Gax::CallOptions]
|
@@ -2027,7 +2101,7 @@ module Google
|
|
2027
2101
|
# learn more.
|
2028
2102
|
#
|
2029
2103
|
# @param parent [String]
|
2030
|
-
# The parent resource name, for example projects/my-project-id or
|
2104
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
2031
2105
|
# organizations/my-org-id.
|
2032
2106
|
# @param page_size [Integer]
|
2033
2107
|
# The maximum number of resources contained in the underlying API
|
@@ -2050,6 +2124,9 @@ module Google
|
|
2050
2124
|
# * `state`: corresponds to the state of the resource.
|
2051
2125
|
# * `name`: corresponds to resource name.
|
2052
2126
|
# * `display_name`: corresponds to info type's display name.
|
2127
|
+
# @param location_id [String]
|
2128
|
+
# The geographic location where stored infoTypes will be retrieved from.
|
2129
|
+
# Use `-` for all locations. Reserved for future extensions.
|
2053
2130
|
# @param options [Google::Gax::CallOptions]
|
2054
2131
|
# Overrides the default settings for this call, e.g, timeout,
|
2055
2132
|
# retries, etc.
|
@@ -2085,12 +2162,14 @@ module Google
|
|
2085
2162
|
parent,
|
2086
2163
|
page_size: nil,
|
2087
2164
|
order_by: nil,
|
2165
|
+
location_id: nil,
|
2088
2166
|
options: nil,
|
2089
2167
|
&block
|
2090
2168
|
req = {
|
2091
2169
|
parent: parent,
|
2092
2170
|
page_size: page_size,
|
2093
|
-
order_by: order_by
|
2171
|
+
order_by: order_by,
|
2172
|
+
location_id: location_id
|
2094
2173
|
}.delete_if { |_, v| v.nil? }
|
2095
2174
|
req = Google::Gax::to_proto(req, Google::Privacy::Dlp::V2::ListStoredInfoTypesRequest)
|
2096
2175
|
@list_stored_info_types.call(req, options, &block)
|
@@ -2101,7 +2180,7 @@ module Google
|
|
2101
2180
|
# learn more.
|
2102
2181
|
#
|
2103
2182
|
# @param name [String]
|
2104
|
-
# Resource name of the organization and storedInfoType to be deleted, for
|
2183
|
+
# Required. Resource name of the organization and storedInfoType to be deleted, for
|
2105
2184
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2106
2185
|
# projects/project-id/storedInfoTypes/432452342.
|
2107
2186
|
# @param options [Google::Gax::CallOptions]
|