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
579
580
581
582
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 579
def client
elem = xml.elements["ClientAdapter"]
VirtualSCSIClientAdapter.new(elem) unless elem.nil?
end
|
#device ⇒ Object
601
602
603
604
605
606
607
608
609
610
611
612
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 601
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
574
575
576
577
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 574
def lpar_uuid
href = singleton("AssociatedLogicalPartition", "href")
uuid_from_href(href) unless href.nil?
end
|
#server ⇒ Object
584
585
586
587
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 584
def server
elem = xml.elements["ServerAdapter"]
VirtualSCSIServerAdapter.new(elem) unless elem.nil?
end
|
#storage ⇒ Object
589
590
591
592
593
594
595
596
597
598
599
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 589
def storage
elem = xml.elements["Storage/*[1]"]
begin
Module.const_get("IbmPowerHmc::#{elem.name}").new(elem) unless elem.nil?
rescue NameError
nil
end
end
|