Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleRegexExpectation

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

Overview

Evaluates whether each column value matches a specified regex.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataQualityRuleRegexExpectation

Returns a new instance of GoogleCloudDataplexV1DataQualityRuleRegexExpectation.



2850
2851
2852
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2850

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

Instance Attribute Details

#regexString

Optional. A regular expression the column value is expected to match. Corresponds to the JSON property regex

Returns:

  • (String)


2848
2849
2850
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2848

def regex
  @regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2855
2856
2857
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2855

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