google-cloud-dlp-v2 0.7.1 → 0.8.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/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +865 -264
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +11 -2
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +1 -10
- data/lib/google/privacy/dlp/v2/storage_pb.rb +5 -3
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +62 -32
- data/proto_docs/google/privacy/dlp/v2/storage.rb +19 -11
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/dayofweek.rb +9 -9
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +4 -4
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/privacy/dlp/v2/dlp.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/client_pb'
|
7
5
|
require 'google/api/field_behavior_pb'
|
8
6
|
require 'google/api/resource_pb'
|
@@ -16,6 +14,8 @@ require 'google/type/date_pb'
|
|
16
14
|
require 'google/type/dayofweek_pb'
|
17
15
|
require 'google/type/timeofday_pb'
|
18
16
|
require 'google/api/annotations_pb'
|
17
|
+
require 'google/protobuf'
|
18
|
+
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
20
|
add_file("google/privacy/dlp/v2/dlp.proto", :syntax => :proto3) do
|
21
21
|
add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
|
@@ -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/
|
5
|
-
|
4
|
+
require 'google/api/annotations_pb'
|
6
5
|
require 'google/api/resource_pb'
|
7
6
|
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'google/
|
7
|
+
require 'google/protobuf'
|
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
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -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:
|
@@ -19,28 +19,31 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a whole or partial calendar date,
|
23
|
-
# and time zone are either specified elsewhere or are
|
24
|
-
# is relative to the
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
25
|
+
# following:
|
25
26
|
#
|
26
|
-
# * A full date, with non-zero year, month and day values
|
27
|
-
# * A month and day value, with a zero year,
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
28
29
|
# * A year on its own, with zero month and day values
|
29
|
-
# * A year and month value, with a zero day,
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
31
|
+
# date
|
30
32
|
#
|
31
|
-
# Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
|
33
|
+
# Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
|
34
|
+
# `google.protobuf.Timestamp`.
|
32
35
|
# @!attribute [rw] year
|
33
36
|
# @return [::Integer]
|
34
|
-
# Year of date. Must be from 1 to 9999, or 0
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
35
38
|
# a year.
|
36
39
|
# @!attribute [rw] month
|
37
40
|
# @return [::Integer]
|
38
|
-
# Month of year. Must be from 1 to 12, or 0
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
39
42
|
# month and day.
|
40
43
|
# @!attribute [rw] day
|
41
44
|
# @return [::Integer]
|
42
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
43
|
-
#
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
44
47
|
# significant.
|
45
48
|
class Date
|
46
49
|
include ::Google::Protobuf::MessageExts
|
@@ -19,30 +19,30 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a day of week.
|
22
|
+
# Represents a day of the week.
|
23
23
|
module DayOfWeek
|
24
|
-
# The
|
24
|
+
# The day of the week is unspecified.
|
25
25
|
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
26
|
|
27
|
-
#
|
27
|
+
# Monday
|
28
28
|
MONDAY = 1
|
29
29
|
|
30
|
-
#
|
30
|
+
# Tuesday
|
31
31
|
TUESDAY = 2
|
32
32
|
|
33
|
-
#
|
33
|
+
# Wednesday
|
34
34
|
WEDNESDAY = 3
|
35
35
|
|
36
|
-
#
|
36
|
+
# Thursday
|
37
37
|
THURSDAY = 4
|
38
38
|
|
39
|
-
#
|
39
|
+
# Friday
|
40
40
|
FRIDAY = 5
|
41
41
|
|
42
|
-
#
|
42
|
+
# Saturday
|
43
43
|
SATURDAY = 6
|
44
44
|
|
45
|
-
#
|
45
|
+
# Sunday
|
46
46
|
SUNDAY = 7
|
47
47
|
end
|
48
48
|
end
|
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Type
|
22
22
|
# Represents a time of day. The date and time zone are either not significant
|
23
23
|
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
-
# types are {::Google::Type::Date google.type.Date} and
|
24
|
+
# types are {::Google::Type::Date google.type.Date} and
|
25
|
+
# `google.protobuf.Timestamp`.
|
25
26
|
# @!attribute [rw] hours
|
26
27
|
# @return [::Integer]
|
27
28
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
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
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|