Class: Google::Apis::DatamigrationV1::SourceNumericFilter

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

Overview

Filter for fixed point number data types such as NUMERIC/NUMBER

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceNumericFilter

Returns a new instance of SourceNumericFilter.



4456
4457
4458
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4456

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

Instance Attribute Details

#numeric_filter_optionString

Required. Enum to set the option defining the datatypes numeric filter has to be applied to Corresponds to the JSON property numericFilterOption

Returns:

  • (String)


4430
4431
4432
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4430

def numeric_filter_option
  @numeric_filter_option
end

#source_max_precision_filterFixnum

Optional. The filter will match columns with precision smaller than or equal to this number. Corresponds to the JSON property sourceMaxPrecisionFilter

Returns:

  • (Fixnum)


4436
4437
4438
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4436

def source_max_precision_filter
  @source_max_precision_filter
end

#source_max_scale_filterFixnum

Optional. The filter will match columns with scale smaller than or equal to this number. Corresponds to the JSON property sourceMaxScaleFilter

Returns:

  • (Fixnum)


4442
4443
4444
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4442

def source_max_scale_filter
  @source_max_scale_filter
end

#source_min_precision_filterFixnum

Optional. The filter will match columns with precision greater than or equal to this number. Corresponds to the JSON property sourceMinPrecisionFilter

Returns:

  • (Fixnum)


4448
4449
4450
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4448

def source_min_precision_filter
  @source_min_precision_filter
end

#source_min_scale_filterFixnum

Optional. The filter will match columns with scale greater than or equal to this number. Corresponds to the JSON property sourceMinScaleFilter

Returns:

  • (Fixnum)


4454
4455
4456
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4454

def source_min_scale_filter
  @source_min_scale_filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4461
4462
4463
4464
4465
4466
4467
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4461

def update!(**args)
  @numeric_filter_option = args[:numeric_filter_option] if args.key?(:numeric_filter_option)
  @source_max_precision_filter = args[:source_max_precision_filter] if args.key?(:source_max_precision_filter)
  @source_max_scale_filter = args[:source_max_scale_filter] if args.key?(:source_max_scale_filter)
  @source_min_precision_filter = args[:source_min_precision_filter] if args.key?(:source_min_precision_filter)
  @source_min_scale_filter = args[:source_min_scale_filter] if args.key?(:source_min_scale_filter)
end