public class OperationStub extends com.vmware.vapi.internal.bindings.Stub implements Operation
Operation
API service.
WARNING: Internal API, subject to change in future versions.
OperationTypes.DataDefinition, OperationTypes.Info
Constructor and Description |
---|
OperationStub(ApiProvider apiProvider,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
OperationTypes.Info |
get(String serviceId,
String operationId)
Returns the
OperationTypes.Info for a
given vAPI operation. |
void |
get(String serviceId,
String operationId,
AsyncCallback<OperationTypes.Info> asyncCallback)
Returns the
OperationTypes.Info for a
given vAPI operation. |
void |
get(String serviceId,
String operationId,
AsyncCallback<OperationTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the
OperationTypes.Info for a
given vAPI operation. |
OperationTypes.Info |
get(String serviceId,
String operationId,
InvocationConfig invocationConfig)
Returns the
OperationTypes.Info for a
given vAPI operation. |
Set<String> |
list(String serviceId)
Returns the set of operation identifiers for a given vAPI service.
|
void |
list(String serviceId,
AsyncCallback<Set<String>> asyncCallback)
Returns the set of operation identifiers for a given vAPI service.
|
void |
list(String serviceId,
AsyncCallback<Set<String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the set of operation identifiers for a given vAPI service.
|
Set<String> |
list(String serviceId,
InvocationConfig invocationConfig)
Returns the set of operation identifiers for a given vAPI service.
|
public OperationStub(ApiProvider apiProvider, StubConfigurationBase config)
public Set<String> list(String serviceId)
Operation
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.com.vmware.vapi.operation
.public Set<String> list(String serviceId, InvocationConfig invocationConfig)
Operation
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 Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.invocationConfig
- Configuration for the method invocation.com.vmware.vapi.operation
.public void list(String serviceId, AsyncCallback<Set<String>> asyncCallback)
Operation
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
set of operation identifiers for a given vAPI service.
The return value will contain identifiers for the resource type: com.vmware.vapi.operation
.
Operation Errors:
NotFound
- If the service identifier does not exist.
public void list(String serviceId, AsyncCallback<Set<String>> asyncCallback, InvocationConfig invocationConfig)
Operation
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:
set of operation identifiers for a given vAPI service.
The return value will contain identifiers for the resource type: com.vmware.vapi.operation
.
Operation Errors:
NotFound
- If the service identifier does not exist.
list
in interface Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public OperationTypes.Info get(String serviceId, String operationId)
Operation
OperationTypes.Info
for a
given vAPI operation.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- operation identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation
.OperationTypes.Info
for a given vAPI
operation.public OperationTypes.Info get(String serviceId, String operationId, InvocationConfig invocationConfig)
Operation
OperationTypes.Info
for a
given vAPI operation.
Synchronous 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 Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- operation identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation
.invocationConfig
- Configuration for the method invocation.OperationTypes.Info
for a given vAPI
operation.public void get(String serviceId, String operationId, AsyncCallback<OperationTypes.Info> asyncCallback)
Operation
OperationTypes.Info
for a
given vAPI operation.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
OperationTypes.Info
for a given vAPI
operation.
Operation Errors:
NotFound
- If the operation identifier does not exist.
NotFound
- If the service identifier does not exist.
get
in interface Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- operation identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(String serviceId, String operationId, AsyncCallback<OperationTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Operation
OperationTypes.Info
for a
given vAPI operation.
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:
OperationTypes.Info
for a given vAPI
operation.
Operation Errors:
NotFound
- If the operation identifier does not exist.
NotFound
- If the service identifier does not exist.
get
in interface Operation
serviceId
- service identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- operation identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Copyright © 2015. All Rights Reserved.