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.InfoV2, NamespaceTemplatesTypes.Subject, NamespaceTemplatesTypes.Summary, NamespaceTemplatesTypes.SummaryV2, 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 in this vCenter Server.
|
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 in this vCenter Server.
|
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 in this vCenter Server.
|
void |
create(java.lang.String cluster,
NamespaceTemplatesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a namespace template on a cluster on which vSphere Namespaces are
enabled in this vCenter Server.
|
void |
createV2(java.lang.String supervisor,
NamespaceTemplatesTypes.CreateSpec spec)
Creates a namespace template on a Supervisor.
|
void |
createV2(java.lang.String supervisor,
NamespaceTemplatesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Creates a namespace template on a Supervisor.
|
void |
createV2(java.lang.String supervisor,
NamespaceTemplatesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Creates a namespace template on a Supervisor.
|
void |
createV2(java.lang.String supervisor,
NamespaceTemplatesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a namespace template on a Supervisor.
|
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.
|
NamespaceTemplatesTypes.InfoV2 |
getV2(java.lang.String supervisor,
java.lang.String template)
Get the information about a namespace template on a Supervisor.
|
void |
getV2(java.lang.String supervisor,
java.lang.String template,
AsyncCallback<NamespaceTemplatesTypes.InfoV2> asyncCallback)
Get the information about a namespace template on a Supervisor.
|
void |
getV2(java.lang.String supervisor,
java.lang.String template,
AsyncCallback<NamespaceTemplatesTypes.InfoV2> asyncCallback,
InvocationConfig invocationConfig)
Get the information about a namespace template on a Supervisor.
|
NamespaceTemplatesTypes.InfoV2 |
getV2(java.lang.String supervisor,
java.lang.String template,
InvocationConfig invocationConfig)
Get the information about a namespace template on a Supervisor.
|
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 in this vCenter Server.
|
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 in this vCenter Server.
|
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 in this vCenter Server.
|
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 in this vCenter Server.
|
java.util.List<NamespaceTemplatesTypes.SummaryV2> |
listV2(java.lang.String supervisor)
Returns information about all the namespace templates associated with a
Supervisor.
|
void |
listV2(java.lang.String supervisor,
AsyncCallback<java.util.List<NamespaceTemplatesTypes.SummaryV2>> asyncCallback)
Returns information about all the namespace templates associated with a
Supervisor.
|
void |
listV2(java.lang.String supervisor,
AsyncCallback<java.util.List<NamespaceTemplatesTypes.SummaryV2>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all the namespace templates associated with a
Supervisor.
|
java.util.List<NamespaceTemplatesTypes.SummaryV2> |
listV2(java.lang.String supervisor,
InvocationConfig invocationConfig)
Returns information about all the namespace templates associated with a
Supervisor.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec)
Updates a namespace template associated with cluster on which vSphere Namespaces
are enabled in this vCenter Server.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates a namespace template associated with cluster on which vSphere Namespaces
are enabled in this vCenter Server.
|
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 cluster on which vSphere Namespaces
are enabled in this vCenter Server.
|
void |
update(java.lang.String cluster,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates a namespace template associated with cluster on which vSphere Namespaces
are enabled in this vCenter Server.
|
void |
updateV2(java.lang.String supervisor,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec)
Updates a namespace template associated with a Supervisor.
|
void |
updateV2(java.lang.String supervisor,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates a namespace template associated with a Supervisor.
|
void |
updateV2(java.lang.String supervisor,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates a namespace template associated with a Supervisor.
|
void |
updateV2(java.lang.String supervisor,
java.lang.String template,
NamespaceTemplatesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates a namespace template associated with a Supervisor.
|
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 NamespaceTemplatesTypes.InfoV2 getV2(java.lang.String supervisor, java.lang.String template)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be reported as a method return value.
getV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.template
- Name of the namespace template.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.NamespaceTemplate
.public NamespaceTemplatesTypes.InfoV2 getV2(java.lang.String supervisor, 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.
getV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 getV2(java.lang.String supervisor, java.lang.String template, AsyncCallback<NamespaceTemplatesTypes.InfoV2> 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 the Supervisor 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.
getV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 getV2(java.lang.String supervisor, java.lang.String template, AsyncCallback<NamespaceTemplatesTypes.InfoV2> 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 the Supervisor 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.
getV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 java.util.List<NamespaceTemplatesTypes.SummaryV2> listV2(java.lang.String supervisor)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be reported as a method return value.
listV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.public java.util.List<NamespaceTemplatesTypes.SummaryV2> listV2(java.lang.String supervisor, 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.
listV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.invocationConfig
- Configuration for the method invocation.public void listV2(java.lang.String supervisor, AsyncCallback<java.util.List<NamespaceTemplatesTypes.SummaryV2>> 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 the Supervisor.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the Supervisor doesn't exist.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
listV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void listV2(java.lang.String supervisor, AsyncCallback<java.util.List<NamespaceTemplatesTypes.SummaryV2>> 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 the Supervisor.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the Supervisor doesn't exist.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
listV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 createV2(java.lang.String supervisor, NamespaceTemplatesTypes.CreateSpec spec)
NamespaceTemplates
Synchronous method overload. Result of the invocation will be reported as a method return value.
createV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for setting up the namespace template.public void createV2(java.lang.String supervisor, 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.
createV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for setting up the namespace template.invocationConfig
- Configuration for the method invocation.public void createV2(java.lang.String supervisor, 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 the Supervisor 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 Supervisor hosting the namespaces uses
VSPHERE_NETWORK as its network provider, or if {link CreateSpec#networks} is not
empty if the Supervisor 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.
createV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for setting up the namespace template.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void createV2(java.lang.String supervisor, 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 the Supervisor 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 Supervisor hosting the namespaces uses
VSPHERE_NETWORK as its network provider, or if {link CreateSpec#networks} is not
empty if the Supervisor 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.
createV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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. A Supervisor can be running on one or multiple vSphere
Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If
a Supervisor running on the specified vSphere Cluster is running on additional
vSphere Clusters, this operation will apply to Supervisor components running on
the other vSphere Clusters in addition to the specified vSphere Cluster. To call
this API on a Supervisor with multiple vSphere Clusters, use
com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the
vSphere Clusters associated with the given Supervisor. Any cluster from the list
returned can be used as the input of this API. 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 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. A Supervisor can be running on one or multiple vSphere
Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If
a Supervisor running on the specified vSphere Cluster is running on additional
vSphere Clusters, this operation will apply to Supervisor components running on
the other vSphere Clusters in addition to the specified vSphere Cluster. To call
this API on a Supervisor with multiple vSphere Clusters, use
com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the
vSphere Clusters associated with the given Supervisor. Any cluster from the list
returned can be used as the input of this API. 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 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. A Supervisor can be running on one or multiple vSphere
Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If
a Supervisor running on the specified vSphere Cluster is running on additional
vSphere Clusters, this operation will apply to Supervisor components running on
the other vSphere Clusters in addition to the specified vSphere Cluster. To call
this API on a Supervisor with multiple vSphere Clusters, use
com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the
vSphere Clusters associated with the given Supervisor. Any cluster from the list
returned can be used as the input of this API. 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 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. A Supervisor can be running on one or multiple vSphere
Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If
a Supervisor running on the specified vSphere Cluster is running on additional
vSphere Clusters, this operation will apply to Supervisor components running on
the other vSphere Clusters in addition to the specified vSphere Cluster. To call
this API on a Supervisor with multiple vSphere Clusters, use
com.vmware.vcenter.namespace_management.supervisors.Topology#get to get the
vSphere Clusters associated with the given Supervisor. Any cluster from the list
returned can be used as the input of this API. 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 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.public void updateV2(java.lang.String supervisor, 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
8.0.0.1.
Synchronous method overload. Result of the invocation will be reported as a method return value.
updateV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 updateV2(java.lang.String supervisor, 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
8.0.0.1.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
updateV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 updateV2(java.lang.String supervisor, 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
8.0.0.1.
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 the Supervisor 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.
updateV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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 updateV2(java.lang.String supervisor, 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
8.0.0.1.
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 the Supervisor 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.
updateV2
in interface NamespaceTemplates
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.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.