public class PrechecksStub extends com.vmware.vapi.internal.bindings.Stub implements Prechecks
Prechecks
API service.
WARNING: Internal class, subject to change in future versions.
PrechecksTypes.FilterSpec, PrechecksTypes.Info, PrechecksTypes.PrecheckResult, PrechecksTypes.PrecheckSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
PrechecksStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
PrechecksStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
com.vmware.vapi.bindings.StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
PrechecksTypes.Info |
get(java.lang.String supervisor,
PrechecksTypes.FilterSpec filter)
Returns information about Supervisor upgrade pre-checks.
|
void |
get(java.lang.String supervisor,
PrechecksTypes.FilterSpec filter,
com.vmware.vapi.bindings.client.AsyncCallback<PrechecksTypes.Info> asyncCallback)
Returns information about Supervisor upgrade pre-checks.
|
void |
get(java.lang.String supervisor,
PrechecksTypes.FilterSpec filter,
com.vmware.vapi.bindings.client.AsyncCallback<PrechecksTypes.Info> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about Supervisor upgrade pre-checks.
|
PrechecksTypes.Info |
get(java.lang.String supervisor,
PrechecksTypes.FilterSpec filter,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Returns information about Supervisor upgrade pre-checks.
|
void |
run(java.lang.String supervisor,
PrechecksTypes.PrecheckSpec spec)
Run Supervisor upgrade pre-checks.
|
void |
run(java.lang.String supervisor,
PrechecksTypes.PrecheckSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Run Supervisor upgrade pre-checks.
|
void |
run(java.lang.String supervisor,
PrechecksTypes.PrecheckSpec spec,
com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Run Supervisor upgrade pre-checks.
|
void |
run(java.lang.String supervisor,
PrechecksTypes.PrecheckSpec spec,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Run Supervisor upgrade pre-checks.
|
public PrechecksStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
public PrechecksStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
public void run(java.lang.String supervisor, PrechecksTypes.PrecheckSpec spec)
Prechecks
Synchronous method overload. Result of the invocation will be reported as a method return value.
run
in interface Prechecks
supervisor
- Identifier for the supervisor on which upgraded pre-checks are run.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for running Supervisor upgrade pre-checks.public void run(java.lang.String supervisor, PrechecksTypes.PrecheckSpec spec, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Prechecks
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
run
in interface Prechecks
supervisor
- Identifier for the supervisor on which upgraded pre-checks are run.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for running Supervisor upgrade pre-checks.invocationConfig
- Configuration for the method invocation.public void run(java.lang.String supervisor, PrechecksTypes.PrecheckSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
Prechecks
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.
Unsupported
- if upgrade is not available for the Supervisor.
NotAllowedInCurrentState
- if Supervisor upgrade is in progress.
NotFound
- if Supervisor could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.Upgrade privilege.
InvalidArgument
- if the com.vmware.vcenter.namespace_management.software.supervisors.Prechecks#PrecheckSpec
contains invalid details.
run
in interface Prechecks
supervisor
- Identifier for the supervisor on which upgraded pre-checks are run.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for running Supervisor upgrade pre-checks.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void run(java.lang.String supervisor, PrechecksTypes.PrecheckSpec spec, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Prechecks
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.
Unsupported
- if upgrade is not available for the Supervisor.
NotAllowedInCurrentState
- if Supervisor upgrade is in progress.
NotFound
- if Supervisor could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have Namespaces.Upgrade privilege.
InvalidArgument
- if the com.vmware.vcenter.namespace_management.software.supervisors.Prechecks#PrecheckSpec
contains invalid details.
run
in interface Prechecks
supervisor
- Identifier for the supervisor on which upgraded pre-checks are run.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.spec
- Specification for running Supervisor upgrade pre-checks.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public PrechecksTypes.Info get(java.lang.String supervisor, PrechecksTypes.FilterSpec filter)
Prechecks
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Prechecks
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.filter
- Includes specification to fetch pre-check results for specific Supervisor
upgrade version.
If Set
returns the pre-check results only for the specified
target version. If null
returns the pre-check results for all the
versions against which pre-checks ran.public PrechecksTypes.Info get(java.lang.String supervisor, PrechecksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Prechecks
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 Prechecks
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.filter
- Includes specification to fetch pre-check results for specific Supervisor
upgrade version.
If Set
returns the pre-check results only for the specified
target version. If null
returns the pre-check results for all the
versions against which pre-checks ran.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String supervisor, PrechecksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.AsyncCallback<PrechecksTypes.Info> asyncCallback)
Prechecks
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Supervisor upgrade pre-check results.
Operation Errors:
NotFound
- if Supervisor could not be located or pre-check results not found for PrechecksTypes.FilterSpec.getTargetVersion()
or pre-check results not found for any available upgrade version(s).
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
get
in interface Prechecks
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.filter
- Includes specification to fetch pre-check results for specific Supervisor
upgrade version.
If Set
returns the pre-check results only for the specified
target version. If null
returns the pre-check results for all the
versions against which pre-checks ran.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String supervisor, PrechecksTypes.FilterSpec filter, com.vmware.vapi.bindings.client.AsyncCallback<PrechecksTypes.Info> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Prechecks
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:
Supervisor upgrade pre-check results.
Operation Errors:
NotFound
- if Supervisor could not be located or pre-check results not found for PrechecksTypes.FilterSpec.getTargetVersion()
or pre-check results not found for any available upgrade version(s).
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
get
in interface Prechecks
supervisor
- Identifier for the Supervisor.
The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor
.filter
- Includes specification to fetch pre-check results for specific Supervisor
upgrade version.
If Set
returns the pre-check results only for the specified
target version. If null
returns the pre-check results for all the
versions against which pre-checks ran.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.