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-
(::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.
Note: The following fields are mutually exclusive:
conditional_column_set_value,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#conditional_column_set_value=
def conditional_column_set_value=(value) -> ::Google::Cloud::CloudDMS::V1::ConditionalColumnSetValue-
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.
Note: The following fields are mutually exclusive:
conditional_column_set_value,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::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.
Note: The following fields are mutually exclusive:
conditional_column_set_value,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#convert_rowid_column
def convert_rowid_column() -> ::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn-
(::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn) — Optional. Rule to specify how multiple tables should be converted with an
additional rowid column.
Note: The following fields are mutually exclusive:
convert_rowid_column,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#convert_rowid_column=
def convert_rowid_column=(value) -> ::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn-
value (::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn) — Optional. Rule to specify how multiple tables should be converted with an
additional rowid column.
Note: The following fields are mutually exclusive:
convert_rowid_column,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::ConvertRowIdToColumn) — Optional. Rule to specify how multiple tables should be converted with an
additional rowid column.
Note: The following fields are mutually exclusive:
convert_rowid_column,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#display_name
def display_name() -> ::String- (::String) — Optional. A human readable name
#display_name=
def display_name=(value) -> ::String- value (::String) — Optional. A human readable name
- (::String) — Optional. A human readable name
#entity_move
def entity_move() -> ::Google::Cloud::CloudDMS::V1::EntityMove-
(::Google::Cloud::CloudDMS::V1::EntityMove) — Optional. Rule to specify how multiple entities should be relocated into
a different schema.
Note: The following fields are mutually exclusive:
entity_move,single_entity_rename,multi_entity_rename,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#entity_move=
def entity_move=(value) -> ::Google::Cloud::CloudDMS::V1::EntityMove-
value (::Google::Cloud::CloudDMS::V1::EntityMove) — Optional. Rule to specify how multiple entities should be relocated into
a different schema.
Note: The following fields are mutually exclusive:
entity_move,single_entity_rename,multi_entity_rename,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::EntityMove) — Optional. Rule to specify how multiple entities should be relocated into
a different schema.
Note: The following fields are mutually exclusive:
entity_move,single_entity_rename,multi_entity_rename,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#filter
def filter() -> ::Google::Cloud::CloudDMS::V1::MappingRuleFilter- (::Google::Cloud::CloudDMS::V1::MappingRuleFilter) — Required. The rule filter
#filter=
def filter=(value) -> ::Google::Cloud::CloudDMS::V1::MappingRuleFilter- value (::Google::Cloud::CloudDMS::V1::MappingRuleFilter) — Required. The rule filter
- (::Google::Cloud::CloudDMS::V1::MappingRuleFilter) — Required. The rule filter
#filter_table_columns
def filter_table_columns() -> ::Google::Cloud::CloudDMS::V1::FilterTableColumns-
(::Google::Cloud::CloudDMS::V1::FilterTableColumns) — Optional. Rule to specify the list of columns to include or exclude from
a table.
Note: The following fields are mutually exclusive:
filter_table_columns,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change. If a field in that set is populated, all other fields in the set will automatically be cleared.
#filter_table_columns=
def filter_table_columns=(value) -> ::Google::Cloud::CloudDMS::V1::FilterTableColumns-
value (::Google::Cloud::CloudDMS::V1::FilterTableColumns) — Optional. Rule to specify the list of columns to include or exclude from
a table.
Note: The following fields are mutually exclusive:
filter_table_columns,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::FilterTableColumns) — Optional. Rule to specify the list of columns to include or exclude from
a table.
Note: The following fields are mutually exclusive:
filter_table_columns,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change. If a field in that set is populated, all other fields in the set will automatically be cleared.
#multi_column_data_type_change
def multi_column_data_type_change() -> ::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange-
(::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange) — Optional. Rule to specify how multiple columns should be converted to a
different data type.
Note: The following fields are mutually exclusive:
multi_column_data_type_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#multi_column_data_type_change=
def multi_column_data_type_change=(value) -> ::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange-
value (::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange) — Optional. Rule to specify how multiple columns should be converted to a
different data type.
Note: The following fields are mutually exclusive:
multi_column_data_type_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::MultiColumnDatatypeChange) — Optional. Rule to specify how multiple columns should be converted to a
different data type.
Note: The following fields are mutually exclusive:
multi_column_data_type_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#multi_entity_rename
def multi_entity_rename() -> ::Google::Cloud::CloudDMS::V1::MultiEntityRename-
(::Google::Cloud::CloudDMS::V1::MultiEntityRename) — Optional. Rule to specify how multiple entities should be renamed.
Note: The following fields are mutually exclusive:
multi_entity_rename,single_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#multi_entity_rename=
def multi_entity_rename=(value) -> ::Google::Cloud::CloudDMS::V1::MultiEntityRename-
value (::Google::Cloud::CloudDMS::V1::MultiEntityRename) — Optional. Rule to specify how multiple entities should be renamed.
Note: The following fields are mutually exclusive:
multi_entity_rename,single_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::MultiEntityRename) — Optional. Rule to specify how multiple entities should be renamed.
Note: The following fields are mutually exclusive:
multi_entity_rename,single_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
def name() -> ::String- (::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- value (::String) — Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
- (::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- (::Google::Protobuf::Timestamp) — Output only. The timestamp that the revision was created.
#revision_id
def revision_id() -> ::String- (::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- (::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- 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.
- (::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- (::Google::Cloud::CloudDMS::V1::DatabaseEntityType) — Required. The rule scope
#rule_scope=
def rule_scope=(value) -> ::Google::Cloud::CloudDMS::V1::DatabaseEntityType- value (::Google::Cloud::CloudDMS::V1::DatabaseEntityType) — Required. The rule scope
- (::Google::Cloud::CloudDMS::V1::DatabaseEntityType) — Required. The rule scope
#set_table_primary_key
def set_table_primary_key() -> ::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey-
(::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey) — Optional. Rule to specify the primary key for a table
Note: The following fields are mutually exclusive:
set_table_primary_key,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#set_table_primary_key=
def set_table_primary_key=(value) -> ::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey-
value (::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey) — Optional. Rule to specify the primary key for a table
Note: The following fields are mutually exclusive:
set_table_primary_key,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::SetTablePrimaryKey) — Optional. Rule to specify the primary key for a table
Note: The following fields are mutually exclusive:
set_table_primary_key,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_column_change
def single_column_change() -> ::Google::Cloud::CloudDMS::V1::SingleColumnChange-
(::Google::Cloud::CloudDMS::V1::SingleColumnChange) — Optional. Rule to specify how a single column is converted.
Note: The following fields are mutually exclusive:
single_column_change,single_entity_rename,multi_entity_rename,entity_move,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_column_change=
def single_column_change=(value) -> ::Google::Cloud::CloudDMS::V1::SingleColumnChange-
value (::Google::Cloud::CloudDMS::V1::SingleColumnChange) — Optional. Rule to specify how a single column is converted.
Note: The following fields are mutually exclusive:
single_column_change,single_entity_rename,multi_entity_rename,entity_move,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::SingleColumnChange) — Optional. Rule to specify how a single column is converted.
Note: The following fields are mutually exclusive:
single_column_change,single_entity_rename,multi_entity_rename,entity_move,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_entity_rename
def single_entity_rename() -> ::Google::Cloud::CloudDMS::V1::SingleEntityRename-
(::Google::Cloud::CloudDMS::V1::SingleEntityRename) — Optional. Rule to specify how a single entity should be renamed.
Note: The following fields are mutually exclusive:
single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_entity_rename=
def single_entity_rename=(value) -> ::Google::Cloud::CloudDMS::V1::SingleEntityRename-
value (::Google::Cloud::CloudDMS::V1::SingleEntityRename) — Optional. Rule to specify how a single entity should be renamed.
Note: The following fields are mutually exclusive:
single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::SingleEntityRename) — Optional. Rule to specify how a single entity should be renamed.
Note: The following fields are mutually exclusive:
single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_package_change
def single_package_change() -> ::Google::Cloud::CloudDMS::V1::SinglePackageChange-
(::Google::Cloud::CloudDMS::V1::SinglePackageChange) — Optional. Rule to specify how a single package is converted.
Note: The following fields are mutually exclusive:
single_package_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_package_change=
def single_package_change=(value) -> ::Google::Cloud::CloudDMS::V1::SinglePackageChange-
value (::Google::Cloud::CloudDMS::V1::SinglePackageChange) — Optional. Rule to specify how a single package is converted.
Note: The following fields are mutually exclusive:
single_package_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::SinglePackageChange) — Optional. Rule to specify how a single package is converted.
Note: The following fields are mutually exclusive:
single_package_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,source_sql_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#source_sql_change
def source_sql_change() -> ::Google::Cloud::CloudDMS::V1::SourceSqlChange-
(::Google::Cloud::CloudDMS::V1::SourceSqlChange) — Optional. Rule to change the sql code for an entity, for example,
function, procedure.
Note: The following fields are mutually exclusive:
source_sql_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#source_sql_change=
def source_sql_change=(value) -> ::Google::Cloud::CloudDMS::V1::SourceSqlChange-
value (::Google::Cloud::CloudDMS::V1::SourceSqlChange) — Optional. Rule to change the sql code for an entity, for example,
function, procedure.
Note: The following fields are mutually exclusive:
source_sql_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CloudDMS::V1::SourceSqlChange) — Optional. Rule to change the sql code for an entity, for example,
function, procedure.
Note: The following fields are mutually exclusive:
source_sql_change,single_entity_rename,multi_entity_rename,entity_move,single_column_change,multi_column_data_type_change,conditional_column_set_value,convert_rowid_column,set_table_primary_key,single_package_change,filter_table_columns. If a field in that set is populated, all other fields in the set will automatically be cleared.
#state
def state() -> ::Google::Cloud::CloudDMS::V1::MappingRule::State- (::Google::Cloud::CloudDMS::V1::MappingRule::State) — Optional. The mapping rule state
#state=
def state=(value) -> ::Google::Cloud::CloudDMS::V1::MappingRule::State- value (::Google::Cloud::CloudDMS::V1::MappingRule::State) — Optional. The mapping rule state
- (::Google::Cloud::CloudDMS::V1::MappingRule::State) — Optional. The mapping rule state