public class SoftwareStub extends com.vmware.vapi.internal.bindings.Stub implements Software
Software
API service.
WARNING: Internal class, subject to change in future versions.
SoftwareTypes._VAPI_OPERATIONS, SoftwareTypes.ApplyResult, SoftwareTypes.ApplySpec, SoftwareTypes.ApplyStatus, SoftwareTypes.CheckInfo, SoftwareTypes.CheckResult, SoftwareTypes.CheckSpec, SoftwareTypes.CheckStatus, SoftwareTypes.EntityCheckResult, SoftwareTypes.ExportSpec, SoftwareTypes.ExportType, SoftwareTypes.Status
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
SoftwareStub(ApiProvider apiProvider,
StubConfigurationBase config) |
SoftwareStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply_Task(java.lang.String cluster,
SoftwareTypes.ApplySpec spec)
Applies the desired software document associated with the given cluster to hosts
within the cluster.
|
void |
apply_Task(java.lang.String cluster,
SoftwareTypes.ApplySpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Applies the desired software document associated with the given cluster to hosts
within the cluster.
|
void |
apply_Task(java.lang.String cluster,
SoftwareTypes.ApplySpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Applies the desired software document associated with the given cluster to hosts
within the cluster.
|
java.lang.String |
apply_Task(java.lang.String cluster,
SoftwareTypes.ApplySpec spec,
InvocationConfig invocationConfig)
Applies the desired software document associated with the given cluster to hosts
within the cluster.
|
java.lang.String |
check_Task(java.lang.String cluster,
SoftwareTypes.CheckSpec spec)
Runs checks on the cluster before applying the desired software document across
all hosts in the cluster.
|
void |
check_Task(java.lang.String cluster,
SoftwareTypes.CheckSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Runs checks on the cluster before applying the desired software document across
all hosts in the cluster.
|
void |
check_Task(java.lang.String cluster,
SoftwareTypes.CheckSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Runs checks on the cluster before applying the desired software document across
all hosts in the cluster.
|
java.lang.String |
check_Task(java.lang.String cluster,
SoftwareTypes.CheckSpec spec,
InvocationConfig invocationConfig)
Runs checks on the cluster before applying the desired software document across
all hosts in the cluster.
|
java.util.Map<SoftwareTypes.ExportType,java.net.URI> |
export(java.lang.String cluster,
SoftwareTypes.ExportSpec spec)
Exports the desired software specification document and/or image.
|
void |
export(java.lang.String cluster,
SoftwareTypes.ExportSpec spec,
AsyncCallback<java.util.Map<SoftwareTypes.ExportType,java.net.URI>> asyncCallback)
Exports the desired software specification document and/or image.
|
void |
export(java.lang.String cluster,
SoftwareTypes.ExportSpec spec,
AsyncCallback<java.util.Map<SoftwareTypes.ExportType,java.net.URI>> asyncCallback,
InvocationConfig invocationConfig)
Exports the desired software specification document and/or image.
|
java.util.Map<SoftwareTypes.ExportType,java.net.URI> |
export(java.lang.String cluster,
SoftwareTypes.ExportSpec spec,
InvocationConfig invocationConfig)
Exports the desired software specification document and/or image.
|
SoftwareInfo |
get(java.lang.String cluster)
Returns the complete desired software specification.
|
void |
get(java.lang.String cluster,
AsyncCallback<SoftwareInfo> asyncCallback)
Returns the complete desired software specification.
|
void |
get(java.lang.String cluster,
AsyncCallback<SoftwareInfo> asyncCallback,
InvocationConfig invocationConfig)
Returns the complete desired software specification.
|
SoftwareInfo |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns the complete desired software specification.
|
java.lang.String |
scan_Task(java.lang.String cluster)
Scans all the hosts in the cluster against the cluster's desired state.
|
void |
scan_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback)
Scans all the hosts in the cluster against the cluster's desired state.
|
void |
scan_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Scans all the hosts in the cluster against the cluster's desired state.
|
java.lang.String |
scan_Task(java.lang.String cluster,
InvocationConfig invocationConfig)
Scans all the hosts in the cluster against the cluster's desired state.
|
public SoftwareStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public SoftwareStub(ApiProvider apiProvider, StubConfigurationBase config)
public SoftwareInfo get(java.lang.String cluster)
Software
Synchronous method overload. Result of the invocation will be reported as a method return value.
public SoftwareInfo get(java.lang.String cluster, InvocationConfig invocationConfig)
Software
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 cluster, AsyncCallback<SoftwareInfo> asyncCallback)
Software
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Cluster software specification.
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no cluster associated with cluster
in the system.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSoftwareSpecification.Read
.
ClusterComputeResource
referenced by the
parameter cluster
requires VcIntegrity.lifecycleSoftwareSpecification.Read
. public void get(java.lang.String cluster, AsyncCallback<SoftwareInfo> asyncCallback, InvocationConfig invocationConfig)
Software
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:
Cluster software specification.
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no cluster associated with cluster
in the system.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSoftwareSpecification.Read
.
ClusterComputeResource
referenced by the
parameter cluster
requires VcIntegrity.lifecycleSoftwareSpecification.Read
. get
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String scan_Task(java.lang.String cluster)
Software
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
public java.lang.String scan_Task(java.lang.String cluster, InvocationConfig invocationConfig)
Software
Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
scan_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void scan_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback)
Software
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no cluster associated with cluster
in the system or if
desired software document is not found.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
public void scan_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Software
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no cluster associated with cluster
in the system or if
desired software document is not found.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
scan_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.Map<SoftwareTypes.ExportType,java.net.URI> export(java.lang.String cluster, SoftwareTypes.ExportSpec spec)
Software
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.Map<SoftwareTypes.ExportType,java.net.URI> export(java.lang.String cluster, SoftwareTypes.ExportSpec spec, InvocationConfig invocationConfig)
Software
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
export
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void export(java.lang.String cluster, SoftwareTypes.ExportSpec spec, AsyncCallback<java.util.Map<SoftwareTypes.ExportType,java.net.URI>> asyncCallback)
Software
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
A map from export type to URL of the exported data for that type.
Operation Errors:
Error
- If there is am unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no cluster associated with cluster
in the system or if
desired software document is not found.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSoftwareSpecification.Read
.
ClusterComputeResource
referenced by the
parameter cluster
requires VcIntegrity.lifecycleSoftwareSpecification.Read
. public void export(java.lang.String cluster, SoftwareTypes.ExportSpec spec, AsyncCallback<java.util.Map<SoftwareTypes.ExportType,java.net.URI>> asyncCallback, InvocationConfig invocationConfig)
Software
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:
A map from export type to URL of the exported data for that type.
Operation Errors:
Error
- If there is am unknown internal error. The accompanying error message will give
more details about the failure.
NotFound
- If there is no cluster associated with cluster
in the system or if
desired software document is not found.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSoftwareSpecification.Read
.
ClusterComputeResource
referenced by the
parameter cluster
requires VcIntegrity.lifecycleSoftwareSpecification.Read
. export
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String apply_Task(java.lang.String cluster, SoftwareTypes.ApplySpec spec)
Software
getCommit()
property is Set
, it
implies the minimum commit that the com.vmware.esx.settings.clusters.Software#apply
method should use, however if
subsequent commits have been made to the desired state document the apply method
will use the most recent desired state document. The result of this operation
can be queried by calling the cis/tasks/{task-id} where the task-id is the
response of this operation.
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
apply_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Apply specification.public java.lang.String apply_Task(java.lang.String cluster, SoftwareTypes.ApplySpec spec, InvocationConfig invocationConfig)
Software
getCommit()
property is Set
, it
implies the minimum commit that the com.vmware.esx.settings.clusters.Software#apply
method should use, however if
subsequent commits have been made to the desired state document the apply method
will use the most recent desired state document. The result of this operation
can be queried by calling the cis/tasks/{task-id} where the task-id is the
response of this operation.
Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
apply_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Apply specification.invocationConfig
- Configuration for the method invocation.public void apply_Task(java.lang.String cluster, SoftwareTypes.ApplySpec spec, AsyncCallback<java.lang.String> asyncCallback)
Software
getCommit()
property is Set
, it
implies the minimum commit that the com.vmware.esx.settings.clusters.Software#apply
method should use, however if
subsequent commits have been made to the desired state document the apply method
will use the most recent desired state document. The result of this operation
can be queried by calling the cis/tasks/{task-id} where the task-id is the
response of this operation.
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
AlreadyInDesiredState
- If the cluster is already at specified commit as described in the apply
specification.
Error
- If there is an unknown internal error or if the EULA has not been accepted. The
accompanying error message will give more details about the failure.
InvalidArgument
- If the getCommit()
property of spec
specifies an invalid commit,
or the getHosts()
property of spec
specifies an invalid host or
a host not part of the cluster.
NotAllowedInCurrentState
- If there is another operation in progress.
NotFound
- If there is no cluster associated with cluster
in the system or if
desired software document is not found.
ServiceUnavailable
- If the service is not available.
TimedOut
- If the operation times out.
Unauthenticated
- If the caller is not authenticated.
apply_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Apply specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void apply_Task(java.lang.String cluster, SoftwareTypes.ApplySpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Software
getCommit()
property is Set
, it
implies the minimum commit that the com.vmware.esx.settings.clusters.Software#apply
method should use, however if
subsequent commits have been made to the desired state document the apply method
will use the most recent desired state document. The result of this operation
can be queried by calling the cis/tasks/{task-id} where the task-id is the
response of this operation.
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
AlreadyInDesiredState
- If the cluster is already at specified commit as described in the apply
specification.
Error
- If there is an unknown internal error or if the EULA has not been accepted. The
accompanying error message will give more details about the failure.
InvalidArgument
- If the getCommit()
property of spec
specifies an invalid commit,
or the getHosts()
property of spec
specifies an invalid host or
a host not part of the cluster.
NotAllowedInCurrentState
- If there is another operation in progress.
NotFound
- If there is no cluster associated with cluster
in the system or if
desired software document is not found.
ServiceUnavailable
- If the service is not available.
TimedOut
- If the operation times out.
Unauthenticated
- If the caller is not authenticated.
apply_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Apply specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String check_Task(java.lang.String cluster, SoftwareTypes.CheckSpec spec)
Software
getCommit()
property is Set
it implies the minimum commit that the check
method should use, however if subsequent commits have been made to the desired
state document the check method will use the most recent desired state document.
The result of this operation can be queried by calling the cis/tasks/{task-id}
where the task-id is the response of this operation.
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
check_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Check specification.public java.lang.String check_Task(java.lang.String cluster, SoftwareTypes.CheckSpec spec, InvocationConfig invocationConfig)
Software
getCommit()
property is Set
it implies the minimum commit that the check
method should use, however if subsequent commits have been made to the desired
state document the check method will use the most recent desired state document.
The result of this operation can be queried by calling the cis/tasks/{task-id}
where the task-id is the response of this operation.
Synchronous method overload. Result of the invocation is a task
identifier which will be returned by this method.
Use invocationConfig
to specify configuration for this particular invocation.
check_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Check specification.invocationConfig
- Configuration for the method invocation.public void check_Task(java.lang.String cluster, SoftwareTypes.CheckSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Software
getCommit()
property is Set
it implies the minimum commit that the check
method should use, however if subsequent commits have been made to the desired
state document the check method will use the most recent desired state document.
The result of this operation can be queried by calling the cis/tasks/{task-id}
where the task-id is the response of this operation.
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
InvalidArgument
- If the getCommit()
property of spec
specifies an invalid commit,
or the getHosts()
property of spec
specifies an invalid host or
a host not part of the cluster.
NotAllowedInCurrentState
- If there is another operation in progress or if the getCommit()
property
of spec
specifies a commit that has already been applied.
NotFound
- If there is no cluster associated with cluster
in the system.
ServiceUnavailable
- If the service is not available.
TimedOut
- If the operation times out.
Unauthenticated
- If the caller is not authenticated.
check_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Check specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void check_Task(java.lang.String cluster, SoftwareTypes.CheckSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Software
getCommit()
property is Set
it implies the minimum commit that the check
method should use, however if subsequent commits have been made to the desired
state document the check method will use the most recent desired state document.
The result of this operation can be queried by calling the cis/tasks/{task-id}
where the task-id is the response of this operation.
Asynchronous method overload. Result of the invocation which is
a task identifier will be reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
identifier for the task created by this API invocation
Operation Errors:
Error
- If there is unknown internal error. The accompanying error message will give
more details about the failure.
InvalidArgument
- If the getCommit()
property of spec
specifies an invalid commit,
or the getHosts()
property of spec
specifies an invalid host or
a host not part of the cluster.
NotAllowedInCurrentState
- If there is another operation in progress or if the getCommit()
property
of spec
specifies a commit that has already been applied.
NotFound
- If there is no cluster associated with cluster
in the system.
ServiceUnavailable
- If the service is not available.
TimedOut
- If the operation times out.
Unauthenticated
- If the caller is not authenticated.
check_Task
in interface Software
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- Check specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.