Class: VSphereCloud::Resources::PersistentDisk

Inherits:
Disk
  • Object
show all
Defined in:
lib/cloud/vsphere/resources/persistent_disk.rb

Constant Summary collapse

SUPPORTED_DISK_TYPES =
%w{
  eagerZeroedThick
  preallocated
  thick
  thin
}
DEFAULT_DISK_TYPE =
'preallocated'

Instance Attribute Summary

Attributes inherited from Disk

#cid, #datastore, #folder, #size_in_mb

Instance Method Summary collapse

Methods inherited from Disk

#create_disk_attachment_spec, #initialize, #path

Constructor Details

This class inherits a constructor from VSphereCloud::Resources::Disk

Instance Method Details

#create_backing_infoObject



14
15
16
17
18
19
# File 'lib/cloud/vsphere/resources/persistent_disk.rb', line 14

def create_backing_info
  backing_info = super
  backing_info.disk_mode = VimSdk::Vim::Vm::Device::VirtualDiskOption::DiskMode::INDEPENDENT_PERSISTENT

  backing_info
end