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.



4332
4333
4334
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4332

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)


4306
4307
4308
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4306

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)


4312
4313
4314
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4312

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)


4318
4319
4320
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4318

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)


4324
4325
4326
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4324

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)


4330
4331
4332
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4330

def source_min_scale_filter
  @source_min_scale_filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4337
4338
4339
4340
4341
4342
4343
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4337

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