Class: Google::Apis::DlpV2::GooglePrivacyDlpV2MetadataKeyValueExpression
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2MetadataKeyValueExpression
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
Configuration for a custom infoType that detects key-value pairs in the metadata matching the specified regular expressions.
Instance Attribute Summary collapse
-
#key_regex ⇒ String
The regular expression for the key.
-
#value_regex ⇒ String
The regular expression for the value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2MetadataKeyValueExpression
constructor
A new instance of GooglePrivacyDlpV2MetadataKeyValueExpression.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2MetadataKeyValueExpression
Returns a new instance of GooglePrivacyDlpV2MetadataKeyValueExpression.
7987 7988 7989 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 7987 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_regex ⇒ String
The regular expression for the key. Key should be non-empty.
Corresponds to the JSON property keyRegex
7980 7981 7982 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 7980 def key_regex @key_regex end |
#value_regex ⇒ String
The regular expression for the value. Value should be non-empty.
Corresponds to the JSON property valueRegex
7985 7986 7987 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 7985 def value_regex @value_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7992 7993 7994 7995 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 7992 def update!(**args) @key_regex = args[:key_regex] if args.key?(:key_regex) @value_regex = args[:value_regex] if args.key?(:value_regex) end |