Class: Google::Apis::MigrationcenterV1::DatabaseDeploymentTopology

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 database deployment's topology.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseDeploymentTopology

Returns a new instance of DatabaseDeploymentTopology.



1251
1252
1253
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1251

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

Instance Attribute Details

#core_countFixnum

Optional. Number of total logical cores. Corresponds to the JSON property coreCount

Returns:

  • (Fixnum)


1209
1210
1211
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1209

def core_count
  @core_count
end

#core_limitFixnum

Optional. Number of total logical cores limited by db deployment. Corresponds to the JSON property coreLimit

Returns:

  • (Fixnum)


1214
1215
1216
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1214

def core_limit
  @core_limit
end

#disk_allocated_bytesFixnum

Optional. Disk allocated in bytes. Corresponds to the JSON property diskAllocatedBytes

Returns:

  • (Fixnum)


1219
1220
1221
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1219

def disk_allocated_bytes
  @disk_allocated_bytes
end

#disk_used_bytesFixnum

Optional. Disk used in bytes. Corresponds to the JSON property diskUsedBytes

Returns:

  • (Fixnum)


1224
1225
1226
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1224

def disk_used_bytes
  @disk_used_bytes
end

#instancesArray<Google::Apis::MigrationcenterV1::DatabaseInstance>

Optional. List of database instances. Corresponds to the JSON property instances



1229
1230
1231
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1229

def instances
  @instances
end

#memory_bytesFixnum

Optional. Total memory in bytes. Corresponds to the JSON property memoryBytes

Returns:

  • (Fixnum)


1234
1235
1236
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1234

def memory_bytes
  @memory_bytes
end

#memory_limit_bytesFixnum

Optional. Total memory in bytes limited by db deployment. Corresponds to the JSON property memoryLimitBytes

Returns:

  • (Fixnum)


1239
1240
1241
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1239

def memory_limit_bytes
  @memory_limit_bytes
end

#physical_core_countFixnum

Optional. Number of total physical cores. Corresponds to the JSON property physicalCoreCount

Returns:

  • (Fixnum)


1244
1245
1246
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1244

def physical_core_count
  @physical_core_count
end

#physical_core_limitFixnum

Optional. Number of total physical cores limited by db deployment. Corresponds to the JSON property physicalCoreLimit

Returns:

  • (Fixnum)


1249
1250
1251
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1249

def physical_core_limit
  @physical_core_limit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1256

def update!(**args)
  @core_count = args[:core_count] if args.key?(:core_count)
  @core_limit = args[:core_limit] if args.key?(:core_limit)
  @disk_allocated_bytes = args[:disk_allocated_bytes] if args.key?(:disk_allocated_bytes)
  @disk_used_bytes = args[:disk_used_bytes] if args.key?(:disk_used_bytes)
  @instances = args[:instances] if args.key?(:instances)
  @memory_bytes = args[:memory_bytes] if args.key?(:memory_bytes)
  @memory_limit_bytes = args[:memory_limit_bytes] if args.key?(:memory_limit_bytes)
  @physical_core_count = args[:physical_core_count] if args.key?(:physical_core_count)
  @physical_core_limit = args[:physical_core_limit] if args.key?(:physical_core_limit)
end