BootTypes.CreateSpec, BootTypes.Info, BootTypes.NetworkProtocol, BootTypes.Type, BootTypes.UpdateSpec
Constructor and Description |
---|
BootStub(ApiProvider apiProvider,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
BootTypes.Info |
get(String vm)
Returns the boot-related settings of a virtual machine.
|
void |
get(String vm,
AsyncCallback<BootTypes.Info> asyncCallback)
Returns the boot-related settings of a virtual machine.
|
void |
get(String vm,
AsyncCallback<BootTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the boot-related settings of a virtual machine.
|
BootTypes.Info |
get(String vm,
InvocationConfig invocationConfig)
Returns the boot-related settings of a virtual machine.
|
void |
update(String vm,
BootTypes.UpdateSpec spec)
Updates the boot-related settings of a virtual machine.
|
void |
update(String vm,
BootTypes.UpdateSpec spec,
AsyncCallback<Void> asyncCallback)
Updates the boot-related settings of a virtual machine.
|
void |
update(String vm,
BootTypes.UpdateSpec spec,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the boot-related settings of a virtual machine.
|
void |
update(String vm,
BootTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates the boot-related settings of a virtual machine.
|
public BootStub(ApiProvider apiProvider, StubConfigurationBase config)
public BootTypes.Info get(String vm)
Boot
Synchronous method overload. Result of the invocation will be reported as a method return value.
public BootTypes.Info get(String vm, InvocationConfig invocationConfig)
Boot
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(String vm, AsyncCallback<BootTypes.Info> asyncCallback)
Boot
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Boot-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(String vm, AsyncCallback<BootTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Boot
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Boot-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 Boot
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 void update(String vm, BootTypes.UpdateSpec spec)
Boot
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void update(String vm, BootTypes.UpdateSpec spec, InvocationConfig invocationConfig)
Boot
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(String vm, BootTypes.UpdateSpec spec, AsyncCallback<Void> asyncCallback)
Boot
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.
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 getDelay()
.
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 Boot
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for updating the boot-related settings of the virtual machine.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(String vm, BootTypes.UpdateSpec spec, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
Boot
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.
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 getDelay()
.
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 Boot
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for updating the boot-related settings of the virtual machine.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Copyright © 2016. All Rights Reserved.