Class: IbmPowerHmc::VirtualEthernetAdapter
- Inherits:
-
VirtualIOAdapter
- Object
- AbstractNonRest
- AbstractRest
- VirtualIOAdapter
- IbmPowerHmc::VirtualEthernetAdapter
- Defined in:
- lib/ibm_power_hmc/schema/uom.rb
Overview
Virtual Ethernet Adapter information
Direct Known Subclasses
Constant Summary collapse
- ATTRS =
ATTRS.merge({ :name => "DeviceName", :macaddr => "MACAddress", :vswitch_id => "VirtualSwitchID", :vlan_id => "PortVLANID", :location => "LocationCode" }.freeze)
Instance Attribute Summary
Attributes inherited from AbstractRest
#content_type, #etag, #href, #published, #uuid
Attributes inherited from AbstractNonRest
Instance Method Summary collapse
Methods inherited from AbstractRest
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
#vswitch_href=(href) ⇒ Object
633 634 635 |
# File 'lib/ibm_power_hmc/schema/uom.rb', line 633 def vswitch_href=(href) xml.add_element("AssociatedVirtualSwitch").add_element("link", "href" => href, "rel" => "related") end |
#vswitch_uuid ⇒ Object
629 630 631 |
# File 'lib/ibm_power_hmc/schema/uom.rb', line 629 def vswitch_uuid uuids_from_links("AssociatedVirtualSwitch").first end |