Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2Regex
- 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
Message defining a custom regular expression.
Instance Attribute Summary collapse
-
#group_indexes ⇒ Array<Fixnum>
The index of the submatch to extract as findings.
-
#pattern ⇒ String
Pattern defining the regular expression.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2Regex
constructor
A new instance of GooglePrivacyDlpV2Regex.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Regex
Returns a new instance of GooglePrivacyDlpV2Regex.
8104 8105 8106 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8104 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_indexes ⇒ Array<Fixnum>
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
8096 8097 8098 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8096 def group_indexes @group_indexes end |
#pattern ⇒ String
Pattern defining the regular expression. Its syntax (https://github.com/google/
re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
Corresponds to the JSON property pattern
8102 8103 8104 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8102 def pattern @pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8109 8110 8111 8112 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8109 def update!(**args) @group_indexes = args[:group_indexes] if args.key?(:group_indexes) @pattern = args[:pattern] if args.key?(:pattern) end |