public class NamespaceSelfServiceStub extends com.vmware.vapi.internal.bindings.Stub implements NamespaceSelfService
NamespaceSelfService
API service.
WARNING: Internal class, subject to change in future versions.
NamespaceSelfServiceTypes.ActivateTemplateSpec, NamespaceSelfServiceTypes.Capability, NamespaceSelfServiceTypes.Info, NamespaceSelfServiceTypes.Status, NamespaceSelfServiceTypes.Summary
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
NamespaceSelfServiceStub(ApiProvider apiProvider,
StubConfigurationBase config) |
NamespaceSelfServiceStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
activate(java.lang.String cluster)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activate(java.lang.String cluster,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
activateWithTemplate(java.lang.String cluster,
NamespaceSelfServiceTypes.ActivateTemplateSpec spec,
InvocationConfig invocationConfig)
Activate Namespace Self Service on the cluster after configuring namespace
template.
|
void |
deactivate(java.lang.String cluster)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
deactivate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
deactivate(java.lang.String cluster,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
void |
deactivate(java.lang.String cluster,
InvocationConfig invocationConfig)
Deactivate Namespace Self Service on the cluster on which vSphere Namespaces
enabled.
|
NamespaceSelfServiceTypes.Info |
get(java.lang.String cluster)
Returns information about Namespace Self Service of a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<NamespaceSelfServiceTypes.Info> asyncCallback)
Returns information about Namespace Self Service of a specific cluster.
|
void |
get(java.lang.String cluster,
AsyncCallback<NamespaceSelfServiceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about Namespace Self Service of a specific cluster.
|
NamespaceSelfServiceTypes.Info |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns information about Namespace Self Service of a specific cluster.
|
java.util.List<NamespaceSelfServiceTypes.Summary> |
list()
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
void |
list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback)
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
void |
list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
java.util.List<NamespaceSelfServiceTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns basic information about Namespace Self Service on all clusters on which
vSphere Namespaces are enabled on this vCenter.
|
public NamespaceSelfServiceStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public NamespaceSelfServiceStub(ApiProvider apiProvider, StubConfigurationBase config)
public void activate(java.lang.String cluster)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be reported as a method return value.
activate
in interface NamespaceSelfService
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public void activate(java.lang.String cluster, InvocationConfig invocationConfig)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
activate
in interface NamespaceSelfService
cluster
- Identifier for the cluster on which vSphere Namespaces will be enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void activate(java.lang.String cluster, AsyncCallback<java.lang.Void> asyncCallback)
NamespaceSelfService
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- if the cluster already has Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled could not be located or no namespace
templates exists.
UnableToAllocateResource
- if the specified cluster is not licensed.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled or no namespace template exists in the system.
activate
in interface NamespaceSelfService
cluster
- Identifier for the cluster on which vSphere Namespaces will be 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 activate(java.lang.String cluster, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
NamespaceSelfService
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 Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled could not be located or no namespace
templates exists.
UnableToAllocateResource
- if the specified cluster is not licensed.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled or no namespace template exists in the system.
activate
in interface NamespaceSelfService
cluster
- Identifier for the cluster on which vSphere Namespaces will be 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 void deactivate(java.lang.String cluster)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be reported as a method return value.
deactivate
in interface NamespaceSelfService
cluster
- Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public void deactivate(java.lang.String cluster, InvocationConfig invocationConfig)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
deactivate
in interface NamespaceSelfService
cluster
- Identifier for the cluster for which vSphere Namespaces will be disabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void deactivate(java.lang.String cluster, AsyncCallback<java.lang.Void> asyncCallback)
NamespaceSelfService
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 with vSphere Namespaced enabled is not found.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is not activated.
deactivate
in interface NamespaceSelfService
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 deactivate(java.lang.String cluster, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
NamespaceSelfService
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 with vSphere Namespaced enabled is not found.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is not activated.
deactivate
in interface NamespaceSelfService
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 NamespaceSelfServiceTypes.Info get(java.lang.String cluster)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface NamespaceSelfService
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public NamespaceSelfServiceTypes.Info get(java.lang.String cluster, InvocationConfig invocationConfig)
NamespaceSelfService
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 NamespaceSelfService
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<NamespaceSelfServiceTypes.Info> asyncCallback)
NamespaceSelfService
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the namespace self service associated with the specified
cluster.
Operation Errors:
NotFound
- if cluster with vSphere Namespaced enabled 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 NamespaceSelfService
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<NamespaceSelfServiceTypes.Info> asyncCallback, InvocationConfig invocationConfig)
NamespaceSelfService
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 namespace self service associated with the specified
cluster.
Operation Errors:
NotFound
- if cluster with vSphere Namespaced enabled 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 NamespaceSelfService
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<NamespaceSelfServiceTypes.Summary> list()
NamespaceSelfService
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface NamespaceSelfService
public java.util.List<NamespaceSelfServiceTypes.Summary> list(InvocationConfig invocationConfig)
NamespaceSelfService
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 NamespaceSelfService
invocationConfig
- Configuration for the method invocation.public void list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback)
NamespaceSelfService
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of summary of Namespace Self Service associated with 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.
list
in interface NamespaceSelfService
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(AsyncCallback<java.util.List<NamespaceSelfServiceTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
NamespaceSelfService
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 Namespace Self Service associated with 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.
list
in interface NamespaceSelfService
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be reported as a method return value.
activateWithTemplate
in interface NamespaceSelfService
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 activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.public void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec, InvocationConfig invocationConfig)
NamespaceSelfService
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
activateWithTemplate
in interface NamespaceSelfService
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 activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.invocationConfig
- Configuration for the method invocation.public void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
NamespaceSelfService
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- if the cluster already has Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled 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.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled.
activateWithTemplate
in interface NamespaceSelfService
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 activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void activateWithTemplate(java.lang.String cluster, NamespaceSelfServiceTypes.ActivateTemplateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
NamespaceSelfService
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 Namespace Self Service activated.
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster with vSphere Namespaces enabled 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.SelfServiceManage privilege.
NotAllowedInCurrentState
- if the service is marked for deactivation or the associated cluster is being
disabled.
activateWithTemplate
in interface NamespaceSelfService
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 activating namespace self service on the cluster by granting
users/groups to create Supervisor Namespaces.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.