public class TasksStub extends com.vmware.vapi.internal.bindings.Stub implements Tasks
Tasks
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
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 |
---|---|
Task |
get(java.lang.String org,
java.lang.String task)
Retrieve details of a task.
|
void |
get(java.lang.String org,
java.lang.String task,
AsyncCallback<Task> asyncCallback)
Retrieve details of a task.
|
void |
get(java.lang.String org,
java.lang.String task,
AsyncCallback<Task> asyncCallback,
InvocationConfig invocationConfig)
Retrieve details of a task.
|
Task |
get(java.lang.String org,
java.lang.String task,
InvocationConfig invocationConfig)
Retrieve details of a task.
|
java.util.List<Task> |
list(java.lang.String org,
java.lang.String filter)
List all tasks with optional filtering.
|
void |
list(java.lang.String org,
java.lang.String filter,
AsyncCallback<java.util.List<Task>> asyncCallback)
List all tasks with optional filtering.
|
void |
list(java.lang.String org,
java.lang.String filter,
AsyncCallback<java.util.List<Task>> asyncCallback,
InvocationConfig invocationConfig)
List all tasks with optional filtering.
|
java.util.List<Task> |
list(java.lang.String org,
java.lang.String filter,
InvocationConfig invocationConfig)
List all tasks with optional filtering.
|
Task |
update(java.lang.String org,
java.lang.String task,
java.lang.String action)
Request that a running task be canceled.
|
void |
update(java.lang.String org,
java.lang.String task,
java.lang.String action,
AsyncCallback<Task> asyncCallback)
Request that a running task be canceled.
|
void |
update(java.lang.String org,
java.lang.String task,
java.lang.String action,
AsyncCallback<Task> asyncCallback,
InvocationConfig invocationConfig)
Request that a running task be canceled.
|
Task |
update(java.lang.String org,
java.lang.String task,
java.lang.String action,
InvocationConfig invocationConfig)
Request that a running task be canceled.
|
public TasksStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public TasksStub(ApiProvider apiProvider, StubConfigurationBase config)
public Task get(java.lang.String org, java.lang.String task)
Tasks
Synchronous method overload. Result of the invocation will be reported as a method return value.
public Task get(java.lang.String org, java.lang.String task, InvocationConfig invocationConfig)
Tasks
Synchronous 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 org, java.lang.String task, AsyncCallback<Task> asyncCallback)
Tasks
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
Unauthorized
- Forbidden
NotFound
- Cannot find the task with given identifier
public void get(java.lang.String org, java.lang.String task, AsyncCallback<Task> asyncCallback, InvocationConfig invocationConfig)
Tasks
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:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
Unauthorized
- Forbidden
NotFound
- Cannot find the task with given identifier
public java.util.List<Task> list(java.lang.String org, java.lang.String filter)
Tasks
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Tasks
org
- Organization identifier (required)filter
- Filter expression Binary Operators: 'eq', 'ne', 'lt', 'gt', 'le', 'ge', 'mul',
'div', 'mod', 'sub', 'add' Unary Operators: 'not', '-' (minus) String Operators:
'startswith', 'endswith', 'length', 'contains', 'tolower', 'toupper', Nested
attributes are composed using '.' Dates must be formatted as yyyy-MM-dd or
yyyy-MM-ddTHH:mm:ss[.SSS]Z Strings should enclosed in single quotes, escape
single quote with two single quotes The special literal 'created' will be mapped
to the time the resource was first created. Examples: - $filter=(updated gt
2016-08-09T13:00:00Z) and (org_id eq 278710ff4e-6b6d-4d4e-aefb-ca637f38609e) -
$filter=(created eq 2016-08-09) - $filter=(created gt 2016-08-09) and
(sddc.status eq 'READY') (optional)public java.util.List<Task> list(java.lang.String org, java.lang.String filter, InvocationConfig invocationConfig)
Tasks
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 Tasks
org
- Organization identifier (required)filter
- Filter expression Binary Operators: 'eq', 'ne', 'lt', 'gt', 'le', 'ge', 'mul',
'div', 'mod', 'sub', 'add' Unary Operators: 'not', '-' (minus) String Operators:
'startswith', 'endswith', 'length', 'contains', 'tolower', 'toupper', Nested
attributes are composed using '.' Dates must be formatted as yyyy-MM-dd or
yyyy-MM-ddTHH:mm:ss[.SSS]Z Strings should enclosed in single quotes, escape
single quote with two single quotes The special literal 'created' will be mapped
to the time the resource was first created. Examples: - $filter=(updated gt
2016-08-09T13:00:00Z) and (org_id eq 278710ff4e-6b6d-4d4e-aefb-ca637f38609e) -
$filter=(created eq 2016-08-09) - $filter=(created gt 2016-08-09) and
(sddc.status eq 'READY') (optional)invocationConfig
- Configuration for the method invocation.public void list(java.lang.String org, java.lang.String filter, AsyncCallback<java.util.List<Task>> asyncCallback)
Tasks
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- Unauthorized
Unauthorized
- Forbidden
list
in interface Tasks
org
- Organization identifier (required)filter
- Filter expression Binary Operators: 'eq', 'ne', 'lt', 'gt', 'le', 'ge', 'mul',
'div', 'mod', 'sub', 'add' Unary Operators: 'not', '-' (minus) String Operators:
'startswith', 'endswith', 'length', 'contains', 'tolower', 'toupper', Nested
attributes are composed using '.' Dates must be formatted as yyyy-MM-dd or
yyyy-MM-ddTHH:mm:ss[.SSS]Z Strings should enclosed in single quotes, escape
single quote with two single quotes The special literal 'created' will be mapped
to the time the resource was first created. Examples: - $filter=(updated gt
2016-08-09T13:00:00Z) and (org_id eq 278710ff4e-6b6d-4d4e-aefb-ca637f38609e) -
$filter=(created eq 2016-08-09) - $filter=(created gt 2016-08-09) and
(sddc.status eq 'READY') (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String org, java.lang.String filter, AsyncCallback<java.util.List<Task>> asyncCallback, InvocationConfig invocationConfig)
Tasks
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:
Unauthenticated
- Unauthorized
Unauthorized
- Forbidden
list
in interface Tasks
org
- Organization identifier (required)filter
- Filter expression Binary Operators: 'eq', 'ne', 'lt', 'gt', 'le', 'ge', 'mul',
'div', 'mod', 'sub', 'add' Unary Operators: 'not', '-' (minus) String Operators:
'startswith', 'endswith', 'length', 'contains', 'tolower', 'toupper', Nested
attributes are composed using '.' Dates must be formatted as yyyy-MM-dd or
yyyy-MM-ddTHH:mm:ss[.SSS]Z Strings should enclosed in single quotes, escape
single quote with two single quotes The special literal 'created' will be mapped
to the time the resource was first created. Examples: - $filter=(updated gt
2016-08-09T13:00:00Z) and (org_id eq 278710ff4e-6b6d-4d4e-aefb-ca637f38609e) -
$filter=(created eq 2016-08-09) - $filter=(created gt 2016-08-09) and
(sddc.status eq 'READY') (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public Task update(java.lang.String org, java.lang.String task, java.lang.String action)
Tasks
Synchronous method overload. Result of the invocation will be reported as a method return value.
public Task update(java.lang.String org, java.lang.String task, java.lang.String action, InvocationConfig invocationConfig)
Tasks
Synchronous 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 update(java.lang.String org, java.lang.String task, java.lang.String action, AsyncCallback<Task> asyncCallback)
Tasks
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
InvalidRequest
- Invalid action or bad argument
Unauthorized
- Forbidden
NotFound
- Cannot find the task with given identifier
public void update(java.lang.String org, java.lang.String task, java.lang.String action, AsyncCallback<Task> asyncCallback, InvocationConfig invocationConfig)
Tasks
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:
com.vmware.vmc.model.Task
Operation Errors:
Unauthenticated
- Unauthorized
InvalidRequest
- Invalid action or bad argument
Unauthorized
- Forbidden
NotFound
- Cannot find the task with given identifier
update
in interface Tasks
org
- Organization identifier (required)task
- Task identifier (required)action
- If = 'cancel', task will be canceled (optional)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.