Class: Google::Apis::DatamigrationV1::EntityMapping

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntityMapping

Returns a new instance of EntityMapping.



1372
1373
1374
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1372

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#draft_entityString

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

Returns:

  • (String)


1345
1346
1347
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1345

def draft_entity
  @draft_entity
end

#draft_typeString

Type of draft entity. Corresponds to the JSON property draftType

Returns:

  • (String)


1350
1351
1352
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1350

def draft_type
  @draft_type
end

#mapping_logArray<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



1359
1360
1361
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1359

def mapping_log
  @mapping_log
end

#source_entityString

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

Returns:

  • (String)


1365
1366
1367
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1365

def source_entity
  @source_entity
end

#source_typeString

Type of source entity. Corresponds to the JSON property sourceType

Returns:

  • (String)


1370
1371
1372
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1370

def source_type
  @source_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1377
1378
1379
1380
1381
1382
1383
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1377

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