Class: Google::Apis::MigrationcenterV1::DatabaseSchema
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::DatabaseSchema
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Overview
Details of a database schema.
Instance Attribute Summary collapse
-
#mysql ⇒ Google::Apis::MigrationcenterV1::MySqlSchemaDetails
Specific details for a Mysql database.
-
#objects ⇒ Array<Google::Apis::MigrationcenterV1::DatabaseObjects>
Optional.
-
#postgresql ⇒ Google::Apis::MigrationcenterV1::PostgreSqlSchemaDetails
Specific details for a PostgreSql schema.
-
#schema_name ⇒ String
Required.
-
#sql_server ⇒ Google::Apis::MigrationcenterV1::SqlServerSchemaDetails
Specific details for a SqlServer database.
-
#tables_size_bytes ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseSchema
constructor
A new instance of DatabaseSchema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseSchema
Returns a new instance of DatabaseSchema.
1453 1454 1455 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mysql ⇒ Google::Apis::MigrationcenterV1::MySqlSchemaDetails
Specific details for a Mysql database.
Corresponds to the JSON property mysql
1426 1427 1428 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1426 def mysql @mysql end |
#objects ⇒ Array<Google::Apis::MigrationcenterV1::DatabaseObjects>
Optional. List of details of objects by category.
Corresponds to the JSON property objects
1431 1432 1433 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1431 def objects @objects end |
#postgresql ⇒ Google::Apis::MigrationcenterV1::PostgreSqlSchemaDetails
Specific details for a PostgreSql schema.
Corresponds to the JSON property postgresql
1436 1437 1438 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1436 def postgresql @postgresql end |
#schema_name ⇒ String
Required. The name of the schema.
Corresponds to the JSON property schemaName
1441 1442 1443 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1441 def schema_name @schema_name end |
#sql_server ⇒ Google::Apis::MigrationcenterV1::SqlServerSchemaDetails
Specific details for a SqlServer database.
Corresponds to the JSON property sqlServer
1446 1447 1448 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1446 def sql_server @sql_server end |
#tables_size_bytes ⇒ Fixnum
Optional. The total size of tables in bytes.
Corresponds to the JSON property tablesSizeBytes
1451 1452 1453 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1451 def tables_size_bytes @tables_size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1458 1459 1460 1461 1462 1463 1464 1465 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1458 def update!(**args) @mysql = args[:mysql] if args.key?(:mysql) @objects = args[:objects] if args.key?(:objects) @postgresql = args[:postgresql] if args.key?(:postgresql) @schema_name = args[:schema_name] if args.key?(:schema_name) @sql_server = args[:sql_server] if args.key?(:sql_server) @tables_size_bytes = args[:tables_size_bytes] if args.key?(:tables_size_bytes) end |