public class OperationStub extends com.vmware.vapi.internal.bindings.Stub implements Operation
Operation
API service.
WARNING: Internal API, subject to change in future versions.
RESOURCE_TYPE
Constructor and Description |
---|
OperationStub(ApiProvider apiProvider,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
OperationInfo |
get(String serviceId,
String operationId)
Retrieves the authentication information about an operation element
corresponding to
operationId contained in the service element
corresponding to serviceId . |
void |
get(String serviceId,
String operationId,
AsyncCallback<OperationInfo> asyncCallback)
Retrieves the authentication information about an operation element
corresponding to
operationId contained in the service element
corresponding to serviceId . |
void |
get(String serviceId,
String operationId,
AsyncCallback<OperationInfo> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the authentication information about an operation element
corresponding to
operationId contained in the service element
corresponding to serviceId . |
OperationInfo |
get(String serviceId,
String operationId,
InvocationConfig invocationConfig)
Retrieves the authentication information about an operation element
corresponding to
operationId contained in the service element
corresponding to serviceId . |
List<String> |
list(String serviceId)
Returns the identifiers for the operation elements contained in the service
element corresponding to
serviceId that have authentication information. |
void |
list(String serviceId,
AsyncCallback<List<String>> asyncCallback)
Returns the identifiers for the operation elements contained in the service
element corresponding to
serviceId that have authentication information. |
void |
list(String serviceId,
AsyncCallback<List<String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers for the operation elements contained in the service
element corresponding to
serviceId that have authentication information. |
List<String> |
list(String serviceId,
InvocationConfig invocationConfig)
Returns the identifiers for the operation elements contained in the service
element corresponding to
serviceId that have authentication information. |
public OperationStub(ApiProvider apiProvider, StubConfigurationBase config)
public List<String> list(String serviceId)
Operation
serviceId
that have authentication information.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Operation
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.com.vmware.vapi.operation
.public List<String> list(String serviceId, InvocationConfig invocationConfig)
Operation
serviceId
that have authentication information.
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
- Identifier of the service element.
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<List<String>> asyncCallback)
Operation
serviceId
that have authentication information.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
List of identifiers for the operation elements contained in the service element
that have authentication information.
The return value will contain identifiers for the resource type: com.vmware.vapi.operation
.
Operation Errors:
NotFound
- if the service element associated with serviceId
does not have any
operation elements that have authentication information.
public void list(String serviceId, AsyncCallback<List<String>> asyncCallback, InvocationConfig invocationConfig)
Operation
serviceId
that have authentication information.
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:
List of identifiers for the operation elements contained in the service element
that have authentication information.
The return value will contain identifiers for the resource type: com.vmware.vapi.operation
.
Operation Errors:
NotFound
- if the service element associated with serviceId
does not have any
operation elements that have authentication information.
list
in interface Operation
serviceId
- Identifier of the service element.
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 OperationInfo get(String serviceId, String operationId)
Operation
operationId
contained in the service element
corresponding to serviceId
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Operation
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- Identifier of the operation element.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation
.OperationInfo
instance that
corresponds to operationId
.public OperationInfo get(String serviceId, String operationId, InvocationConfig invocationConfig)
Operation
operationId
contained in the service element
corresponding to serviceId
.
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
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- Identifier of the operation element.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation
.invocationConfig
- Configuration for the method invocation.OperationInfo
instance that
corresponds to operationId
.public void get(String serviceId, String operationId, AsyncCallback<OperationInfo> asyncCallback)
Operation
operationId
contained in the service element
corresponding to serviceId
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The OperationInfo
instance that
corresponds to operationId
.
Operation Errors:
NotFound
- if the service element associated with serviceId
does not exist.
NotFound
- if the operation element associated with operationId
does not exist.
NotFound
- if the operation element associated with operationId
does not have any
authentication information.
get
in interface Operation
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- Identifier of the operation element.
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<OperationInfo> asyncCallback, InvocationConfig invocationConfig)
Operation
operationId
contained in the service element
corresponding to serviceId
.
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:
The OperationInfo
instance that
corresponds to operationId
.
Operation Errors:
NotFound
- if the service element associated with serviceId
does not exist.
NotFound
- if the operation element associated with operationId
does not exist.
NotFound
- if the operation element associated with operationId
does not have any
authentication information.
get
in interface Operation
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.operationId
- Identifier of the operation element.
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 © 2016. All Rights Reserved.