public class NamespaceTemplatesStub extends com.vmware.vapi.internal.bindings.Stub implements NamespaceTemplates
NamespaceTemplates
API service.
WARNING: Internal class, subject to change in future versions.
NamespaceTemplatesTypes.CreateSpec, NamespaceTemplatesTypes.Info, NamespaceTemplatesTypes.Subject, NamespaceTemplatesTypes.Summary, NamespaceTemplatesTypes.UpdateSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
NamespaceTemplatesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
NamespaceTemplatesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.String cluster,
NamespaceTemplatesTypes.CreateSpec spec)
Creates a namespace template on a cluster on which vSphere Namespaces are
enabled on this vCenter.
|
void |
create(java.lang.String cluster,
NamespaceTemplatesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Creates a namespace template on a cluster on which vSphere Namespaces are
enabled on this vCenter.
|
void |
create(java.lang.String cluster,
NamespaceTemplatesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Creates a namespace template on a cluster on which vSphere Namespaces are
enabled on this vCenter.
|
void |
create(java.lang.String cluster,
NamespaceTemplatesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a namespace template on a cluster on which vSphere Namespaces are
enabled on this vCenter.
|
NamespaceTemplatesTypes.Info |
get(java.lang.String cluster,
java.lang.String template)
Get the information about a namespace template on given cluster.
|
void |
get(java.lang.String cluster,
java.lang.String template,
AsyncCallback<NamespaceTemplatesTypes.Info> asyncCallback)
Get the information about a namespace template on given cluster.
|
void |
get(java.lang.String cluster,
java.lang.String template,
AsyncCallback<NamespaceTemplatesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get the information about a namespace template on given cluster.
|
NamespaceTemplatesTypes.Info |
get(java.lang.String cluster,
java.lang.String template,
InvocationConfig invocationConfig)
Get the information about a namespace template on given cluster.
|
java.util.List<NamespaceTemplatesTypes.Summary> |
list(java.lang.String cluster)
Returns information about all the namespace templates associated with a cluster
on which vSphere Namespaces are enabled on this vCenter.
|
void |
list(java.lang.String cluster,
AsyncCallback<java.util.List<NamespaceTemplatesTypes.Summary>> asyncCallback)
Returns information about all the namespace templates associated with a cluster
on which vSphere Namespaces are enabled on this vCenter.
|
void |
list(java.lang.String cluster,
AsyncCallback<java.util.List<NamespaceTemplatesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all the namespace templates associated with a cluster
on which vSphere Namespaces are enabled on this vCenter.
|
java.util.List<NamespaceTemplatesTypes.Summary> |
list(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns information about all the namespace templates associated with a cluster
on which vSphere Namespaces are enabled on this vCenter.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec)
Updates a namespace template associated with a cluster on which vSphere
Namespaces are enabled on this vCenter.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates a namespace template associated with a cluster on which vSphere
Namespaces are enabled on this vCenter.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates a namespace template associated with a cluster on which vSphere
Namespaces are enabled on this vCenter.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates a namespace template associated with a cluster on which vSphere
Namespaces are enabled on this vCenter.
|
public NamespaceTemplatesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public NamespaceTemplatesStub(ApiProvider apiProvider, StubConfigurationBase config)
public NamespaceTemplatesTypes.Info get(java.lang.String cluster, java.lang.String template)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.public NamespaceTemplatesTypes.Info get(java.lang.String cluster, java.lang.String template, InvocationConfig invocationConfig)
NamespaceTemplates
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 NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String cluster, java.lang.String template, AsyncCallback<NamespaceTemplatesTypes.Info> asyncCallback)
NamespaceTemplates
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the namespace template.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster
doesn't exist or if template
doesn't exist.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
get
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String cluster, java.lang.String template, AsyncCallback<NamespaceTemplatesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
NamespaceTemplates
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 template.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster
doesn't exist or if template
doesn't exist.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
get
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<NamespaceTemplatesTypes.Summary> list(java.lang.String cluster)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.cluster
with
vSphere Namespaces enabled.public java.util.List<NamespaceTemplatesTypes.Summary> list(java.lang.String cluster, InvocationConfig invocationConfig)
NamespaceTemplates
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 NamespaceTemplates
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.cluster
with
vSphere Namespaces enabled.public void list(java.lang.String cluster, AsyncCallback<java.util.List<NamespaceTemplatesTypes.Summary>> asyncCallback)
NamespaceTemplates
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of summary of all namespace templates associated with cluster
with
vSphere Namespaces enabled.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster
doesn't exist.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
list
in interface NamespaceTemplates
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 list(java.lang.String cluster, AsyncCallback<java.util.List<NamespaceTemplatesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
NamespaceTemplates
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 namespace templates associated with cluster
with
vSphere Namespaces enabled.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if cluster
doesn't exist.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
list
in interface NamespaceTemplates
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 void create(java.lang.String cluster, NamespaceTemplatesTypes.CreateSpec spec)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for setting up the namespace template.public void create(java.lang.String cluster, NamespaceTemplatesTypes.CreateSpec spec, InvocationConfig invocationConfig)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for setting up the namespace template.invocationConfig
- Configuration for the method invocation.public void create(java.lang.String cluster, NamespaceTemplatesTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
NamespaceTemplates
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
doesn't exist.
InvalidArgument
- if spec
contain any errors, or if {link CreateSpec#storageSpecs} is
empty, or if {link CreateSpec#resourceSpec} is not set with {term memory_limit},
{term cpu_limit}, {term storage_request_limit}, or if {link CreateSpec#networks}
is not set with networks if the {term cluster} hosting the namespaces uses
VSPHERE_NETWORK as its network provider, or if {link CreateSpec#networks} is not
empty if the {term cluster} hosting the namespaces uses NSXT_CONTAINER_PLUGIN as
its network provider.
Unsupported
- if a request arrives to create a second template.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
AlreadyExists
- if the namespace template with given name already exists.
create
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for setting up the namespace template.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String cluster, NamespaceTemplatesTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
NamespaceTemplates
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
doesn't exist.
InvalidArgument
- if spec
contain any errors, or if {link CreateSpec#storageSpecs} is
empty, or if {link CreateSpec#resourceSpec} is not set with {term memory_limit},
{term cpu_limit}, {term storage_request_limit}, or if {link CreateSpec#networks}
is not set with networks if the {term cluster} hosting the namespaces uses
VSPHERE_NETWORK as its network provider, or if {link CreateSpec#networks} is not
empty if the {term cluster} hosting the namespaces uses NSXT_CONTAINER_PLUGIN as
its network provider.
Unsupported
- if a request arrives to create a second template.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
AlreadyExists
- if the namespace template with given name already exists.
create
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Specification for setting up the namespace template.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, java.lang.String template, NamespaceTemplatesTypes.UpdateSpec spec)
NamespaceTemplates
null
fields in spec
will leave those parts of
configuration as-is. This method was added in vSphere API 7.0.2.00100.
Synchronous method overload. Result of the invocation will be reported as a method return value.
update
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.spec
- Specification for updating the namespace template.public void update(java.lang.String cluster, java.lang.String template, NamespaceTemplatesTypes.UpdateSpec spec, InvocationConfig invocationConfig)
NamespaceTemplates
null
fields in spec
will leave those parts of
configuration as-is. This method was added in vSphere API 7.0.2.00100.
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 NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.spec
- Specification for updating the namespace template.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String cluster, java.lang.String template, NamespaceTemplatesTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
NamespaceTemplates
null
fields in spec
will leave those parts of
configuration as-is. This method was added in vSphere API 7.0.2.00100.
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
doesn't exist or if template
doesn't exist.
InvalidArgument
- if spec
contain any errors.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
update
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.spec
- Specification for updating the namespace template.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String cluster, java.lang.String template, NamespaceTemplatesTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
NamespaceTemplates
null
fields in spec
will leave those parts of
configuration as-is. This method was added in vSphere API 7.0.2.00100.
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
doesn't exist or if template
doesn't exist.
InvalidArgument
- if spec
contain any errors.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.SelfServiceManage privilege.
update
in interface NamespaceTemplates
cluster
- Identifier for the cluster on which vSphere Namespaces are enabled.
The parameter must be an identifier for the resource type: ClusterComputeResource
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.spec
- Specification for updating the namespace template.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.