Class: Google::Apis::MigrationcenterV1alpha1::DiskEntry

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

Single disk entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskEntry

Returns a new instance of DiskEntry.



3331
3332
3333
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3331

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

Instance Attribute Details

#capacity_bytesFixnum

Disk capacity. Corresponds to the JSON property capacityBytes

Returns:

  • (Fixnum)


3284
3285
3286
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3284

def capacity_bytes
  @capacity_bytes
end

#disk_labelString

Disk label. Corresponds to the JSON property diskLabel

Returns:

  • (String)


3289
3290
3291
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3289

def disk_label
  @disk_label
end

#disk_label_typeString

Disk label type (e.g. BIOS/GPT) Corresponds to the JSON property diskLabelType

Returns:

  • (String)


3294
3295
3296
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3294

def disk_label_type
  @disk_label_type
end

#free_space_bytesFixnum

Disk free space. Corresponds to the JSON property freeSpaceBytes

Returns:

  • (Fixnum)


3299
3300
3301
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3299

def free_space_bytes
  @free_space_bytes
end

#hw_addressString

Disk hardware address (e.g. 0:1 for SCSI). Corresponds to the JSON property hwAddress

Returns:

  • (String)


3304
3305
3306
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3304

def hw_address
  @hw_address
end

#interface_typeString

Disks interface type (e.g. SATA/SCSI) Corresponds to the JSON property interfaceType

Returns:

  • (String)


3309
3310
3311
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3309

def interface_type
  @interface_type
end

#partitionsGoogle::Apis::MigrationcenterV1alpha1::DiskPartitionList

Disk partition list. Corresponds to the JSON property partitions



3314
3315
3316
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3314

def partitions
  @partitions
end

#statusString

Disk status (e.g. online). Corresponds to the JSON property status

Returns:

  • (String)


3319
3320
3321
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3319

def status
  @status
end

#total_capacity_bytesFixnum

Disk capacity. Corresponds to the JSON property totalCapacityBytes

Returns:

  • (Fixnum)


3324
3325
3326
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3324

def total_capacity_bytes
  @total_capacity_bytes
end

#total_free_bytesFixnum

Disk free space. Corresponds to the JSON property totalFreeBytes

Returns:

  • (Fixnum)


3329
3330
3331
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3329

def total_free_bytes
  @total_free_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3336

def update!(**args)
  @capacity_bytes = args[:capacity_bytes] if args.key?(:capacity_bytes)
  @disk_label = args[:disk_label] if args.key?(:disk_label)
  @disk_label_type = args[:disk_label_type] if args.key?(:disk_label_type)
  @free_space_bytes = args[:free_space_bytes] if args.key?(:free_space_bytes)
  @hw_address = args[:hw_address] if args.key?(:hw_address)
  @interface_type = args[:interface_type] if args.key?(:interface_type)
  @partitions = args[:partitions] if args.key?(:partitions)
  @status = args[:status] if args.key?(:status)
  @total_capacity_bytes = args[:total_capacity_bytes] if args.key?(:total_capacity_bytes)
  @total_free_bytes = args[:total_free_bytes] if args.key?(:total_free_bytes)
end