Class: Google::Apis::DatamigrationV1::ValueTransformation
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DatamigrationV1::ValueTransformation
 
 
- 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
Description of data transformation during migration as part of the ConditionalColumnSetValue.
Instance Attribute Summary collapse
- 
  
    
      #apply_hash  ⇒ Google::Apis::DatamigrationV1::ApplyHash 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Apply a hash function on the value.
 - 
  
    
      #assign_max_value  ⇒ Google::Apis::DatamigrationV1::Empty 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
 - 
  
    
      #assign_min_value  ⇒ Google::Apis::DatamigrationV1::Empty 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
 - 
  
    
      #assign_null  ⇒ Google::Apis::DatamigrationV1::Empty 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
 - 
  
    
      #assign_specific_value  ⇒ Google::Apis::DatamigrationV1::AssignSpecificValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Set to a specific value (value is converted to fit the target data type) Corresponds to the JSON property
assignSpecificValue. - 
  
    
      #double_comparison  ⇒ Google::Apis::DatamigrationV1::DoubleComparisonFilter 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Filter based on relation between source value and compare value of type double in ConditionalColumnSetValue Corresponds to the JSON property
doubleComparison. - 
  
    
      #int_comparison  ⇒ Google::Apis::DatamigrationV1::IntComparisonFilter 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Filter based on relation between source value and compare value of type integer in ConditionalColumnSetValue Corresponds to the JSON property
intComparison. - 
  
    
      #is_null  ⇒ Google::Apis::DatamigrationV1::Empty 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
 - 
  
    
      #round_scale  ⇒ Google::Apis::DatamigrationV1::RoundToScale 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This allows the data to change scale, for example if the source is 2 digits after the decimal point, specify round to scale value = 2.
 - 
  
    
      #value_list  ⇒ Google::Apis::DatamigrationV1::ValueListFilter 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of values to filter by in ConditionalColumnSetValue Corresponds to the JSON property
valueList. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ValueTransformation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ValueTransformation.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ ValueTransformation
Returns a new instance of ValueTransformation.
      5647 5648 5649  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5647 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#apply_hash ⇒ Google::Apis::DatamigrationV1::ApplyHash
Apply a hash function on the value.
Corresponds to the JSON property applyHash
      5584 5585 5586  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5584 def apply_hash @apply_hash end  | 
  
#assign_max_value ⇒ Google::Apis::DatamigrationV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty
messages in your APIs. A typical example is to use it as the request or the
response type of an API method. For instance: service Foo rpc Bar(google.
protobuf.Empty) returns (google.protobuf.Empty);
Corresponds to the JSON property assignMaxValue
      5592 5593 5594  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5592 def assign_max_value @assign_max_value end  | 
  
#assign_min_value ⇒ Google::Apis::DatamigrationV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty
messages in your APIs. A typical example is to use it as the request or the
response type of an API method. For instance: service Foo rpc Bar(google.
protobuf.Empty) returns (google.protobuf.Empty);
Corresponds to the JSON property assignMinValue
      5600 5601 5602  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5600 def assign_min_value @assign_min_value end  | 
  
#assign_null ⇒ Google::Apis::DatamigrationV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty
messages in your APIs. A typical example is to use it as the request or the
response type of an API method. For instance: service Foo rpc Bar(google.
protobuf.Empty) returns (google.protobuf.Empty);
Corresponds to the JSON property assignNull
      5608 5609 5610  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5608 def assign_null @assign_null end  | 
  
#assign_specific_value ⇒ Google::Apis::DatamigrationV1::AssignSpecificValue
Set to a specific value (value is converted to fit the target data type)
Corresponds to the JSON property assignSpecificValue
      5613 5614 5615  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5613 def assign_specific_value @assign_specific_value end  | 
  
#double_comparison ⇒ Google::Apis::DatamigrationV1::DoubleComparisonFilter
Filter based on relation between source value and compare value of type double
in ConditionalColumnSetValue
Corresponds to the JSON property doubleComparison
      5619 5620 5621  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5619 def double_comparison @double_comparison end  | 
  
#int_comparison ⇒ Google::Apis::DatamigrationV1::IntComparisonFilter
Filter based on relation between source value and compare value of type
integer in ConditionalColumnSetValue
Corresponds to the JSON property intComparison
      5625 5626 5627  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5625 def int_comparison @int_comparison end  | 
  
#is_null ⇒ Google::Apis::DatamigrationV1::Empty
A generic empty message that you can re-use to avoid defining duplicated empty
messages in your APIs. A typical example is to use it as the request or the
response type of an API method. For instance: service Foo rpc Bar(google.
protobuf.Empty) returns (google.protobuf.Empty);
Corresponds to the JSON property isNull
      5633 5634 5635  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5633 def is_null @is_null end  | 
  
#round_scale ⇒ Google::Apis::DatamigrationV1::RoundToScale
This allows the data to change scale, for example if the source is 2 digits
after the decimal point, specify round to scale value = 2. If for example the
value needs to be converted to an integer, use round to scale value = 0.
Corresponds to the JSON property roundScale
      5640 5641 5642  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5640 def round_scale @round_scale end  | 
  
#value_list ⇒ Google::Apis::DatamigrationV1::ValueListFilter
A list of values to filter by in ConditionalColumnSetValue
Corresponds to the JSON property valueList
      5645 5646 5647  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5645 def value_list @value_list end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663  | 
    
      # File 'lib/google/apis/datamigration_v1/classes.rb', line 5652 def update!(**args) @apply_hash = args[:apply_hash] if args.key?(:apply_hash) @assign_max_value = args[:assign_max_value] if args.key?(:assign_max_value) @assign_min_value = args[:assign_min_value] if args.key?(:assign_min_value) @assign_null = args[:assign_null] if args.key?(:assign_null) @assign_specific_value = args[:assign_specific_value] if args.key?(:assign_specific_value) @double_comparison = args[:double_comparison] if args.key?(:double_comparison) @int_comparison = args[:int_comparison] if args.key?(:int_comparison) @is_null = args[:is_null] if args.key?(:is_null) @round_scale = args[:round_scale] if args.key?(:round_scale) @value_list = args[:value_list] if args.key?(:value_list) end  |