Class: Google::Apis::MigrationcenterV1::MachineDiskDetails

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 machine disks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineDiskDetails

Returns a new instance of MachineDiskDetails.



2647
2648
2649
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2647

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

Instance Attribute Details

#disksGoogle::Apis::MigrationcenterV1::DiskEntryList

VM disks. Corresponds to the JSON property disks



2635
2636
2637
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2635

def disks
  @disks
end

#total_capacity_bytesFixnum

Disk total Capacity. Corresponds to the JSON property totalCapacityBytes

Returns:

  • (Fixnum)


2640
2641
2642
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2640

def total_capacity_bytes
  @total_capacity_bytes
end

#total_free_bytesFixnum

Total disk free space. Corresponds to the JSON property totalFreeBytes

Returns:

  • (Fixnum)


2645
2646
2647
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2645

def total_free_bytes
  @total_free_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2652
2653
2654
2655
2656
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2652

def update!(**args)
  @disks = args[:disks] if args.key?(:disks)
  @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