MappingRule

class oci.golden_gate.models.MappingRule(**kwargs)

Bases: object

Mapping 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

MAPPING_TYPE_EXCLUDE A constant which can be used with the mapping_type property of a MappingRule.
MAPPING_TYPE_INCLUDE A constant which can be used with the mapping_type property of a MappingRule.
mapping_type [Required] Gets the mapping_type of this MappingRule.
source [Required] Gets the source of this MappingRule.
target 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.
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
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
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