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.ConfigStatus, ClustersTypes.EnableSpec, ClustersTypes.ImageRegistry, ClustersTypes.ImageStorageSpec, ClustersTypes.Info, ClustersTypes.Ipv4Range, ClustersTypes.KubernetesStatus, ClustersTypes.Message, ClustersTypes.NCPClusterNetworkEnableSpec, ClustersTypes.NCPClusterNetworkInfo, ClustersTypes.NCPClusterNetworkSetSpec, ClustersTypes.NCPClusterNetworkUpdateSpec, ClustersTypes.NetworkProvider, ClustersTypes.NetworkSpec, ClustersTypes.SetSpec, ClustersTypes.Stats, ClustersTypes.Summary, ClustersTypes.UpdateSpec, ClustersTypes.WorkloadNetworksEnableSpec, ClustersTypes.WorkloadNetworksInfoapiProvider, 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 |
|---|---|
void |
disable(java.lang.String cluster)
Disable vSphere Namespaces on the cluster.
|
void |
disable(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
Disable vSphere Namespaces on the cluster.
|
void |
disable(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Disable vSphere Namespaces on the cluster.
|
void |
disable(java.lang.String cluster,
InvocationConfig invocationConfig)
Disable vSphere Namespaces on the cluster.
|
void |
enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec)
Enable vSphere Namespaces on the cluster.
|
void |
enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Enable vSphere Namespaces on the cluster.
|
void |
enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Enable vSphere Namespaces on the cluster.
|
void |
enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec,
InvocationConfig invocationConfig)
Enable vSphere Namespaces on the cluster.
|
ClustersTypes.Info |
get(java.lang.String cluster)
Returns information about a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<ClustersTypes.Info> asyncCallback)
Returns information about a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<ClustersTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific cluster.
|
ClustersTypes.Info |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns information about a specific cluster.
|
java.util.List<ClustersTypes.Summary> |
list()
Returns information about all clusters on which vSphere Namespaces are enabled
on this vCenter.
|
void |
list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback)
Returns information about all clusters on which vSphere Namespaces are enabled
on this vCenter.
|
void |
list(AsyncCallback<java.util.List<ClustersTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all clusters on which vSphere Namespaces are enabled
on this vCenter.
|
java.util.List<ClustersTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns information about all clusters on which vSphere Namespaces are enabled
on this vCenter.
|
void |
rotatePassword(java.lang.String cluster)
Request a new root password for all control plane nodes in the cluster.
|
void |
rotatePassword(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
Request a new root password for all control plane nodes in the cluster.
|
void |
rotatePassword(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Request a new root password for all control plane nodes in the cluster.
|
void |
rotatePassword(java.lang.String cluster,
InvocationConfig invocationConfig)
Request a new root password for all control plane nodes in the cluster.
|
void |
set(java.lang.String cluster,
ClustersTypes.SetSpec spec)
Set a new configuration on the cluster object.
|
void |
set(java.lang.String cluster,
ClustersTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Set a new configuration on the cluster object.
|
void |
set(java.lang.String cluster,
ClustersTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Set a new configuration on the cluster object.
|
void |
set(java.lang.String cluster,
ClustersTypes.SetSpec spec,
InvocationConfig invocationConfig)
Set a new configuration on the cluster object.
|
void |
update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec)
Update configuration on the cluster object.
|
void |
update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Update configuration on the cluster object.
|
void |
update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Update configuration on the cluster object.
|
void |
update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Update configuration on the cluster object.
|
public ClustersStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ClustersStub(ApiProvider apiProvider, StubConfigurationBase config)
public void enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec)
ClustersSynchronous method overload. Result of the invocation will be reported as a method return value.
enable in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - Specification for setting up the Kubernetes API server and the worker nodes.public void enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec,
InvocationConfig invocationConfig)
ClustersSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
enable in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - Specification for setting up the Kubernetes API server and the worker nodes.invocationConfig - Configuration for the method invocation.public void enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
ClustersAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
AlreadyExists - if the cluster already has vSphere Namespaces enabled.
Error - if the system reports an error while responding to the request.
NotFound - if resources/objects could not be located.
InvalidArgument - if spec contain any errors.
UnableToAllocateResource - if the specified cluster is not licensed.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
Unsupported - if the specified cluster is not supported for vSphere Namespaces, the cluster's
hosts do not have the required ESX version, or for any other incompatibilities.
enable in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - Specification for setting up the Kubernetes API server and the worker nodes.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void enable(java.lang.String cluster,
ClustersTypes.EnableSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
ClustersAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Errors:
AlreadyExists - if the cluster already has vSphere Namespaces enabled.
Error - if the system reports an error while responding to the request.
NotFound - if resources/objects could not be located.
InvalidArgument - if spec contain any errors.
UnableToAllocateResource - if the specified cluster is not licensed.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Manage privilege.
Unsupported - if the specified cluster is not supported for vSphere Namespaces, the cluster's
hosts do not have the required ESX version, or for any other incompatibilities.
enable in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - Specification for setting up the Kubernetes API server and the worker nodes.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void disable(java.lang.String cluster)
ClustersSynchronous method overload. Result of the invocation will be reported as a method return value.
public void disable(java.lang.String cluster,
InvocationConfig invocationConfig)
ClustersSynchronous 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 disable(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
ClustersAsynchronous 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.
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.
disable in interface Clusterscluster - Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void disable(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
ClustersAsynchronous 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.
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.
disable in interface Clusterscluster - Identifier for the cluster for which vSphere Namespaces will be disabled.
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 ClustersTypes.Info get(java.lang.String cluster)
ClustersSynchronous method overload. Result of the invocation will be reported as a method return value.
public ClustersTypes.Info get(java.lang.String cluster, InvocationConfig invocationConfig)
ClustersSynchronous 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 Clusterscluster - Identifier for the cluster on which vSphere Namespaces are enabled.
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)
ClustersAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Information about the desired state of the specified cluster.
Operation Errors:
NotFound - if cluster could not be located.
Unsupported - if the specified cluster does not have vSphere Namespaces enabled.
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 Clusterscluster - Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String cluster,
AsyncCallback<ClustersTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
ClustersAsynchronous 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 desired state of the specified cluster.
Operation Errors:
NotFound - if cluster could not be located.
Unsupported - if the specified cluster does not have vSphere Namespaces enabled.
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 Clusterscluster - Identifier for the cluster on which vSphere Namespaces are enabled.
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()
ClustersSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<ClustersTypes.Summary> list(InvocationConfig invocationConfig)
ClustersSynchronous 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)
ClustersAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
List of summary of all clusters with vSphere Namespaces enabled.
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)
ClustersAsynchronous 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 summary of all clusters with vSphere Namespaces enabled.
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 set(java.lang.String cluster,
ClustersTypes.SetSpec spec)
ClustersSynchronous method overload. Result of the invocation will be reported as a method return value.
public void set(java.lang.String cluster,
ClustersTypes.SetSpec spec,
InvocationConfig invocationConfig)
ClustersSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
set in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces is enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - New specification for the cluster.invocationConfig - Configuration for the method invocation.public void set(java.lang.String cluster,
ClustersTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
ClustersAsynchronous 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.
InvalidArgument - if spec contain any errors.
NotAllowedInCurrentState - if vSphere Namespaces is being disabled on this 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.
set in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces is enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - New specification for the cluster.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void set(java.lang.String cluster,
ClustersTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
ClustersAsynchronous 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.
InvalidArgument - if spec contain any errors.
NotAllowedInCurrentState - if vSphere Namespaces is being disabled on this 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.
set in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces is enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - New specification for the cluster.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec)
Clustersnull fields in spec will leave those parts
of configuration as-is.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Clustersnull fields in spec will leave those parts
of configuration as-is.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
update in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces is enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - New specification for the cluster.invocationConfig - Configuration for the method invocation.public void update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Clustersnull fields in spec will leave those parts
of configuration as-is.
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.
InvalidArgument - if spec contain any errors.
NotAllowedInCurrentState - if vSphere Namespaces is being disabled on this 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.
update in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces is enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - New specification for the cluster.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String cluster,
ClustersTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Clustersnull fields in spec will leave those parts
of configuration as-is.
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.
InvalidArgument - if spec contain any errors.
NotAllowedInCurrentState - if vSphere Namespaces is being disabled on this 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.
update in interface Clusterscluster - Identifier for the cluster on which vSphere Namespaces is enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource.spec - New specification for the cluster.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void rotatePassword(java.lang.String cluster)
ClustersSynchronous method overload. Result of the invocation will be reported as a method return value.
rotatePassword in interface Clusterscluster - Identifier for the cluster for which the password is being generated.
The parameter must be an identifier for the resource type: ClusterComputeResource.public void rotatePassword(java.lang.String cluster,
InvocationConfig invocationConfig)
ClustersSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
rotatePassword in interface Clusterscluster - Identifier for the cluster for which the password is being generated.
The parameter must be an identifier for the resource type: ClusterComputeResource.invocationConfig - Configuration for the method invocation.public void rotatePassword(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
ClustersAsynchronous 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.
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.
NotAllowedInCurrentState - if the cluster is in the process of password rotation.
rotatePassword in interface Clusterscluster - Identifier for the cluster for which the password is being generated.
The parameter must be an identifier for the resource type: ClusterComputeResource.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void rotatePassword(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
ClustersAsynchronous 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.
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.
NotAllowedInCurrentState - if the cluster is in the process of password rotation.
rotatePassword in interface Clusterscluster - Identifier for the cluster for which the password is being generated.
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.