public class TasksStub extends com.vmware.vapi.internal.bindings.Stub implements Tasks
Tasks
API service.
WARNING: Internal class, subject to change in future versions.
TasksTypes.FilterSpec, TasksTypes.GetSpecapiProvider, converter, ifaceId, securityContextRESOURCE_TYPE| Constructor and Description |
|---|
TasksStub(ApiProvider apiProvider,
StubConfigurationBase config) |
TasksStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(java.lang.String task)
Cancel a running operation associated with the task.
|
void |
cancel(java.lang.String task,
AsyncCallback<java.lang.Void> asyncCallback)
Cancel a running operation associated with the task.
|
void |
cancel(java.lang.String task,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancel a running operation associated with the task.
|
void |
cancel(java.lang.String task,
InvocationConfig invocationConfig)
Cancel a running operation associated with the task.
|
Info |
get(java.lang.String task,
TasksTypes.GetSpec spec)
Returns information about a task.
|
void |
get(java.lang.String task,
TasksTypes.GetSpec spec,
AsyncCallback<Info> asyncCallback)
Returns information about a task.
|
void |
get(java.lang.String task,
TasksTypes.GetSpec spec,
AsyncCallback<Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a task.
|
Info |
get(java.lang.String task,
TasksTypes.GetSpec spec,
InvocationConfig invocationConfig)
Returns information about a task.
|
java.util.Map<java.lang.String,Info> |
list(TasksTypes.FilterSpec filterSpec,
TasksTypes.GetSpec resultSpec)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec. |
void |
list(TasksTypes.FilterSpec filterSpec,
TasksTypes.GetSpec resultSpec,
AsyncCallback<java.util.Map<java.lang.String,Info>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec. |
void |
list(TasksTypes.FilterSpec filterSpec,
TasksTypes.GetSpec resultSpec,
AsyncCallback<java.util.Map<java.lang.String,Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec. |
java.util.Map<java.lang.String,Info> |
list(TasksTypes.FilterSpec filterSpec,
TasksTypes.GetSpec resultSpec,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec. |
public TasksStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public TasksStub(ApiProvider apiProvider, StubConfigurationBase config)
public Info get(java.lang.String task, TasksTypes.GetSpec spec)
TasksSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface Taskstask - Task identifier.
The parameter must be an identifier for the resource type: com.vmware.cis.task.spec - Specification on what to get for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data described in Info will be returned and
the result of the operation will be return.public Info get(java.lang.String task, TasksTypes.GetSpec spec, InvocationConfig invocationConfig)
TasksSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
get in interface Taskstask - Task identifier.
The parameter must be an identifier for the resource type: com.vmware.cis.task.spec - Specification on what to get for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data described in Info will be returned and
the result of the operation will be return.invocationConfig - Configuration for the method invocation.public void get(java.lang.String task,
TasksTypes.GetSpec spec,
AsyncCallback<Info> asyncCallback)
TasksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Information about the specified task.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the task is not found.
ResourceInaccessible - if the task's state cannot be accessed.
ServiceUnavailable - if the system is unable to communicate with a service to complete the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user doesn't have the required privileges.
get in interface Taskstask - Task identifier.
The parameter must be an identifier for the resource type: com.vmware.cis.task.spec - Specification on what to get for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data described in Info will be returned and
the result of the operation will be return.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String task,
TasksTypes.GetSpec spec,
AsyncCallback<Info> asyncCallback,
InvocationConfig invocationConfig)
TasksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Information about the specified task.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the task is not found.
ResourceInaccessible - if the task's state cannot be accessed.
ServiceUnavailable - if the system is unable to communicate with a service to complete the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user doesn't have the required privileges.
get in interface Taskstask - Task identifier.
The parameter must be an identifier for the resource type: com.vmware.cis.task.spec - Specification on what to get for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data described in Info will be returned and
the result of the operation will be return.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public java.util.Map<java.lang.String,Info> list(TasksTypes.FilterSpec filterSpec, TasksTypes.GetSpec resultSpec)
TasksTasksTypes.FilterSpec. All tasks must
be in the same provider. This method was added in vSphere API 6.7 U1.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list in interface TasksfilterSpec - Specification of matching tasks.
This is currently required. In the future, if it is null, the behavior
is equivalent to a TasksTypes.FilterSpec with all
properties null which means all tasks match the filter.resultSpec - Specification of what to return for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data describe in Info will be returned and
the result of the operation will be return.Map will be an identifier for the
resource type: com.vmware.cis.task.public java.util.Map<java.lang.String,Info> list(TasksTypes.FilterSpec filterSpec, TasksTypes.GetSpec resultSpec, InvocationConfig invocationConfig)
TasksTasksTypes.FilterSpec. All tasks must
be in the same provider. This method was added in vSphere API 6.7 U1.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
list in interface TasksfilterSpec - Specification of matching tasks.
This is currently required. In the future, if it is null, the behavior
is equivalent to a TasksTypes.FilterSpec with all
properties null which means all tasks match the filter.resultSpec - Specification of what to return for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data describe in Info will be returned and
the result of the operation will be return.invocationConfig - Configuration for the method invocation.Map will be an identifier for the
resource type: com.vmware.cis.task.public void list(TasksTypes.FilterSpec filterSpec, TasksTypes.GetSpec resultSpec, AsyncCallback<java.util.Map<java.lang.String,Info>> asyncCallback)
TasksTasksTypes.FilterSpec. All tasks must
be in the same provider. This method was added in vSphere API 6.7 U1.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Map of task identifier to information about the task.
The key in the return value Map will be an identifier for the
resource type: com.vmware.cis.task.
Operation Errors:
InvalidArgument - if any of the specified parameters are invalid.
ResourceInaccessible - if a task's state cannot be accessed or over 1000 tasks matching the TasksTypes.FilterSpec.
ServiceUnavailable - if the system is unable to communicate with a service to complete the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user doesn't have the required privileges.
list in interface TasksfilterSpec - Specification of matching tasks.
This is currently required. In the future, if it is null, the behavior
is equivalent to a TasksTypes.FilterSpec with all
properties null which means all tasks match the filter.resultSpec - Specification of what to return for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data describe in Info will be returned and
the result of the operation will be return.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void list(TasksTypes.FilterSpec filterSpec, TasksTypes.GetSpec resultSpec, AsyncCallback<java.util.Map<java.lang.String,Info>> asyncCallback, InvocationConfig invocationConfig)
TasksTasksTypes.FilterSpec. All tasks must
be in the same provider. This method was added in vSphere API 6.7 U1.
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:
Map of task identifier to information about the task.
The key in the return value Map will be an identifier for the
resource type: com.vmware.cis.task.
Operation Errors:
InvalidArgument - if any of the specified parameters are invalid.
ResourceInaccessible - if a task's state cannot be accessed or over 1000 tasks matching the TasksTypes.FilterSpec.
ServiceUnavailable - if the system is unable to communicate with a service to complete the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user doesn't have the required privileges.
list in interface TasksfilterSpec - Specification of matching tasks.
This is currently required. In the future, if it is null, the behavior
is equivalent to a TasksTypes.FilterSpec with all
properties null which means all tasks match the filter.resultSpec - Specification of what to return for a task.
If null, the behavior is equivalent to a TasksTypes.GetSpec with all properties null which means
only the data describe in Info will be returned and
the result of the operation will be return.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void cancel(java.lang.String task)
TasksSynchronous method overload. Result of the invocation will be reported as a method return value.
public void cancel(java.lang.String task,
InvocationConfig invocationConfig)
TasksSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void cancel(java.lang.String task,
AsyncCallback<java.lang.Void> asyncCallback)
TasksAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotAllowedInCurrentState - if the task is already canceled or completed.
NotFound - if the task is not found.
ResourceInaccessible - if the task's state cannot be accessed.
ServiceUnavailable - if the system is unable to communicate with a service to complete the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user doesn't have the required privileges.
Unsupported - if the task is not cancelable.
public void cancel(java.lang.String task,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
TasksAsynchronous 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 - if the system reports an error while responding to the request.
NotAllowedInCurrentState - if the task is already canceled or completed.
NotFound - if the task is not found.
ResourceInaccessible - if the task's state cannot be accessed.
ServiceUnavailable - if the system is unable to communicate with a service to complete the request.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user doesn't have the required privileges.
Unsupported - if the task is not cancelable.
cancel in interface Taskstask - Task identifier.
The parameter must be an identifier for the resource type: com.vmware.cis.task.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.