Class: Google::Apis::DataprocV1beta2::RegexValidation

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

Overview

Validation based on regular expressions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegexValidation

Returns a new instance of RegexValidation.



2836
2837
2838
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2836

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

Instance Attribute Details

#regexesArray<String>

Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). Corresponds to the JSON property regexes

Returns:

  • (Array<String>)


2834
2835
2836
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2834

def regexes
  @regexes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2841
2842
2843
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2841

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