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)
Activation
Synchronous method overload. Result of the invocation will be reported as a method return value.
cancel
in interface Activation
activationId
- the activationId associated with a VC task that will be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation
.public void cancel(String activationId, InvocationConfig invocationConfig)
Activation
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 Activation
activationId
- the activationId associated with a VC task that will 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)
Activation
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if a VC task with the given activationId was not found.
NotAllowedInCurrentState
- if the VC 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.
cancel
in interface Activation
activationId
- the activationId associated with a VC task that will 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)
Activation
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 VC task with the given activationId was not found.
NotAllowedInCurrentState
- if the VC 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.
cancel
in interface Activation
activationId
- the activationId associated with a VC task that will 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 © 2015. All Rights Reserved.