Class: Google::Apis::DatamigrationV1::DatabaseEntity
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::DatabaseEntity
- 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
The base entity type for all the database related entities The message contains the entity name, the name of its parent, its type and the specific details per its type
Instance Attribute Summary collapse
-
#database_function ⇒ Google::Apis::DatamigrationV1::FunctionEntity
Function's parent is a schema.
-
#database_package ⇒ Google::Apis::DatamigrationV1::PackageEntity
Package's parent is a schema.
-
#entity_type ⇒ String
The type of the database entity (table, view, index, ...).
-
#mappings ⇒ Array<Google::Apis::DatamigrationV1::EntityMapping>
Details about entity mappings.
-
#parent_entity ⇒ String
The full name of the parent entity (e.g. schema name).
-
#schema ⇒ Google::Apis::DatamigrationV1::SchemaEntity
Schema typically has no parent entity, but can have a parent entity DatabaseInstance (for database engines which supports it).
-
#sequence ⇒ Google::Apis::DatamigrationV1::SequenceEntity
Sequence's parent is a schema.
-
#short_name ⇒ String
The short name (e.g. table name) of the entity.
-
#stored_procedure ⇒ Google::Apis::DatamigrationV1::StoredProcedureEntity
Stored procedure's parent is a schema.
-
#synonym ⇒ Google::Apis::DatamigrationV1::SynonymEntity
Synonym's parent is a schema.
-
#table ⇒ Google::Apis::DatamigrationV1::TableEntity
Table's parent is a schema.
-
#tree ⇒ String
The type of tree the entity belongs to.
-
#view ⇒ Google::Apis::DatamigrationV1::ViewEntity
View's parent is a schema.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseEntity
constructor
A new instance of DatabaseEntity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseEntity
Returns a new instance of DatabaseEntity.
1100 1101 1102 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_function ⇒ Google::Apis::DatamigrationV1::FunctionEntity
Function's parent is a schema.
Corresponds to the JSON property databaseFunction
1031 1032 1033 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1031 def database_function @database_function end |
#database_package ⇒ Google::Apis::DatamigrationV1::PackageEntity
Package's parent is a schema.
Corresponds to the JSON property databasePackage
1036 1037 1038 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1036 def database_package @database_package end |
#entity_type ⇒ String
The type of the database entity (table, view, index, ...).
Corresponds to the JSON property entityType
1041 1042 1043 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1041 def entity_type @entity_type end |
#mappings ⇒ Array<Google::Apis::DatamigrationV1::EntityMapping>
Details about entity mappings. For source tree entities, this holds the draft
entities which were generated by the mapping rules. For draft tree entities,
this holds the source entities which were converted to form the draft entity.
Destination entities will have no mapping details.
Corresponds to the JSON property mappings
1049 1050 1051 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1049 def mappings @mappings end |
#parent_entity ⇒ String
The full name of the parent entity (e.g. schema name).
Corresponds to the JSON property parentEntity
1054 1055 1056 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1054 def parent_entity @parent_entity end |
#schema ⇒ Google::Apis::DatamigrationV1::SchemaEntity
Schema typically has no parent entity, but can have a parent entity
DatabaseInstance (for database engines which supports it). For some database
engines the term schema and user can be used interchangeably when they refer
to a namespace or a collection of other database entities. Can store
additional information which is schema specific.
Corresponds to the JSON property schema
1063 1064 1065 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1063 def schema @schema end |
#sequence ⇒ Google::Apis::DatamigrationV1::SequenceEntity
Sequence's parent is a schema.
Corresponds to the JSON property sequence
1068 1069 1070 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1068 def sequence @sequence end |
#short_name ⇒ String
The short name (e.g. table name) of the entity.
Corresponds to the JSON property shortName
1073 1074 1075 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1073 def short_name @short_name end |
#stored_procedure ⇒ Google::Apis::DatamigrationV1::StoredProcedureEntity
Stored procedure's parent is a schema.
Corresponds to the JSON property storedProcedure
1078 1079 1080 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1078 def stored_procedure @stored_procedure end |
#synonym ⇒ Google::Apis::DatamigrationV1::SynonymEntity
Synonym's parent is a schema.
Corresponds to the JSON property synonym
1083 1084 1085 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1083 def synonym @synonym end |
#table ⇒ Google::Apis::DatamigrationV1::TableEntity
Table's parent is a schema.
Corresponds to the JSON property table
1088 1089 1090 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1088 def table @table end |
#tree ⇒ String
The type of tree the entity belongs to.
Corresponds to the JSON property tree
1093 1094 1095 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1093 def tree @tree end |
#view ⇒ Google::Apis::DatamigrationV1::ViewEntity
View's parent is a schema.
Corresponds to the JSON property view
1098 1099 1100 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1098 def view @view end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1105 def update!(**args) @database_function = args[:database_function] if args.key?(:database_function) @database_package = args[:database_package] if args.key?(:database_package) @entity_type = args[:entity_type] if args.key?(:entity_type) @mappings = args[:mappings] if args.key?(:mappings) @parent_entity = args[:parent_entity] if args.key?(:parent_entity) @schema = args[:schema] if args.key?(:schema) @sequence = args[:sequence] if args.key?(:sequence) @short_name = args[:short_name] if args.key?(:short_name) @stored_procedure = args[:stored_procedure] if args.key?(:stored_procedure) @synonym = args[:synonym] if args.key?(:synonym) @table = args[:table] if args.key?(:table) @tree = args[:tree] if args.key?(:tree) @view = args[:view] if args.key?(:view) end |