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.ListItem, ClusterTypes.ListResult
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
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.ListResult |
list(ClusterTypes.FilterSpec filter)
Returns zone-cluster associations that match the specified filter.
|
void |
list(ClusterTypes.FilterSpec filter,
AsyncCallback<ClusterTypes.ListResult> asyncCallback)
Returns zone-cluster associations that match the specified filter.
|
void |
list(ClusterTypes.FilterSpec filter,
AsyncCallback<ClusterTypes.ListResult> asyncCallback,
InvocationConfig invocationConfig)
Returns zone-cluster associations that match the specified filter.
|
ClusterTypes.ListResult |
list(ClusterTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns zone-cluster associations that match the specified filter.
|
public ClusterStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ClusterStub(ApiProvider apiProvider, StubConfigurationBase config)
public ClusterTypes.ListResult list(ClusterTypes.FilterSpec filter)
Cluster
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Cluster
filter
- The specification of matching zone-cluster associations.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
, which means all the zone-cluster associations
will be returned.ClusterTypes.FilterSpec
.public ClusterTypes.ListResult list(ClusterTypes.FilterSpec filter, InvocationConfig invocationConfig)
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.
list
in interface Cluster
filter
- The specification of matching zone-cluster associations.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
, which means all the zone-cluster associations
will be returned.invocationConfig
- Configuration for the method invocation.ClusterTypes.FilterSpec
.public void list(ClusterTypes.FilterSpec filter, AsyncCallback<ClusterTypes.ListResult> asyncCallback)
Cluster
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Zone-cluster associations matching the ClusterTypes.FilterSpec
.
Operation Errors:
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zones in FilterSpec
requires System.Read privilege.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. list
in interface Cluster
filter
- The specification of matching zone-cluster associations.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
, which means all the zone-cluster associations
will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(ClusterTypes.FilterSpec filter, AsyncCallback<ClusterTypes.ListResult> asyncCallback, InvocationConfig invocationConfig)
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:
Zone-cluster associations matching the ClusterTypes.FilterSpec
.
Operation Errors:
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have all of the privileges described as follows: - The
resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter
zones in FilterSpec
requires System.Read privilege.
Error
- when unexpected error is encountered.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. list
in interface Cluster
filter
- The specification of matching zone-cluster associations.
If null
, the behavior is equivalent to a ClusterTypes.FilterSpec
with all properties null
, which means all the zone-cluster associations
will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.