Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleRangeExpectation

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 lies between a specified range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataQualityRuleRangeExpectation

Returns a new instance of GoogleCloudDataplexV1DataQualityRuleRangeExpectation.



2408
2409
2410
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2408

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

Instance Attribute Details

#max_valueString

Optional. The maximum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. Corresponds to the JSON property maxValue

Returns:

  • (String)


2384
2385
2386
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2384

def max_value
  @max_value
end

#min_valueString

Optional. The minimum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. Corresponds to the JSON property minValue

Returns:

  • (String)


2390
2391
2392
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2390

def min_value
  @min_value
end

#strict_max_enabledBoolean Also known as: strict_max_enabled?

Optional. Whether each value needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false. Corresponds to the JSON property strictMaxEnabled

Returns:

  • (Boolean)


2397
2398
2399
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2397

def strict_max_enabled
  @strict_max_enabled
end

#strict_min_enabledBoolean Also known as: strict_min_enabled?

Optional. Whether each value needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false. Corresponds to the JSON property strictMinEnabled

Returns:

  • (Boolean)


2405
2406
2407
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2405

def strict_min_enabled
  @strict_min_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2413
2414
2415
2416
2417
2418
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2413

def update!(**args)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
  @strict_max_enabled = args[:strict_max_enabled] if args.key?(:strict_max_enabled)
  @strict_min_enabled = args[:strict_min_enabled] if args.key?(:strict_min_enabled)
end