Class: IbmPowerHmc::PhysicalVolume

Inherits:
VirtualSCSIStorage show all
Defined in:
lib/ibm_power_hmc/schema/uom.rb

Overview

Physical Volume information

Constant Summary collapse

ATTRS =
{
  :location => "LocationCode",
  :description => "Description",
  :is_available => "AvailableForUsage",
  :capacity => "VolumeCapacity", # in MiB
  :name => "VolumeName",
  :is_fc => "IsFibreChannelBacked",
  :is_iscsi => "IsISCSIBacked",
  :udid => "VolumeUniqueID"
}.freeze

Instance Attribute Summary

Attributes inherited from AbstractNonRest

#xml

Instance Method Summary collapse

Methods inherited from AbstractNonRest

#collection_of, #create_element, #initialize, marshal, #marshal, #singleton, #timestamp, #to_s, #uuid_from_href, #uuids_from_links

Constructor Details

This class inherits a constructor from IbmPowerHmc::AbstractNonRest

Instance Method Details

#labelObject



513
514
515
516
# File 'lib/ibm_power_hmc/schema/uom.rb', line 513

def label
  str = singleton("StorageLabel")
  Base64.decode64(str) unless str.nil?
end

#page83Object



518
519
520
521
# File 'lib/ibm_power_hmc/schema/uom.rb', line 518

def page83
  str = singleton("DescriptorPage83")
  Base64.decode64(str) unless str.nil?
end