NvmeTypes.CreateSpec, NvmeTypes.Info, NvmeTypes.Summary
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
NvmeStub(ApiProvider apiProvider,
StubConfigurationBase config) |
NvmeStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(java.lang.String vm,
NvmeTypes.CreateSpec spec)
Adds a virtual NVMe adapter to the virtual machine.
|
void |
create(java.lang.String vm,
NvmeTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Adds a virtual NVMe adapter to the virtual machine.
|
void |
create(java.lang.String vm,
NvmeTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Adds a virtual NVMe adapter to the virtual machine.
|
java.lang.String |
create(java.lang.String vm,
NvmeTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Adds a virtual NVMe adapter to the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String adapter)
Removes a virtual NVMe adapter from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String adapter,
AsyncCallback<java.lang.Void> asyncCallback)
Removes a virtual NVMe adapter from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String adapter,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Removes a virtual NVMe adapter from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String adapter,
InvocationConfig invocationConfig)
Removes a virtual NVMe adapter from the virtual machine.
|
NvmeTypes.Info |
get(java.lang.String vm,
java.lang.String adapter)
Returns information about a virtual NVMe adapter.
|
void |
get(java.lang.String vm,
java.lang.String adapter,
AsyncCallback<NvmeTypes.Info> asyncCallback)
Returns information about a virtual NVMe adapter.
|
void |
get(java.lang.String vm,
java.lang.String adapter,
AsyncCallback<NvmeTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a virtual NVMe adapter.
|
NvmeTypes.Info |
get(java.lang.String vm,
java.lang.String adapter,
InvocationConfig invocationConfig)
Returns information about a virtual NVMe adapter.
|
java.util.List<NvmeTypes.Summary> |
list(java.lang.String vm)
Returns commonly used information about the virtual NVMe adapters belonging to
the virtual machine.
|
void |
list(java.lang.String vm,
AsyncCallback<java.util.List<NvmeTypes.Summary>> asyncCallback)
Returns commonly used information about the virtual NVMe adapters belonging to
the virtual machine.
|
void |
list(java.lang.String vm,
AsyncCallback<java.util.List<NvmeTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual NVMe adapters belonging to
the virtual machine.
|
java.util.List<NvmeTypes.Summary> |
list(java.lang.String vm,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual NVMe adapters belonging to
the virtual machine.
|
public NvmeStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public NvmeStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<NvmeTypes.Summary> list(java.lang.String vm)
Nvme
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<NvmeTypes.Summary> list(java.lang.String vm, InvocationConfig invocationConfig)
Nvme
Synchronous 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(java.lang.String vm, AsyncCallback<java.util.List<NvmeTypes.Summary>> asyncCallback)
Nvme
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of commonly used information about virtual NVMe 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(java.lang.String vm, AsyncCallback<java.util.List<NvmeTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Nvme
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 virtual NVMe 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 Nvme
vm
- 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 NvmeTypes.Info get(java.lang.String vm, java.lang.String adapter)
Nvme
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.public NvmeTypes.Info get(java.lang.String vm, java.lang.String adapter, InvocationConfig invocationConfig)
Nvme
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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String vm, java.lang.String adapter, AsyncCallback<NvmeTypes.Info> asyncCallback)
Nvme
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the specified virtual NVMe adapter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual NVMe 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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String vm, java.lang.String adapter, AsyncCallback<NvmeTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Nvme
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 specified virtual NVMe adapter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual NVMe 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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String create(java.lang.String vm, NvmeTypes.CreateSpec spec)
Nvme
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual NVMe adapter.com.vmware.vcenter.vm.hardware.NvmeAdapter
.public java.lang.String create(java.lang.String vm, NvmeTypes.CreateSpec spec, InvocationConfig invocationConfig)
Nvme
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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual NVMe adapter.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.vm.hardware.NvmeAdapter
.public void create(java.lang.String vm, NvmeTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Nvme
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Virtual NVMe adapter identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Error
- if the system reported that the NVMe 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 NVMe buses on the virtual machine.
ResourceInUse
- if the specified NVMe bus or PCI address is in use.
InvalidArgument
- if the specified NVMe 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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual NVMe adapter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String vm, NvmeTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Nvme
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:
Virtual NVMe adapter identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Error
- if the system reported that the NVMe 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 NVMe buses on the virtual machine.
ResourceInUse
- if the specified NVMe bus or PCI address is in use.
InvalidArgument
- if the specified NVMe 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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual NVMe adapter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String vm, java.lang.String adapter)
Nvme
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.public void delete(java.lang.String vm, java.lang.String adapter, InvocationConfig invocationConfig)
Nvme
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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String vm, java.lang.String adapter, AsyncCallback<java.lang.Void> asyncCallback)
Nvme
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.
NotAllowedInCurrentState
- if the virtual machine is suspended
NotFound
- if the virtual machine or virtual NVMe 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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String vm, java.lang.String adapter, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Nvme
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.
NotAllowedInCurrentState
- if the virtual machine is suspended
NotFound
- if the virtual machine or virtual NVMe 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 Nvme
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.adapter
- Virtual NVMe adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.NvmeAdapter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.