Class: IbmPowerHmc::VirtualSCSIMapping
Overview
Virtual SCSI mapping information
Constant Summary
AbstractNonRest::ATTRS
Instance Attribute Summary
#xml
Instance Method Summary
collapse
#collection_of, #create_element, #initialize, marshal, #marshal, #singleton, #timestamp, #to_s, #uuid_from_href, #uuids_from_links
Instance Method Details
#client ⇒ Object
705
706
707
708
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 705
def client
elem = xml.elements["ClientAdapter"]
VirtualSCSIClientAdapter.new(elem) unless elem.nil?
end
|
#device ⇒ Object
727
728
729
730
731
732
733
734
735
736
737
738
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 727
def device
elem = xml.elements["TargetDevice/*[1]"]
begin
Module.const_get("IbmPowerHmc::#{elem.name}").new(elem) unless elem.nil?
rescue NameError
nil
end
end
|
#lpar_uuid ⇒ Object
700
701
702
703
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 700
def lpar_uuid
href = singleton("AssociatedLogicalPartition", "href")
uuid_from_href(href) unless href.nil?
end
|
#server ⇒ Object
710
711
712
713
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 710
def server
elem = xml.elements["ServerAdapter"]
VirtualSCSIServerAdapter.new(elem) unless elem.nil?
end
|
#storage ⇒ Object
715
716
717
718
719
720
721
722
723
724
725
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 715
def storage
elem = xml.elements["Storage/*[1]"]
begin
Module.const_get("IbmPowerHmc::#{elem.name}").new(elem) unless elem.nil?
rescue NameError
nil
end
end
|