public class MemoryStub extends com.vmware.vapi.internal.bindings.Stub implements Memory
Memory
API service.
WARNING: Internal class, subject to change in future versions.
MemoryTypes.Info, MemoryTypes.UpdateSpecapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID| Constructor and Description |
|---|
MemoryStub(ApiProvider apiProvider,
StubConfigurationBase config) |
MemoryStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
MemoryTypes.Info |
get(java.lang.String vm)
Returns the memory-related settings of a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<MemoryTypes.Info> asyncCallback)
Returns the memory-related settings of a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<MemoryTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the memory-related settings of a virtual machine.
|
MemoryTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns the memory-related settings of a virtual machine.
|
void |
update(java.lang.String vm,
MemoryTypes.UpdateSpec spec)
Updates the memory-related settings of a virtual machine.
|
void |
update(java.lang.String vm,
MemoryTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the memory-related settings of a virtual machine.
|
void |
update(java.lang.String vm,
MemoryTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the memory-related settings of a virtual machine.
|
void |
update(java.lang.String vm,
MemoryTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates the memory-related settings of a virtual machine.
|
public MemoryStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public MemoryStub(ApiProvider apiProvider, StubConfigurationBase config)
public MemoryTypes.Info get(java.lang.String vm)
MemorySynchronous method overload. Result of the invocation will be reported as a method return value.
public MemoryTypes.Info get(java.lang.String vm, InvocationConfig invocationConfig)
MemorySynchronous 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 get(java.lang.String vm,
AsyncCallback<MemoryTypes.Info> asyncCallback)
MemoryAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Memory-related settings of the virtual machine.
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 get(java.lang.String vm,
AsyncCallback<MemoryTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
MemoryAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
Memory-related settings of the virtual machine.
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.
get in interface Memoryvm - 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 void update(java.lang.String vm,
MemoryTypes.UpdateSpec spec)
MemorySynchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String vm,
MemoryTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
MemorySynchronous 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 Memoryvm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for updating the memory-related settings of the virtual machine.invocationConfig - Configuration for the method invocation.public void update(java.lang.String vm,
MemoryTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
MemoryAsynchronous 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 virtual machine is not found.
InvalidArgument - if one of the provided settings is not permitted; for example, specifying a
negative value for getSizeMiB().
NotAllowedInCurrentState - if getHotAddEnabled() is specified and the virtual machine is not
powered off.
NotAllowedInCurrentState - if getSizeMiB() is specified, getHotAddEnabled() is false, and
the virtual machine is not powered off.
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.
update in interface Memoryvm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for updating the memory-related settings of the virtual machine.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String vm,
MemoryTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
MemoryAsynchronous 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 virtual machine is not found.
InvalidArgument - if one of the provided settings is not permitted; for example, specifying a
negative value for getSizeMiB().
NotAllowedInCurrentState - if getHotAddEnabled() is specified and the virtual machine is not
powered off.
NotAllowedInCurrentState - if getSizeMiB() is specified, getHotAddEnabled() is false, and
the virtual machine is not powered off.
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.
update in interface Memoryvm - Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine.spec - Specification for updating the memory-related settings of the virtual machine.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.