Class: IbmPowerHmc::VirtualIOServer

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

Overview

VIOS information

Constant Summary

Constants inherited from BasePartition

BasePartition::ATTRS

Constants inherited from AbstractNonRest

AbstractNonRest::ATTRS

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 BasePartition

#group_uuids, #io_adapters, #lhea_ports, #net_adap_uuids, #paging_vios_uuid, #paging_vios_uuids, #shared_processor_pool_uuid, #sriov_elp_uuids, #sys_uuid

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

#capabilitiesObject



240
241
242
243
244
# File 'lib/ibm_power_hmc/schema/uom.rb', line 240

def capabilities
  xml.get_elements("VirtualIOServerCapabilities/*").map do |elem|
    elem.name if elem.text&.strip == "true"
  end.compact.concat(super)
end

#pvsObject



246
247
248
# File 'lib/ibm_power_hmc/schema/uom.rb', line 246

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

#repObject



254
255
256
257
# File 'lib/ibm_power_hmc/schema/uom.rb', line 254

def rep
  elem = xml.elements["MediaRepositories/VirtualMediaRepository"]
  VirtualMediaRepository.new(elem) unless elem.nil?
end

#seasObject



267
268
269
# File 'lib/ibm_power_hmc/schema/uom.rb', line 267

def seas
  collection_of("SharedEthernetAdapters", "SharedEthernetAdapter")
end

#trunksObject



271
272
273
# File 'lib/ibm_power_hmc/schema/uom.rb', line 271

def trunks
  collection_of("TrunkAdapters", "TrunkAdapter")
end

#vfc_mappingsObject



263
264
265
# File 'lib/ibm_power_hmc/schema/uom.rb', line 263

def vfc_mappings
  collection_of("VirtualFibreChannelMappings", "VirtualFibreChannelMapping")
end

#vg_uuidsObject



250
251
252
# File 'lib/ibm_power_hmc/schema/uom.rb', line 250

def vg_uuids
  uuids_from_links("StoragePools")
end

#vscsi_mappingsObject



259
260
261
# File 'lib/ibm_power_hmc/schema/uom.rb', line 259

def vscsi_mappings
  collection_of("VirtualSCSIMappings", "VirtualSCSIMapping")
end