public class ClustersStub extends com.vmware.vapi.internal.bindings.Stub implements Clusters
Clusters
API service.
WARNING: Internal class, subject to change in future versions.
ClustersTypes.Info, ClustersTypes.Message, ClustersTypes.Result, ClustersTypes.State, ClustersTypes.Summary, ClustersTypes.UpgradeProgress, ClustersTypes.UpgradeSpec, ClustersTypes.UpgradeStatus
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ClustersStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ClustersStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ClustersTypes.Info |
get(java.lang.String cluster)
Returns upgrade related information of a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<ClustersTypes.Info> asyncCallback)
Returns upgrade related information of a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<ClustersTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns upgrade related information of a specific cluster.
|
ClustersTypes.Info |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns upgrade related information of a specific cluster.
|
java.util.List<ClustersTypes.Summary> |
list()
Returns upgrade related information about all WCP enabled clusters.
|
void |
list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback)
Returns upgrade related information about all WCP enabled clusters.
|
void |
list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns upgrade related information about all WCP enabled clusters.
|
java.util.List<ClustersTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns upgrade related information about all WCP enabled clusters.
|
void |
upgrade(java.lang.String cluster,
ClustersTypes.UpgradeSpec spec)
Upgrade the cluster to a specific version.
|
void |
upgrade(java.lang.String cluster,
ClustersTypes.UpgradeSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Upgrade the cluster to a specific version.
|
void |
upgrade(java.lang.String cluster,
ClustersTypes.UpgradeSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Upgrade the cluster to a specific version.
|
void |
upgrade(java.lang.String cluster,
ClustersTypes.UpgradeSpec spec,
InvocationConfig invocationConfig)
Upgrade the cluster to a specific version.
|
java.util.Map<java.lang.String,ClustersTypes.Result> |
upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs)
Upgrade a set of clusters to its corresponding specific version.
|
void |
upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs,
AsyncCallback<java.util.Map<java.lang.String,ClustersTypes.Result>> asyncCallback)
Upgrade a set of clusters to its corresponding specific version.
|
void |
upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs,
AsyncCallback<java.util.Map<java.lang.String,ClustersTypes.Result>> asyncCallback,
InvocationConfig invocationConfig)
Upgrade a set of clusters to its corresponding specific version.
|
java.util.Map<java.lang.String,ClustersTypes.Result> |
upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs,
InvocationConfig invocationConfig)
Upgrade a set of clusters to its corresponding specific version.
|
public ClustersStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ClustersStub(ApiProvider apiProvider, StubConfigurationBase config)
public void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec)
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec, InvocationConfig invocationConfig)
Clusters
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
upgrade
in interface Clusters
cluster
- Identifier for the cluster which will be upgraded.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for upgrading the cluster.invocationConfig
- Configuration for the method invocation.public void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Clusters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unsupported
- if pre-check failed of the cluster.
NotFound
- if cluster could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.Manage privilege.
upgrade
in interface Clusters
cluster
- Identifier for the cluster which will be upgraded.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for upgrading the cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Clusters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unsupported
- if pre-check failed of the cluster.
NotFound
- if cluster could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.Manage privilege.
upgrade
in interface Clusters
cluster
- Identifier for the cluster which will be upgraded.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for upgrading the cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.Map<java.lang.String,ClustersTypes.Result> upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs)
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
upgradeMultiple
in interface Clusters
specs
- Specifications for upgrading selected clusters.
The key in the parameter Map
must be an identifier for the
resource type: ClusterComputeResource
.Map
will be an identifier for the
resource type: ClusterComputeResource
.public java.util.Map<java.lang.String,ClustersTypes.Result> upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs, InvocationConfig invocationConfig)
Clusters
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
upgradeMultiple
in interface Clusters
specs
- Specifications for upgrading selected clusters.
The key in the parameter Map
must be an identifier for the
resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.Map
will be an identifier for the
resource type: ClusterComputeResource
.public void upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs, AsyncCallback<java.util.Map<java.lang.String,ClustersTypes.Result>> asyncCallback)
Clusters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Pre-check result when invoking upgrade for each cluster.
The key in the return value Map
will be an identifier for the
resource type: ClusterComputeResource
.
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 Namespaces.Manage privilege on all specified clusters.
upgradeMultiple
in interface Clusters
specs
- Specifications for upgrading selected clusters.
The key in the parameter Map
must be an identifier for the
resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs, AsyncCallback<java.util.Map<java.lang.String,ClustersTypes.Result>> asyncCallback, InvocationConfig invocationConfig)
Clusters
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:
Pre-check result when invoking upgrade for each cluster.
The key in the return value Map
will be an identifier for the
resource type: ClusterComputeResource
.
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 Namespaces.Manage privilege on all specified clusters.
upgradeMultiple
in interface Clusters
specs
- Specifications for upgrading selected clusters.
The key in the parameter Map
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.public ClustersTypes.Info get(java.lang.String cluster)
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ClustersTypes.Info get(java.lang.String cluster, InvocationConfig invocationConfig)
Clusters
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 Clusters
cluster
- Identifier for the cluster which will be upgraded.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String cluster, AsyncCallback<ClustersTypes.Info> asyncCallback)
Clusters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the upgrade of the specified WCP enabled cluster.
Operation Errors:
NotFound
- if cluster could not be located.
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 System.Read privilege.
public void get(java.lang.String cluster, AsyncCallback<ClustersTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Clusters
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 upgrade of the specified WCP enabled cluster.
Operation Errors:
NotFound
- if cluster could not be located.
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 System.Read privilege.
get
in interface Clusters
cluster
- Identifier for the cluster which will be upgraded.
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.public java.util.List<ClustersTypes.Summary> list()
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<ClustersTypes.Summary> list(InvocationConfig invocationConfig)
Clusters
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 list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback)
Clusters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of upgrade summary of all WCP enabled clusters.
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 System.Read privilege.
public void list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Clusters
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 upgrade summary of all WCP enabled clusters.
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 System.Read privilege.