public class DatacenterStub extends com.vmware.vapi.internal.bindings.Stub implements Datacenter
Datacenter
API service.
WARNING: Internal class, subject to change in future versions.
DatacenterTypes.CreateSpec, DatacenterTypes.FilterSpec, DatacenterTypes.Info, DatacenterTypes.Summary
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
Constructor and Description |
---|
DatacenterStub(ApiProvider apiProvider,
StubConfigurationBase config) |
DatacenterStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(DatacenterTypes.CreateSpec spec)
Create a new datacenter in the vCenter inventory
|
void |
create(DatacenterTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Create a new datacenter in the vCenter inventory
|
void |
create(DatacenterTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Create a new datacenter in the vCenter inventory
|
java.lang.String |
create(DatacenterTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Create a new datacenter in the vCenter inventory
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force)
Delete an empty datacenter from the vCenter Server
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force,
AsyncCallback<java.lang.Void> asyncCallback)
Delete an empty datacenter from the vCenter Server
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Delete an empty datacenter from the vCenter Server
|
void |
delete(java.lang.String datacenter,
java.lang.Boolean force,
InvocationConfig invocationConfig)
Delete an empty datacenter from the vCenter Server
|
DatacenterTypes.Info |
get(java.lang.String datacenter)
Retrieves information about the datacenter corresponding to
datacenter . |
void |
get(java.lang.String datacenter,
AsyncCallback<DatacenterTypes.Info> asyncCallback)
Retrieves information about the datacenter corresponding to
datacenter . |
void |
get(java.lang.String datacenter,
AsyncCallback<DatacenterTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the datacenter corresponding to
datacenter . |
DatacenterTypes.Info |
get(java.lang.String datacenter,
InvocationConfig invocationConfig)
Retrieves information about the datacenter corresponding to
datacenter . |
java.util.List<DatacenterTypes.Summary> |
list(DatacenterTypes.FilterSpec filter)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
void |
list(DatacenterTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
void |
list(DatacenterTypes.FilterSpec filter,
AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
java.util.List<DatacenterTypes.Summary> |
list(DatacenterTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1000 visible (subject to permission checks)
datacenters in vCenter matching the
DatacenterTypes.FilterSpec . |
public DatacenterStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public DatacenterStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(DatacenterTypes.CreateSpec spec)
Datacenter
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Datacenter
spec
- Specification for the new datacenter to be created.Datacenter
.public java.lang.String create(DatacenterTypes.CreateSpec spec, InvocationConfig invocationConfig)
Datacenter
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 Datacenter
spec
- Specification for the new datacenter to be created.invocationConfig
- Configuration for the method invocation.Datacenter
.public void create(DatacenterTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Datacenter
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The identifier of the newly created datacenter
The return value will be an identifier for the resource type: Datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
AlreadyExists
- if the datacenter with the same name is already present.
InvalidArgument
- if the datacenter name is empty or invalid as per the underlying implementation.
InvalidArgument
- if the folder is not specified and the system cannot choose a suitable one.
NotFound
- if the datacenter folder cannot be found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
create
in interface Datacenter
spec
- Specification for the new datacenter to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(DatacenterTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Datacenter
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The identifier of the newly created datacenter
The return value will be an identifier for the resource type: Datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
AlreadyExists
- if the datacenter with the same name is already present.
InvalidArgument
- if the datacenter name is empty or invalid as per the underlying implementation.
InvalidArgument
- if the folder is not specified and the system cannot choose a suitable one.
NotFound
- if the datacenter folder cannot be found.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
create
in interface Datacenter
spec
- Specification for the new datacenter to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String datacenter, java.lang.Boolean force)
Datacenter
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface Datacenter
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.public void delete(java.lang.String datacenter, java.lang.Boolean force, InvocationConfig invocationConfig)
Datacenter
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
delete
in interface Datacenter
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String datacenter, java.lang.Boolean force, AsyncCallback<java.lang.Void> asyncCallback)
Datacenter
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 there is no datacenter associated with datacenter
in the system.
ResourceInUse
- if the datacenter associated with datacenter
is not empty.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
delete
in interface Datacenter
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String datacenter, java.lang.Boolean force, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Datacenter
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 there is no datacenter associated with datacenter
in the system.
ResourceInUse
- if the datacenter associated with datacenter
is not empty.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
delete
in interface Datacenter
datacenter
- Identifier of the datacenter to be deleted.
The parameter must be an identifier for the resource type: Datacenter
.force
- If true, delete the datacenter even if it is not empty.
If null
a ResourceInUse
exception
will be reported if the datacenter is not empty. This is the equivalent of
passing the value false.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<DatacenterTypes.Summary> list(DatacenterTypes.FilterSpec filter)
Datacenter
DatacenterTypes.FilterSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Datacenter
filter
- Specification of matching datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.DatacenterTypes.FilterSpec
.public java.util.List<DatacenterTypes.Summary> list(DatacenterTypes.FilterSpec filter, InvocationConfig invocationConfig)
Datacenter
DatacenterTypes.FilterSpec
.
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 Datacenter
filter
- Specification of matching datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.invocationConfig
- Configuration for the method invocation.DatacenterTypes.FilterSpec
.public void list(DatacenterTypes.FilterSpec filter, AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback)
Datacenter
DatacenterTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Commonly used information about the datacenters matching the DatacenterTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 datacenters match the DatacenterTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Datacenter
filter
- Specification of matching datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(DatacenterTypes.FilterSpec filter, AsyncCallback<java.util.List<DatacenterTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Datacenter
DatacenterTypes.FilterSpec
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Commonly used information about the datacenters matching the DatacenterTypes.FilterSpec
.
Operation Errors:
UnableToAllocateResource
- if more than 1000 datacenters match the DatacenterTypes.FilterSpec
.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Datacenter
filter
- Specification of matching datacenters for which information should be returned.
If null
, the behavior is equivalent to a DatacenterTypes.FilterSpec
with all properties null
which means all datacenters match the filter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public DatacenterTypes.Info get(java.lang.String datacenter)
Datacenter
datacenter
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Datacenter
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.DatacenterTypes.Info
instances that corresponds
to the datacenter
.public DatacenterTypes.Info get(java.lang.String datacenter, InvocationConfig invocationConfig)
Datacenter
datacenter
.
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 Datacenter
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.invocationConfig
- Configuration for the method invocation.DatacenterTypes.Info
instances that corresponds
to the datacenter
.public void get(java.lang.String datacenter, AsyncCallback<DatacenterTypes.Info> asyncCallback)
Datacenter
datacenter
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The DatacenterTypes.Info
instances that corresponds
to the datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if there is no datacenter associated with datacenter
in the system.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
get
in interface Datacenter
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String datacenter, AsyncCallback<DatacenterTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Datacenter
datacenter
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The DatacenterTypes.Info
instances that corresponds
to the datacenter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if there is no datacenter associated with datacenter
in the system.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
get
in interface Datacenter
datacenter
- Identifier of the datacenter.
The parameter must be an identifier for the resource type: Datacenter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.