public class InstancesStub extends com.vmware.vapi.internal.bindings.Stub implements Instances
Instances
API service.
WARNING: Internal class, subject to change in future versions.
InstancesTypes.Access, InstancesTypes.ConfigStatus, InstancesTypes.CreateSpec, InstancesTypes.Info, InstancesTypes.Message, InstancesTypes.SetSpec, InstancesTypes.Stats, InstancesTypes.StorageSpec, InstancesTypes.Summary, InstancesTypes.UpdateSpecapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID, RESOURCE_TYPE| Constructor and Description |
|---|
InstancesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
InstancesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(InstancesTypes.CreateSpec spec)
Create namespace object in the cluster.
|
void |
create(InstancesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Create namespace object in the cluster.
|
void |
create(InstancesTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Create namespace object in the cluster.
|
void |
create(InstancesTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Create namespace object in the cluster.
|
void |
delete(java.lang.String namespace)
Delete the namespace object in the cluster.
|
void |
delete(java.lang.String namespace,
AsyncCallback<java.lang.Void> asyncCallback)
Delete the namespace object in the cluster.
|
void |
delete(java.lang.String namespace,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Delete the namespace object in the cluster.
|
void |
delete(java.lang.String namespace,
InvocationConfig invocationConfig)
Delete the namespace object in the cluster.
|
InstancesTypes.Info |
get(java.lang.String namespace)
Returns information about a specific namespace.
|
void |
get(java.lang.String namespace,
AsyncCallback<InstancesTypes.Info> asyncCallback)
Returns information about a specific namespace.
|
void |
get(java.lang.String namespace,
AsyncCallback<InstancesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific namespace.
|
InstancesTypes.Info |
get(java.lang.String namespace,
InvocationConfig invocationConfig)
Returns information about a specific namespace.
|
java.util.List<InstancesTypes.Summary> |
list()
Returns the information about all namespaces on this vCenter.
|
void |
list(AsyncCallback<java.util.List<InstancesTypes.Summary>> asyncCallback)
Returns the information about all namespaces on this vCenter.
|
void |
list(AsyncCallback<java.util.List<InstancesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns the information about all namespaces on this vCenter.
|
java.util.List<InstancesTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns the information about all namespaces on this vCenter.
|
void |
set(java.lang.String namespace,
InstancesTypes.SetSpec spec)
Set a new configuration on the namespace object.
|
void |
set(java.lang.String namespace,
InstancesTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Set a new configuration on the namespace object.
|
void |
set(java.lang.String namespace,
InstancesTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Set a new configuration on the namespace object.
|
void |
set(java.lang.String namespace,
InstancesTypes.SetSpec spec,
InvocationConfig invocationConfig)
Set a new configuration on the namespace object.
|
void |
update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec)
Update the namespace object.
|
void |
update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Update the namespace object.
|
void |
update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Update the namespace object.
|
void |
update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Update the namespace object.
|
public InstancesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public InstancesStub(ApiProvider apiProvider, StubConfigurationBase config)
public void create(InstancesTypes.CreateSpec spec)
InstancesSynchronous method overload. Result of the invocation will be reported as a method return value.
public void create(InstancesTypes.CreateSpec spec, InvocationConfig invocationConfig)
InstancesSynchronous 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 create(InstancesTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
InstancesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
AlreadyExists - if a namespace with the same name exists in vCenter server.
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contain any errors or if an invalid name is specified.
NotAllowedInCurrentState - if the associated cluster is deing disabled.
NotFound - if InstancesTypes.CreateSpec.getCluster() is
not registered on this vCenter server.
Unsupported - if InstancesTypes.CreateSpec.getCluster() is
not enabled for Namespaces, or if the networks field is set when the InstancesTypes.CreateSpec.getCluster() hosting the
namespace uses NSXT_CONTAINER_PLUGIN as its network provider.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
public void create(InstancesTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
InstancesAsynchronous 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 a namespace with the same name exists in vCenter server.
Error - if the system reports an error while responding to the request.
InvalidArgument - if spec contain any errors or if an invalid name is specified.
NotAllowedInCurrentState - if the associated cluster is deing disabled.
NotFound - if InstancesTypes.CreateSpec.getCluster() is
not registered on this vCenter server.
Unsupported - if InstancesTypes.CreateSpec.getCluster() is
not enabled for Namespaces, or if the networks field is set when the InstancesTypes.CreateSpec.getCluster() hosting the
namespace uses NSXT_CONTAINER_PLUGIN as its network provider.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
public void delete(java.lang.String namespace)
InstancesSynchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String namespace,
InvocationConfig invocationConfig)
InstancesSynchronous 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 delete(java.lang.String namespace,
AsyncCallback<java.lang.Void> asyncCallback)
InstancesAsynchronous 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 specified namespace could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
public void delete(java.lang.String namespace,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
InstancesAsynchronous 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 specified namespace could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
delete in interface Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public InstancesTypes.Info get(java.lang.String namespace)
InstancesSynchronous method overload. Result of the invocation will be reported as a method return value.
public InstancesTypes.Info get(java.lang.String namespace, InvocationConfig invocationConfig)
InstancesSynchronous 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 Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.invocationConfig - Configuration for the method invocation.public void get(java.lang.String namespace,
AsyncCallback<InstancesTypes.Info> asyncCallback)
InstancesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Information about the desired state of the specified namespace.
Operation Errors:
NotFound - if namespace 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.
public void get(java.lang.String namespace,
AsyncCallback<InstancesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
InstancesAsynchronous 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 namespace.
Operation Errors:
NotFound - if namespace 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 Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public java.util.List<InstancesTypes.Summary> list()
InstancesSynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<InstancesTypes.Summary> list(InvocationConfig invocationConfig)
InstancesSynchronous 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<InstancesTypes.Summary>> asyncCallback)
InstancesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The list of summary of all namespaces.
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<InstancesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
InstancesAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
The list of summary of all namespaces.
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 namespace,
InstancesTypes.SetSpec spec)
InstancesSynchronous method overload. Result of the invocation will be reported as a method return value.
public void set(java.lang.String namespace,
InstancesTypes.SetSpec spec,
InvocationConfig invocationConfig)
InstancesSynchronous 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 set(java.lang.String namespace,
InstancesTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
InstancesAsynchronous 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 the namespace is marked for deletion or the associated cluster is being
disabled.
NotFound - if namespace with the name namespace could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
set in interface Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.spec - New specification for the namespace.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void set(java.lang.String namespace,
InstancesTypes.SetSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
InstancesAsynchronous 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 the namespace is marked for deletion or the associated cluster is being
disabled.
NotFound - if namespace with the name namespace could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
set in interface Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.spec - New specification for the namespace.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec)
Instancesnull 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 namespace,
InstancesTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Instancesnull 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 Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.spec - Specification for updating the namespace.invocationConfig - Configuration for the method invocation.public void update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Instancesnull 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 the namespace is marked for deletion or the associated cluster is being
disabled.
NotFound - if namespace with the name namespace could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
update in interface Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.spec - Specification for updating the namespace.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String namespace,
InstancesTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Instancesnull 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 the namespace is marked for deletion or the associated cluster is being
disabled.
NotFound - if namespace with the name namespace could not be located.
Unauthenticated - if the user can not be authenticated.
Unauthorized - if the user does not have Namespaces.Configure privilege or the namespace
identifier begins with "vmware-system" prefix.
update in interface Instancesnamespace - Identifier for the namespace.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.spec - Specification for updating the namespace.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.