Package com.morpheusdata.model
Class UpdateDefinition
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.UpdateIdentityProjection
com.morpheusdata.model.UpdateDefinition
- All Implemented Interfaces:
Serializable
Represents the definition of an update, including its metadata, requirements, and type.
An UpdateDefinition describes an available update for a resource type identified by
refType and refId (e.g., a StorageServerType or ComputeServerType).
It does not represent a specific in-progress operation on an instance â that is modeled by
UpdateOperation, whose refType/refId point to the concrete resource instance.
Plugin authors should use MorpheusUpdateDefinitionService (async) or
MorpheusSynchronousUpdateDefinitionService (sync) to create,
sync, and query update definitions. The stable sync identity for matching existing records is UpdateIdentityProjection.code
scoped to a given refType/refId pair.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to represent the image path type.static enumEnum to represent the operation name/type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringVersion of the update catalog or bundle this definition was sourced from.protected StringHuman-readable description of the update (e.g., changelog text).protected BooleanWhether this update definition is active and eligible to be applied.protected Objectprotected UpdateDefinition.ImagePathTypeprotected Booleanprotected Booleanprotected Longprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected StringSeverity of the update.protected Booleanprotected StringCategory of the update.protected Stringprotected UpdateDefinition.OpTypeprotected DateDate this update was released by the vendor or source.protected Stringprotected BooleanWhether this update can be applied with zero downtime (no reboot, no service interruption).Fields inherited from class com.morpheusdata.model.projection.UpdateIdentityProjection
code, nameFields inherited from class com.morpheusdata.model.MorpheusModel
config, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRefId()getType()voidsetCatalogVersion(String catalogVersion) voidsetDescription(String description) voidsetEnabled(Boolean enabled) voidsetHasMany(Object hasMany) voidsetImagePathType(UpdateDefinition.ImagePathType imagePathType) voidsetIsPlugin(Boolean isPlugin) voidsetPeerPersistence(Boolean peerPersistence) voidvoidsetRefType(String refType) voidsetRequiresMaintenanceMode(Boolean requiresMaintenanceMode) voidsetRequiresReboot(Boolean requiresReboot) voidsetRequiresRestart(Boolean requiresRestart) voidsetSeverity(String severity) voidsetSupportsRollback(Boolean supportsRollback) voidvoidsetUpdateImagePath(String updateImagePath) voidsetUpdateOpType(UpdateDefinition.OpType updateOpType) voidsetUpdateReleaseDate(Date updateReleaseDate) voidsetValidateRules(List<String> validateRules) voidsetVersion(String version) voidsetZeroDowntime(Boolean zeroDowntime) Methods inherited from class com.morpheusdata.model.projection.UpdateIdentityProjection
getCode, getName, setCode, setNameMethods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityPropertiesMethods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
version
-
updateOpType
-
refType
-
refId
-
updateImagePath
-
imagePathType
-
peerPersistence
-
requiresReboot
-
requiresMaintenanceMode
-
requiresRestart
-
supportsRollback
-
isPlugin
-
hasMany
-
validateRules
-
severity
Severity of the update. Typical values:"normal","important","critical". -
type
Category of the update. Typical values:"security","feature","bugfix","enhancement". -
description
Human-readable description of the update (e.g., changelog text). May be null. -
enabled
Whether this update definition is active and eligible to be applied. Defaults totrue. -
zeroDowntime
Whether this update can be applied with zero downtime (no reboot, no service interruption). Defaults tofalse. -
catalogVersion
Version of the update catalog or bundle this definition was sourced from. May be null if not catalog-driven. -
updateReleaseDate
Date this update was released by the vendor or source. May be null.
-
-
Constructor Details
-
UpdateDefinition
public UpdateDefinition()
-
-
Method Details
-
getVersion
-
setVersion
-
getUpdateOpType
-
setUpdateOpType
-
getRefType
-
setRefType
-
getRefId
-
setRefId
-
getUpdateImagePath
-
setUpdateImagePath
-
getImagePathType
-
setImagePathType
-
getValidateRules
-
setValidateRules
-
getPeerPersistence
-
setPeerPersistence
-
getRequiresReboot
-
setRequiresReboot
-
getRequiresMaintenanceMode
-
setRequiresMaintenanceMode
-
getRequiresRestart
-
setRequiresRestart
-
getSupportsRollback
-
setSupportsRollback
-
getIsPlugin
-
setIsPlugin
-
getHasMany
-
setHasMany
-
getSeverity
-
setSeverity
-
getType
-
setType
-
getDescription
-
setDescription
-
getEnabled
-
setEnabled
-
getZeroDowntime
-
setZeroDowntime
-
getCatalogVersion
-
setCatalogVersion
-
getUpdateReleaseDate
-
setUpdateReleaseDate
-