public interface Update extends Service, UpdateTypes
Update
interface provides methods to get the status of the appliance
update. This interface was added in vSphere API 6.7.UpdateTypes.Info, UpdateTypes.State
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Request the cancellation the update operation that is currently in progress.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback)
Request the cancellation the update operation that is currently in progress.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Request the cancellation the update operation that is currently in progress.
|
void |
cancel(InvocationConfig invocationConfig)
Request the cancellation the update operation that is currently in progress.
|
UpdateTypes.Info |
get()
Gets the current status of the appliance update.
|
void |
get(AsyncCallback<UpdateTypes.Info> asyncCallback)
Gets the current status of the appliance update.
|
void |
get(AsyncCallback<UpdateTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Gets the current status of the appliance update.
|
UpdateTypes.Info |
get(InvocationConfig invocationConfig)
Gets the current status of the appliance update.
|
UpdateTypes.Info get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic errorUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationUpdateTypes.Info get(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.
invocationConfig
- Configuration for the method invocation.Error
- Generic errorUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationvoid get(AsyncCallback<UpdateTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Info structure containing the status information about the appliance.
Operation Errors:
Error
- Generic error
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<UpdateTypes.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:
Info structure containing the status information about the appliance.
Operation Errors:
Error
- Generic error
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void cancel()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic errorNotAllowedInCurrentState
- Current task is not cancellableUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationvoid cancel(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.
invocationConfig
- Configuration for the method invocation.Error
- Generic errorNotAllowedInCurrentState
- Current task is not cancellableUnauthenticated
- session is not authenticatedUnauthorized
- session is not authorized to perform this operationvoid cancel(AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
NotAllowedInCurrentState
- Current task is not cancellable
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void cancel(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
NotAllowedInCurrentState
- Current task is not cancellable
Unauthenticated
- session is not authenticated
Unauthorized
- session is not authorized to perform this operation
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.