Class: Google::Apis::DlpV2::GooglePrivacyDlpV2MetadataKeyValueExpression

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2MetadataKeyValueExpression

Returns a new instance of GooglePrivacyDlpV2MetadataKeyValueExpression.



8105
8106
8107
# File 'lib/google/apis/dlp_v2/classes.rb', line 8105

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#key_regexString

The regular expression for the key. Key should be non-empty. Corresponds to the JSON property keyRegex

Returns:

  • (String)


8098
8099
8100
# File 'lib/google/apis/dlp_v2/classes.rb', line 8098

def key_regex
  @key_regex
end

#value_regexString

The regular expression for the value. Value should be non-empty. Corresponds to the JSON property valueRegex

Returns:

  • (String)


8103
8104
8105
# File 'lib/google/apis/dlp_v2/classes.rb', line 8103

def value_regex
  @value_regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8110
8111
8112
8113
# File 'lib/google/apis/dlp_v2/classes.rb', line 8110

def update!(**args)
  @key_regex = args[:key_regex] if args.key?(:key_regex)
  @value_regex = args[:value_regex] if args.key?(:value_regex)
end