public interface Tasks extends com.vmware.vapi.bindings.Service, TasksTypes
Tasks
interface provides methods for managing the tasks related to
long running operations.TasksTypes.FilterSpec, TasksTypes.ListItem, TasksTypes.ListResult
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
Info |
get(java.lang.String task)
Returns information about a task.
|
void |
get(java.lang.String task,
com.vmware.vapi.bindings.client.AsyncCallback<Info> asyncCallback)
Returns information about a task.
|
void |
get(java.lang.String task,
com.vmware.vapi.bindings.client.AsyncCallback<Info> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about a task.
|
Info |
get(java.lang.String task,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about a task.
|
TasksTypes.ListResult |
list(TasksTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec . |
void |
list(TasksTypes.FilterSpec filter,
com.vmware.vapi.bindings.client.AsyncCallback<TasksTypes.ListResult> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec . |
void |
list(TasksTypes.FilterSpec filter,
com.vmware.vapi.bindings.client.AsyncCallback<TasksTypes.ListResult> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec . |
TasksTypes.ListResult |
list(TasksTypes.FilterSpec filter,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
tasks matching the
TasksTypes.FilterSpec . |
TasksTypes.ListResult list(TasksTypes.FilterSpec filter)
TasksTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
filter
- Specification of matching tasks.
if null
, the behavior is equivalent to a TasksTypes.FilterSpec
with all properties null
which means all tasks match the filter.Error
- if the system reports an error while responding to the request.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.TasksTypes.ListResult list(TasksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
TasksTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
filter
- Specification of matching tasks.
if null
, the behavior is equivalent to a TasksTypes.FilterSpec
with all properties null
which means all tasks match the filter.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.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.void list(TasksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.AsyncCallback<TasksTypes.ListResult> asyncCallback)
TasksTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
ListResult including details of all the tasks.
Operation Errors:
Error
- if the system reports an error while responding to the request.
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.
filter
- Specification of matching tasks.
if null
, the behavior is equivalent to a TasksTypes.FilterSpec
with all properties null
which means all tasks match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(TasksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.AsyncCallback<TasksTypes.ListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
TasksTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
ListResult including details of all the tasks.
Operation Errors:
Error
- if the system reports an error while responding to the request.
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.
filter
- Specification of matching tasks.
if null
, the behavior is equivalent to a TasksTypes.FilterSpec
with all properties null
which means all tasks match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Info get(java.lang.String task)
Synchronous method overload. Result of the invocation will be reported as a method return value.
task
- Task identifier.
The parameter must be an identifier for the resource type: com.vmware.snapservice.task
.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.Info get(java.lang.String task, com.vmware.vapi.bindings.client.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.
task
- Task identifier.
The parameter must be an identifier for the resource type: com.vmware.snapservice.task
.invocationConfig
- Configuration for the method invocation.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.void get(java.lang.String task, com.vmware.vapi.bindings.client.AsyncCallback<Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation 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.
task
- Task identifier.
The parameter must be an identifier for the resource type: com.vmware.snapservice.task
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String task, com.vmware.vapi.bindings.client.AsyncCallback<Info> asyncCallback, com.vmware.vapi.bindings.client.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.
Invocation 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.
task
- Task identifier.
The parameter must be an identifier for the resource type: com.vmware.snapservice.task
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.