OPSI.Object module¶
General classes used in the library.
As an example this contains classes for hosts, products, configurations.
| copyright: | uib GmbH <info@uib.de> |
|---|---|
| author: | Jan Schneider <j.schneider@uib.de> |
| author: | Niko Wenselowski <n.wenselowski@uib.de> |
| license: | GNU Affero General Public License version 3 |
-
class
OPSI.Object.AuditHardware(hardwareClass, **kwargs)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'auditHardware'¶
-
foreignIdAttributes= []¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getHardwareClass()¶
-
getIdentAttributes()¶
-
hardwareAttributes= {}¶
-
serialize()¶
-
setDefaults()¶
-
setHardwareClass(hardwareClass)¶
-
static
setHardwareConfig(hardwareConfig)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.AuditHardwareOnHost(hardwareClass, hostId, firstseen=None, lastseen=None, state=None, **kwargs)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'auditHardwareOnHost'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getFirstseen()¶
-
getHardwareClass()¶
-
getHostId()¶
-
getIdentAttributes()¶
-
getLastseen()¶
-
getState()¶
-
hardwareAttributes= {}¶
-
serialize()¶
-
setDefaults()¶
-
setFirstseen(firstseen)¶
-
setHardwareClass(hardwareClass)¶
-
static
setHardwareConfig(hardwareConfig)¶
-
setHostId(hostId)¶
-
setLastseen(lastseen)¶
-
setState(state)¶
-
subClasses= {}¶
-
toAuditHardware()¶
-
-
class
OPSI.Object.AuditSoftware(name, version, subVersion, language, architecture, windowsSoftwareId=None, windowsDisplayName=None, windowsDisplayVersion=None, installSize=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'auditSoftware'¶
-
foreignIdAttributes= []¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getArchitecture()¶
-
getInstallSize()¶
-
getLanguage()¶
-
getName()¶
-
getSubVersion()¶
-
getVersion()¶
-
getWindowsDisplayName()¶
-
getWindowsDisplayVersion()¶
-
getWindowsSoftwareId()¶
-
setArchitecture(architecture)¶
-
setDefaults()¶
-
setInstallSize(installSize)¶
-
setLanguage(language)¶
-
setName(name)¶
-
setSubVersion(subVersion)¶
-
setVersion(version)¶
-
setWindowsDisplayName(windowsDisplayName)¶
-
setWindowsDisplayVersion(windowsDisplayVersion)¶
-
setWindowsSoftwareId(windowsSoftwareId)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.AuditSoftwareOnClient(name, version, subVersion, language, architecture, clientId, uninstallString=None, binaryName=None, firstseen=None, lastseen=None, state=None, usageFrequency=None, lastUsed=None, licenseKey=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'auditSoftwareOnClient'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getArchitecture()¶
-
getBinaryName()¶
-
getClientId()¶
-
getFirstseen()¶
-
getLanguage()¶
-
getLastUsed()¶
-
getLastseen()¶
-
getLicenseKey()¶
-
getName()¶
-
getState()¶
-
getSubVersion()¶
-
getUninstallString()¶
-
getUsageFrequency()¶
-
getVersion()¶
-
setArchitecture(architecture)¶
-
setBinaryName(binaryName)¶
-
setClientId(clientId)¶
-
setDefaults()¶
-
setFirstseen(firstseen)¶
-
setLanguage(language)¶
-
setLastUsed(lastUsed)¶
-
setLastseen(lastseen)¶
-
setLicenseKey(licenseKey)¶
-
setName(name)¶
-
setState(state)¶
-
setSubVersion(subVersion)¶
-
setUninstallString(uninstallString)¶
-
setUsageFrequency(usageFrequency)¶
-
setVersion(version)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.AuditSoftwareToLicensePool(name, version, subVersion, language, architecture, licensePoolId)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'auditSoftwareToLicensePool'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getArchitecture()¶
-
getLanguage()¶
-
getLicensePoolId()¶
-
getName()¶
-
getSubVersion()¶
-
getVersion()¶
-
setArchitecture(architecture)¶
-
setLanguage(language)¶
-
setLicensePoolId(licensePoolId)¶
-
setName(name)¶
-
setSubVersion(subVersion)¶
-
setVersion(version)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.BaseObject¶ Bases:
object-
backendMethodPrefix= ''¶
-
emptyValues(keepAttributes=[])¶
-
foreignIdAttributes= []¶
-
getBackendMethodPrefix()¶
-
getForeignIdAttributes()¶
-
getIdent(returnType='unicode')¶
-
getIdentAttributes()¶
-
getType()¶
-
identSeparator= u';'¶
-
isGeneratedDefault()¶
-
setDefaults()¶
-
setGeneratedDefault(flag=True)¶
-
subClasses= {'Relationship': <class 'OPSI.Object.Relationship'>, 'Entity': <class 'OPSI.Object.Entity'>}¶
-
toHash()¶
-
toJson()¶
-
update(updateObject, updateWithNoneValues=True)¶
-
-
class
OPSI.Object.BoolConfig(id, description=None, defaultValues=None)¶ Bases:
OPSI.Object.Config-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaultValues(defaultValues)¶
-
setDefaults()¶
-
setPossibleValues(possibleValues)¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.BoolProductProperty(productId, productVersion, packageVersion, propertyId, description=None, defaultValues=None)¶ Bases:
OPSI.Object.ProductProperty-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaultValues(defaultValues)¶
-
setDefaults()¶
-
setEditable(editable)¶
-
setPossibleValues(possibleValues)¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.BootConfiguration(name, clientId, priority=None, description=None, netbootProductId=None, pxeTemplate=None, options=None, disk=None, partition=None, active=None, deleteAfter=None, deactivateAfter=None, accessCount=None, osName=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'bootConfiguration'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getAccessCount()¶
-
getActive()¶
-
getClientId()¶
-
getDeactivateAfter()¶
-
getDeleteAfter()¶
-
getDescription()¶
-
getDisk()¶
-
getName()¶
-
getNetbootProductId()¶
-
getOptions()¶
-
getOsName()¶
-
getPartition()¶
-
getPriority()¶
-
getPxeTemplate()¶
-
setAccessCount(accessCount)¶
-
setActive(active)¶
-
setClientId(clientId)¶
-
setDeactivateAfter(deactivateAfter)¶
-
setDefaults()¶
-
setDeleteAfter(deleteAfter)¶
-
setDescription(description)¶
-
setDisk(disk)¶
-
setName(name)¶
-
setNetbootProductId(netbootProductId)¶
-
setOptions(options)¶
-
setOsName(osName)¶
-
setPartition(partition)¶
-
setPriority(priority)¶
-
setPxeTemplate(pxeTemplate)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.ConcurrentSoftwareLicense(id, licenseContractId, maxInstallations=None, boundToHost=None, expirationDate=None)¶ Bases:
OPSI.Object.SoftwareLicense-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.Config(id, description=None, possibleValues=None, defaultValues=None, editable=None, multiValue=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'config'¶
-
foreignIdAttributes= ['objectId', 'configId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getDefaultValues()¶
-
getDescription()¶
-
getEditable()¶
-
getId()¶
-
getMultiValue()¶
-
getPossibleValues()¶
-
setDefaultValues(defaultValues)¶
-
setDefaults()¶
-
setDescription(description)¶
-
setEditable(editable)¶
-
setId(id)¶
-
setMultiValue(multiValue)¶
-
setPossibleValues(possibleValues)¶
-
subClasses= {'BoolConfig': <class 'OPSI.Object.BoolConfig'>, 'UnicodeConfig': <class 'OPSI.Object.UnicodeConfig'>}¶
-
-
class
OPSI.Object.ConfigState(configId, objectId, values=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'configState'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getConfigId()¶
-
getObjectId()¶
-
getValues()¶
-
setConfigId(configId)¶
-
setDefaults()¶
-
setObjectId(objectId)¶
-
setValues(values)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.Entity¶ Bases:
OPSI.Object.BaseObject-
clone(identOnly=False)¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
serialize()¶
-
setDefaults()¶
-
subClasses= {'LicenseContract': <class 'OPSI.Object.LicenseContract'>, 'LicensePool': <class 'OPSI.Object.LicensePool'>, 'Product': <class 'OPSI.Object.Product'>, 'Object': <class 'OPSI.Object.Object'>, 'ProductProperty': <class 'OPSI.Object.ProductProperty'>, 'AuditSoftware': <class 'OPSI.Object.AuditSoftware'>, 'AuditHardware': <class 'OPSI.Object.AuditHardware'>, 'Config': <class 'OPSI.Object.Config'>}¶
-
-
class
OPSI.Object.Group(id, description=None, notes=None, parentGroupId=None)¶ Bases:
OPSI.Object.Object-
backendMethodPrefix= 'group'¶
-
foreignIdAttributes= ['objectId', 'groupId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getId()¶
-
getParentGroupId()¶
-
setDefaults()¶
-
setId(id)¶
-
setParentGroupId(parentGroupId)¶
-
subClasses= {'ProductGroup': <class 'OPSI.Object.ProductGroup'>, 'HostGroup': <class 'OPSI.Object.HostGroup'>}¶
-
-
class
OPSI.Object.Host(id, description=None, notes=None, hardwareAddress=None, ipAddress=None, inventoryNumber=None)¶ Bases:
OPSI.Object.Object-
backendMethodPrefix= 'host'¶
-
foreignIdAttributes= ['objectId', 'hostId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getHardwareAddress()¶
-
getInventoryNumber()¶
-
getIpAddress()¶
-
setDefaults()¶
-
setHardwareAddress(hardwareAddress)¶
-
setId(id)¶
-
setInventoryNumber(inventoryNumber)¶
-
setIpAddress(ipAddress)¶
-
subClasses= {'OpsiClient': <class 'OPSI.Object.OpsiClient'>, 'OpsiDepotserver': <class 'OPSI.Object.OpsiDepotserver'>, 'OpsiConfigserver': <class 'OPSI.Object.OpsiConfigserver'>}¶
-
-
class
OPSI.Object.HostGroup(id, description=None, notes=None, parentGroupId=None)¶ Bases:
OPSI.Object.Group-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.LicenseContract(id, description=None, notes=None, partner=None, conclusionDate=None, notificationDate=None, expirationDate=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'licenseContract'¶
-
foreignIdAttributes= ['licenseContractId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getConclusionDate()¶
-
getDescription()¶
-
getExpirationDate()¶
-
getId()¶
-
getNotes()¶
-
getNotificationDate()¶
-
getPartner()¶
-
setConclusionDate(conclusionDate)¶
-
setDefaults()¶
-
setDescription(description)¶
-
setExpirationDate(expirationDate)¶
-
setId(id)¶
-
setNotes(notes)¶
-
setNotificationDate(notificationDate)¶
-
setPartner(partner)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.LicenseOnClient(softwareLicenseId, licensePoolId, clientId, licenseKey=None, notes=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'licenseOnClient'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getClientId()¶
-
getLicenseKey()¶
-
getLicensePoolId()¶
-
getNotes()¶
-
getSoftwareLicenseId()¶
-
setClientId(clientId)¶
-
setDefaults()¶
-
setLicenseKey(licenseKey)¶
-
setLicensePoolId(licensePoolId)¶
-
setNotes(notes)¶
-
setSoftwareLicenseId(softwareLicenseId)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.LicensePool(id, description=None, productIds=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'licensePool'¶
-
foreignIdAttributes= ['licensePoolId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getDescription()¶
-
getId()¶
-
getProductIds()¶
-
setDefaults()¶
-
setDescription(description)¶
-
setId(id)¶
-
setProductIds(productIds)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.LocalbootProduct(id, productVersion, packageVersion, name=None, licenseRequired=None, setupScript=None, uninstallScript=None, updateScript=None, alwaysScript=None, onceScript=None, customScript=None, userLoginScript=None, priority=None, description=None, advice=None, changelog=None, productClassIds=None, windowsSoftwareIds=None)¶ Bases:
OPSI.Object.Product-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.NetbootProduct(id, productVersion, packageVersion, name=None, licenseRequired=None, setupScript=None, uninstallScript=None, updateScript=None, alwaysScript=None, onceScript=None, customScript=None, priority=None, description=None, advice=None, changelog=None, productClassIds=None, windowsSoftwareIds=None, pxeConfigTemplate=u'')¶ Bases:
OPSI.Object.Product-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getPxeConfigTemplate()¶
-
setDefaults()¶
-
setPxeConfigTemplate(pxeConfigTemplate)¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.OEMSoftwareLicense(id, licenseContractId, maxInstallations=None, boundToHost=None, expirationDate=None)¶ Bases:
OPSI.Object.SoftwareLicense-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setBoundToHost(boundToHost)¶
-
setDefaults()¶
-
setMaxInstallations(maxInstallations)¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.Object(id, description=None, notes=None)¶ Bases:
OPSI.Object.Entity-
foreignIdAttributes= ['objectId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getDescription()¶
-
getId()¶
-
getNotes()¶
-
setDefaults()¶
-
setDescription(description)¶
-
setId(id)¶
-
setNotes(notes)¶
-
subClasses= {'Host': <class 'OPSI.Object.Host'>, 'Group': <class 'OPSI.Object.Group'>}¶
-
-
class
OPSI.Object.ObjectToGroup(groupType, groupId, objectId)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'objectToGroup'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getGroupId()¶
-
getGroupType()¶
-
getObjectId()¶
-
setDefaults()¶
-
setGroupId(groupId)¶
-
setGroupType(groupType)¶
-
setObjectId(objectId)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.OpsiClient(id, opsiHostKey=None, description=None, notes=None, hardwareAddress=None, ipAddress=None, inventoryNumber=None, oneTimePassword=None, created=None, lastSeen=None)¶ Bases:
OPSI.Object.Host-
foreignIdAttributes= ['objectId', 'hostId', 'clientId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getCreated()¶
-
getLastSeen()¶
-
getOneTimePassword()¶
-
getOpsiHostKey()¶
-
setCreated(created)¶
-
setDefaults()¶
-
setLastSeen(lastSeen)¶
-
setOneTimePassword(oneTimePassword)¶
-
setOpsiHostKey(opsiHostKey)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.OpsiConfigserver(id, opsiHostKey=None, depotLocalUrl=None, depotRemoteUrl=None, depotWebdavUrl=None, repositoryLocalUrl=None, repositoryRemoteUrl=None, description=None, notes=None, hardwareAddress=None, ipAddress=None, inventoryNumber=None, networkAddress=None, maxBandwidth=None, isMasterDepot=None, masterDepotId=None)¶ Bases:
OPSI.Object.OpsiDepotserver-
foreignIdAttributes= ['objectId', 'hostId', 'depotId', 'serverId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
-
class
OPSI.Object.OpsiDepotserver(id, opsiHostKey=None, depotLocalUrl=None, depotRemoteUrl=None, depotWebdavUrl=None, repositoryLocalUrl=None, repositoryRemoteUrl=None, description=None, notes=None, hardwareAddress=None, ipAddress=None, inventoryNumber=None, networkAddress=None, maxBandwidth=None, isMasterDepot=None, masterDepotId=None)¶ Bases:
OPSI.Object.Host-
foreignIdAttributes= ['objectId', 'hostId', 'depotId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getDepotLocalUrl()¶
-
getDepotRemoteUrl()¶
-
getDepotWebdavUrl()¶
-
getIsMasterDepot()¶
-
getMasterDepotId()¶
-
getMaxBandwidth()¶
-
getNetworkAddress()¶
-
getOpsiHostKey()¶
-
getRepositoryLocalUrl()¶
-
getRepositoryRemoteUrl()¶
-
setDefaults()¶
-
setDepotLocalUrl(depotLocalUrl)¶
-
setDepotRemoteUrl(depotRemoteUrl)¶
-
setDepotWebdavUrl(depotWebdavUrl)¶
-
setIsMasterDepot(isMasterDepot)¶
-
setMasterDepotId(masterDepotId)¶
-
setMaxBandwidth(maxBandwidth)¶
-
setNetworkAddress(networkAddress)¶
-
setOpsiHostKey(opsiHostKey)¶
-
setRepositoryLocalUrl(repositoryLocalUrl)¶
-
setRepositoryRemoteUrl(repositoryRemoteUrl)¶
-
subClasses= {'OpsiConfigserver': <class 'OPSI.Object.OpsiConfigserver'>}¶
-
-
class
OPSI.Object.Product(id, productVersion, packageVersion, name=None, licenseRequired=None, setupScript=None, uninstallScript=None, updateScript=None, alwaysScript=None, onceScript=None, customScript=None, userLoginScript=None, priority=None, description=None, advice=None, changelog=None, productClassIds=None, windowsSoftwareIds=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'product'¶
-
foreignIdAttributes= ['objectId', 'productId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getAdvice()¶
-
getAlwaysScript()¶
-
getChangelog()¶
-
getCustomScript()¶
-
getDescription()¶
-
getId()¶
-
getLicenseRequired()¶
-
getName()¶
-
getOnceScript()¶
-
getPackageVersion()¶
-
getPriority()¶
-
getProductClassIds()¶
-
getProductVersion()¶
-
getSetupScript()¶
-
getUninstallScript()¶
-
getUpdateScript()¶
-
getUserLoginScript()¶
-
getWindowsSoftwareIds()¶
-
setAdvice(advice)¶
-
setAlwaysScript(alwaysScript)¶
-
setChangelog(changelog)¶
-
setCustomScript(customScript)¶
-
setDefaults()¶
-
setDescription(description)¶
-
setId(id)¶
-
setLicenseRequired(licenseRequired)¶
-
setName(name)¶
-
setOnceScript(onceScript)¶
-
setPackageVersion(packageVersion)¶
-
setPriority(priority)¶
-
setProductClassIds(productClassIds)¶
-
setProductVersion(productVersion)¶
-
setSetupScript(setupScript)¶
-
setUninstallScript(uninstallScript)¶
-
setUpdateScript(updateScript)¶
-
setUserLoginScript(userLoginScript)¶
-
setWindowsSoftwareIds(windowsSoftwareIds)¶
-
subClasses= {'LocalbootProduct': <class 'OPSI.Object.LocalbootProduct'>, 'NetbootProduct': <class 'OPSI.Object.NetbootProduct'>}¶
-
-
class
OPSI.Object.ProductDependency(productId, productVersion, packageVersion, productAction, requiredProductId, requiredProductVersion=None, requiredPackageVersion=None, requiredAction=None, requiredInstallationStatus=None, requirementType=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'productDependency'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getPackageVersion()¶
-
getProductAction()¶
-
getProductId()¶
-
getProductVersion()¶
-
getRequiredAction()¶
-
getRequiredInstallationStatus()¶
-
getRequiredPackageVersion()¶
-
getRequiredProductId()¶
-
getRequiredProductVersion()¶
-
getRequirementType()¶
-
setDefaults()¶
-
setPackageVersion(packageVersion)¶
-
setProductAction(productAction)¶
-
setProductId(productId)¶
-
setProductVersion(productVersion)¶
-
setRequiredAction(requiredAction)¶
-
setRequiredInstallationStatus(requiredInstallationStatus)¶
-
setRequiredPackageVersion(requiredPackageVersion)¶
-
setRequiredProductId(requiredProductId)¶
-
setRequiredProductVersion(requiredProductVersion)¶
-
setRequirementType(requirementType)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.ProductGroup(id, description=None, notes=None, parentGroupId=None)¶ Bases:
OPSI.Object.Group-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.ProductOnClient(productId, productType, clientId, targetConfiguration=None, installationStatus=None, actionRequest=None, lastAction=None, actionProgress=None, actionResult=None, productVersion=None, packageVersion=None, modificationTime=None, actionSequence=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'productOnClient'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getActionProgress()¶
-
getActionRequest()¶
-
getActionResult()¶
-
getActionSequence()¶
-
getClientId()¶
-
getInstallationStatus()¶
-
getLastAction()¶
-
getModificationTime()¶
-
getPackageVersion()¶
-
getProductId()¶
-
getProductType()¶
-
getProductVersion()¶
-
getTargetConfiguration()¶
-
setActionProgress(actionProgress)¶
-
setActionRequest(actionRequest)¶
-
setActionResult(actionResult)¶
-
setActionSequence(actionSequence)¶
-
setClientId(clientId)¶
-
setDefaults()¶
-
setInstallationStatus(installationStatus)¶
-
setLastAction(lastAction)¶
-
setModificationTime(modificationTime)¶
-
setPackageVersion(packageVersion)¶
-
setProductId(productId)¶
-
setProductType(productType)¶
-
setProductVersion(productVersion)¶
-
setTargetConfiguration(targetConfiguration)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.ProductOnDepot(productId, productType, productVersion, packageVersion, depotId, locked=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'productOnDepot'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getDepotId()¶
-
getLocked()¶
-
getPackageVersion()¶
-
getProductId()¶
-
getProductType()¶
-
getProductVersion()¶
-
setDefaults()¶
-
setDepotId(depotId)¶
-
setLocked(locked)¶
-
setPackageVersion(packageVersion)¶
-
setProductId(productId)¶
-
setProductType(productType)¶
-
setProductVersion(productVersion)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.ProductProperty(productId, productVersion, packageVersion, propertyId, description=None, possibleValues=None, defaultValues=None, editable=None, multiValue=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'productProperty'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getDefaultValues()¶
-
getDescription()¶
-
getEditable()¶
-
getMultiValue()¶
-
getPackageVersion()¶
-
getPossibleValues()¶
-
getProductId()¶
-
getProductVersion()¶
-
getPropertyId()¶
-
setDefaultValues(defaultValues)¶
-
setDefaults()¶
-
setDescription(description)¶
-
setEditable(editable)¶
-
setMultiValue(multiValue)¶
-
setPackageVersion(packageVersion)¶
-
setPossibleValues(possibleValues)¶
-
setProductId(productId)¶
-
setProductVersion(productVersion)¶
-
setPropertyId(propertyId)¶
-
subClasses= {'BoolProductProperty': <class 'OPSI.Object.BoolProductProperty'>, 'UnicodeProductProperty': <class 'OPSI.Object.UnicodeProductProperty'>}¶
-
-
class
OPSI.Object.ProductPropertyState(productId, propertyId, objectId, values=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'productPropertyState'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getObjectId()¶
-
getProductId()¶
-
getPropertyId()¶
-
getValues()¶
-
setDefaults()¶
-
setObjectId(objectId)¶
-
setProductId(productId)¶
-
setPropertyId(propertyId)¶
-
setValues(values)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.Relationship¶ Bases:
OPSI.Object.BaseObject-
clone(identOnly=False)¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
serialize()¶
-
setDefaults()¶
-
subClasses= {'LicenseOnClient': <class 'OPSI.Object.LicenseOnClient'>, 'ConfigState': <class 'OPSI.Object.ConfigState'>, 'SoftwareLicenseToLicensePool': <class 'OPSI.Object.SoftwareLicenseToLicensePool'>, 'ProductDependency': <class 'OPSI.Object.ProductDependency'>, 'ProductOnDepot': <class 'OPSI.Object.ProductOnDepot'>, 'ProductPropertyState': <class 'OPSI.Object.ProductPropertyState'>, 'AuditSoftwareToLicensePool': <class 'OPSI.Object.AuditSoftwareToLicensePool'>, 'AuditHardwareOnHost': <class 'OPSI.Object.AuditHardwareOnHost'>, 'ProductOnClient': <class 'OPSI.Object.ProductOnClient'>, 'ObjectToGroup': <class 'OPSI.Object.ObjectToGroup'>, 'AuditSoftwareOnClient': <class 'OPSI.Object.AuditSoftwareOnClient'>, 'BootConfiguration': <class 'OPSI.Object.BootConfiguration'>}¶
-
-
class
OPSI.Object.RetailSoftwareLicense(id, licenseContractId, maxInstallations=None, boundToHost=None, expirationDate=None)¶ Bases:
OPSI.Object.SoftwareLicense-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.SoftwareLicense(id, licenseContractId, maxInstallations=None, boundToHost=None, expirationDate=None)¶ Bases:
OPSI.Object.Entity-
backendMethodPrefix= 'softwareLicense'¶
-
foreignIdAttributes= ['softwareLicenseId']¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getBoundToHost()¶
-
getExpirationDate()¶
-
getId()¶
-
getLicenseContractId()¶
-
getMaxInstallations()¶
-
setBoundToHost(boundToHost)¶
-
setDefaults()¶
-
setExpirationDate(expirationDate)¶
-
setId(id)¶
-
setLicenseContractId(licenseContractId)¶
-
setMaxInstallations(maxInstallations)¶
-
subClasses= {'OEMSoftwareLicense': <class 'OPSI.Object.OEMSoftwareLicense'>, 'VolumeSoftwareLicense': <class 'OPSI.Object.VolumeSoftwareLicense'>, 'ConcurrentSoftwareLicense': <class 'OPSI.Object.ConcurrentSoftwareLicense'>, 'RetailSoftwareLicense': <class 'OPSI.Object.RetailSoftwareLicense'>}¶
-
-
class
OPSI.Object.SoftwareLicenseToLicensePool(softwareLicenseId, licensePoolId, licenseKey=None)¶ Bases:
OPSI.Object.Relationship-
backendMethodPrefix= 'softwareLicenseToLicensePool'¶
-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
getLicenseKey()¶
-
getLicensePoolId()¶
-
getSoftwareLicenseId()¶
-
setDefaults()¶
-
setLicenseKey(licenseKey)¶
-
setLicensePoolId(licensePoolId)¶
-
setSoftwareLicenseId(softwareLicenseId)¶
-
subClasses= {}¶
-
-
class
OPSI.Object.UnicodeConfig(id, description='', possibleValues=None, defaultValues=None, editable=None, multiValue=None)¶ Bases:
OPSI.Object.Config-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaultValues(defaultValues)¶
-
setDefaults()¶
-
setPossibleValues(possibleValues)¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.UnicodeProductProperty(productId, productVersion, packageVersion, propertyId, description=None, possibleValues=None, defaultValues=None, editable=None, multiValue=None)¶ Bases:
OPSI.Object.ProductProperty-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaultValues(defaultValues)¶
-
setDefaults()¶
-
setPossibleValues(possibleValues)¶
-
subClasses= {}¶
-
static
-
class
OPSI.Object.VolumeSoftwareLicense(id, licenseContractId, maxInstallations=None, boundToHost=None, expirationDate=None)¶ Bases:
OPSI.Object.SoftwareLicense-
static
fromHash(hash)¶
-
static
fromJson(jsonString)¶
-
setDefaults()¶
-
subClasses= {}¶
-
static
-
OPSI.Object.decodeIdent(klass, hash)¶
-
OPSI.Object.getBackendMethodPrefix(klass)¶
-
OPSI.Object.getForeignIdAttributes(klass)¶
-
OPSI.Object.getIdentAttributes(klass)¶
-
OPSI.Object.getPossibleClassAttributes(klass)¶ Returns the possible attributes of a class.
Returntype: set of strings
-
OPSI.Object.mandatoryConstructorArgs(Class)¶
-
OPSI.Object.objectsDiffer(obj1, obj2, excludeAttributes=None)¶