public class ResourcePoolStub extends com.vmware.vapi.internal.bindings.Stub implements ResourcePool
ResourcePool
API service.
WARNING: Internal class, subject to change in future versions.
ResourcePoolTypes.FilterSpec, ResourcePoolTypes.Info, ResourcePoolTypes.Summary
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
Constructor and Description |
---|
ResourcePoolStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ResourcePoolStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ResourcePoolTypes.Info |
get(java.lang.String resourcePool)
Retrieves information about the resource pool indicated by
resourcePool . |
void |
get(java.lang.String resourcePool,
AsyncCallback<ResourcePoolTypes.Info> asyncCallback)
Retrieves information about the resource pool indicated by
resourcePool . |
void |
get(java.lang.String resourcePool,
AsyncCallback<ResourcePoolTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the resource pool indicated by
resourcePool . |
ResourcePoolTypes.Info |
get(java.lang.String resourcePool,
InvocationConfig invocationConfig)
Retrieves information about the resource pool indicated by
resourcePool . |
java.util.List<ResourcePoolTypes.Summary> |
list(ResourcePoolTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
void |
list(ResourcePoolTypes.FilterSpec filter,
AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
void |
list(ResourcePoolTypes.FilterSpec filter,
AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
java.util.List<ResourcePoolTypes.Summary> |
list(ResourcePoolTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
resource pools in vCenter matching the
ResourcePoolTypes.FilterSpec . |
public ResourcePoolStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ResourcePoolStub(ApiProvider apiProvider, StubConfigurationBase config)
public ResourcePoolTypes.Info get(java.lang.String resourcePool)
ResourcePool
resourcePool
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface ResourcePool
resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.public ResourcePoolTypes.Info get(java.lang.String resourcePool, InvocationConfig invocationConfig)
ResourcePool
resourcePool
.
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 ResourcePool
resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String resourcePool, AsyncCallback<ResourcePoolTypes.Info> asyncCallback)
ResourcePool
resourcePool
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
information about the resource pool.
Operation Errors:
NotFound
- if the resource pool indicated by resourcePool
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 ResourcePool
resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String resourcePool, AsyncCallback<ResourcePoolTypes.Info> asyncCallback, InvocationConfig invocationConfig)
ResourcePool
resourcePool
.
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:
information about the resource pool.
Operation Errors:
NotFound
- if the resource pool indicated by resourcePool
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 ResourcePool
resourcePool
- Identifier of the resource pool for which information should be retrieved.
The parameter must be an identifier for the resource type: ResourcePool
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<ResourcePoolTypes.Summary> list(ResourcePoolTypes.FilterSpec filter)
ResourcePool
ResourcePoolTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface ResourcePool
filter
- Specification of matching resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.ResourcePoolTypes.FilterSpec
.public java.util.List<ResourcePoolTypes.Summary> list(ResourcePoolTypes.FilterSpec filter, InvocationConfig invocationConfig)
ResourcePool
ResourcePoolTypes.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 ResourcePool
filter
- Specification of matching resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.invocationConfig
- Configuration for the method invocation.ResourcePoolTypes.FilterSpec
.public void list(ResourcePoolTypes.FilterSpec filter, AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback)
ResourcePool
ResourcePoolTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Commonly used information about the resource pools matching the ResourcePoolTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 resource pools match the ResourcePoolTypes.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 ResourcePool
filter
- Specification of matching resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(ResourcePoolTypes.FilterSpec filter, AsyncCallback<java.util.List<ResourcePoolTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
ResourcePool
ResourcePoolTypes.FilterSpec
.
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:
Commonly used information about the resource pools matching the ResourcePoolTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 resource pools match the ResourcePoolTypes.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 ResourcePool
filter
- Specification of matching resource pools for which information should be
returned.
If null
, the behavior is equivalent to a ResourcePoolTypes.FilterSpec
with all properties null
which means all resource pools match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.