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
apiProvider, converter, ifaceId, 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)
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
enable
in interface Clusters
cluster
- 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)
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.
enable
in interface Clusters
cluster
- 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)
Clusters
Asynchronous 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 Clusters
cluster
- 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)
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:
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 Clusters
cluster
- 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)
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void disable(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.
public void disable(java.lang.String cluster, 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.
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 Clusters
cluster
- 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)
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.
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 Clusters
cluster
- 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)
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 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)
Clusters
Asynchronous 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 Clusters
cluster
- 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)
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 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 Clusters
cluster
- 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()
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 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)
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 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)
Clusters
Synchronous 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)
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.
set
in interface Clusters
cluster
- 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)
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.
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 Clusters
cluster
- 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)
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.
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 Clusters
cluster
- 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)
Clusters
null
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)
Clusters
null
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 Clusters
cluster
- 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)
Clusters
null
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 Clusters
cluster
- 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)
Clusters
null
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 Clusters
cluster
- 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)
Clusters
Synchronous method overload. Result of the invocation will be reported as a method return value.
rotatePassword
in interface Clusters
cluster
- 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)
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.
rotatePassword
in interface Clusters
cluster
- 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)
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.
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 Clusters
cluster
- 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)
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.
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 Clusters
cluster
- 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.