MappingRule¶
- class oci.golden_gate.models.MappingRule(**kwargs)¶
Bases:
objectMapping rule for source and target schemas for the pipeline data replication. For example: “{mappingType: INCLUDE, source: HR.*, target: HR.*}” for rule “Include HR.*” which will include all the tables under HR schema.
Attributes:
A constant which can be used with the mapping_type property of a MappingRule.
A constant which can be used with the mapping_type property of a MappingRule.
[Required] Gets the mapping_type of this MappingRule.
[Required] Gets the source of this MappingRule.
Gets the target of this MappingRule.
Methods:
__init__(**kwargs)Initializes a new MappingRule object with values from keyword arguments.
- MAPPING_TYPE_EXCLUDE = 'EXCLUDE'¶
A constant which can be used with the mapping_type property of a MappingRule. This constant has a value of “EXCLUDE”
- MAPPING_TYPE_INCLUDE = 'INCLUDE'¶
A constant which can be used with the mapping_type property of a MappingRule. This constant has a value of “INCLUDE”
- __init__(**kwargs)¶
Initializes a new MappingRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
mapping_type (str) – The value to assign to the mapping_type property of this MappingRule. Allowed values for this property are: “INCLUDE”, “EXCLUDE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
source (str) – The value to assign to the source property of this MappingRule.
target (str) – The value to assign to the target property of this MappingRule.
- property mapping_type¶
[Required] Gets the mapping_type of this MappingRule. Defines the exclude/include rules of source and target schemas and tables when replicating from source to target. This option applies when creating and updating a pipeline.
Allowed values for this property are: “INCLUDE”, “EXCLUDE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The mapping_type of this MappingRule.
- Return type
str
- property source¶
[Required] Gets the source of this MappingRule. The source schema/table combination for replication to target.
- Returns
The source of this MappingRule.
- Return type
str
- property target¶
Gets the target of this MappingRule. The target schema/table combination for replication from the source.
- Returns
The target of this MappingRule.
- Return type
str