Class: IbmPowerHmc::Tier

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

Overview

SSP tier information

Constant Summary collapse

ATTRS =
{
  :name => "Name",
  :udid => "UniqueDeviceID",
  :type => "Type",
  :capacity => "Capacity",
  :total_lu_size => "TotalLogicalUnitSize",
  :is_default => "IsDefault",
  :free_space => "FreeSpace"
}.freeze

Instance Attribute Summary

Attributes inherited from AbstractRest

#content_type, #etag, #href, #published, #uuid

Attributes inherited from AbstractNonRest

#xml

Instance Method Summary collapse

Methods inherited from AbstractRest

#initialize, #to_s

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::AbstractRest

Instance Method Details

#lus_uuidsObject



975
976
977
# File 'lib/ibm_power_hmc/schema/uom.rb', line 975

def lus_uuids
  uuids_from_links("AssociatedLogicalUnits")
end

#ssp_uuidObject



970
971
972
973
# File 'lib/ibm_power_hmc/schema/uom.rb', line 970

def ssp_uuid
  href = singleton("AssociatedSharedStoragePool", "href")
  uuid_from_href(href) unless href.nil?
end