class MiqVimCustomizationSpecManager

Attributes

invObj[R]

Public Class Methods

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

  @csManager      = @sic.customizationSpecManager
  raise "The customizationSpecManager is not supported on this system." unless @csManager
end

Public Instance Methods

createCustomizationSpec(item) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 42
def createCustomizationSpec(item)
  @invObj.createCustomizationSpec(@csManager, item)
end
createCustomizationSpecFromXml(specItemXml) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 46
def createCustomizationSpecFromXml(specItemXml)
  item = xmlToCustomizationSpecItem(specItemXml)
  createCustomizationSpec(item)
end
customizationSpecItemToXml(item) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 55
def customizationSpecItemToXml(item)
  @invObj.customizationSpecItemToXml(@csManager, item)
end
deleteCustomizationSpec(name) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 51
def deleteCustomizationSpec(name)
  @invObj.deleteCustomizationSpec(@csManager, name)
end
doesCustomizationSpecExist(name) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 24
def doesCustomizationSpecExist(name)
  rv = @invObj.doesCustomizationSpecExist(@csManager, name)
  rv == 'true'
end
encryptionKey() click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 12
def encryptionKey
  rv = @invObj.getMoProp(@csManager, 'encryptionKey')
  return nil unless rv
  rv['encryptionKey']
end
getAllCustomizationSpecs() click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 33
def getAllCustomizationSpecs
  specs = info
  return [] if specs.nil?

  specs = Array(specs.dup)
  specs.each { |s| s['spec'] = getCustomizationSpec(s['name'].to_s).spec }
  specs
end
getCustomizationSpec(name) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 29
def getCustomizationSpec(name)
  @invObj.getCustomizationSpec(@csManager, name)
end
info() click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 18
def info
  rv = @invObj.getMoProp(@csManager, 'info')
  return nil unless rv
  rv['info']
end
release() click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 63
def release
end
xmlToCustomizationSpecItem(specItemXml) click to toggle source
# File lib/VMwareWebService/MiqVimCustomizationSpecManager.rb, line 59
def xmlToCustomizationSpecItem(specItemXml)
  @invObj.xmlToCustomizationSpecItem(@csManager, specItemXml)
end