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.
-
#draft_type ⇒ String
Type of draft entity.
-
#mapping_log ⇒ Array<Google::Apis::DatamigrationV1::EntityMappingLogEntry>
Entity mapping log entries.
-
#source_entity ⇒ String
Source entity full name.
-
#source_type ⇒ String
Type of source entity.
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.
1826 1827 1828 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1826 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
1799 1800 1801 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1799 def draft_entity @draft_entity end |
#draft_type ⇒ String
Type of draft entity.
Corresponds to the JSON property draftType
1804 1805 1806 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1804 def draft_type @draft_type 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
1813 1814 1815 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1813 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
1819 1820 1821 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1819 def source_entity @source_entity end |
#source_type ⇒ String
Type of source entity.
Corresponds to the JSON property sourceType
1824 1825 1826 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1824 def source_type @source_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1831 1832 1833 1834 1835 1836 1837 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1831 def update!(**args) @draft_entity = args[:draft_entity] if args.key?(:draft_entity) @draft_type = args[:draft_type] if args.key?(:draft_type) @mapping_log = args[:mapping_log] if args.key?(:mapping_log) @source_entity = args[:source_entity] if args.key?(:source_entity) @source_type = args[:source_type] if args.key?(:source_type) end |