Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachineDiskDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachineDiskDetails

Returns a new instance of VirtualMachineDiskDetails.



8880
8881
8882
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8880

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

Instance Attribute Details

#disksGoogle::Apis::MigrationcenterV1alpha1::DiskEntryList

VM disks. Corresponds to the JSON property disks



8863
8864
8865
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8863

def disks
  @disks
end

#hdd_total_capacity_bytesFixnum

Disk total Capacity. Corresponds to the JSON property hddTotalCapacityBytes

Returns:

  • (Fixnum)


8868
8869
8870
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8868

def hdd_total_capacity_bytes
  @hdd_total_capacity_bytes
end

#hdd_total_free_bytesFixnum

Total Disk Free Space. Corresponds to the JSON property hddTotalFreeBytes

Returns:

  • (Fixnum)


8873
8874
8875
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8873

def hdd_total_free_bytes
  @hdd_total_free_bytes
end

#lsblk_jsonString

Raw lsblk output in json. Corresponds to the JSON property lsblkJson

Returns:

  • (String)


8878
8879
8880
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8878

def lsblk_json
  @lsblk_json
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8885
8886
8887
8888
8889
8890
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8885

def update!(**args)
  @disks = args[:disks] if args.key?(:disks)
  @hdd_total_capacity_bytes = args[:hdd_total_capacity_bytes] if args.key?(:hdd_total_capacity_bytes)
  @hdd_total_free_bytes = args[:hdd_total_free_bytes] if args.key?(:hdd_total_free_bytes)
  @lsblk_json = args[:lsblk_json] if args.key?(:lsblk_json)
end