public class ClusterStub extends com.vmware.vapi.internal.bindings.Stub implements Cluster
Cluster
API service.
WARNING: Internal class, subject to change in future versions.
ClusterTypes.FilterSpec, ClusterTypes.Info, ClusterTypes.Summary
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
ClusterStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ClusterStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ClusterTypes.Info |
get(java.lang.String cluster)
Retrieves information about the cluster corresponding to
cluster . |
void |
get(java.lang.String cluster,
AsyncCallback<ClusterTypes.Info> asyncCallback)
Retrieves information about the cluster corresponding to
cluster . |
void |
get(java.lang.String cluster,
AsyncCallback<ClusterTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the cluster corresponding to
cluster . |
ClusterTypes.Info |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Retrieves information about the cluster corresponding to
cluster . |
java.util.List<ClusterTypes.Summary> |
list(ClusterTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
clusters in vCenter matching the
ClusterTypes.FilterSpec . |
void |
list(ClusterTypes.FilterSpec filter,
AsyncCallback<java.util.List<ClusterTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
clusters in vCenter matching the
ClusterTypes.FilterSpec . |
void |
list(ClusterTypes.FilterSpec filter,
AsyncCallback<java.util.List<ClusterTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
clusters in vCenter matching the
ClusterTypes.FilterSpec . |
java.util.List<ClusterTypes.Summary> |
list(ClusterTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
clusters in vCenter matching the
ClusterTypes.FilterSpec . |
public ClusterStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ClusterStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<ClusterTypes.Summary> list(ClusterTypes.FilterSpec filter)
Cluster
ClusterTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Cluster
filter
- Specification of matching clusters for which information should be returned.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
which means all clusters match the filter.ClusterTypes.FilterSpec
.public java.util.List<ClusterTypes.Summary> list(ClusterTypes.FilterSpec filter, InvocationConfig invocationConfig)
Cluster
ClusterTypes.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 Cluster
filter
- Specification of matching clusters for which information should be returned.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
which means all clusters match the filter.invocationConfig
- Configuration for the method invocation.ClusterTypes.FilterSpec
.public void list(ClusterTypes.FilterSpec filter, AsyncCallback<java.util.List<ClusterTypes.Summary>> asyncCallback)
Cluster
ClusterTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Commonly used information about the clusters matching the ClusterTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 clusters match the ClusterTypes.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 Cluster
filter
- Specification of matching clusters for which information should be returned.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
which means all clusters match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(ClusterTypes.FilterSpec filter, AsyncCallback<java.util.List<ClusterTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Cluster
ClusterTypes.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 clusters matching the ClusterTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 clusters match the ClusterTypes.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 Cluster
filter
- Specification of matching clusters for which information should be returned.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
which means all clusters match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ClusterTypes.Info get(java.lang.String cluster)
Cluster
cluster
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ClusterTypes.Info get(java.lang.String cluster, InvocationConfig invocationConfig)
Cluster
cluster
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(java.lang.String cluster, AsyncCallback<ClusterTypes.Info> asyncCallback)
Cluster
cluster
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the cluster associated with cluster
.
Operation Errors:
NotFound
- if there is no cluster associated with cluster
in the system.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the session id is missing from the request or the corresponding session
object cannot be found.
Unauthorized
- if the user doesn't not have the required privileges.
public void get(java.lang.String cluster, AsyncCallback<ClusterTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Cluster
cluster
.
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 cluster associated with cluster
.
Operation Errors:
NotFound
- if there is no cluster associated with cluster
in the system.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the session id is missing from the request or the corresponding session
object cannot be found.
Unauthorized
- if the user doesn't not have the required privileges.
get
in interface Cluster
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.