google-apis-dlp_v2 0.26.0 → 0.29.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/CHANGELOG.md +13 -0
- data/lib/google/apis/dlp_v2/classes.rb +257 -72
- data/lib/google/apis/dlp_v2/gem_version.rb +3 -3
- data/lib/google/apis/dlp_v2/representations.rb +65 -0
- data/lib/google/apis/dlp_v2/service.rb +140 -140
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12be94758a07bace3bb3bfb163c33b0b24a78f74e0db3f14487a489c58374769
|
4
|
+
data.tar.gz: 0b7d2b7bc38226fdf3f6651a579f284aba4da659f630fd5dc6e20088bb8f4efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b05da4782287aeb37c414df67d5f031a854f52fe9dc91e1a81d6bd042611b28e706c73c151fb23ef0c6c8ef70a279d983ee07462701d238294179549fa1e9f4c
|
7
|
+
data.tar.gz: 0f60c687e7061401f310e224a92a300dcf860b130e997dad7c1988f66d050e8a7b27653cedc27b4682fe19da399063a42b025e964570d7a5d24c803ca8ee571c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-dlp_v2
|
2
2
|
|
3
|
+
### v0.29.0 (2022-08-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220806
|
6
|
+
|
7
|
+
### v0.28.0 (2022-08-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220730
|
10
|
+
|
11
|
+
### v0.27.0 (2022-07-06)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220703
|
14
|
+
* Regenerated using generator version 0.9.0
|
15
|
+
|
3
16
|
### v0.26.0 (2022-07-02)
|
4
17
|
|
5
18
|
* Regenerated using generator version 0.8.0
|
@@ -27,13 +27,27 @@ module Google
|
|
27
27
|
class GooglePrivacyDlpV2Action
|
28
28
|
include Google::Apis::Core::Hashable
|
29
29
|
|
30
|
+
# Create a de-identified copy of the requested table or files. . A
|
31
|
+
# TransformationDetail will be created for each transformation. If any rows in
|
32
|
+
# BigQuery are skipped during de-identification (transformation errors or row
|
33
|
+
# size exceeds BigQuery insert API limits) they are placed in the failure output
|
34
|
+
# table. If the original row exceeds the BigQuery insert API limit it will be
|
35
|
+
# truncated when written to the failure output table. The failure output table
|
36
|
+
# can be set in the action.deidentify.output.big_query_output.
|
37
|
+
# deidentified_failure_output_table field, if no table is set, a table will be
|
38
|
+
# automatically created in the same project and dataset as the original table.
|
39
|
+
# Compatible with: Inspect
|
40
|
+
# Corresponds to the JSON property `deidentify`
|
41
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Deidentify]
|
42
|
+
attr_accessor :deidentify
|
43
|
+
|
30
44
|
# Enable email notification to project owners and editors on jobs's completion/
|
31
45
|
# failure.
|
32
46
|
# Corresponds to the JSON property `jobNotificationEmails`
|
33
47
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails]
|
34
48
|
attr_accessor :job_notification_emails
|
35
49
|
|
36
|
-
# Publish a message into given Pub/Sub topic when DlpJob has completed. The
|
50
|
+
# Publish a message into a given Pub/Sub topic when DlpJob has completed. The
|
37
51
|
# message contains a single field, `DlpJobName`, which is equal to the finished
|
38
52
|
# job's [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/
|
39
53
|
# projects.dlpJobs#DlpJob). Compatible with: Inspect, Risk
|
@@ -41,15 +55,19 @@ module Google
|
|
41
55
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub]
|
42
56
|
attr_accessor :pub_sub
|
43
57
|
|
44
|
-
# Publish findings of a DlpJob to Data Catalog.
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
58
|
+
# Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag templates
|
59
|
+
# are applied to the resource that Cloud DLP scanned. Data Catalog tag templates
|
60
|
+
# are stored in the same project and region where the BigQuery table exists. For
|
61
|
+
# Cloud DLP to create and apply the tag template, the Cloud DLP service agent
|
62
|
+
# must have the `roles/datacatalog.tagTemplateOwner` permission on the project.
|
63
|
+
# The tag template contains fields summarizing the results of the DlpJob. Any
|
64
|
+
# field values previously written by another DlpJob are deleted. InfoType naming
|
65
|
+
# patterns are strictly enforced when using this feature. Findings are persisted
|
66
|
+
# in Data Catalog storage and are governed by service-specific policies for Data
|
67
|
+
# Catalog. For more information, see [Service Specific Terms](https://cloud.
|
68
|
+
# google.com/terms/service-terms). Only a single instance of this action can be
|
69
|
+
# specified. This action is allowed only if all resources being scanned are
|
70
|
+
# BigQuery tables. Compatible with: Inspect
|
53
71
|
# Corresponds to the JSON property `publishFindingsToCloudDataCatalog`
|
54
72
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog]
|
55
73
|
attr_accessor :publish_findings_to_cloud_data_catalog
|
@@ -57,7 +75,7 @@ module Google
|
|
57
75
|
# Publish the result summary of a DlpJob to the Cloud Security Command Center (
|
58
76
|
# CSCC Alpha). This action is only available for projects which are parts of an
|
59
77
|
# organization and whitelisted for the alpha Cloud Security Command Center. The
|
60
|
-
# action will publish count of finding instances and their info types. The
|
78
|
+
# action will publish the count of finding instances and their info types. The
|
61
79
|
# summary of findings will be persisted in CSCC and are governed by CSCC service-
|
62
80
|
# specific policy, see https://cloud.google.com/terms/service-terms Only a
|
63
81
|
# single instance of this action can be specified. Compatible with: Inspect
|
@@ -86,6 +104,7 @@ module Google
|
|
86
104
|
|
87
105
|
# Update properties of this object
|
88
106
|
def update!(**args)
|
107
|
+
@deidentify = args[:deidentify] if args.key?(:deidentify)
|
89
108
|
@job_notification_emails = args[:job_notification_emails] if args.key?(:job_notification_emails)
|
90
109
|
@pub_sub = args[:pub_sub] if args.key?(:pub_sub)
|
91
110
|
@publish_findings_to_cloud_data_catalog = args[:publish_findings_to_cloud_data_catalog] if args.key?(:publish_findings_to_cloud_data_catalog)
|
@@ -710,7 +729,7 @@ module Google
|
|
710
729
|
end
|
711
730
|
end
|
712
731
|
|
713
|
-
# Options defining a file or a set of files within a
|
732
|
+
# Options defining a file or a set of files within a Cloud Storage bucket.
|
714
733
|
class GooglePrivacyDlpV2CloudStorageOptions
|
715
734
|
include Google::Apis::Core::Hashable
|
716
735
|
|
@@ -954,8 +973,7 @@ module Google
|
|
954
973
|
include Google::Apis::Core::Hashable
|
955
974
|
|
956
975
|
# A string representation of the full container name. Examples: - BigQuery: '
|
957
|
-
# Project:DataSetId.TableId' -
|
958
|
-
# filename.txt'
|
976
|
+
# Project:DataSetId.TableId' - Cloud Storage: 'gs://Bucket/folders/filename.txt'
|
959
977
|
# Corresponds to the JSON property `fullPath`
|
960
978
|
# @return [String]
|
961
979
|
attr_accessor :full_path
|
@@ -967,34 +985,34 @@ module Google
|
|
967
985
|
attr_accessor :project_id
|
968
986
|
|
969
987
|
# The rest of the path after the root. Examples: - For BigQuery table `
|
970
|
-
# project_id:dataset_id.table_id`, the relative path is `table_id` -
|
971
|
-
#
|
972
|
-
#
|
988
|
+
# project_id:dataset_id.table_id`, the relative path is `table_id` - For Cloud
|
989
|
+
# Storage file `gs://bucket/folder/filename.txt`, the relative path is `folder/
|
990
|
+
# filename.txt`
|
973
991
|
# Corresponds to the JSON property `relativePath`
|
974
992
|
# @return [String]
|
975
993
|
attr_accessor :relative_path
|
976
994
|
|
977
995
|
# The root of the container. Examples: - For BigQuery table `project_id:
|
978
|
-
# dataset_id.table_id`, the root is `dataset_id` - For
|
979
|
-
#
|
996
|
+
# dataset_id.table_id`, the root is `dataset_id` - For Cloud Storage file `gs://
|
997
|
+
# bucket/folder/filename.txt`, the root is `gs://bucket`
|
980
998
|
# Corresponds to the JSON property `rootPath`
|
981
999
|
# @return [String]
|
982
1000
|
attr_accessor :root_path
|
983
1001
|
|
984
|
-
# Container type, for example BigQuery or
|
1002
|
+
# Container type, for example BigQuery or Cloud Storage.
|
985
1003
|
# Corresponds to the JSON property `type`
|
986
1004
|
# @return [String]
|
987
1005
|
attr_accessor :type
|
988
1006
|
|
989
|
-
# Findings container modification timestamp, if applicable. For
|
990
|
-
#
|
991
|
-
# last_modified_time property. For Datastore
|
1007
|
+
# Findings container modification timestamp, if applicable. For Cloud Storage,
|
1008
|
+
# this field contains the last file modification timestamp. For a BigQuery table,
|
1009
|
+
# this field contains the last_modified_time property. For Datastore, this
|
1010
|
+
# field isn't populated.
|
992
1011
|
# Corresponds to the JSON property `updateTime`
|
993
1012
|
# @return [String]
|
994
1013
|
attr_accessor :update_time
|
995
1014
|
|
996
|
-
# Findings container version, if available ("generation" for
|
997
|
-
# Storage).
|
1015
|
+
# Findings container version, if available ("generation" for Cloud Storage).
|
998
1016
|
# Corresponds to the JSON property `version`
|
999
1017
|
# @return [String]
|
1000
1018
|
attr_accessor :version
|
@@ -1058,20 +1076,20 @@ module Google
|
|
1058
1076
|
# formatted as follows: * BigQuery tables: ``project_id`:`dataset_id`.`table_id``
|
1059
1077
|
# * Cloud Storage files: `gs://`bucket`/`path`` * Datastore namespace: `
|
1060
1078
|
# namespace` Nested names could be absent if the embedded object has no string
|
1061
|
-
# identifier (for
|
1079
|
+
# identifier (for example, an image contained within a document).
|
1062
1080
|
# Corresponds to the JSON property `containerName`
|
1063
1081
|
# @return [String]
|
1064
1082
|
attr_accessor :container_name
|
1065
1083
|
|
1066
|
-
#
|
1067
|
-
#
|
1068
|
-
# last_modified_time property. For Datastore
|
1084
|
+
# Finding container modification timestamp, if applicable. For Cloud Storage,
|
1085
|
+
# this field contains the last file modification timestamp. For a BigQuery table,
|
1086
|
+
# this field contains the last_modified_time property. For Datastore, this
|
1087
|
+
# field isn't populated.
|
1069
1088
|
# Corresponds to the JSON property `containerTimestamp`
|
1070
1089
|
# @return [String]
|
1071
1090
|
attr_accessor :container_timestamp
|
1072
1091
|
|
1073
|
-
#
|
1074
|
-
# Storage).
|
1092
|
+
# Finding container version, if available ("generation" for Cloud Storage).
|
1075
1093
|
# Corresponds to the JSON property `containerVersion`
|
1076
1094
|
# @return [String]
|
1077
1095
|
attr_accessor :container_version
|
@@ -1711,10 +1729,10 @@ module Google
|
|
1711
1729
|
end
|
1712
1730
|
end
|
1713
1731
|
|
1714
|
-
#
|
1715
|
-
# protocol buffer schema type, convert the message data to
|
1716
|
-
# proto class. https://cloud.google.com/pubsub/docs/samples/
|
1717
|
-
# proto-messages
|
1732
|
+
# Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To
|
1733
|
+
# receive a message of protocol buffer schema type, convert the message data to
|
1734
|
+
# an object of this proto class. https://cloud.google.com/pubsub/docs/samples/
|
1735
|
+
# pubsub-subscribe-proto-messages
|
1718
1736
|
class GooglePrivacyDlpV2DataProfilePubSubMessage
|
1719
1737
|
include Google::Apis::Core::Hashable
|
1720
1738
|
|
@@ -1740,7 +1758,7 @@ module Google
|
|
1740
1758
|
end
|
1741
1759
|
|
1742
1760
|
# Score is a summary of all elements in the data profile. A higher number means
|
1743
|
-
# more
|
1761
|
+
# more risk.
|
1744
1762
|
class GooglePrivacyDlpV2DataRiskLevel
|
1745
1763
|
include Google::Apis::Core::Hashable
|
1746
1764
|
|
@@ -1898,6 +1916,63 @@ module Google
|
|
1898
1916
|
end
|
1899
1917
|
end
|
1900
1918
|
|
1919
|
+
# Create a de-identified copy of the requested table or files. . A
|
1920
|
+
# TransformationDetail will be created for each transformation. If any rows in
|
1921
|
+
# BigQuery are skipped during de-identification (transformation errors or row
|
1922
|
+
# size exceeds BigQuery insert API limits) they are placed in the failure output
|
1923
|
+
# table. If the original row exceeds the BigQuery insert API limit it will be
|
1924
|
+
# truncated when written to the failure output table. The failure output table
|
1925
|
+
# can be set in the action.deidentify.output.big_query_output.
|
1926
|
+
# deidentified_failure_output_table field, if no table is set, a table will be
|
1927
|
+
# automatically created in the same project and dataset as the original table.
|
1928
|
+
# Compatible with: Inspect
|
1929
|
+
class GooglePrivacyDlpV2Deidentify
|
1930
|
+
include Google::Apis::Core::Hashable
|
1931
|
+
|
1932
|
+
# Required. User settable GCS bucket and folders to store de-identified files.
|
1933
|
+
# This field must be set for cloud storage deidentification. The output GCS
|
1934
|
+
# bucket must be different from the input bucket. De-identified files will
|
1935
|
+
# overwrite files in the output path. Form of: gs://bucket/folder/ or gs://
|
1936
|
+
# bucket
|
1937
|
+
# Corresponds to the JSON property `cloudStorageOutput`
|
1938
|
+
# @return [String]
|
1939
|
+
attr_accessor :cloud_storage_output
|
1940
|
+
|
1941
|
+
# List of user-specified file type groups to transform. If specified, only the
|
1942
|
+
# files with these filetypes will be transformed. If empty, all supported files
|
1943
|
+
# will be transformed. Supported types may be automatically added over time. If
|
1944
|
+
# a file type is set in this field that isn't supported by the Deidentify action
|
1945
|
+
# then the job will fail and will not be successfully created/started. Currently
|
1946
|
+
# the only filetypes supported are: IMAGES, TEXT_FILES, CSV, TSV.
|
1947
|
+
# Corresponds to the JSON property `fileTypesToTransform`
|
1948
|
+
# @return [Array<String>]
|
1949
|
+
attr_accessor :file_types_to_transform
|
1950
|
+
|
1951
|
+
# User specified templates and configs for how to deidentify structured,
|
1952
|
+
# unstructures, and image files. User must provide either a unstructured
|
1953
|
+
# deidentify template or at least one redact image config.
|
1954
|
+
# Corresponds to the JSON property `transformationConfig`
|
1955
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationConfig]
|
1956
|
+
attr_accessor :transformation_config
|
1957
|
+
|
1958
|
+
# Config for storing transformation details.
|
1959
|
+
# Corresponds to the JSON property `transformationDetailsStorageConfig`
|
1960
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TransformationDetailsStorageConfig]
|
1961
|
+
attr_accessor :transformation_details_storage_config
|
1962
|
+
|
1963
|
+
def initialize(**args)
|
1964
|
+
update!(**args)
|
1965
|
+
end
|
1966
|
+
|
1967
|
+
# Update properties of this object
|
1968
|
+
def update!(**args)
|
1969
|
+
@cloud_storage_output = args[:cloud_storage_output] if args.key?(:cloud_storage_output)
|
1970
|
+
@file_types_to_transform = args[:file_types_to_transform] if args.key?(:file_types_to_transform)
|
1971
|
+
@transformation_config = args[:transformation_config] if args.key?(:transformation_config)
|
1972
|
+
@transformation_details_storage_config = args[:transformation_details_storage_config] if args.key?(:transformation_details_storage_config)
|
1973
|
+
end
|
1974
|
+
end
|
1975
|
+
|
1901
1976
|
# The configuration that controls how the data will change.
|
1902
1977
|
class GooglePrivacyDlpV2DeidentifyConfig
|
1903
1978
|
include Google::Apis::Core::Hashable
|
@@ -1937,7 +2012,7 @@ module Google
|
|
1937
2012
|
end
|
1938
2013
|
end
|
1939
2014
|
|
1940
|
-
# Request to de-identify a
|
2015
|
+
# Request to de-identify a ContentItem.
|
1941
2016
|
class GooglePrivacyDlpV2DeidentifyContentRequest
|
1942
2017
|
include Google::Apis::Core::Hashable
|
1943
2018
|
|
@@ -2427,7 +2502,7 @@ module Google
|
|
2427
2502
|
end
|
2428
2503
|
end
|
2429
2504
|
|
2430
|
-
# List of
|
2505
|
+
# List of excluded infoTypes.
|
2431
2506
|
class GooglePrivacyDlpV2ExcludeInfoTypes
|
2432
2507
|
include Google::Apis::Core::Hashable
|
2433
2508
|
|
@@ -2479,7 +2554,7 @@ module Google
|
|
2479
2554
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary]
|
2480
2555
|
attr_accessor :dictionary
|
2481
2556
|
|
2482
|
-
# List of
|
2557
|
+
# List of excluded infoTypes.
|
2483
2558
|
# Corresponds to the JSON property `excludeInfoTypes`
|
2484
2559
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ExcludeInfoTypes]
|
2485
2560
|
attr_accessor :exclude_info_types
|
@@ -2529,7 +2604,7 @@ module Google
|
|
2529
2604
|
end
|
2530
2605
|
end
|
2531
2606
|
|
2532
|
-
# An expression, consisting
|
2607
|
+
# An expression, consisting of an operator and conditions.
|
2533
2608
|
class GooglePrivacyDlpV2Expressions
|
2534
2609
|
include Google::Apis::Core::Hashable
|
2535
2610
|
|
@@ -2767,7 +2842,10 @@ module Google
|
|
2767
2842
|
end
|
2768
2843
|
|
2769
2844
|
# Configuration to control the number of findings returned for inspection. This
|
2770
|
-
# is not used for de-identification or data profiling.
|
2845
|
+
# is not used for de-identification or data profiling. When redacting sensitive
|
2846
|
+
# data from images, finding limits don't apply. They can cause unexpected or
|
2847
|
+
# inconsistent results, where only some data is redacted. Don't include finding
|
2848
|
+
# limits in RedactImage requests. Otherwise, Cloud DLP returns an error.
|
2771
2849
|
class GooglePrivacyDlpV2FindingLimits
|
2772
2850
|
include Google::Apis::Core::Hashable
|
2773
2851
|
|
@@ -3260,6 +3338,11 @@ module Google
|
|
3260
3338
|
# @return [Array<String>]
|
3261
3339
|
attr_accessor :supported_by
|
3262
3340
|
|
3341
|
+
# A list of available versions for the infotype.
|
3342
|
+
# Corresponds to the JSON property `versions`
|
3343
|
+
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2VersionDescription>]
|
3344
|
+
attr_accessor :versions
|
3345
|
+
|
3263
3346
|
def initialize(**args)
|
3264
3347
|
update!(**args)
|
3265
3348
|
end
|
@@ -3271,6 +3354,7 @@ module Google
|
|
3271
3354
|
@display_name = args[:display_name] if args.key?(:display_name)
|
3272
3355
|
@name = args[:name] if args.key?(:name)
|
3273
3356
|
@supported_by = args[:supported_by] if args.key?(:supported_by)
|
3357
|
+
@versions = args[:versions] if args.key?(:versions)
|
3274
3358
|
end
|
3275
3359
|
end
|
3276
3360
|
|
@@ -3444,7 +3528,10 @@ module Google
|
|
3444
3528
|
attr_accessor :info_types
|
3445
3529
|
|
3446
3530
|
# Configuration to control the number of findings returned for inspection. This
|
3447
|
-
# is not used for de-identification or data profiling.
|
3531
|
+
# is not used for de-identification or data profiling. When redacting sensitive
|
3532
|
+
# data from images, finding limits don't apply. They can cause unexpected or
|
3533
|
+
# inconsistent results, where only some data is redacted. Don't include finding
|
3534
|
+
# limits in RedactImage requests. Otherwise, Cloud DLP returns an error.
|
3448
3535
|
# Corresponds to the JSON property `limits`
|
3449
3536
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits]
|
3450
3537
|
attr_accessor :limits
|
@@ -4320,8 +4407,8 @@ module Google
|
|
4320
4407
|
# Configuration for a custom dictionary created from a data source of any size
|
4321
4408
|
# up to the maximum size defined in the [limits](https://cloud.google.com/dlp/
|
4322
4409
|
# limits) page. The artifacts of dictionary creation are stored in the specified
|
4323
|
-
#
|
4324
|
-
#
|
4410
|
+
# Cloud Storage location. Consider using `CustomInfoType.Dictionary` for smaller
|
4411
|
+
# dictionaries that satisfy the size requirements.
|
4325
4412
|
class GooglePrivacyDlpV2LargeCustomDictionaryConfig
|
4326
4413
|
include Google::Apis::Core::Hashable
|
4327
4414
|
|
@@ -5051,7 +5138,11 @@ module Google
|
|
5051
5138
|
# @return [Fixnum]
|
5052
5139
|
attr_accessor :window_after
|
5053
5140
|
|
5054
|
-
# Number of characters before the finding to consider.
|
5141
|
+
# Number of characters before the finding to consider. For tabular data, if you
|
5142
|
+
# want to modify the likelihood of an entire column of findngs, set this to 1.
|
5143
|
+
# For more information, see [Hotword example: Set the match likelihood of a
|
5144
|
+
# table column] (https://cloud.google.com/dlp/docs/creating-custom-infotypes-
|
5145
|
+
# likelihood#match-column-values).
|
5055
5146
|
# Corresponds to the JSON property `windowBefore`
|
5056
5147
|
# @return [Fixnum]
|
5057
5148
|
attr_accessor :window_before
|
@@ -5160,15 +5251,19 @@ module Google
|
|
5160
5251
|
end
|
5161
5252
|
end
|
5162
5253
|
|
5163
|
-
# Publish findings of a DlpJob to Data Catalog.
|
5164
|
-
#
|
5165
|
-
#
|
5166
|
-
#
|
5167
|
-
#
|
5168
|
-
#
|
5169
|
-
#
|
5170
|
-
#
|
5171
|
-
#
|
5254
|
+
# Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag templates
|
5255
|
+
# are applied to the resource that Cloud DLP scanned. Data Catalog tag templates
|
5256
|
+
# are stored in the same project and region where the BigQuery table exists. For
|
5257
|
+
# Cloud DLP to create and apply the tag template, the Cloud DLP service agent
|
5258
|
+
# must have the `roles/datacatalog.tagTemplateOwner` permission on the project.
|
5259
|
+
# The tag template contains fields summarizing the results of the DlpJob. Any
|
5260
|
+
# field values previously written by another DlpJob are deleted. InfoType naming
|
5261
|
+
# patterns are strictly enforced when using this feature. Findings are persisted
|
5262
|
+
# in Data Catalog storage and are governed by service-specific policies for Data
|
5263
|
+
# Catalog. For more information, see [Service Specific Terms](https://cloud.
|
5264
|
+
# google.com/terms/service-terms). Only a single instance of this action can be
|
5265
|
+
# specified. This action is allowed only if all resources being scanned are
|
5266
|
+
# BigQuery tables. Compatible with: Inspect
|
5172
5267
|
class GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog
|
5173
5268
|
include Google::Apis::Core::Hashable
|
5174
5269
|
|
@@ -5184,7 +5279,7 @@ module Google
|
|
5184
5279
|
# Publish the result summary of a DlpJob to the Cloud Security Command Center (
|
5185
5280
|
# CSCC Alpha). This action is only available for projects which are parts of an
|
5186
5281
|
# organization and whitelisted for the alpha Cloud Security Command Center. The
|
5187
|
-
# action will publish count of finding instances and their info types. The
|
5282
|
+
# action will publish the count of finding instances and their info types. The
|
5188
5283
|
# summary of findings will be persisted in CSCC and are governed by CSCC service-
|
5189
5284
|
# specific policy, see https://cloud.google.com/terms/service-terms Only a
|
5190
5285
|
# single instance of this action can be specified. Compatible with: Inspect
|
@@ -5200,7 +5295,7 @@ module Google
|
|
5200
5295
|
end
|
5201
5296
|
end
|
5202
5297
|
|
5203
|
-
# Publish a message into given Pub/Sub topic when DlpJob has completed. The
|
5298
|
+
# Publish a message into a given Pub/Sub topic when DlpJob has completed. The
|
5204
5299
|
# message contains a single field, `DlpJobName`, which is equal to the finished
|
5205
5300
|
# job's [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/
|
5206
5301
|
# projects.dlpJobs#DlpJob). Compatible with: Inspect, Risk
|
@@ -5386,7 +5481,7 @@ module Google
|
|
5386
5481
|
class GooglePrivacyDlpV2RecordCondition
|
5387
5482
|
include Google::Apis::Core::Hashable
|
5388
5483
|
|
5389
|
-
# An expression, consisting
|
5484
|
+
# An expression, consisting of an operator and conditions.
|
5390
5485
|
# Corresponds to the JSON property `expressions`
|
5391
5486
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Expressions]
|
5392
5487
|
attr_accessor :expressions
|
@@ -5691,7 +5786,7 @@ module Google
|
|
5691
5786
|
end
|
5692
5787
|
end
|
5693
5788
|
|
5694
|
-
# Results of re-identifying
|
5789
|
+
# Results of re-identifying an item.
|
5695
5790
|
class GooglePrivacyDlpV2ReidentifyContentResponse
|
5696
5791
|
include Google::Apis::Core::Hashable
|
5697
5792
|
|
@@ -5936,11 +6031,11 @@ module Google
|
|
5936
6031
|
class GooglePrivacyDlpV2Schedule
|
5937
6032
|
include Google::Apis::Core::Hashable
|
5938
6033
|
|
5939
|
-
# With this option a job is started a regular periodic basis. For example:
|
5940
|
-
# day (86400 seconds). A scheduled start time will be skipped if the
|
5941
|
-
# execution has not ended when its scheduled time occurs. This value
|
5942
|
-
# to a time duration greater than or equal to 1 day and can be no
|
5943
|
-
# days.
|
6034
|
+
# With this option a job is started on a regular periodic basis. For example:
|
6035
|
+
# every day (86400 seconds). A scheduled start time will be skipped if the
|
6036
|
+
# previous execution has not ended when its scheduled time occurs. This value
|
6037
|
+
# must be set to a time duration greater than or equal to 1 day and can be no
|
6038
|
+
# longer than 60 days.
|
5944
6039
|
# Corresponds to the JSON property `recurrencePeriodDuration`
|
5945
6040
|
# @return [String]
|
5946
6041
|
attr_accessor :recurrence_period_duration
|
@@ -6022,7 +6117,7 @@ module Google
|
|
6022
6117
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryOptions]
|
6023
6118
|
attr_accessor :big_query_options
|
6024
6119
|
|
6025
|
-
# Options defining a file or a set of files within a
|
6120
|
+
# Options defining a file or a set of files within a Cloud Storage bucket.
|
6026
6121
|
# Corresponds to the JSON property `cloudStorageOptions`
|
6027
6122
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageOptions]
|
6028
6123
|
attr_accessor :cloud_storage_options
|
@@ -6039,7 +6134,7 @@ module Google
|
|
6039
6134
|
attr_accessor :hybrid_options
|
6040
6135
|
|
6041
6136
|
# Configuration of the timespan of the items to include in scanning. Currently
|
6042
|
-
# only supported when inspecting
|
6137
|
+
# only supported when inspecting Cloud Storage and BigQuery.
|
6043
6138
|
# Corresponds to the JSON property `timespanConfig`
|
6044
6139
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TimespanConfig]
|
6045
6140
|
attr_accessor :timespan_config
|
@@ -6151,8 +6246,8 @@ module Google
|
|
6151
6246
|
# Configuration for a custom dictionary created from a data source of any size
|
6152
6247
|
# up to the maximum size defined in the [limits](https://cloud.google.com/dlp/
|
6153
6248
|
# limits) page. The artifacts of dictionary creation are stored in the specified
|
6154
|
-
#
|
6155
|
-
#
|
6249
|
+
# Cloud Storage location. Consider using `CustomInfoType.Dictionary` for smaller
|
6250
|
+
# dictionaries that satisfy the size requirements.
|
6156
6251
|
# Corresponds to the JSON property `largeCustomDictionary`
|
6157
6252
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig]
|
6158
6253
|
attr_accessor :large_custom_dictionary
|
@@ -6217,9 +6312,9 @@ module Google
|
|
6217
6312
|
# detected in the storedInfoType data that render it unusable. Only the five
|
6218
6313
|
# most recent errors will be displayed, with the most recent error appearing
|
6219
6314
|
# first. For example, some of the data for stored custom dictionaries is put in
|
6220
|
-
# the user's
|
6221
|
-
#
|
6222
|
-
#
|
6315
|
+
# the user's Cloud Storage bucket, and if this data is modified or deleted by
|
6316
|
+
# the user or another system, the dictionary becomes invalid. If any errors
|
6317
|
+
# occur, fix the problem indicated by the error message and use the
|
6223
6318
|
# UpdateStoredInfoType API method to create another version of the
|
6224
6319
|
# storedInfoType to continue using it, reusing the same `config` if it was not
|
6225
6320
|
# the source of the error.
|
@@ -6374,7 +6469,7 @@ module Google
|
|
6374
6469
|
attr_accessor :create_time
|
6375
6470
|
|
6376
6471
|
# Score is a summary of all elements in the data profile. A higher number means
|
6377
|
-
# more
|
6472
|
+
# more risk.
|
6378
6473
|
# Corresponds to the JSON property `dataRiskLevel`
|
6379
6474
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DataRiskLevel]
|
6380
6475
|
attr_accessor :data_risk_level
|
@@ -6668,7 +6763,7 @@ module Google
|
|
6668
6763
|
end
|
6669
6764
|
|
6670
6765
|
# Configuration of the timespan of the items to include in scanning. Currently
|
6671
|
-
# only supported when inspecting
|
6766
|
+
# only supported when inspecting Cloud Storage and BigQuery.
|
6672
6767
|
class GooglePrivacyDlpV2TimespanConfig
|
6673
6768
|
include Google::Apis::Core::Hashable
|
6674
6769
|
|
@@ -6711,6 +6806,71 @@ module Google
|
|
6711
6806
|
end
|
6712
6807
|
end
|
6713
6808
|
|
6809
|
+
# User specified templates and configs for how to deidentify structured,
|
6810
|
+
# unstructures, and image files. User must provide either a unstructured
|
6811
|
+
# deidentify template or at least one redact image config.
|
6812
|
+
class GooglePrivacyDlpV2TransformationConfig
|
6813
|
+
include Google::Apis::Core::Hashable
|
6814
|
+
|
6815
|
+
# De-identify template. If this template is specified, it will serve as the
|
6816
|
+
# default de-identify template. This template cannot contain `
|
6817
|
+
# record_transformations` since it can be used for unstructured content such as
|
6818
|
+
# free-form text files. If this template is not set, a default `
|
6819
|
+
# ReplaceWithInfoTypeConfig` will be used to de-identify unstructured content.
|
6820
|
+
# Corresponds to the JSON property `deidentifyTemplate`
|
6821
|
+
# @return [String]
|
6822
|
+
attr_accessor :deidentify_template
|
6823
|
+
|
6824
|
+
# Image redact template. If this template is specified, it will serve as the de-
|
6825
|
+
# identify template for images. If this template is not set, all findings in the
|
6826
|
+
# image will be redacted with a black box.
|
6827
|
+
# Corresponds to the JSON property `imageRedactTemplate`
|
6828
|
+
# @return [String]
|
6829
|
+
attr_accessor :image_redact_template
|
6830
|
+
|
6831
|
+
# Structured de-identify template. If this template is specified, it will serve
|
6832
|
+
# as the de-identify template for structured content such as delimited files and
|
6833
|
+
# tables. If this template is not set but the `deidentify_template` is set, then
|
6834
|
+
# `deidentify_template` will also apply to the structured content. If neither
|
6835
|
+
# template is set, a default `ReplaceWithInfoTypeConfig` will be used to de-
|
6836
|
+
# identify structured content.
|
6837
|
+
# Corresponds to the JSON property `structuredDeidentifyTemplate`
|
6838
|
+
# @return [String]
|
6839
|
+
attr_accessor :structured_deidentify_template
|
6840
|
+
|
6841
|
+
def initialize(**args)
|
6842
|
+
update!(**args)
|
6843
|
+
end
|
6844
|
+
|
6845
|
+
# Update properties of this object
|
6846
|
+
def update!(**args)
|
6847
|
+
@deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
|
6848
|
+
@image_redact_template = args[:image_redact_template] if args.key?(:image_redact_template)
|
6849
|
+
@structured_deidentify_template = args[:structured_deidentify_template] if args.key?(:structured_deidentify_template)
|
6850
|
+
end
|
6851
|
+
end
|
6852
|
+
|
6853
|
+
# Config for storing transformation details.
|
6854
|
+
class GooglePrivacyDlpV2TransformationDetailsStorageConfig
|
6855
|
+
include Google::Apis::Core::Hashable
|
6856
|
+
|
6857
|
+
# Message defining the location of a BigQuery table. A table is uniquely
|
6858
|
+
# identified by its project_id, dataset_id, and table_name. Within a query a
|
6859
|
+
# table is often referenced with a string in the format of: `:.` or `..`.
|
6860
|
+
# Corresponds to the JSON property `table`
|
6861
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable]
|
6862
|
+
attr_accessor :table
|
6863
|
+
|
6864
|
+
def initialize(**args)
|
6865
|
+
update!(**args)
|
6866
|
+
end
|
6867
|
+
|
6868
|
+
# Update properties of this object
|
6869
|
+
def update!(**args)
|
6870
|
+
@table = args[:table] if args.key?(:table)
|
6871
|
+
end
|
6872
|
+
end
|
6873
|
+
|
6714
6874
|
# How to handle transformation errors during de-identification. A transformation
|
6715
6875
|
# error occurs when the requested transformation is incompatible with the data.
|
6716
6876
|
# For example, trying to de-identify an IP address using a `DateShift`
|
@@ -7109,6 +7269,31 @@ module Google
|
|
7109
7269
|
end
|
7110
7270
|
end
|
7111
7271
|
|
7272
|
+
# Details about each available version for an infotype.
|
7273
|
+
class GooglePrivacyDlpV2VersionDescription
|
7274
|
+
include Google::Apis::Core::Hashable
|
7275
|
+
|
7276
|
+
# Description of the version.
|
7277
|
+
# Corresponds to the JSON property `description`
|
7278
|
+
# @return [String]
|
7279
|
+
attr_accessor :description
|
7280
|
+
|
7281
|
+
# Name of the version
|
7282
|
+
# Corresponds to the JSON property `version`
|
7283
|
+
# @return [String]
|
7284
|
+
attr_accessor :version
|
7285
|
+
|
7286
|
+
def initialize(**args)
|
7287
|
+
update!(**args)
|
7288
|
+
end
|
7289
|
+
|
7290
|
+
# Update properties of this object
|
7291
|
+
def update!(**args)
|
7292
|
+
@description = args[:description] if args.key?(:description)
|
7293
|
+
@version = args[:version] if args.key?(:version)
|
7294
|
+
end
|
7295
|
+
end
|
7296
|
+
|
7112
7297
|
# Message defining a list of words or phrases to search for in the data.
|
7113
7298
|
class GooglePrivacyDlpV2WordList
|
7114
7299
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DlpV2
|
18
18
|
# Version of the google-apis-dlp_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.29.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220806"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|