public class OperationStub extends com.vmware.vapi.internal.bindings.Stub implements Operation
Operation
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
Constructor and Description |
---|
OperationStub(ApiProvider apiProvider,
StubConfigurationBase config) |
OperationStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
OperationInfo |
get(java.lang.String serviceId,
java.lang.String operationId)
Retrieves the metamodel information about an operation element corresponding to
operationId contained in the service element corresponding to serviceId . |
void |
get(java.lang.String serviceId,
java.lang.String operationId,
AsyncCallback<OperationInfo> asyncCallback)
Retrieves the metamodel information about an operation element corresponding to
operationId contained in the service element corresponding to serviceId . |
void |
get(java.lang.String serviceId,
java.lang.String operationId,
AsyncCallback<OperationInfo> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the metamodel information about an operation element corresponding to
operationId contained in the service element corresponding to serviceId . |
OperationInfo |
get(java.lang.String serviceId,
java.lang.String operationId,
InvocationConfig invocationConfig)
Retrieves the metamodel information about an operation element corresponding to
operationId contained in the service element corresponding to serviceId . |
java.util.List<java.lang.String> |
list(java.lang.String serviceId)
Returns the identifiers for the operation elements that are defined in the scope
of
serviceId . |
void |
list(java.lang.String serviceId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers for the operation elements that are defined in the scope
of
serviceId . |
void |
list(java.lang.String serviceId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers for the operation elements that are defined in the scope
of
serviceId . |
java.util.List<java.lang.String> |
list(java.lang.String serviceId,
InvocationConfig invocationConfig)
Returns the identifiers for the operation elements that are defined in the scope
of
serviceId . |
public OperationStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public OperationStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<java.lang.String> list(java.lang.String serviceId)
Operation
serviceId
.
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
.serviceId
.
The return value will contain identifiers for the resource type: com.vmware.vapi.operation
.public java.util.List<java.lang.String> list(java.lang.String serviceId, InvocationConfig invocationConfig)
Operation
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.
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.serviceId
.
The return value will contain identifiers for the resource type: com.vmware.vapi.operation
.public void list(java.lang.String serviceId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Operation
serviceId
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of identifiers for the operation elements that are defined in the scope
of serviceId
.
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 exist in any
of the package elements.
public void list(java.lang.String serviceId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Operation
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 list of identifiers for the operation elements that are defined in the scope
of serviceId
.
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 exist in any
of the package elements.
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(java.lang.String serviceId, java.lang.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
defined in scope serviceId
.public OperationInfo get(java.lang.String serviceId, java.lang.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
defined in scope serviceId
.public void get(java.lang.String serviceId, java.lang.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
defined in scope serviceId
.
Operation Errors:
NotFound
- if the service element associated with serviceId
does not exist in any
of the package elements.
NotFound
- if the operation element associated with operationId
does not exist in
the service element.
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(java.lang.String serviceId, java.lang.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
defined in scope serviceId
.
Operation Errors:
NotFound
- if the service element associated with serviceId
does not exist in any
of the package elements.
NotFound
- if the operation element associated with operationId
does not exist in
the service element.
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.