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.



4394
4395
4396
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4394

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)


4368
4369
4370
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4368

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)


4374
4375
4376
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4374

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)


4380
4381
4382
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4380

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)


4386
4387
4388
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4386

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)


4392
4393
4394
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4392

def source_min_scale_filter
  @source_min_scale_filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4399
4400
4401
4402
4403
4404
4405
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4399

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