Class: Google::Apis::MigrationcenterV1::DatabaseDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseDetails

Returns a new instance of DatabaseDetails.



1649
1650
1651
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1649

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

Instance Attribute Details

#allocated_storage_bytesFixnum

Optional. The allocated storage for the database in bytes. Corresponds to the JSON property allocatedStorageBytes

Returns:

  • (Fixnum)


1632
1633
1634
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1632

def allocated_storage_bytes
  @allocated_storage_bytes
end

#database_nameString

Required. The name of the database. Corresponds to the JSON property databaseName

Returns:

  • (String)


1637
1638
1639
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1637

def database_name
  @database_name
end

#parent_database_deploymentGoogle::Apis::MigrationcenterV1::DatabaseDetailsParentDatabaseDeployment

The identifiers of the parent database deployment. Corresponds to the JSON property parentDatabaseDeployment



1642
1643
1644
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1642

def parent_database_deployment
  @parent_database_deployment
end

#schemasArray<Google::Apis::MigrationcenterV1::DatabaseSchema>

Optional. The database schemas. Corresponds to the JSON property schemas



1647
1648
1649
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1647

def schemas
  @schemas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1654
1655
1656
1657
1658
1659
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1654

def update!(**args)
  @allocated_storage_bytes = args[:allocated_storage_bytes] if args.key?(:allocated_storage_bytes)
  @database_name = args[:database_name] if args.key?(:database_name)
  @parent_database_deployment = args[:parent_database_deployment] if args.key?(:parent_database_deployment)
  @schemas = args[:schemas] if args.key?(:schemas)
end