generated/google/apis/dlp_v2beta1/classes.rb in google-api-client-0.15.0 vs generated/google/apis/dlp_v2beta1/classes.rb in google-api-client-0.16.0
- old
+ new
@@ -788,17 +788,17 @@
@transient = args[:transient] if args.key?(:transient)
@unwrapped = args[:unwrapped] if args.key?(:unwrapped)
end
end
- # Replaces an identifier with an surrogate using FPE with the FFX
+ # Replaces an identifier with a surrogate using FPE with the FFX
# mode of operation.
# The identifier must be representable by the US-ASCII character set.
# For a given crypto key and context, the same identifier will be
# replaced with the same surrogate.
- # Note that a given identifier must be either the empty string or be at
- # least two characters long.
+ # Identifiers must be at least two characters long.
+ # In the case that the identifier is the empty string, it will be skipped.
class GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `commonAlphabet`
@@ -847,10 +847,53 @@
@custom_alphabet = args[:custom_alphabet] if args.key?(:custom_alphabet)
@radix = args[:radix] if args.key?(:radix)
end
end
+ # Custom information type provided by the user. Used to find domain-specific
+ # sensitive information configurable to the data in question.
+ class GooglePrivacyDlpV2beta1CustomInfoType
+ include Google::Apis::Core::Hashable
+
+ # Custom information type based on a dictionary of words or phrases. This can
+ # be used to match sensitive information specific to the data, such as a list
+ # of employee IDs or job titles.
+ # Dictionary words are case-insensitive and all characters other than letters
+ # and digits in the unicode [Basic Multilingual
+ # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
+ # Basic_Multilingual_Plane)
+ # will be replaced with whitespace when scanning for matches, so the
+ # dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
+ # "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
+ # surrounding any match must be of a different type than the adjacent
+ # characters within the word, so letters must be next to non-letters and
+ # digits next to non-digits. For example, the dictionary word "jen" will
+ # match the first three letters of the text "jen123" but will return no
+ # matches for "jennifer".
+ # Dictionary words containing a large number of characters that are not
+ # letters or digits may result in unexpected findings because such characters
+ # are treated as whitespace.
+ # Corresponds to the JSON property `dictionary`
+ # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Dictionary]
+ attr_accessor :dictionary
+
+ # Type of information detected by the API.
+ # Corresponds to the JSON property `infoType`
+ # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
+ attr_accessor :info_type
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @dictionary = args[:dictionary] if args.key?(:dictionary)
+ @info_type = args[:info_type] if args.key?(:info_type)
+ end
+ end
+
# Record key for a finding in Cloud Datastore.
class GooglePrivacyDlpV2beta1DatastoreKey
include Google::Apis::Core::Hashable
# A unique identifier for a Datastore entity.
@@ -1018,10 +1061,46 @@
@items = args[:items] if args.key?(:items)
@summaries = args[:summaries] if args.key?(:summaries)
end
end
+ # Custom information type based on a dictionary of words or phrases. This can
+ # be used to match sensitive information specific to the data, such as a list
+ # of employee IDs or job titles.
+ # Dictionary words are case-insensitive and all characters other than letters
+ # and digits in the unicode [Basic Multilingual
+ # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
+ # Basic_Multilingual_Plane)
+ # will be replaced with whitespace when scanning for matches, so the
+ # dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
+ # "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
+ # surrounding any match must be of a different type than the adjacent
+ # characters within the word, so letters must be next to non-letters and
+ # digits next to non-digits. For example, the dictionary word "jen" will
+ # match the first three letters of the text "jen123" but will return no
+ # matches for "jennifer".
+ # Dictionary words containing a large number of characters that are not
+ # letters or digits may result in unexpected findings because such characters
+ # are treated as whitespace.
+ class GooglePrivacyDlpV2beta1Dictionary
+ include Google::Apis::Core::Hashable
+
+ # Message defining a list of words or phrases to search for in the data.
+ # Corresponds to the JSON property `wordList`
+ # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1WordList]
+ attr_accessor :word_list
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @word_list = args[:word_list] if args.key?(:word_list)
+ end
+ end
+
# An entity in a dataset is a field or set of fields that correspond to a
# single person. For example, in medical records the `EntityId` might be
# a patient identifier, or for financial records it might be an account
# identifier. This message is used when generalizations or analysis must be
# consistent across multiple rows pertaining to the same entity.
@@ -1090,11 +1169,11 @@
# The transformation to apply to the field.
class GooglePrivacyDlpV2beta1FieldTransformation
include Google::Apis::Core::Hashable
- # A condition for determing whether a transformation should be applied to
+ # A condition for determining whether a transformation should be applied to
# a field.
# Corresponds to the JSON property `condition`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition]
attr_accessor :condition
@@ -1270,11 +1349,11 @@
@top = args[:top] if args.key?(:top)
@width = args[:width] if args.key?(:width)
end
end
- # Configuration for determing how redaction of images should occur.
+ # Configuration for determining how redaction of images should occur.
class GooglePrivacyDlpV2beta1ImageRedactionConfig
include Google::Apis::Core::Hashable
# Type of information detected by the API.
# Corresponds to the JSON property `infoType`
@@ -1460,10 +1539,15 @@
# When used with redactContent only info_types and min_likelihood are currently
# used.
class GooglePrivacyDlpV2beta1InspectConfig
include Google::Apis::Core::Hashable
+ # Custom info types provided by the user.
+ # Corresponds to the JSON property `customInfoTypes`
+ # @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CustomInfoType>]
+ attr_accessor :custom_info_types
+
# When true, excludes type information of the findings.
# Corresponds to the JSON property `excludeTypes`
# @return [Boolean]
attr_accessor :exclude_types
alias_method :exclude_types?, :exclude_types
@@ -1501,10 +1585,11 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @custom_info_types = args[:custom_info_types] if args.key?(:custom_info_types)
@exclude_types = args[:exclude_types] if args.key?(:exclude_types)
@include_quote = args[:include_quote] if args.key?(:include_quote)
@info_type_limits = args[:info_type_limits] if args.key?(:info_type_limits)
@info_types = args[:info_types] if args.key?(:info_types)
@max_findings = args[:max_findings] if args.key?(:max_findings)
@@ -2315,17 +2400,17 @@
# Currently, only string and integer values can be hashed.
# Corresponds to the JSON property `cryptoHashConfig`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoHashConfig]
attr_accessor :crypto_hash_config
- # Replaces an identifier with an surrogate using FPE with the FFX
+ # Replaces an identifier with a surrogate using FPE with the FFX
# mode of operation.
# The identifier must be representable by the US-ASCII character set.
# For a given crypto key and context, the same identifier will be
# replaced with the same surrogate.
- # Note that a given identifier must be either the empty string or be at
- # least two characters long.
+ # Identifiers must be at least two characters long.
+ # In the case that the identifier is the empty string, it will be skipped.
# Corresponds to the JSON property `cryptoReplaceFfxFpeConfig`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig]
attr_accessor :crypto_replace_ffx_fpe_config
# Buckets values based on fixed size ranges. The
@@ -2484,11 +2569,11 @@
@end = args[:end] if args.key?(:end)
@start = args[:start] if args.key?(:start)
end
end
- # A condition for determing whether a transformation should be applied to
+ # A condition for determining whether a transformation should be applied to
# a field.
class GooglePrivacyDlpV2beta1RecordCondition
include Google::Apis::Core::Hashable
# A collection of expressions
@@ -2534,11 +2619,11 @@
# Configuration to suppress records whose suppression conditions evaluate to
# true.
class GooglePrivacyDlpV2beta1RecordSuppression
include Google::Apis::Core::Hashable
- # A condition for determing whether a transformation should be applied to
+ # A condition for determining whether a transformation should be applied to
# a field.
# Corresponds to the JSON property `condition`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition]
attr_accessor :condition
@@ -3117,9 +3202,30 @@
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@value = args[:value] if args.key?(:value)
+ end
+ end
+
+ # Message defining a list of words or phrases to search for in the data.
+ class GooglePrivacyDlpV2beta1WordList
+ include Google::Apis::Core::Hashable
+
+ # Words or phrases defining the dictionary. The dictionary must contain
+ # at least one phrase and every phrase must contain at least 2 characters
+ # that are letters or digits. [required]
+ # Corresponds to the JSON property `words`
+ # @return [Array<String>]
+ attr_accessor :words
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @words = args[:words] if args.key?(:words)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request