public class ToolsStub extends com.vmware.vapi.internal.bindings.Stub implements Tools
Tools
API service.
WARNING: Internal class, subject to change in future versions.
ToolsTypes.Info, ToolsTypes.RunState, ToolsTypes.ToolsInstallType, ToolsTypes.UpdateSpec, ToolsTypes.UpgradePolicy, ToolsTypes.VersionStatus
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ToolsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ToolsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ToolsTypes.Info |
get(java.lang.String vm)
Get the properties of VMware Tools.
|
void |
get(java.lang.String vm,
AsyncCallback<ToolsTypes.Info> asyncCallback)
Get the properties of VMware Tools.
|
void |
get(java.lang.String vm,
AsyncCallback<ToolsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get the properties of VMware Tools.
|
ToolsTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Get the properties of VMware Tools.
|
void |
update(java.lang.String vm,
ToolsTypes.UpdateSpec spec)
Update the properties of VMware Tools.
|
void |
update(java.lang.String vm,
ToolsTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Update the properties of VMware Tools.
|
void |
update(java.lang.String vm,
ToolsTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Update the properties of VMware Tools.
|
void |
update(java.lang.String vm,
ToolsTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Update the properties of VMware Tools.
|
void |
upgrade(java.lang.String vm,
java.lang.String commandLineOptions)
Begins the Tools upgrade process.
|
void |
upgrade(java.lang.String vm,
java.lang.String commandLineOptions,
AsyncCallback<java.lang.Void> asyncCallback)
Begins the Tools upgrade process.
|
void |
upgrade(java.lang.String vm,
java.lang.String commandLineOptions,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Begins the Tools upgrade process.
|
void |
upgrade(java.lang.String vm,
java.lang.String commandLineOptions,
InvocationConfig invocationConfig)
Begins the Tools upgrade process.
|
public ToolsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ToolsStub(ApiProvider apiProvider, StubConfigurationBase config)
public ToolsTypes.Info get(java.lang.String vm)
Tools
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ToolsTypes.Info get(java.lang.String vm, InvocationConfig invocationConfig)
Tools
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 get(java.lang.String vm, AsyncCallback<ToolsTypes.Info> asyncCallback)
Tools
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
VMware Tools properties.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
public void get(java.lang.String vm, AsyncCallback<ToolsTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Tools
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:
VMware Tools properties.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
get
in interface Tools
vm
- Identifier of the 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 update(java.lang.String vm, ToolsTypes.UpdateSpec spec)
Tools
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String vm, ToolsTypes.UpdateSpec spec, InvocationConfig invocationConfig)
Tools
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 update(java.lang.String vm, ToolsTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Tools
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.
InvalidArgument
- if the ToolsTypes.UpdateSpec.getUpgradePolicy()
property contains a value that is not supported by the server.
NotFound
- if the virtual machine is not found.
public void update(java.lang.String vm, ToolsTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Tools
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.
InvalidArgument
- if the ToolsTypes.UpdateSpec.getUpgradePolicy()
property contains a value that is not supported by the server.
NotFound
- if the virtual machine is not found.
update
in interface Tools
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- The new values.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void upgrade(java.lang.String vm, java.lang.String commandLineOptions)
Tools
Tools.get(java.lang.String)
and examining getVersionStatus()
and
getRunState()
. This method was added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
upgrade
in interface Tools
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.commandLineOptions
- Command line options passed to the installer to modify the installation
procedure for Tools.
Set if any additional options are desired.public void upgrade(java.lang.String vm, java.lang.String commandLineOptions, InvocationConfig invocationConfig)
Tools
Tools.get(java.lang.String)
and examining getVersionStatus()
and
getRunState()
. This method was added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
upgrade
in interface Tools
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.commandLineOptions
- Command line options passed to the installer to modify the installation
procedure for Tools.
Set if any additional options are desired.invocationConfig
- Configuration for the method invocation.public void upgrade(java.lang.String vm, java.lang.String commandLineOptions, AsyncCallback<java.lang.Void> asyncCallback)
Tools
Tools.get(java.lang.String)
and examining getVersionStatus()
and
getRunState()
. This method was added in vSphere API 7.0.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the virtual machine is not found.
ServiceUnavailable
- if the VMware Tools are not running.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
AlreadyInDesiredState
- is an upgrade is already in progress.
Error
- if the upgrade process fails inside the guest operating system.
upgrade
in interface Tools
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.commandLineOptions
- Command line options passed to the installer to modify the installation
procedure for Tools.
Set if any additional options are desired.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void upgrade(java.lang.String vm, java.lang.String commandLineOptions, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Tools
Tools.get(java.lang.String)
and examining getVersionStatus()
and
getRunState()
. This method was added in vSphere API 7.0.0.0.
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 virtual machine is not found.
ServiceUnavailable
- if the VMware Tools are not running.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
AlreadyInDesiredState
- is an upgrade is already in progress.
Error
- if the upgrade process fails inside the guest operating system.
upgrade
in interface Tools
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.commandLineOptions
- Command line options passed to the installer to modify the installation
procedure for Tools.
Set if any additional options are desired.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.