public interface ResourceTypes extends Service, ResourceTypesTypes
ResourceTypes
interface provides list of resource types. Resource
refers to any item or concept that could have measurable properties. It is a
prerequisite that a resource can be identified.
Example resource types are virtual machine, virtual disk etc.
. Warning: This interface is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.ResourceTypesTypes.Summary
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.util.List<ResourceTypesTypes.Summary> |
list()
Returns a list of available resource types.
|
void |
list(AsyncCallback<java.util.List<ResourceTypesTypes.Summary>> asyncCallback)
Returns a list of available resource types.
|
void |
list(AsyncCallback<java.util.List<ResourceTypesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns a list of available resource types.
|
java.util.List<ResourceTypesTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns a list of available resource types.
|
java.util.List<ResourceTypesTypes.Summary> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.java.util.List<ResourceTypesTypes.Summary> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.void list(AsyncCallback<java.util.List<ResourceTypesTypes.Summary>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of resource types.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<ResourceTypesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
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:
List of resource types.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.