Class: Google::Apis::DatamigrationV1::ConditionalColumnSetValue

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

Options to configure rule type ConditionalColumnSetValue. The rule is used to transform the data which is being replicated/migrated. The rule filter field can refer to one or more entities. The rule scope can be one of: Column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConditionalColumnSetValue

Returns a new instance of ConditionalColumnSetValue.



896
897
898
# File 'lib/google/apis/datamigration_v1/classes.rb', line 896

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

Instance Attribute Details

#custom_featuresHash<String,Object>

Optional. Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


878
879
880
# File 'lib/google/apis/datamigration_v1/classes.rb', line 878

def custom_features
  @custom_features
end

#source_numeric_filterGoogle::Apis::DatamigrationV1::SourceNumericFilter

Filter for fixed point number data types such as NUMERIC/NUMBER Corresponds to the JSON property sourceNumericFilter



883
884
885
# File 'lib/google/apis/datamigration_v1/classes.rb', line 883

def source_numeric_filter
  @source_numeric_filter
end

#source_text_filterGoogle::Apis::DatamigrationV1::SourceTextFilter

Filter for text-based data types like varchar. Corresponds to the JSON property sourceTextFilter



888
889
890
# File 'lib/google/apis/datamigration_v1/classes.rb', line 888

def source_text_filter
  @source_text_filter
end

#value_transformationGoogle::Apis::DatamigrationV1::ValueTransformation

Description of data transformation during migration as part of the ConditionalColumnSetValue. Corresponds to the JSON property valueTransformation



894
895
896
# File 'lib/google/apis/datamigration_v1/classes.rb', line 894

def value_transformation
  @value_transformation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



901
902
903
904
905
906
# File 'lib/google/apis/datamigration_v1/classes.rb', line 901

def update!(**args)
  @custom_features = args[:custom_features] if args.key?(:custom_features)
  @source_numeric_filter = args[:source_numeric_filter] if args.key?(:source_numeric_filter)
  @source_text_filter = args[:source_text_filter] if args.key?(:source_text_filter)
  @value_transformation = args[:value_transformation] if args.key?(:value_transformation)
end