SataTypes.CreateSpec, SataTypes.Info, SataTypes.Summary, SataTypes.TypeRESOURCE_TYPE| Constructor and Description |
|---|
SataStub(ApiProvider apiProvider,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
String |
create(String vm,
SataTypes.CreateSpec spec)
Adds a virtual SATA adapter to the virtual machine.
|
void |
create(String vm,
SataTypes.CreateSpec spec,
AsyncCallback<String> asyncCallback)
Adds a virtual SATA adapter to the virtual machine.
|
void |
create(String vm,
SataTypes.CreateSpec spec,
AsyncCallback<String> asyncCallback,
InvocationConfig invocationConfig)
Adds a virtual SATA adapter to the virtual machine.
|
String |
create(String vm,
SataTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Adds a virtual SATA adapter to the virtual machine.
|
void |
delete(String vm,
String adapter)
Removes a virtual SATA adapter from the virtual machine.
|
void |
delete(String vm,
String adapter,
AsyncCallback<Void> asyncCallback)
Removes a virtual SATA adapter from the virtual machine.
|
void |
delete(String vm,
String adapter,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Removes a virtual SATA adapter from the virtual machine.
|
void |
delete(String vm,
String adapter,
InvocationConfig invocationConfig)
Removes a virtual SATA adapter from the virtual machine.
|
SataTypes.Info |
get(String vm,
String adapter)
Returns information about a virtual SATA adapter.
|
void |
get(String vm,
String adapter,
AsyncCallback<SataTypes.Info> asyncCallback)
Returns information about a virtual SATA adapter.
|
void |
get(String vm,
String adapter,
AsyncCallback<SataTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a virtual SATA adapter.
|
SataTypes.Info |
get(String vm,
String adapter,
InvocationConfig invocationConfig)
Returns information about a virtual SATA adapter.
|
List<SataTypes.Summary> |
list(String vm)
Returns commonly used information about the virtual SATA adapters belonging to
the virtual machine.
|
void |
list(String vm,
AsyncCallback<List<SataTypes.Summary>> asyncCallback)
Returns commonly used information about the virtual SATA adapters belonging to
the virtual machine.
|
void |
list(String vm,
AsyncCallback<List<SataTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual SATA adapters belonging to
the virtual machine.
|
List<SataTypes.Summary> |
list(String vm,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual SATA adapters belonging to
the virtual machine.
|
public SataStub(ApiProvider apiProvider, StubConfigurationBase config)
public List<SataTypes.Summary> list(String vm)
SataSynchronous method overload. Result of the invocation will be reported as a method return value.
public List<SataTypes.Summary> list(String vm, InvocationConfig invocationConfig)
SataSynchronous 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(String vm, AsyncCallback<List<SataTypes.Summary>> asyncCallback)
SataAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
List of commonly used information about virtual SATA adapters.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the virtual machine is not found.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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.
public void list(String vm, AsyncCallback<List<SataTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
SataAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
List of commonly used information about virtual SATA adapters.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the virtual machine is not found.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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 Satavm - Virtual machine identifier.
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 SataTypes.Info get(String vm, String adapter)
SataSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.public SataTypes.Info get(String vm, String adapter, InvocationConfig invocationConfig)
SataSynchronous 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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.invocationConfig - Configuration for the method invocation.public void get(String vm, String adapter, AsyncCallback<SataTypes.Info> asyncCallback)
SataAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Information about the specified virtual SATA adapter.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the virtual machine or virtual SATA adapter is not found.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(String vm, String adapter, AsyncCallback<SataTypes.Info> asyncCallback, InvocationConfig invocationConfig)
SataAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Information about the specified virtual SATA adapter.
Operation Errors:
Error - if the system reports an error while responding to the request.
NotFound - if the virtual machine or virtual SATA adapter is not found.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public String create(String vm, SataTypes.CreateSpec spec)
SataSynchronous method overload. Result of the invocation will be reported as a method return value.
create in interface Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for the new virtual SATA adapter.com.vmware.vcenter.vm.hardware.SataAdapter.public String create(String vm, SataTypes.CreateSpec spec, InvocationConfig invocationConfig)
SataSynchronous 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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for the new virtual SATA adapter.invocationConfig - Configuration for the method invocation.com.vmware.vcenter.vm.hardware.SataAdapter.public void create(String vm, SataTypes.CreateSpec spec, AsyncCallback<String> asyncCallback)
SataAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Virtual SATA adapter identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.
Operation Errors:
Error - if the system reports an error while responding to the request.
Error - if the system reported that the SATA adapter was created but was unable to
confirm the creation because the identifier of the new adapter could not be
determined.
NotAllowedInCurrentState - if the virtual machine is suspended
NotFound - if the virtual machine is not found.
UnableToAllocateResource - if there are no more available SATA buses on the virtual machine.
ResourceInUse - if the specified SATA bus or PCI address is in use.
InvalidArgument - if the specified SATA bus or PCI address is out of bounds.
ResourceBusy - if the virtual machine is busy performing another operation.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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.
Unsupported - if the guest operating system of the virtual machine is not supported and spec
includes null properties that default to guest-specific values.
create in interface Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for the new virtual SATA adapter.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void create(String vm, SataTypes.CreateSpec spec, AsyncCallback<String> asyncCallback, InvocationConfig invocationConfig)
SataAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
Virtual SATA adapter identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.
Operation Errors:
Error - if the system reports an error while responding to the request.
Error - if the system reported that the SATA adapter was created but was unable to
confirm the creation because the identifier of the new adapter could not be
determined.
NotAllowedInCurrentState - if the virtual machine is suspended
NotFound - if the virtual machine is not found.
UnableToAllocateResource - if there are no more available SATA buses on the virtual machine.
ResourceInUse - if the specified SATA bus or PCI address is in use.
InvalidArgument - if the specified SATA bus or PCI address is out of bounds.
ResourceBusy - if the virtual machine is busy performing another operation.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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.
Unsupported - if the guest operating system of the virtual machine is not supported and spec
includes null properties that default to guest-specific values.
create in interface Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for the new virtual SATA adapter.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public void delete(String vm, String adapter)
SataSynchronous method overload. Result of the invocation will be reported as a method return value.
delete in interface Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.public void delete(String vm, String adapter, InvocationConfig invocationConfig)
SataSynchronous 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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.invocationConfig - Configuration for the method invocation.public void delete(String vm, String adapter, AsyncCallback<Void> asyncCallback)
SataAsynchronous 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.
NotAllowedInCurrentState - if the virtual machine is suspended
NotFound - if the virtual machine or virtual SATA adapter is not found.
ResourceBusy - if the virtual machine is busy performing another operation.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void delete(String vm, String adapter, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
SataAsynchronous 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.
NotAllowedInCurrentState - if the virtual machine is suspended
NotFound - if the virtual machine or virtual SATA adapter is not found.
ResourceBusy - if the virtual machine is busy performing another operation.
ResourceInaccessible - if the virtual machine's configuration state cannot be accessed.
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 Satavm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.adapter - Virtual SATA adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.SataAdapter.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.Copyright © 2016. All Rights Reserved.