Reference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::MappingRule.
Definition of a transformation that is to be applied to a group of entities in the source schema. Several such transformations can be applied to an entity sequentially to define the corresponding entity in the target schema.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#conditional_column_set_value
def conditional_column_set_value() -> ::Google::Cloud::CloudDMS::V1::ConditionalColumnSetValue
Returns
- (::Google::Cloud::CloudDMS::V1::ConditionalColumnSetValue) — Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria.
#conditional_column_set_value=
def conditional_column_set_value=(value) -> ::Google::Cloud::CloudDMS::V1::ConditionalColumnSetValue
Parameter
- value (::Google::Cloud::CloudDMS::V1::ConditionalColumnSetValue) — Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria.
Returns
- (::Google::Cloud::CloudDMS::V1::ConditionalColumnSetValue) — Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria.
#convert_rowid_column
def convert_rowid_column() -> ::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn
Returns
- (::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn) — Optional. Rule to specify how multiple tables should be converted with an additional rowid column.
#convert_rowid_column=
def convert_rowid_column=(value) -> ::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn
Parameter
- value (::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn) — Optional. Rule to specify how multiple tables should be converted with an additional rowid column.
Returns
- (::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn) — Optional. Rule to specify how multiple tables should be converted with an additional rowid column.
#display_name
def display_name() -> ::String
Returns
- (::String) — Optional. A human readable name
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — Optional. A human readable name
Returns
- (::String) — Optional. A human readable name
#entity_move
def entity_move() -> ::Google::Cloud::CloudDMS::V1::EntityMove
Returns
- (::Google::Cloud::CloudDMS::V1::EntityMove) — Optional. Rule to specify how multiple entities should be relocated into a different schema.
#entity_move=
def entity_move=(value) -> ::Google::Cloud::CloudDMS::V1::EntityMove
Parameter
- value (::Google::Cloud::CloudDMS::V1::EntityMove) — Optional. Rule to specify how multiple entities should be relocated into a different schema.
Returns
- (::Google::Cloud::CloudDMS::V1::EntityMove) — Optional. Rule to specify how multiple entities should be relocated into a different schema.
#filter
def filter() -> ::Google::Cloud::CloudDMS::V1::MappingRuleFilter
Returns
- (::Google::Cloud::CloudDMS::V1::MappingRuleFilter) — Required. The rule filter
#filter=
def filter=(value) -> ::Google::Cloud::CloudDMS::V1::MappingRuleFilter
Parameter
- value (::Google::Cloud::CloudDMS::V1::MappingRuleFilter) — Required. The rule filter
Returns
- (::Google::Cloud::CloudDMS::V1::MappingRuleFilter) — Required. The rule filter
#filter_table_columns
def filter_table_columns() -> ::Google::Cloud::CloudDMS::V1::FilterTableColumns
Returns
- (::Google::Cloud::CloudDMS::V1::FilterTableColumns) — Optional. Rule to specify the list of columns to include or exclude from a table.
#filter_table_columns=
def filter_table_columns=(value) -> ::Google::Cloud::CloudDMS::V1::FilterTableColumns
Parameter
- value (::Google::Cloud::CloudDMS::V1::FilterTableColumns) — Optional. Rule to specify the list of columns to include or exclude from a table.
Returns
- (::Google::Cloud::CloudDMS::V1::FilterTableColumns) — Optional. Rule to specify the list of columns to include or exclude from a table.
#multi_column_data_type_change
def multi_column_data_type_change() -> ::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange
Returns
- (::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange) — Optional. Rule to specify how multiple columns should be converted to a different data type.
#multi_column_data_type_change=
def multi_column_data_type_change=(value) -> ::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange
Parameter
- value (::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange) — Optional. Rule to specify how multiple columns should be converted to a different data type.
Returns
- (::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange) — Optional. Rule to specify how multiple columns should be converted to a different data type.
#multi_entity_rename
def multi_entity_rename() -> ::Google::Cloud::CloudDMS::V1::MultiEntityRename
Returns
- (::Google::Cloud::CloudDMS::V1::MultiEntityRename) — Optional. Rule to specify how multiple entities should be renamed.
#multi_entity_rename=
def multi_entity_rename=(value) -> ::Google::Cloud::CloudDMS::V1::MultiEntityRename
Parameter
- value (::Google::Cloud::CloudDMS::V1::MultiEntityRename) — Optional. Rule to specify how multiple entities should be renamed.
Returns
- (::Google::Cloud::CloudDMS::V1::MultiEntityRename) — Optional. Rule to specify how multiple entities should be renamed.
#name
def name() -> ::String
Returns
- (::String) — Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
Returns
- (::String) — Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
#revision_create_time
def revision_create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The timestamp that the revision was created.
#revision_id
def revision_id() -> ::String
Returns
- (::String) — Output only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string.
#rule_order
def rule_order() -> ::Integer
Returns
- (::Integer) — Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.
#rule_order=
def rule_order=(value) -> ::Integer
Parameter
- value (::Integer) — Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.
Returns
- (::Integer) — Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.
#rule_scope
def rule_scope() -> ::Google::Cloud::CloudDMS::V1::DatabaseEntityType
Returns
- (::Google::Cloud::CloudDMS::V1::DatabaseEntityType) — Required. The rule scope
#rule_scope=
def rule_scope=(value) -> ::Google::Cloud::CloudDMS::V1::DatabaseEntityType
Parameter
- value (::Google::Cloud::CloudDMS::V1::DatabaseEntityType) — Required. The rule scope
Returns
- (::Google::Cloud::CloudDMS::V1::DatabaseEntityType) — Required. The rule scope
#set_table_primary_key
def set_table_primary_key() -> ::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey
Returns
- (::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey) — Optional. Rule to specify the primary key for a table
#set_table_primary_key=
def set_table_primary_key=(value) -> ::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey
Parameter
- value (::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey) — Optional. Rule to specify the primary key for a table
Returns
- (::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey) — Optional. Rule to specify the primary key for a table
#single_column_change
def single_column_change() -> ::Google::Cloud::CloudDMS::V1::SingleColumnChange
Returns
- (::Google::Cloud::CloudDMS::V1::SingleColumnChange) — Optional. Rule to specify how a single column is converted.
#single_column_change=
def single_column_change=(value) -> ::Google::Cloud::CloudDMS::V1::SingleColumnChange
Parameter
- value (::Google::Cloud::CloudDMS::V1::SingleColumnChange) — Optional. Rule to specify how a single column is converted.
Returns
- (::Google::Cloud::CloudDMS::V1::SingleColumnChange) — Optional. Rule to specify how a single column is converted.
#single_entity_rename
def single_entity_rename() -> ::Google::Cloud::CloudDMS::V1::SingleEntityRename
Returns
- (::Google::Cloud::CloudDMS::V1::SingleEntityRename) — Optional. Rule to specify how a single entity should be renamed.
#single_entity_rename=
def single_entity_rename=(value) -> ::Google::Cloud::CloudDMS::V1::SingleEntityRename
Parameter
- value (::Google::Cloud::CloudDMS::V1::SingleEntityRename) — Optional. Rule to specify how a single entity should be renamed.
Returns
- (::Google::Cloud::CloudDMS::V1::SingleEntityRename) — Optional. Rule to specify how a single entity should be renamed.
#single_package_change
def single_package_change() -> ::Google::Cloud::CloudDMS::V1::SinglePackageChange
Returns
- (::Google::Cloud::CloudDMS::V1::SinglePackageChange) — Optional. Rule to specify how a single package is converted.
#single_package_change=
def single_package_change=(value) -> ::Google::Cloud::CloudDMS::V1::SinglePackageChange
Parameter
- value (::Google::Cloud::CloudDMS::V1::SinglePackageChange) — Optional. Rule to specify how a single package is converted.
Returns
- (::Google::Cloud::CloudDMS::V1::SinglePackageChange) — Optional. Rule to specify how a single package is converted.
#source_sql_change
def source_sql_change() -> ::Google::Cloud::CloudDMS::V1::SourceSqlChange
Returns
- (::Google::Cloud::CloudDMS::V1::SourceSqlChange) — Optional. Rule to change the sql code for an entity, for example, function, procedure.
#source_sql_change=
def source_sql_change=(value) -> ::Google::Cloud::CloudDMS::V1::SourceSqlChange
Parameter
- value (::Google::Cloud::CloudDMS::V1::SourceSqlChange) — Optional. Rule to change the sql code for an entity, for example, function, procedure.
Returns
- (::Google::Cloud::CloudDMS::V1::SourceSqlChange) — Optional. Rule to change the sql code for an entity, for example, function, procedure.
#state
def state() -> ::Google::Cloud::CloudDMS::V1::MappingRule::State
Returns
- (::Google::Cloud::CloudDMS::V1::MappingRule::State) — Optional. The mapping rule state
#state=
def state=(value) -> ::Google::Cloud::CloudDMS::V1::MappingRule::State
Parameter
- value (::Google::Cloud::CloudDMS::V1::MappingRule::State) — Optional. The mapping rule state
Returns
- (::Google::Cloud::CloudDMS::V1::MappingRule::State) — Optional. The mapping rule state