Class: Google::Apis::DatamigrationV1::EntityMapping
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::EntityMapping
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1/classes.rb,
lib/google/apis/datamigration_v1/representations.rb,
lib/google/apis/datamigration_v1/representations.rb
Overview
Details of the mappings of a database entity.
Instance Attribute Summary collapse
-
#draft_entity ⇒ String
Target entity full name.
-
#mapping_log ⇒ Array<Google::Apis::DatamigrationV1::EntityMappingLogEntry>
Entity mapping log entries.
-
#source_entity ⇒ String
Source entity full name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityMapping
constructor
A new instance of EntityMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EntityMapping
Returns a new instance of EntityMapping.
1362 1363 1364 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1362 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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.
Corresponds to the JSON property draftEntity
1345 1346 1347 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1345 def draft_entity @draft_entity end |
#mapping_log ⇒ Array<Google::Apis::DatamigrationV1::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.
Corresponds to the JSON property mappingLog
1354 1355 1356 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1354 def mapping_log @mapping_log end |
#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.
Corresponds to the JSON property sourceEntity
1360 1361 1362 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1360 def source_entity @source_entity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1367 1368 1369 1370 1371 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1367 def update!(**args) @draft_entity = args[:draft_entity] if args.key?(:draft_entity) @mapping_log = args[:mapping_log] if args.key?(:mapping_log) @source_entity = args[:source_entity] if args.key?(:source_entity) end |