Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

Message defining a custom regular expression.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Regex

Returns a new instance of GooglePrivacyDlpV2Regex



4383
4384
4385
# File 'generated/google/apis/dlp_v2/classes.rb', line 4383

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

Instance Attribute Details

#patternString

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

Returns:

  • (String)


4381
4382
4383
# File 'generated/google/apis/dlp_v2/classes.rb', line 4381

def pattern
  @pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4388
4389
4390
# File 'generated/google/apis/dlp_v2/classes.rb', line 4388

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