public class CheckOutsStub extends com.vmware.vapi.internal.bindings.Stub implements CheckOuts
CheckOuts
API service.
WARNING: Internal class, subject to change in future versions.
CheckOutsTypes.CheckInSpec, CheckOutsTypes.CheckOutSpec, CheckOutsTypes.Info, CheckOutsTypes.PlacementSpec, CheckOutsTypes.Summary
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
CheckOutsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
CheckOutsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkIn(java.lang.String templateLibraryItem,
java.lang.String vm,
CheckOutsTypes.CheckInSpec spec)
Checks in a virtual machine into the library item.
|
void |
checkIn(java.lang.String templateLibraryItem,
java.lang.String vm,
CheckOutsTypes.CheckInSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Checks in a virtual machine into the library item.
|
void |
checkIn(java.lang.String templateLibraryItem,
java.lang.String vm,
CheckOutsTypes.CheckInSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Checks in a virtual machine into the library item.
|
java.lang.String |
checkIn(java.lang.String templateLibraryItem,
java.lang.String vm,
CheckOutsTypes.CheckInSpec spec,
InvocationConfig invocationConfig)
Checks in a virtual machine into the library item.
|
java.lang.String |
checkOut(java.lang.String templateLibraryItem,
CheckOutsTypes.CheckOutSpec spec)
Checks out a library item containing a virtual machine template.
|
void |
checkOut(java.lang.String templateLibraryItem,
CheckOutsTypes.CheckOutSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Checks out a library item containing a virtual machine template.
|
void |
checkOut(java.lang.String templateLibraryItem,
CheckOutsTypes.CheckOutSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Checks out a library item containing a virtual machine template.
|
java.lang.String |
checkOut(java.lang.String templateLibraryItem,
CheckOutsTypes.CheckOutSpec spec,
InvocationConfig invocationConfig)
Checks out a library item containing a virtual machine template.
|
void |
delete(java.lang.String templateLibraryItem,
java.lang.String vm)
Deletes the checked out virtual machine.
|
void |
delete(java.lang.String templateLibraryItem,
java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes the checked out virtual machine.
|
void |
delete(java.lang.String templateLibraryItem,
java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes the checked out virtual machine.
|
void |
delete(java.lang.String templateLibraryItem,
java.lang.String vm,
InvocationConfig invocationConfig)
Deletes the checked out virtual machine.
|
CheckOutsTypes.Info |
get(java.lang.String templateLibraryItem,
java.lang.String vm)
Returns the information about a checked out virtual machine.
|
void |
get(java.lang.String templateLibraryItem,
java.lang.String vm,
AsyncCallback<CheckOutsTypes.Info> asyncCallback)
Returns the information about a checked out virtual machine.
|
void |
get(java.lang.String templateLibraryItem,
java.lang.String vm,
AsyncCallback<CheckOutsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the information about a checked out virtual machine.
|
CheckOutsTypes.Info |
get(java.lang.String templateLibraryItem,
java.lang.String vm,
InvocationConfig invocationConfig)
Returns the information about a checked out virtual machine.
|
java.util.List<CheckOutsTypes.Summary> |
list(java.lang.String templateLibraryItem)
Returns commonly used information about the virtual machines that are checked
out of the library item.
|
void |
list(java.lang.String templateLibraryItem,
AsyncCallback<java.util.List<CheckOutsTypes.Summary>> asyncCallback)
Returns commonly used information about the virtual machines that are checked
out of the library item.
|
void |
list(java.lang.String templateLibraryItem,
AsyncCallback<java.util.List<CheckOutsTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual machines that are checked
out of the library item.
|
java.util.List<CheckOutsTypes.Summary> |
list(java.lang.String templateLibraryItem,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual machines that are checked
out of the library item.
|
public CheckOutsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public CheckOutsStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String checkOut(java.lang.String templateLibraryItem, CheckOutsTypes.CheckOutSpec spec)
CheckOuts
CheckOuts.checkIn(java.lang.String, java.lang.String, com.vmware.vcenter.vm_template.library_items.CheckOutsTypes.CheckInSpec)
the virtual
machine. To discard the changes, CheckOuts.delete(java.lang.String, java.lang.String)
the virtual
machine. This method was added in vSphere API 6.9.1.
Synchronous method overload. Result of the invocation will be reported as a method return value.
checkOut
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item containing the source virtual machine
template to be checked out.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.spec
- Specification used to check out the source virtual machine template as a virtual
machine.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.VirtualMachine
.public java.lang.String checkOut(java.lang.String templateLibraryItem, CheckOutsTypes.CheckOutSpec spec, InvocationConfig invocationConfig)
CheckOuts
CheckOuts.checkIn(java.lang.String, java.lang.String, com.vmware.vcenter.vm_template.library_items.CheckOutsTypes.CheckInSpec)
the virtual
machine. To discard the changes, CheckOuts.delete(java.lang.String, java.lang.String)
the virtual
machine. This method was added in vSphere API 6.9.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.
checkOut
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item containing the source virtual machine
template to be checked out.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.spec
- Specification used to check out the source virtual machine template as a virtual
machine.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.invocationConfig
- Configuration for the method invocation.VirtualMachine
.public void checkOut(java.lang.String templateLibraryItem, CheckOutsTypes.CheckOutSpec spec, AsyncCallback<java.lang.String> asyncCallback)
CheckOuts
CheckOuts.checkIn(java.lang.String, java.lang.String, com.vmware.vcenter.vm_template.library_items.CheckOutsTypes.CheckInSpec)
the virtual
machine. To discard the changes, CheckOuts.delete(java.lang.String, java.lang.String)
the virtual
machine. This method was added in vSphere API 6.9.1.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Identifier of the virtual machine that was checked out of the library item.
The return value will be an identifier for the resource type: VirtualMachine
.
Operation Errors:
AlreadyExists
- if a virtual machine with the name specified by CheckOutsTypes.CheckOutSpec.getName()
already exists in the folder specified by CheckOutsTypes.PlacementSpec.getFolder()
.
InvalidArgument
- if spec
contains invalid arguments.
InvalidArgument
- if the library item is a member of a subscribed library.
NotFound
- if the library item specified by templateLibraryItem
cannot be found.
ResourceInaccessible
- if there is an error accessing the files of the source virtual machine template
contained in the library item specified by templateLibraryItem
.
UnableToAllocateResource
- if the limit for the number of virtual machines checked out of a library item
(currently 1) has been exceeded.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires ContentLibrary.CheckOutTemplate
. Folder
referenced by the property CheckOutsTypes.PlacementSpec.getFolder()
requires System.Read
. ResourcePool
referenced by the property CheckOutsTypes.PlacementSpec.getResourcePool()
requires System.Read
. HostSystem
referenced by the property CheckOutsTypes.PlacementSpec.getHost()
requires System.Read
. ClusterComputeResource
referenced by the property CheckOutsTypes.PlacementSpec.getCluster()
requires System.Read
. checkOut
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item containing the source virtual machine
template to be checked out.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.spec
- Specification used to check out the source virtual machine template as a virtual
machine.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void checkOut(java.lang.String templateLibraryItem, CheckOutsTypes.CheckOutSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
CheckOuts
CheckOuts.checkIn(java.lang.String, java.lang.String, com.vmware.vcenter.vm_template.library_items.CheckOutsTypes.CheckInSpec)
the virtual
machine. To discard the changes, CheckOuts.delete(java.lang.String, java.lang.String)
the virtual
machine. This method was added in vSphere API 6.9.1.
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:
Identifier of the virtual machine that was checked out of the library item.
The return value will be an identifier for the resource type: VirtualMachine
.
Operation Errors:
AlreadyExists
- if a virtual machine with the name specified by CheckOutsTypes.CheckOutSpec.getName()
already exists in the folder specified by CheckOutsTypes.PlacementSpec.getFolder()
.
InvalidArgument
- if spec
contains invalid arguments.
InvalidArgument
- if the library item is a member of a subscribed library.
NotFound
- if the library item specified by templateLibraryItem
cannot be found.
ResourceInaccessible
- if there is an error accessing the files of the source virtual machine template
contained in the library item specified by templateLibraryItem
.
UnableToAllocateResource
- if the limit for the number of virtual machines checked out of a library item
(currently 1) has been exceeded.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires ContentLibrary.CheckOutTemplate
. Folder
referenced by the property CheckOutsTypes.PlacementSpec.getFolder()
requires System.Read
. ResourcePool
referenced by the property CheckOutsTypes.PlacementSpec.getResourcePool()
requires System.Read
. HostSystem
referenced by the property CheckOutsTypes.PlacementSpec.getHost()
requires System.Read
. ClusterComputeResource
referenced by the property CheckOutsTypes.PlacementSpec.getCluster()
requires System.Read
. checkOut
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item containing the source virtual machine
template to be checked out.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.spec
- Specification used to check out the source virtual machine template as a virtual
machine.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String checkIn(java.lang.String templateLibraryItem, java.lang.String vm, CheckOutsTypes.CheckInSpec spec)
CheckOuts
Versions
interface. At most one
previous version of a virtual machine template is retained in the library item.
This method was added in vSphere API 6.9.1.
Synchronous method overload. Result of the invocation will be reported as a method return value.
checkIn
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item in which the virtual machine is checked
in.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the virtual machine to check into the library item.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification used to check in the virtual machine into the library item.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.com.vmware.content.library.item.Version
.public java.lang.String checkIn(java.lang.String templateLibraryItem, java.lang.String vm, CheckOutsTypes.CheckInSpec spec, InvocationConfig invocationConfig)
CheckOuts
Versions
interface. At most one
previous version of a virtual machine template is retained in the library item.
This method was added in vSphere API 6.9.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.
checkIn
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item in which the virtual machine is checked
in.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the virtual machine to check into the library item.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification used to check in the virtual machine into the library item.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.invocationConfig
- Configuration for the method invocation.com.vmware.content.library.item.Version
.public void checkIn(java.lang.String templateLibraryItem, java.lang.String vm, CheckOutsTypes.CheckInSpec spec, AsyncCallback<java.lang.String> asyncCallback)
CheckOuts
Versions
interface. At most one
previous version of a virtual machine template is retained in the library item.
This method was added in vSphere API 6.9.1.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The new version of the library item.
The return value will be an identifier for the resource type: com.vmware.content.library.item.Version
.
Operation Errors:
InvalidArgument
- if any of the specified parameters are invalid.
InvalidArgument
- if the virtual machine identified by vm
was not checked out of the item
specified by templateLibraryItem
.
NotAllowedInCurrentState
- if the method cannot be performed because of the virtual machine's current
state. For example, if the virtual machine is not powered off.
NotFound
- if the item specified by templateLibraryItem
does not exist.
NotFound
- if the virtual machine specified by vm
does not exist.
ResourceInaccessible
- if there is an error accessing a file from the virtual machine.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires ContentLibrary.CheckInTemplate
. VirtualMachine
referenced by the parameter vm
requires System.Read
. checkIn
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item in which the virtual machine is checked
in.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the virtual machine to check into the library item.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification used to check in the virtual machine into the library item.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void checkIn(java.lang.String templateLibraryItem, java.lang.String vm, CheckOutsTypes.CheckInSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
CheckOuts
Versions
interface. At most one
previous version of a virtual machine template is retained in the library item.
This method was added in vSphere API 6.9.1.
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:
The new version of the library item.
The return value will be an identifier for the resource type: com.vmware.content.library.item.Version
.
Operation Errors:
InvalidArgument
- if any of the specified parameters are invalid.
InvalidArgument
- if the virtual machine identified by vm
was not checked out of the item
specified by templateLibraryItem
.
NotAllowedInCurrentState
- if the method cannot be performed because of the virtual machine's current
state. For example, if the virtual machine is not powered off.
NotFound
- if the item specified by templateLibraryItem
does not exist.
NotFound
- if the virtual machine specified by vm
does not exist.
ResourceInaccessible
- if there is an error accessing a file from the virtual machine.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires ContentLibrary.CheckInTemplate
. VirtualMachine
referenced by the parameter vm
requires System.Read
. checkIn
in interface CheckOuts
templateLibraryItem
- Identifier of the content library item in which the virtual machine is checked
in.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the virtual machine to check into the library item.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification used to check in the virtual machine into the library item.
This parameter is currently required. In the future, if this parameter is null
, the system will apply suitable defaults.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<CheckOutsTypes.Summary> list(java.lang.String templateLibraryItem)
CheckOuts
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<CheckOutsTypes.Summary> list(java.lang.String templateLibraryItem, InvocationConfig invocationConfig)
CheckOuts
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 CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.invocationConfig
- Configuration for the method invocation.public void list(java.lang.String templateLibraryItem, AsyncCallback<java.util.List<CheckOutsTypes.Summary>> asyncCallback)
CheckOuts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of commonly used information about the check outs.
Operation Errors:
NotFound
- if the library item is not found.
InvalidArgument
- if the library item does not contain a virtual machine template.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires System.Read
. list
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String templateLibraryItem, AsyncCallback<java.util.List<CheckOutsTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
CheckOuts
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 commonly used information about the check outs.
Operation Errors:
NotFound
- if the library item is not found.
InvalidArgument
- if the library item does not contain a virtual machine template.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires System.Read
. list
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public CheckOutsTypes.Info get(java.lang.String templateLibraryItem, java.lang.String vm)
CheckOuts
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.public CheckOutsTypes.Info get(java.lang.String templateLibraryItem, java.lang.String vm, InvocationConfig invocationConfig)
CheckOuts
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 CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String templateLibraryItem, java.lang.String vm, AsyncCallback<CheckOutsTypes.Info> asyncCallback)
CheckOuts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about a check out.
Operation Errors:
NotFound
- if the library item or virtual machine is not found.
InvalidArgument
- if the virtual machine is not checked out of the library item.
InvalidArgument
- if the library item does not contain a virtual machine template.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires System.Read
. VirtualMachine
referenced by the parameter vm
requires System.Read
. get
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String templateLibraryItem, java.lang.String vm, AsyncCallback<CheckOutsTypes.Info> asyncCallback, InvocationConfig invocationConfig)
CheckOuts
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 a check out.
Operation Errors:
NotFound
- if the library item or virtual machine is not found.
InvalidArgument
- if the virtual machine is not checked out of the library item.
InvalidArgument
- if the library item does not contain a virtual machine template.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires System.Read
. VirtualMachine
referenced by the parameter vm
requires System.Read
. get
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String templateLibraryItem, java.lang.String vm)
CheckOuts
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine to delete.
The parameter must be an identifier for the resource type: VirtualMachine
.public void delete(java.lang.String templateLibraryItem, java.lang.String vm, InvocationConfig invocationConfig)
CheckOuts
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 CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine to delete.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String templateLibraryItem, java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
CheckOuts
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the library item or virtual machine is not found.
InvalidArgument
- if the virtual machine is not checked out of the library item.
NotAllowedInCurrentState
- if the virtual machine is running (powered on).
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. VirtualMachine
referenced by the parameter vm
requires VirtualMachine.Inventory.Delete
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires System.Read
. delete
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine to delete.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String templateLibraryItem, java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
CheckOuts
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:
NotFound
- if the library item or virtual machine is not found.
InvalidArgument
- if the virtual machine is not checked out of the library item.
NotAllowedInCurrentState
- if the virtual machine is running (powered on).
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
Unauthenticated
- if the user that requested the method cannot be authenticated.
Unauthorized
- if the user that requested the method is not authorized to perform the method.
Error
- if the system reports an error while responding to the request.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. VirtualMachine
referenced by the parameter vm
requires VirtualMachine.Inventory.Delete
. com.vmware.content.library.Item
referenced by the parameter templateLibraryItem
requires System.Read
. delete
in interface CheckOuts
templateLibraryItem
- Identifier of the VM template library item.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.vm
- Identifier of the checked out virtual machine to delete.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.