public interface Clusters extends Service, ClustersTypes
Clusters
interface provides methods to upgrade the vSphere clusters.ClustersTypes.Info, ClustersTypes.Message, ClustersTypes.Result, ClustersTypes.State, ClustersTypes.Summary, ClustersTypes.UpgradeProgress, ClustersTypes.UpgradeSpec, ClustersTypes.UpgradeStatus
_VAPI_SERVICE_ID
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.
|
void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
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.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.void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec, 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.
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.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.void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
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.
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.void upgrade(java.lang.String cluster, ClustersTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> 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.
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.
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.java.util.Map<java.lang.String,ClustersTypes.Result> upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs)
Synchronous method overload. Result of the invocation will be reported as a method return value.
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
.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.java.util.Map<java.lang.String,ClustersTypes.Result> upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs, 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.
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
.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.void upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs, AsyncCallback<java.util.Map<java.lang.String,ClustersTypes.Result>> asyncCallback)
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.
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.void upgradeMultiple(java.util.Map<java.lang.String,ClustersTypes.UpgradeSpec> specs, AsyncCallback<java.util.Map<java.lang.String,ClustersTypes.Result>> 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:
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.
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.ClustersTypes.Info get(java.lang.String cluster)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cluster
- Identifier for the cluster which will be upgraded.
The parameter must be an identifier for the resource type: ClusterComputeResource
.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.ClustersTypes.Info get(java.lang.String cluster, 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.
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.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.void get(java.lang.String cluster, AsyncCallback<ClustersTypes.Info> asyncCallback)
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.
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.void get(java.lang.String cluster, AsyncCallback<ClustersTypes.Info> 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:
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.
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.java.util.List<ClustersTypes.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 System.Read privilege.java.util.List<ClustersTypes.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 System.Read privilege.void list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback)
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.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<ClustersTypes.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 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.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.