google-cloud-dlp-v2 0.7.4 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +8 -14
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +9 -0
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +1 -10
- data/lib/google/privacy/dlp/v2/storage_pb.rb +3 -1
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +62 -32
- data/proto_docs/google/privacy/dlp/v2/storage.rb +19 -11
- 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: d1001ba85c933730e5caad675f6d368f2c473970d29fc13e1f5c7530fd6d8184
|
4
|
+
data.tar.gz: e09627fd688a5f42fd79ed0b6455aa48ca335c5fb2e6916697230421d5a84b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6441e1df665f491651e6b63e156bef3b54745e5206f2e39cfd5cee14340fa39546cbe7f8ca6b32510796ac17f8a420a58989b04add47289209980c9e8927018
|
7
|
+
data.tar.gz: 25e84ffb76a227844843f04b5f7513236b7bb719aaa2f6ff5637d118d2d0b87e962488c531f4e8e14cd77c37ca1a249ddac3873bde8070a86e23841ec6f1a338
|
@@ -2121,9 +2121,6 @@ module Google
|
|
2121
2121
|
# Inspect hybrid content and store findings to a trigger. The inspection
|
2122
2122
|
# will be processed asynchronously. To review the findings monitor the
|
2123
2123
|
# jobs within the trigger.
|
2124
|
-
# Early access feature is in a pre-release state and might change or have
|
2125
|
-
# limited support. For more information, see
|
2126
|
-
# https://cloud.google.com/products#product-launch-stages.
|
2127
2124
|
#
|
2128
2125
|
# @overload hybrid_inspect_job_trigger(request, options = nil)
|
2129
2126
|
# Pass arguments to `hybrid_inspect_job_trigger` via a request object, either of type
|
@@ -2311,7 +2308,7 @@ module Google
|
|
2311
2308
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2312
2309
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2313
2310
|
#
|
2314
|
-
# @overload list_job_triggers(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil, location_id: nil)
|
2311
|
+
# @overload list_job_triggers(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil, type: nil, location_id: nil)
|
2315
2312
|
# Pass arguments to `list_job_triggers` via keyword arguments. Note that at
|
2316
2313
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2317
2314
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -2364,7 +2361,7 @@ module Google
|
|
2364
2361
|
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
2365
2362
|
# sequence of restrictions implicitly uses `AND`.
|
2366
2363
|
# * A restriction has the form of `{field} {operator} {value}`.
|
2367
|
-
# * Supported fields/values for inspect
|
2364
|
+
# * Supported fields/values for inspect triggers:
|
2368
2365
|
# - `status` - HEALTHY|PAUSED|CANCELLED
|
2369
2366
|
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
2370
2367
|
# - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
@@ -2380,6 +2377,8 @@ module Google
|
|
2380
2377
|
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
2381
2378
|
#
|
2382
2379
|
# The length of this field should be no more than 500 characters.
|
2380
|
+
# @param type [::Google::Cloud::Dlp::V2::DlpJobType]
|
2381
|
+
# The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
2383
2382
|
# @param location_id [::String]
|
2384
2383
|
# Deprecated. This field has no effect.
|
2385
2384
|
#
|
@@ -2670,9 +2669,10 @@ module Google
|
|
2670
2669
|
#
|
2671
2670
|
# parent=projects/example-project/locations/europe-west3
|
2672
2671
|
# @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
|
2673
|
-
#
|
2672
|
+
# An inspection job scans a storage repository for InfoTypes.
|
2674
2673
|
# @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
|
2675
|
-
#
|
2674
|
+
# A risk analysis job calculates re-identification risk metrics for a
|
2675
|
+
# BigQuery table.
|
2676
2676
|
# @param job_id [::String]
|
2677
2677
|
# The job id can contain uppercase and lowercase letters,
|
2678
2678
|
# numbers, and hyphens; that is, it must match the regular
|
@@ -3697,11 +3697,8 @@ module Google
|
|
3697
3697
|
|
3698
3698
|
##
|
3699
3699
|
# Inspect hybrid content and store findings to a job.
|
3700
|
-
# To review the findings inspect the job. Inspection will occur
|
3700
|
+
# To review the findings, inspect the job. Inspection will occur
|
3701
3701
|
# asynchronously.
|
3702
|
-
# Early access feature is in a pre-release state and might change or have
|
3703
|
-
# limited support. For more information, see
|
3704
|
-
# https://cloud.google.com/products#product-launch-stages.
|
3705
3702
|
#
|
3706
3703
|
# @overload hybrid_inspect_dlp_job(request, options = nil)
|
3707
3704
|
# Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
|
@@ -3791,9 +3788,6 @@ module Google
|
|
3791
3788
|
##
|
3792
3789
|
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
3793
3790
|
# of any enabled actions that have not yet run.
|
3794
|
-
# Early access feature is in a pre-release state and might change or have
|
3795
|
-
# limited support. For more information, see
|
3796
|
-
# https://cloud.google.com/products#product-launch-stages.
|
3797
3791
|
#
|
3798
3792
|
# @overload finish_dlp_job(request, options = nil)
|
3799
3793
|
# Pass arguments to `finish_dlp_job` via a request object, either of type
|
@@ -107,6 +107,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
107
107
|
map :labels, :string, :string, 10
|
108
108
|
optional :job_create_time, :message, 11, "google.protobuf.Timestamp"
|
109
109
|
optional :job_name, :string, 13
|
110
|
+
optional :finding_id, :string, 15
|
110
111
|
end
|
111
112
|
add_message "google.privacy.dlp.v2.Location" do
|
112
113
|
optional :byte_range, :message, 1, "google.privacy.dlp.v2.Range"
|
@@ -502,6 +503,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
502
503
|
optional :crypto_hash_config, :message, 9, "google.privacy.dlp.v2.CryptoHashConfig"
|
503
504
|
optional :date_shift_config, :message, 11, "google.privacy.dlp.v2.DateShiftConfig"
|
504
505
|
optional :crypto_deterministic_config, :message, 12, "google.privacy.dlp.v2.CryptoDeterministicConfig"
|
506
|
+
optional :replace_dictionary_config, :message, 13, "google.privacy.dlp.v2.ReplaceDictionaryConfig"
|
505
507
|
end
|
506
508
|
end
|
507
509
|
add_message "google.privacy.dlp.v2.TimePartConfig" do
|
@@ -527,6 +529,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
527
529
|
add_message "google.privacy.dlp.v2.ReplaceValueConfig" do
|
528
530
|
optional :new_value, :message, 1, "google.privacy.dlp.v2.Value"
|
529
531
|
end
|
532
|
+
add_message "google.privacy.dlp.v2.ReplaceDictionaryConfig" do
|
533
|
+
oneof :type do
|
534
|
+
optional :word_list, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList"
|
535
|
+
end
|
536
|
+
end
|
530
537
|
add_message "google.privacy.dlp.v2.ReplaceWithInfoTypeConfig" do
|
531
538
|
end
|
532
539
|
add_message "google.privacy.dlp.v2.RedactConfig" do
|
@@ -809,6 +816,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
809
816
|
optional :page_size, :int32, 3
|
810
817
|
optional :order_by, :string, 4
|
811
818
|
optional :filter, :string, 5
|
819
|
+
optional :type, :enum, 6, "google.privacy.dlp.v2.DlpJobType"
|
812
820
|
optional :location_id, :string, 7
|
813
821
|
end
|
814
822
|
add_message "google.privacy.dlp.v2.ListJobTriggersResponse" do
|
@@ -1125,6 +1133,7 @@ module Google
|
|
1125
1133
|
CryptoHashConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CryptoHashConfig").msgclass
|
1126
1134
|
CryptoDeterministicConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CryptoDeterministicConfig").msgclass
|
1127
1135
|
ReplaceValueConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ReplaceValueConfig").msgclass
|
1136
|
+
ReplaceDictionaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ReplaceDictionaryConfig").msgclass
|
1128
1137
|
ReplaceWithInfoTypeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ReplaceWithInfoTypeConfig").msgclass
|
1129
1138
|
RedactConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RedactConfig").msgclass
|
1130
1139
|
CharsToIgnore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CharsToIgnore").msgclass
|
@@ -125,9 +125,6 @@ module Google
|
|
125
125
|
# Inspect hybrid content and store findings to a trigger. The inspection
|
126
126
|
# will be processed asynchronously. To review the findings monitor the
|
127
127
|
# jobs within the trigger.
|
128
|
-
# Early access feature is in a pre-release state and might change or have
|
129
|
-
# limited support. For more information, see
|
130
|
-
# https://cloud.google.com/products#product-launch-stages.
|
131
128
|
rpc :HybridInspectJobTrigger, ::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, ::Google::Cloud::Dlp::V2::HybridInspectResponse
|
132
129
|
# Gets a job trigger.
|
133
130
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
@@ -191,17 +188,11 @@ module Google
|
|
191
188
|
# learn more.
|
192
189
|
rpc :DeleteStoredInfoType, ::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, ::Google::Protobuf::Empty
|
193
190
|
# Inspect hybrid content and store findings to a job.
|
194
|
-
# To review the findings inspect the job. Inspection will occur
|
191
|
+
# To review the findings, inspect the job. Inspection will occur
|
195
192
|
# asynchronously.
|
196
|
-
# Early access feature is in a pre-release state and might change or have
|
197
|
-
# limited support. For more information, see
|
198
|
-
# https://cloud.google.com/products#product-launch-stages.
|
199
193
|
rpc :HybridInspectDlpJob, ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Google::Cloud::Dlp::V2::HybridInspectResponse
|
200
194
|
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
201
195
|
# of any enabled actions that have not yet run.
|
202
|
-
# Early access feature is in a pre-release state and might change or have
|
203
|
-
# limited support. For more information, see
|
204
|
-
# https://cloud.google.com/products#product-launch-stages.
|
205
196
|
rpc :FinishDlpJob, ::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Google::Protobuf::Empty
|
206
197
|
end
|
207
198
|
|
@@ -1,15 +1,16 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/privacy/dlp/v2/storage.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/api/resource_pb'
|
5
6
|
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
require 'google/protobuf'
|
8
8
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.privacy.dlp.v2.InfoType" do
|
12
12
|
optional :name, :string, 1
|
13
|
+
optional :version, :string, 2
|
13
14
|
end
|
14
15
|
add_message "google.privacy.dlp.v2.StoredType" do
|
15
16
|
optional :name, :string, 1
|
@@ -115,6 +116,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
115
116
|
optional :rows_limit_percent, :int32, 6
|
116
117
|
optional :sample_method, :enum, 4, "google.privacy.dlp.v2.BigQueryOptions.SampleMethod"
|
117
118
|
repeated :excluded_fields, :message, 5, "google.privacy.dlp.v2.FieldId"
|
119
|
+
repeated :included_fields, :message, 7, "google.privacy.dlp.v2.FieldId"
|
118
120
|
end
|
119
121
|
add_enum "google.privacy.dlp.v2.BigQueryOptions.SampleMethod" do
|
120
122
|
value :SAMPLE_METHOD_UNSPECIFIED, 0
|
@@ -130,7 +130,8 @@ module Google
|
|
130
130
|
include ::Google::Protobuf::MessageExts
|
131
131
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
132
|
|
133
|
-
# Configuration to control the number of findings returned.
|
133
|
+
# Configuration to control the number of findings returned. Cannot be set if
|
134
|
+
# de-identification is requested.
|
134
135
|
# @!attribute [rw] max_findings_per_item
|
135
136
|
# @return [::Integer]
|
136
137
|
# Max number of findings that will be returned for each item scanned.
|
@@ -178,7 +179,9 @@ module Google
|
|
178
179
|
include ::Google::Protobuf::MessageExts
|
179
180
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
180
181
|
|
181
|
-
# The type of data being sent for inspection.
|
182
|
+
# The type of data being sent for inspection. To learn more, see
|
183
|
+
# [Supported file
|
184
|
+
# types](https://cloud.google.com/dlp/docs/supported-file-types).
|
182
185
|
module BytesType
|
183
186
|
# Unused
|
184
187
|
BYTES_TYPE_UNSPECIFIED = 0
|
@@ -235,9 +238,9 @@ module Google
|
|
235
238
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
239
|
end
|
237
240
|
|
238
|
-
# Structured content to inspect. Up to 50,000 `Value`s per request allowed.
|
239
|
-
#
|
240
|
-
# learn more.
|
241
|
+
# Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
|
242
|
+
# https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table
|
243
|
+
# to learn more.
|
241
244
|
# @!attribute [rw] headers
|
242
245
|
# @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
|
243
246
|
# Headers of the table.
|
@@ -333,6 +336,9 @@ module Google
|
|
333
336
|
# @!attribute [rw] job_name
|
334
337
|
# @return [::String]
|
335
338
|
# The job that stored the finding.
|
339
|
+
# @!attribute [rw] finding_id
|
340
|
+
# @return [::String]
|
341
|
+
# The unique finding id.
|
336
342
|
class Finding
|
337
343
|
include ::Google::Protobuf::MessageExts
|
338
344
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -914,7 +920,7 @@ module Google
|
|
914
920
|
# The configuration used for this job.
|
915
921
|
# @!attribute [rw] result
|
916
922
|
# @return [::Google::Cloud::Dlp::V2::InspectDataSourceDetails::Result]
|
917
|
-
# A summary of the outcome of this
|
923
|
+
# A summary of the outcome of this inspection job.
|
918
924
|
class InspectDataSourceDetails
|
919
925
|
include ::Google::Protobuf::MessageExts
|
920
926
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -946,9 +952,6 @@ module Google
|
|
946
952
|
# @!attribute [rw] hybrid_stats
|
947
953
|
# @return [::Google::Cloud::Dlp::V2::HybridInspectStatistics]
|
948
954
|
# Statistics related to the processing of hybrid inspect.
|
949
|
-
# Early access feature is in a pre-release state and might change or have
|
950
|
-
# limited support. For more information, see
|
951
|
-
# https://cloud.google.com/products#product-launch-stages.
|
952
955
|
class Result
|
953
956
|
include ::Google::Protobuf::MessageExts
|
954
957
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1755,7 +1758,7 @@ module Google
|
|
1755
1758
|
# A rule for transforming a value.
|
1756
1759
|
# @!attribute [rw] replace_config
|
1757
1760
|
# @return [::Google::Cloud::Dlp::V2::ReplaceValueConfig]
|
1758
|
-
# Replace
|
1761
|
+
# Replace with a specified value.
|
1759
1762
|
# @!attribute [rw] redact_config
|
1760
1763
|
# @return [::Google::Cloud::Dlp::V2::RedactConfig]
|
1761
1764
|
# Redact
|
@@ -1786,6 +1789,9 @@ module Google
|
|
1786
1789
|
# @!attribute [rw] crypto_deterministic_config
|
1787
1790
|
# @return [::Google::Cloud::Dlp::V2::CryptoDeterministicConfig]
|
1788
1791
|
# Deterministic Crypto
|
1792
|
+
# @!attribute [rw] replace_dictionary_config
|
1793
|
+
# @return [::Google::Cloud::Dlp::V2::ReplaceDictionaryConfig]
|
1794
|
+
# Replace with a value randomly drawn (with replacement) from a dictionary.
|
1789
1795
|
class PrimitiveTransformation
|
1790
1796
|
include ::Google::Protobuf::MessageExts
|
1791
1797
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1845,7 +1851,9 @@ module Google
|
|
1845
1851
|
# Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
|
1846
1852
|
# @!attribute [rw] crypto_key
|
1847
1853
|
# @return [::Google::Cloud::Dlp::V2::CryptoKey]
|
1848
|
-
# The key used by the encryption function.
|
1854
|
+
# The key used by the encryption function. For deterministic encryption
|
1855
|
+
# using AES-SIV, the provided key is internally expanded to 64 bytes prior to
|
1856
|
+
# use.
|
1849
1857
|
# @!attribute [rw] surrogate_info_type
|
1850
1858
|
# @return [::Google::Cloud::Dlp::V2::InfoType]
|
1851
1859
|
# The custom info type to annotate the surrogate with.
|
@@ -1914,6 +1922,17 @@ module Google
|
|
1914
1922
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1915
1923
|
end
|
1916
1924
|
|
1925
|
+
# Replace each input value with a value randomly selected from the dictionary.
|
1926
|
+
# @!attribute [rw] word_list
|
1927
|
+
# @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
|
1928
|
+
# A list of words to select from for random replacement. The
|
1929
|
+
# [limits](https://cloud.google.com/dlp/limits) page contains details about
|
1930
|
+
# the size limits of dictionaries.
|
1931
|
+
class ReplaceDictionaryConfig
|
1932
|
+
include ::Google::Protobuf::MessageExts
|
1933
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1934
|
+
end
|
1935
|
+
|
1917
1936
|
# Replace each matching finding with the name of the info_type.
|
1918
1937
|
class ReplaceWithInfoTypeConfig
|
1919
1938
|
include ::Google::Protobuf::MessageExts
|
@@ -2003,8 +2022,8 @@ module Google
|
|
2003
2022
|
# the user for simple bucketing strategies.
|
2004
2023
|
#
|
2005
2024
|
# The transformed value will be a hyphenated string of
|
2006
|
-
# \\{lower_bound}-\\{upper_bound},
|
2007
|
-
# all values that are within this bucket will be replaced with "10-20".
|
2025
|
+
# \\{lower_bound}-\\{upper_bound}. For example, if lower_bound = 10 and upper_bound
|
2026
|
+
# = 20, all values that are within this bucket will be replaced with "10-20".
|
2008
2027
|
#
|
2009
2028
|
# This can be used on data of type: double, long.
|
2010
2029
|
#
|
@@ -2176,10 +2195,11 @@ module Google
|
|
2176
2195
|
end
|
2177
2196
|
|
2178
2197
|
# This is a data encryption key (DEK) (as opposed to
|
2179
|
-
# a key encryption key (KEK) stored by
|
2180
|
-
#
|
2181
|
-
#
|
2182
|
-
#
|
2198
|
+
# a key encryption key (KEK) stored by Cloud Key Management Service
|
2199
|
+
# (Cloud KMS).
|
2200
|
+
# When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
|
2201
|
+
# IAM policy on the KEK to ensure an attacker cannot
|
2202
|
+
# unwrap the DEK.
|
2183
2203
|
# @!attribute [rw] transient
|
2184
2204
|
# @return [::Google::Cloud::Dlp::V2::TransientCryptoKey]
|
2185
2205
|
# Transient crypto key
|
@@ -2188,7 +2208,7 @@ module Google
|
|
2188
2208
|
# Unwrapped crypto key
|
2189
2209
|
# @!attribute [rw] kms_wrapped
|
2190
2210
|
# @return [::Google::Cloud::Dlp::V2::KmsWrappedCryptoKey]
|
2191
|
-
#
|
2211
|
+
# Key wrapped using Cloud KMS
|
2192
2212
|
class CryptoKey
|
2193
2213
|
include ::Google::Protobuf::MessageExts
|
2194
2214
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2220,10 +2240,16 @@ module Google
|
|
2220
2240
|
end
|
2221
2241
|
|
2222
2242
|
# Include to use an existing data crypto key wrapped by KMS.
|
2223
|
-
# The wrapped key must be a 128
|
2243
|
+
# The wrapped key must be a 128-, 192-, or 256-bit key.
|
2224
2244
|
# Authorization requires the following IAM permissions when sending a request
|
2225
|
-
# to perform a crypto transformation using a
|
2245
|
+
# to perform a crypto transformation using a KMS-wrapped crypto key:
|
2226
2246
|
# dlp.kms.encrypt
|
2247
|
+
#
|
2248
|
+
# For more information, see [Creating a wrapped key]
|
2249
|
+
# (https://cloud.google.com/dlp/docs/create-wrapped-key).
|
2250
|
+
#
|
2251
|
+
# Note: When you use Cloud KMS for cryptographic operations,
|
2252
|
+
# [charges apply](https://cloud.google.com/kms/pricing).
|
2227
2253
|
# @!attribute [rw] wrapped_key
|
2228
2254
|
# @return [::String]
|
2229
2255
|
# Required. The wrapped data crypto key.
|
@@ -2295,6 +2321,9 @@ module Google
|
|
2295
2321
|
# @!attribute [rw] fields
|
2296
2322
|
# @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
|
2297
2323
|
# Required. Input field(s) to apply the transformation to.
|
2324
|
+
# When you have columns that reference their position within a list,
|
2325
|
+
# omit the index from the FieldId. FieldId name matching ignores the index.
|
2326
|
+
# For example, instead of "contact.nums[0].type", use "contact.nums.type".
|
2298
2327
|
# @!attribute [rw] condition
|
2299
2328
|
# @return [::Google::Cloud::Dlp::V2::RecordCondition]
|
2300
2329
|
# Only apply the transformation if the condition evaluates to true for the
|
@@ -2489,7 +2518,7 @@ module Google
|
|
2489
2518
|
end
|
2490
2519
|
end
|
2491
2520
|
|
2492
|
-
# Schedule for
|
2521
|
+
# Schedule for inspect job triggers.
|
2493
2522
|
# @!attribute [rw] recurrence_period_duration
|
2494
2523
|
# @return [::Google::Protobuf::Duration]
|
2495
2524
|
# With this option a job is started a regular periodic basis. For
|
@@ -2566,7 +2595,7 @@ module Google
|
|
2566
2595
|
# Output only. The last update timestamp of an inspectTemplate.
|
2567
2596
|
# @!attribute [rw] deidentify_config
|
2568
2597
|
# @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
|
2569
|
-
#
|
2598
|
+
# The core content of the template.
|
2570
2599
|
class DeidentifyTemplate
|
2571
2600
|
include ::Google::Protobuf::MessageExts
|
2572
2601
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2635,9 +2664,6 @@ module Google
|
|
2635
2664
|
# @!attribute [rw] manual
|
2636
2665
|
# @return [::Google::Cloud::Dlp::V2::Manual]
|
2637
2666
|
# For use with hybrid jobs. Jobs must be manually created and finished.
|
2638
|
-
# Early access feature is in a pre-release state and might change or have
|
2639
|
-
# limited support. For more information, see
|
2640
|
-
# https://cloud.google.com/products#product-launch-stages.
|
2641
2667
|
class Trigger
|
2642
2668
|
include ::Google::Protobuf::MessageExts
|
2643
2669
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2730,11 +2756,11 @@ module Google
|
|
2730
2756
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2731
2757
|
end
|
2732
2758
|
|
2733
|
-
# Publish findings of a DlpJob to
|
2759
|
+
# Publish findings of a DlpJob to Data Catalog. Labels summarizing the
|
2734
2760
|
# results of the DlpJob will be applied to the entry for the resource scanned
|
2735
|
-
# in
|
2761
|
+
# in Data Catalog. Any labels previously written by another DlpJob will
|
2736
2762
|
# be deleted. InfoType naming patterns are strictly enforced when using this
|
2737
|
-
# feature. Note that the findings will be persisted in
|
2763
|
+
# feature. Note that the findings will be persisted in Data Catalog
|
2738
2764
|
# storage and are governed by Data Catalog service-specific policy, see
|
2739
2765
|
# https://cloud.google.com/terms/service-terms
|
2740
2766
|
# Only a single instance of this action can be specified and only allowed if
|
@@ -3003,10 +3029,11 @@ module Google
|
|
3003
3029
|
# parent=projects/example-project/locations/europe-west3
|
3004
3030
|
# @!attribute [rw] inspect_job
|
3005
3031
|
# @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
|
3006
|
-
#
|
3032
|
+
# An inspection job scans a storage repository for InfoTypes.
|
3007
3033
|
# @!attribute [rw] risk_job
|
3008
3034
|
# @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
|
3009
|
-
#
|
3035
|
+
# A risk analysis job calculates re-identification risk metrics for a
|
3036
|
+
# BigQuery table.
|
3010
3037
|
# @!attribute [rw] job_id
|
3011
3038
|
# @return [::String]
|
3012
3039
|
# The job id can contain uppercase and lowercase letters,
|
@@ -3075,7 +3102,7 @@ module Google
|
|
3075
3102
|
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
3076
3103
|
# sequence of restrictions implicitly uses `AND`.
|
3077
3104
|
# * A restriction has the form of `{field} {operator} {value}`.
|
3078
|
-
# * Supported fields/values for inspect
|
3105
|
+
# * Supported fields/values for inspect triggers:
|
3079
3106
|
# - `status` - HEALTHY|PAUSED|CANCELLED
|
3080
3107
|
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
3081
3108
|
# - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
@@ -3091,6 +3118,9 @@ module Google
|
|
3091
3118
|
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
3092
3119
|
#
|
3093
3120
|
# The length of this field should be no more than 500 characters.
|
3121
|
+
# @!attribute [rw] type
|
3122
|
+
# @return [::Google::Cloud::Dlp::V2::DlpJobType]
|
3123
|
+
# The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
3094
3124
|
# @!attribute [rw] location_id
|
3095
3125
|
# @return [::String]
|
3096
3126
|
# Deprecated. This field has no effect.
|
@@ -3939,7 +3969,7 @@ module Google
|
|
3939
3969
|
|
3940
3970
|
# An enum to represent the various types of DLP jobs.
|
3941
3971
|
module DlpJobType
|
3942
|
-
#
|
3972
|
+
# Defaults to INSPECT_JOB.
|
3943
3973
|
DLP_JOB_TYPE_UNSPECIFIED = 0
|
3944
3974
|
|
3945
3975
|
# The job inspected Google Cloud for sensitive data.
|
@@ -29,6 +29,9 @@ module Google
|
|
29
29
|
# at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
|
30
30
|
# a built-in type. When sending Cloud DLP results to Data Catalog, infoType
|
31
31
|
# names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
|
32
|
+
# @!attribute [rw] version
|
33
|
+
# @return [::String]
|
34
|
+
# Optional version name for this InfoType.
|
32
35
|
class InfoType
|
33
36
|
include ::Google::Protobuf::MessageExts
|
34
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -100,7 +103,7 @@ module Google
|
|
100
103
|
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
|
101
104
|
# will be replaced with whitespace when scanning for matches, so the
|
102
105
|
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
103
|
-
#
|
106
|
+
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
|
104
107
|
# surrounding any match must be of a different type than the adjacent
|
105
108
|
# characters within the word, so letters must be next to non-letters and
|
106
109
|
# digits next to non-digits. For example, the dictionary word "jen" will
|
@@ -113,7 +116,7 @@ module Google
|
|
113
116
|
# [limits](https://cloud.google.com/dlp/limits) page contains details about
|
114
117
|
# the size limits of dictionaries. For dictionaries that do not fit within
|
115
118
|
# these constraints, consider using `LargeCustomDictionaryConfig` in the
|
116
|
-
#
|
119
|
+
# [limits](https://cloud.google.com/dlp/limits) page contains details about
|
117
120
|
# @!attribute [rw] word_list
|
118
121
|
# @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
|
119
122
|
# List of words or phrases to search for.
|
@@ -145,6 +148,7 @@ module Google
|
|
145
148
|
# google/re2 repository on GitHub.
|
146
149
|
# @!attribute [rw] group_indexes
|
147
150
|
# @return [::Array<::Integer>]
|
151
|
+
# (https://github.com/google/re2/wiki/Syntax) can be found under the
|
148
152
|
# The index of the submatch to extract as findings. When not
|
149
153
|
# specified, the entire match is returned. No more than 3 may be included.
|
150
154
|
class Regex
|
@@ -157,7 +161,7 @@ module Google
|
|
157
161
|
# [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
158
162
|
# These types of transformations are
|
159
163
|
# those that perform pseudonymization, thereby producing a "surrogate" as
|
160
|
-
#
|
164
|
+
# [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
161
165
|
# transformation such as `surrogate_info_type`. This CustomInfoType does
|
162
166
|
# not support the use of `detection_rules`.
|
163
167
|
class SurrogateType
|
@@ -339,6 +343,7 @@ module Google
|
|
339
343
|
# under the google/re2 repository on GitHub.
|
340
344
|
# @!attribute [rw] exclude_regex
|
341
345
|
# @return [::Array<::String>]
|
346
|
+
# [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
342
347
|
# A list of regular expressions matching file paths to exclude. All files in
|
343
348
|
# the bucket that match at least one of these regular expressions will be
|
344
349
|
# excluded from the scan.
|
@@ -361,12 +366,14 @@ module Google
|
|
361
366
|
# Max number of bytes to scan from a file. If a scanned file's size is bigger
|
362
367
|
# than this value then the rest of the bytes are omitted. Only one
|
363
368
|
# of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
|
369
|
+
# Cannot be set if de-identification is requested.
|
364
370
|
# @!attribute [rw] bytes_limit_per_file_percent
|
365
371
|
# @return [::Integer]
|
366
372
|
# Max percentage of bytes to scan from a file. The rest are omitted. The
|
367
373
|
# number of bytes scanned is rounded down. Must be between 0 and 100,
|
368
374
|
# inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one
|
369
375
|
# of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
|
376
|
+
# Cannot be set if de-identification is requested.
|
370
377
|
# @!attribute [rw] file_types
|
371
378
|
# @return [::Array<::Google::Cloud::Dlp::V2::FileType>]
|
372
379
|
# List of file type groups to include in the scan.
|
@@ -474,6 +481,9 @@ module Google
|
|
474
481
|
# @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
|
475
482
|
# References to fields excluded from scanning. This allows you to skip
|
476
483
|
# inspection of entire columns which you know have no findings.
|
484
|
+
# @!attribute [rw] included_fields
|
485
|
+
# @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
|
486
|
+
# Limit scanning only to these fields.
|
477
487
|
class BigQueryOptions
|
478
488
|
include ::Google::Protobuf::MessageExts
|
479
489
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -507,9 +517,6 @@ module Google
|
|
507
517
|
# @!attribute [rw] hybrid_options
|
508
518
|
# @return [::Google::Cloud::Dlp::V2::HybridOptions]
|
509
519
|
# Hybrid inspection options.
|
510
|
-
# Early access feature is in a pre-release state and might change or have
|
511
|
-
# limited support. For more information, see
|
512
|
-
# https://cloud.google.com/products#product-launch-stages.
|
513
520
|
# @!attribute [rw] timespan_config
|
514
521
|
# @return [::Google::Cloud::Dlp::V2::StorageConfig::TimespanConfig]
|
515
522
|
class StorageConfig
|
@@ -787,11 +794,12 @@ module Google
|
|
787
794
|
BINARY_FILE = 1
|
788
795
|
|
789
796
|
# Included file extensions:
|
790
|
-
# asc, brf, c, cc, cpp, csv, cxx, c++, cs, css, dart,
|
791
|
-
#
|
792
|
-
#
|
793
|
-
# rb, rbw, rs, rc, scala, sh, sql,
|
794
|
-
#
|
797
|
+
# asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart,
|
798
|
+
# dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
|
799
|
+
# mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
|
800
|
+
# properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
|
801
|
+
# shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md,
|
802
|
+
# txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
|
795
803
|
TEXT_FILE = 2
|
796
804
|
|
797
805
|
# Included file extensions:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dlp-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|