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.ListItem, TasksTypes.ListResultapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID| Constructor and Description |
|---|
TasksStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
TasksStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
com.vmware.vapi.bindings.StubConfigurationBase config) |
| 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. |
public TasksStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
com.vmware.vapi.bindings.StubConfigurationBase config)
public TasksStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config)
public TasksTypes.ListResult list(TasksTypes.FilterSpec filter)
TasksTasksTypes.FilterSpec.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list in interface Tasksfilter - 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.public TasksTypes.ListResult list(TasksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
TasksTasksTypes.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.
list in interface Tasksfilter - 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.public void list(TasksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.AsyncCallback<TasksTypes.ListResult> asyncCallback)
TasksTasksTypes.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.
list in interface Tasksfilter - 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.public void list(TasksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.AsyncCallback<TasksTypes.ListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
TasksTasksTypes.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.
list in interface Tasksfilter - 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.public Info get(java.lang.String task)
TasksSynchronous method overload. Result of the invocation will be reported as a method return value.
public Info get(java.lang.String task, com.vmware.vapi.bindings.client.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 get(java.lang.String task,
com.vmware.vapi.bindings.client.AsyncCallback<Info> asyncCallback)
TasksAsynchronous 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.
public void get(java.lang.String task,
com.vmware.vapi.bindings.client.AsyncCallback<Info> asyncCallback,
com.vmware.vapi.bindings.client.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.
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.
get in interface Taskstask - 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.