class Google::Apis::DlpV2::GooglePrivacyDlpV2Regex
Message defining a custom regular expression.
Attributes
group_indexes[RW]
The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included. Corresponds to the JSON property `groupIndexes` @return [Array<Fixnum>]
pattern[RW]
Pattern defining the regular expression. Its syntax (github.com/google/ re2/wiki/Syntax) can be found under the google/re2 repository on GitHub. Corresponds to the JSON property `pattern` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 5164 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/dlp_v2/classes.rb, line 5169 def update!(**args) @group_indexes = args[:group_indexes] if args.key?(:group_indexes) @pattern = args[:pattern] if args.key?(:pattern) end