Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Regex

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/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) ⇒ GooglePrivacyDlpV2beta2Regex

Returns a new instance of GooglePrivacyDlpV2beta2Regex



5317
5318
5319
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5317

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

Instance Attribute Details

#patternString

Pattern defining the regular expression. Corresponds to the JSON property pattern

Returns:

  • (String)


5315
5316
5317
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5315

def pattern
  @pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5322
5323
5324
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5322

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