Class: Google::Apis::MigrationcenterV1alpha1::DatabaseSchema

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

Details of a database schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseSchema

Returns a new instance of DatabaseSchema.



2691
2692
2693
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2691

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

Instance Attribute Details

#mysqlGoogle::Apis::MigrationcenterV1alpha1::MySqlSchemaDetails

Specific details for a Mysql database. Corresponds to the JSON property mysql



2664
2665
2666
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2664

def mysql
  @mysql
end

#objectsArray<Google::Apis::MigrationcenterV1alpha1::DatabaseObjects>

List of details of objects by category. Corresponds to the JSON property objects



2669
2670
2671
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2669

def objects
  @objects
end

#postgresqlGoogle::Apis::MigrationcenterV1alpha1::PostgreSqlSchemaDetails

Specific details for a PostgreSql schema. Corresponds to the JSON property postgresql



2674
2675
2676
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2674

def postgresql
  @postgresql
end

#schema_nameString

The name of the schema. Corresponds to the JSON property schemaName

Returns:

  • (String)


2679
2680
2681
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2679

def schema_name
  @schema_name
end

#sql_serverGoogle::Apis::MigrationcenterV1alpha1::SqlServerSchemaDetails

Specific details for a SqlServer database. Corresponds to the JSON property sqlServer



2684
2685
2686
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2684

def sql_server
  @sql_server
end

#tables_size_bytesFixnum

The total size of tables in bytes. Corresponds to the JSON property tablesSizeBytes

Returns:

  • (Fixnum)


2689
2690
2691
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2689

def tables_size_bytes
  @tables_size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2696
2697
2698
2699
2700
2701
2702
2703
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2696

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