Google Cloud Dms V1 Client - Class EntityMapping (1.2.1)

Reference documentation and code samples for the Google Cloud Dms V1 Client class EntityMapping.

Details of the mappings of a database entity.

Generated from protobuf message google.cloud.clouddms.v1.EntityMapping

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_entity string

Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column.

↳ draft_entity string

Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.

↳ source_type int

Type of source entity.

↳ draft_type int

Type of draft entity.

↳ mapping_log array<Google\Cloud\CloudDms\V1\EntityMappingLogEntry>

Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.

getSourceEntity

Source entity full name.

The source entity can also be a column, index or constraint using the same naming notation schema.table.column.

Returns
TypeDescription
string

setSourceEntity

Source entity full name.

The source entity can also be a column, index or constraint using the same naming notation schema.table.column.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDraftEntity

Target entity full name.

The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.

Returns
TypeDescription
string

setDraftEntity

Target entity full name.

The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceType

Type of source entity.

Returns
TypeDescription
int

setSourceType

Type of source entity.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDraftType

Type of draft entity.

Returns
TypeDescription
int

setDraftType

Type of draft entity.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMappingLog

Entity mapping log entries.

Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMappingLog

Entity mapping log entries.

Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.

Parameter
NameDescription
var array<Google\Cloud\CloudDms\V1\EntityMappingLogEntry>
Returns
TypeDescription
$this