public class ModelStub extends com.vmware.vapi.internal.bindings.Stub implements Model
Model
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ModelStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ModelStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
list(java.lang.String resourceId)
Returns the set of identifiers for the structure elements that are models for
the resource type corresponding to
resourceId . |
void |
list(java.lang.String resourceId,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback)
Returns the set of identifiers for the structure elements that are models for
the resource type corresponding to
resourceId . |
void |
list(java.lang.String resourceId,
AsyncCallback<java.util.Set<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the set of identifiers for the structure elements that are models for
the resource type corresponding to
resourceId . |
java.util.Set<java.lang.String> |
list(java.lang.String resourceId,
InvocationConfig invocationConfig)
Returns the set of identifiers for the structure elements that are models for
the resource type corresponding to
resourceId . |
public ModelStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ModelStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.Set<java.lang.String> list(java.lang.String resourceId)
Model
resourceId
.
The Structure
interface provides methods to
retrieve more details about the structure elements corresponding to the
identifiers returned by this method.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Model
resourceId
- Identifier of the resource type.
The parameter must be an identifier for the resource type: com.vmware.vapi.resource
.resourceId
.
The return value will contain identifiers for the resource type: com.vmware.vapi.structure
.public java.util.Set<java.lang.String> list(java.lang.String resourceId, InvocationConfig invocationConfig)
Model
resourceId
.
The Structure
interface provides methods to
retrieve more details about the structure elements corresponding to the
identifiers returned by this method.
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 Model
resourceId
- Identifier of the resource type.
The parameter must be an identifier for the resource type: com.vmware.vapi.resource
.invocationConfig
- Configuration for the method invocation.resourceId
.
The return value will contain identifiers for the resource type: com.vmware.vapi.structure
.public void list(java.lang.String resourceId, AsyncCallback<java.util.Set<java.lang.String>> asyncCallback)
Model
resourceId
.
The Structure
interface provides methods to
retrieve more details about the structure elements corresponding to the
identifiers returned by this method.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The set of identifiers for the models that are associated with the resource type
in resourceId
.
The return value will contain identifiers for the resource type: com.vmware.vapi.structure
.
Operation Errors:
NotFound
- if the resource type associated with resourceId
does not exist.
public void list(java.lang.String resourceId, AsyncCallback<java.util.Set<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Model
resourceId
.
The Structure
interface provides methods to
retrieve more details about the structure elements corresponding to the
identifiers returned by this method.
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:
The set of identifiers for the models that are associated with the resource type
in resourceId
.
The return value will contain identifiers for the resource type: com.vmware.vapi.structure
.
Operation Errors:
NotFound
- if the resource type associated with resourceId
does not exist.
list
in interface Model
resourceId
- Identifier of the resource type.
The parameter must be an identifier for the resource type: com.vmware.vapi.resource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.