public class UpgradeStub extends com.vmware.vapi.internal.bindings.Stub implements Upgrade
Upgrade
API service.
WARNING: Internal class, subject to change in future versions.
UpgradeTypes.PscSpec, UpgradeTypes.SourceApplianceSpec, UpgradeTypes.UpgradeSpec, UpgradeTypes.VcsaEmbeddedSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
UpgradeStub(ApiProvider apiProvider,
StubConfigurationBase config) |
UpgradeStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the appliance upgrade that is in progress.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback)
Cancel the appliance upgrade that is in progress.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancel the appliance upgrade that is in progress.
|
void |
cancel(InvocationConfig invocationConfig)
Cancel the appliance upgrade that is in progress.
|
CheckInfo |
check(UpgradeTypes.UpgradeSpec spec)
Run sanity checks using the UpgradeSpec parameters passed.
|
void |
check(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<CheckInfo> asyncCallback)
Run sanity checks using the UpgradeSpec parameters passed.
|
void |
check(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<CheckInfo> asyncCallback,
InvocationConfig invocationConfig)
Run sanity checks using the UpgradeSpec parameters passed.
|
CheckInfo |
check(UpgradeTypes.UpgradeSpec spec,
InvocationConfig invocationConfig)
Run sanity checks using the UpgradeSpec parameters passed.
|
UpgradeTypes.UpgradeSpec |
get()
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
void |
get(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback)
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
void |
get(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback,
InvocationConfig invocationConfig)
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
UpgradeTypes.UpgradeSpec |
get(InvocationConfig invocationConfig)
Get the UpgradeSpec parameters used to configure the ongoing appliance upgrade.
|
void |
start(UpgradeTypes.UpgradeSpec spec)
Start the appliance installation.
|
void |
start(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Start the appliance installation.
|
void |
start(UpgradeTypes.UpgradeSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Start the appliance installation.
|
void |
start(UpgradeTypes.UpgradeSpec spec,
InvocationConfig invocationConfig)
Start the appliance installation.
|
public UpgradeStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public UpgradeStub(ApiProvider apiProvider, StubConfigurationBase config)
public UpgradeTypes.UpgradeSpec get()
Upgrade
Synchronous method overload. Result of the invocation will be reported as a method return value.
public UpgradeTypes.UpgradeSpec get(InvocationConfig invocationConfig)
Upgrade
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(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback)
Upgrade
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
UpgradeSpec parameters being used to configure appliance upgrade.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if appliance is not in UPGRADE_PROGRESS state.
public void get(AsyncCallback<UpgradeTypes.UpgradeSpec> asyncCallback, InvocationConfig invocationConfig)
Upgrade
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:
UpgradeSpec parameters being used to configure appliance upgrade.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if appliance is not in UPGRADE_PROGRESS state.
public CheckInfo check(UpgradeTypes.UpgradeSpec spec)
Upgrade
Synchronous method overload. Result of the invocation will be reported as a method return value.
public CheckInfo check(UpgradeTypes.UpgradeSpec spec, InvocationConfig invocationConfig)
Upgrade
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 check(UpgradeTypes.UpgradeSpec spec, AsyncCallback<CheckInfo> asyncCallback)
Upgrade
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
CheckInfo containing the check results.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
public void check(UpgradeTypes.UpgradeSpec spec, AsyncCallback<CheckInfo> asyncCallback, InvocationConfig invocationConfig)
Upgrade
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:
CheckInfo containing the check results.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
public void start(UpgradeTypes.UpgradeSpec spec)
Upgrade
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void start(UpgradeTypes.UpgradeSpec spec, InvocationConfig invocationConfig)
Upgrade
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 start(UpgradeTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Upgrade
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
public void start(UpgradeTypes.UpgradeSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Upgrade
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:
Unauthenticated
- if the caller is not authenticated.
Unauthenticated
- if source credentials are not valid.
Unauthenticated
- if source container credentials are not valid.
InvalidArgument
- if passed arguments are invalid.
NotAllowedInCurrentState
- if the appliance is not in INITIALIZED state.
public void cancel()
Upgrade
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void cancel(InvocationConfig invocationConfig)
Upgrade
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 cancel(AsyncCallback<java.lang.Void> asyncCallback)
Upgrade
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if the appliance is not in CONFIG_IN_PROGRESS state and if the operation is not
INSTALL.
public void cancel(AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Upgrade
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:
Unauthenticated
- if the caller is not authenticated.
NotAllowedInCurrentState
- if the appliance is not in CONFIG_IN_PROGRESS state and if the operation is not
INSTALL.