class MiqHostVirtualNicManager

Attributes

invObj[R]

Public Class Methods

new(vnmMor, invObj) click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 4
def initialize(vnmMor, invObj)
  @invObj = invObj
  @vnmMor = vnmMor
end

Public Instance Methods

candidateVnicsByType(nicType) click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 17
def candidateVnicsByType(nicType)
  return [] if (nc = queryNetConfig(nicType)).nil?
  (nc.candidateVnic || [])
end
deselectVnicForNicType(nicType, device) click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 27
def deselectVnicForNicType(nicType, device)
  @invObj.deselectVnicForNicType(@vnmMor, nicType, device)
end
info() click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 9
def info
  @invObj.getMoProp(@vnmMor)['info']
end
queryNetConfig(nicType) click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 13
def queryNetConfig(nicType)
  @invObj.queryNetConfig(@vnmMor, nicType)
end
selectVnicForNicType(nicType, device) click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 31
def selectVnicForNicType(nicType, device)
  @invObj.selectVnicForNicType(@vnmMor, nicType, device)
end
selectedVnicsByType(nicType) click to toggle source
# File lib/VMwareWebService/MiqHostVirtualNicManager.rb, line 22
def selectedVnicsByType(nicType)
  return [] if (nc = queryNetConfig(nicType)).nil?
  (nc.selectedVnic || [])
end