public interface Pending extends Service, PendingTypes
Pending interface provides methods to manipulate pending updates.
This interface was added in vSphere API 6.7.PendingTypes.Info, PendingTypes.PrecheckResult, PendingTypes.Question, PendingTypes.SourceType| Modifier and Type | Method and Description |
|---|---|
PendingTypes.Info |
get(java.lang.String version)
Gets update information.
|
void |
get(java.lang.String version,
AsyncCallback<PendingTypes.Info> asyncCallback)
Gets update information.
|
void |
get(java.lang.String version,
AsyncCallback<PendingTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Gets update information.
|
PendingTypes.Info |
get(java.lang.String version,
InvocationConfig invocationConfig)
Gets update information.
|
void |
install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData)
Starts operation of installing the appliance update.
|
void |
install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback)
Starts operation of installing the appliance update.
|
void |
install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Starts operation of installing the appliance update.
|
void |
install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
InvocationConfig invocationConfig)
Starts operation of installing the appliance update.
|
java.util.List<Summary> |
list(PendingTypes.SourceType sourceType,
java.lang.String url)
Checks if new updates are available.
|
void |
list(PendingTypes.SourceType sourceType,
java.lang.String url,
AsyncCallback<java.util.List<Summary>> asyncCallback)
Checks if new updates are available.
|
void |
list(PendingTypes.SourceType sourceType,
java.lang.String url,
AsyncCallback<java.util.List<Summary>> asyncCallback,
InvocationConfig invocationConfig)
Checks if new updates are available.
|
java.util.List<Summary> |
list(PendingTypes.SourceType sourceType,
java.lang.String url,
InvocationConfig invocationConfig)
Checks if new updates are available.
|
PendingTypes.PrecheckResult |
precheck(java.lang.String version)
Runs update precheck.
|
void |
precheck(java.lang.String version,
AsyncCallback<PendingTypes.PrecheckResult> asyncCallback)
Runs update precheck.
|
void |
precheck(java.lang.String version,
AsyncCallback<PendingTypes.PrecheckResult> asyncCallback,
InvocationConfig invocationConfig)
Runs update precheck.
|
PendingTypes.PrecheckResult |
precheck(java.lang.String version,
InvocationConfig invocationConfig)
Runs update precheck.
|
void |
stage(java.lang.String version)
Starts staging the appliance update.
|
void |
stage(java.lang.String version,
AsyncCallback<java.lang.Void> asyncCallback)
Starts staging the appliance update.
|
void |
stage(java.lang.String version,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Starts staging the appliance update.
|
void |
stage(java.lang.String version,
InvocationConfig invocationConfig)
Starts staging the appliance update.
|
void |
stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData)
Starts operation of installing the appliance update.
|
void |
stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback)
Starts operation of installing the appliance update.
|
void |
stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Starts operation of installing the appliance update.
|
void |
stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
InvocationConfig invocationConfig)
Starts operation of installing the appliance update.
|
Notifications |
validate(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData)
Validates the user provided data before the update installation.
|
void |
validate(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<Notifications> asyncCallback)
Validates the user provided data before the update installation.
|
void |
validate(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<Notifications> asyncCallback,
InvocationConfig invocationConfig)
Validates the user provided data before the update installation.
|
Notifications |
validate(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
InvocationConfig invocationConfig)
Validates the user provided data before the update installation.
|
java.util.List<Summary> list(PendingTypes.SourceType sourceType, java.lang.String url)
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceType - type of the sourceurl - specific URL to check at
If null then URL is taken from the policy settingsError - Generic errorNotFound - source is not foundUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationjava.util.List<Summary> list(PendingTypes.SourceType sourceType, java.lang.String url, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
sourceType - type of the sourceurl - specific URL to check at
If null then URL is taken from the policy settingsinvocationConfig - Configuration for the method invocation.Error - Generic errorNotFound - source is not foundUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationvoid list(PendingTypes.SourceType sourceType, java.lang.String url, AsyncCallback<java.util.List<Summary>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
List of the update summaries
Operation Errors:
Error - Generic error
NotFound - source is not found
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
sourceType - type of the sourceurl - specific URL to check at
If null then URL is taken from the policy settingsasyncCallback - Receives the status (progress, result or error) of the operation invocation.void list(PendingTypes.SourceType sourceType, java.lang.String url, AsyncCallback<java.util.List<Summary>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
List of the update summaries
Operation Errors:
Error - Generic error
NotFound - source is not found
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
sourceType - type of the sourceurl - specific URL to check at
If null then URL is taken from the policy settingsasyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.PendingTypes.Info get(java.lang.String version)
Synchronous method overload. Result of the invocation will be reported as a method return value.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - the update is not foundAlreadyInDesiredState - if the update of this version is already installedPendingTypes.Info get(java.lang.String version, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.invocationConfig - Configuration for the method invocation.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - the update is not foundAlreadyInDesiredState - if the update of this version is already installedvoid get(java.lang.String version,
AsyncCallback<PendingTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Update
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - the update is not found
AlreadyInDesiredState - if the update of this version is already installed
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String version,
AsyncCallback<PendingTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Update
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - the update is not found
AlreadyInDesiredState - if the update of this version is already installed
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.PendingTypes.PrecheckResult precheck(java.lang.String version)
Synchronous method overload. Result of the invocation will be reported as a method return value.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - the update is not foundAlreadyInDesiredState - if this version is already installedNotAllowedInCurrentState - if another operation is in progressPendingTypes.PrecheckResult precheck(java.lang.String version, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.invocationConfig - Configuration for the method invocation.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - the update is not foundAlreadyInDesiredState - if this version is already installedNotAllowedInCurrentState - if another operation is in progressvoid precheck(java.lang.String version,
AsyncCallback<PendingTypes.PrecheckResult> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
PrecheckResult
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - the update is not found
AlreadyInDesiredState - if this version is already installed
NotAllowedInCurrentState - if another operation is in progress
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void precheck(java.lang.String version,
AsyncCallback<PendingTypes.PrecheckResult> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
PrecheckResult
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - the update is not found
AlreadyInDesiredState - if this version is already installed
NotAllowedInCurrentState - if another operation is in progress
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void stage(java.lang.String version)
Synchronous method overload. Result of the invocation will be reported as a method return value.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - the update is not foundAlreadyInDesiredState - if the update of this version is already installedAlreadyExists - the update is already stagedNotAllowedInCurrentState - if appliance update state prevents stagingvoid stage(java.lang.String version,
InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.invocationConfig - Configuration for the method invocation.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - the update is not foundAlreadyInDesiredState - if the update of this version is already installedAlreadyExists - the update is already stagedNotAllowedInCurrentState - if appliance update state prevents stagingvoid stage(java.lang.String version,
AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - the update is not found
AlreadyInDesiredState - if the update of this version is already installed
AlreadyExists - the update is already staged
NotAllowedInCurrentState - if appliance update state prevents staging
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void stage(java.lang.String version,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - the update is not found
AlreadyInDesiredState - if the update of this version is already installed
AlreadyExists - the update is already staged
NotAllowedInCurrentState - if appliance update state prevents staging
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.Notifications validate(java.lang.String version, java.util.Map<java.lang.String,java.lang.String> userData)
Synchronous method overload. Result of the invocation will be reported as a method return value.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - if the update is not foundAlreadyInDesiredState - if the update of this version is already installedNotAllowedInCurrentState - if appliance update state prevents running an checkNotifications validate(java.lang.String version, java.util.Map<java.lang.String,java.lang.String> userData, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.invocationConfig - Configuration for the method invocation.Error - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - if the update is not foundAlreadyInDesiredState - if the update of this version is already installedNotAllowedInCurrentState - if appliance update state prevents running an checkvoid validate(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<Notifications> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Issues struct with the issues found during the validation
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - if the update is not found
AlreadyInDesiredState - if the update of this version is already installed
NotAllowedInCurrentState - if appliance update state prevents running an check
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void validate(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<Notifications> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Issues struct with the issues found during the validation
Operation Errors:
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - if the update is not found
AlreadyInDesiredState - if the update of this version is already installed
NotAllowedInCurrentState - if appliance update state prevents running an check
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData)
Synchronous method overload. Result of the invocation will be reported as a method return value.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.Error - Generic errorError - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - if the update is not foundAlreadyInDesiredState - if the update of this version is already installedNotAllowedInCurrentState - if appliance update state prevents running an update or not stagedvoid install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.invocationConfig - Configuration for the method invocation.Error - Generic errorError - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - if the update is not foundAlreadyInDesiredState - if the update of this version is already installedNotAllowedInCurrentState - if appliance update state prevents running an update or not stagedvoid install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - Generic error
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - if the update is not found
AlreadyInDesiredState - if the update of this version is already installed
NotAllowedInCurrentState - if appliance update state prevents running an update or not staged
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void install(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
Error - Generic error
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - if the update is not found
AlreadyInDesiredState - if the update of this version is already installed
NotAllowedInCurrentState - if appliance update state prevents running an update or not staged
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData)
Synchronous method overload. Result of the invocation will be reported as a method return value.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.Error - Generic errorError - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - if the update is not foundAlreadyInDesiredState - if the update of this version is already installedNotAllowedInCurrentState - if appliance update state prevents running an updatevoid stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.invocationConfig - Configuration for the method invocation.Error - Generic errorError - Generic errorUnauthenticated - session is not authenticatedUnauthorized - session is not authorized to perform this operationNotFound - if the update is not foundAlreadyInDesiredState - if the update of this version is already installedNotAllowedInCurrentState - if appliance update state prevents running an updatevoid stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - Generic error
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - if the update is not found
AlreadyInDesiredState - if the update of this version is already installed
NotAllowedInCurrentState - if appliance update state prevents running an update
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void stageAndInstall(java.lang.String version,
java.util.Map<java.lang.String,java.lang.String> userData,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
Error - Generic error
Error - Generic error
Unauthenticated - session is not authenticated
Unauthorized - session is not authorized to perform this operation
NotFound - if the update is not found
AlreadyInDesiredState - if the update of this version is already installed
NotAllowedInCurrentState - if appliance update state prevents running an update
version - Update version
The parameter must be an identifier for the resource type: com.vmware.appliance.update.pending.userData - map of user provided data with IDs
The key in the parameter Map must be an identifier for the
resource type: com.vmware.applicance.update.pending.dataitem.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.