public class DatastoreStub extends com.vmware.vapi.internal.bindings.Stub implements Datastore
Datastore
API service.
WARNING: Internal class, subject to change in future versions.
DatastoreTypes.FilterSpec, DatastoreTypes.Info, DatastoreTypes.Summary, DatastoreTypes.Type
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
DatastoreStub(ApiProvider apiProvider,
StubConfigurationBase config) |
DatastoreStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
DatastoreTypes.Info |
get(java.lang.String datastore)
Retrieves information about the datastore indicated by
datastore . |
void |
get(java.lang.String datastore,
AsyncCallback<DatastoreTypes.Info> asyncCallback)
Retrieves information about the datastore indicated by
datastore . |
void |
get(java.lang.String datastore,
AsyncCallback<DatastoreTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the datastore indicated by
datastore . |
DatastoreTypes.Info |
get(java.lang.String datastore,
InvocationConfig invocationConfig)
Retrieves information about the datastore indicated by
datastore . |
java.util.List<DatastoreTypes.Summary> |
list(DatastoreTypes.FilterSpec filter)
Returns information about at most 2500 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
void |
list(DatastoreTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback)
Returns information about at most 2500 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
void |
list(DatastoreTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 2500 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
java.util.List<DatastoreTypes.Summary> |
list(DatastoreTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 2500 visible (subject to permission checks)
datastores in vCenter matching the
DatastoreTypes.FilterSpec . |
public DatastoreStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public DatastoreStub(ApiProvider apiProvider, StubConfigurationBase config)
public DatastoreTypes.Info get(java.lang.String datastore)
Datastore
datastore
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public DatastoreTypes.Info get(java.lang.String datastore, InvocationConfig invocationConfig)
Datastore
datastore
.
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 Datastore
datastore
- Identifier of the datastore for which information should be retrieved.
The parameter must be an identifier for the resource type: Datastore
.invocationConfig
- Configuration for the method invocation.datastore
.public void get(java.lang.String datastore, AsyncCallback<DatastoreTypes.Info> asyncCallback)
Datastore
datastore
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the datastore associated with datastore
.
Operation Errors:
NotFound
- if the datastore indicated by datastore
does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
public void get(java.lang.String datastore, AsyncCallback<DatastoreTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Datastore
datastore
.
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:
Information about the datastore associated with datastore
.
Operation Errors:
NotFound
- if the datastore indicated by datastore
does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
get
in interface Datastore
datastore
- Identifier of the datastore for which information should be retrieved.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<DatastoreTypes.Summary> list(DatastoreTypes.FilterSpec filter)
Datastore
DatastoreTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Datastore
filter
- Specification of matching datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.DatastoreTypes.FilterSpec
.public java.util.List<DatastoreTypes.Summary> list(DatastoreTypes.FilterSpec filter, InvocationConfig invocationConfig)
Datastore
DatastoreTypes.FilterSpec
.
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 Datastore
filter
- Specification of matching datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.invocationConfig
- Configuration for the method invocation.DatastoreTypes.FilterSpec
.public void list(DatastoreTypes.FilterSpec filter, AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback)
Datastore
DatastoreTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Commonly used information about the datastores matching the DatastoreTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 2500 datastores match the DatastoreTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Datastore
filter
- Specification of matching datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(DatastoreTypes.FilterSpec filter, AsyncCallback<java.util.List<DatastoreTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Datastore
DatastoreTypes.FilterSpec
.
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:
Commonly used information about the datastores matching the DatastoreTypes.FilterSpec
.
Operation Errors:
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
InvalidArgument
- if the DatastoreTypes.FilterSpec.getTypes()
property
contains a value that is not supported by the server.
UnableToAllocateResource
- if more than 2500 datastores match the DatastoreTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Datastore
filter
- Specification of matching datastores for which information should be returned.
If null
, the behavior is equivalent to a DatastoreTypes.FilterSpec
with all properties null
which means all datastores match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.