public class ActivationStub extends com.vmware.vapi.internal.bindings.Stub implements Activation
Activation
API service.
WARNING: Internal API, subject to change in future versions.
| Constructor and Description |
|---|
ActivationStub(ApiProvider apiProvider,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String activationId)
Sends a request to cancel the task associated with the provided
activationId. |
void |
cancel(String activationId,
AsyncCallback<Void> asyncCallback)
Sends a request to cancel the task associated with the provided
activationId. |
void |
cancel(String activationId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Sends a request to cancel the task associated with the provided
activationId. |
void |
cancel(String activationId,
InvocationConfig invocationConfig)
Sends a request to cancel the task associated with the provided
activationId. |
public ActivationStub(ApiProvider apiProvider, StubConfigurationBase config)
public void cancel(String activationId)
ActivationactivationId.
Synchronous method overload. Result of the invocation will be reported as a method return value.
cancel in interface ActivationactivationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.public void cancel(String activationId, InvocationConfig invocationConfig)
ActivationactivationId.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
cancel in interface ActivationactivationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.invocationConfig - Configuration for the method invocation.public void cancel(String activationId, AsyncCallback<Void> asyncCallback)
ActivationactivationId.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - if a vCenter Server task with the given activationId was not found.
NotAllowedInCurrentState - if the vCenter Server task associated with the given activationId is not
cancelable.
Unauthorized - if the user is not authorized to cancel the task.
Unauthenticated - if the user is not authenticated.
ServiceUnavailable - if the task cancelation cannot be performed due to vCenter server is unreachable
or it is not properly configured.
cancel in interface ActivationactivationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void cancel(String activationId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
ActivationactivationId.
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:
NotFound - if a vCenter Server task with the given activationId was not found.
NotAllowedInCurrentState - if the vCenter Server task associated with the given activationId is not
cancelable.
Unauthorized - if the user is not authorized to cancel the task.
Unauthenticated - if the user is not authenticated.
ServiceUnavailable - if the task cancelation cannot be performed due to vCenter server is unreachable
or it is not properly configured.
cancel in interface ActivationactivationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.Copyright © 2016. All Rights Reserved.