Class: IbmPowerHmc::SharedStoragePool

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

Overview

SSP information

Constant Summary collapse

ATTRS =
{
  :id => "SharedStoragePoolID",
  :name => "StoragePoolName",
  :udid => "UniqueDeviceID",
  :capacity => "Capacity",
  :free_space => "FreeSpace",
  :overcommit => "OverCommitSpace",
  :total_lu_size => "TotalLogicalUnitSize",
  :alert_threshold => "AlertThreshold"
}.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

#cluster_uuidObject



940
941
942
943
# File 'lib/ibm_power_hmc/schema/uom.rb', line 940

def cluster_uuid
  href = singleton("AssociatedCluster", "href")
  uuid_from_href(href) unless href.nil?
end

#lusObject



953
954
955
# File 'lib/ibm_power_hmc/schema/uom.rb', line 953

def lus
  collection_of("LogicalUnits", "LogicalUnit")
end

#pvsObject



945
946
947
# File 'lib/ibm_power_hmc/schema/uom.rb', line 945

def pvs
  collection_of("PhysicalVolumes", "PhysicalVolume")
end

#tiers_uuidsObject



949
950
951
# File 'lib/ibm_power_hmc/schema/uom.rb', line 949

def tiers_uuids
  uuids_from_links("AssociatedTiers")
end