public class ConfigurationStub extends com.vmware.vapi.internal.bindings.Stub implements Configuration
Configuration
API service.
WARNING: Internal class, subject to change in future versions.
ConfigurationTypes._VAPI_OPERATIONS, ConfigurationTypes.ApplyResult, ConfigurationTypes.ApplySpec, ConfigurationTypes.ImportSpec, ConfigurationTypes.Info, ConfigurationTypes.Metadata
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ConfigurationStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ConfigurationStub(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,
ConfigurationTypes.ApplySpec spec)
Synchronous method overload.
|
void |
apply_Task(java.lang.String cluster,
ConfigurationTypes.ApplySpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload.
|
void |
apply_Task(java.lang.String cluster,
ConfigurationTypes.ApplySpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload.
|
java.lang.String |
apply_Task(java.lang.String cluster,
ConfigurationTypes.ApplySpec spec,
InvocationConfig invocationConfig)
Synchronous method overload.
|
java.lang.String |
checkCompliance_Task(java.lang.String cluster)
Check all the hosts in the cluster for compliance with the desired document.
|
void |
checkCompliance_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback)
Check all the hosts in the cluster for compliance with the desired document.
|
void |
checkCompliance_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Check all the hosts in the cluster for compliance with the desired document.
|
java.lang.String |
checkCompliance_Task(java.lang.String cluster,
InvocationConfig invocationConfig)
Check all the hosts in the cluster for compliance with the desired document.
|
ExportResult |
exportConfig(java.lang.String cluster)
This API will export the configuration associated with the cluster.
|
void |
exportConfig(java.lang.String cluster,
AsyncCallback<ExportResult> asyncCallback)
This API will export the configuration associated with the cluster.
|
void |
exportConfig(java.lang.String cluster,
AsyncCallback<ExportResult> asyncCallback,
InvocationConfig invocationConfig)
This API will export the configuration associated with the cluster.
|
ExportResult |
exportConfig(java.lang.String cluster,
InvocationConfig invocationConfig)
This API will export the configuration associated with the cluster.
|
ConfigurationTypes.Info |
get(java.lang.String cluster,
java.lang.String commit,
DocumentStructure docStructure)
Get the cluster configuration and related metadata.
|
void |
get(java.lang.String cluster,
java.lang.String commit,
DocumentStructure docStructure,
AsyncCallback<ConfigurationTypes.Info> asyncCallback)
Get the cluster configuration and related metadata.
|
void |
get(java.lang.String cluster,
java.lang.String commit,
DocumentStructure docStructure,
AsyncCallback<ConfigurationTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get the cluster configuration and related metadata.
|
ConfigurationTypes.Info |
get(java.lang.String cluster,
java.lang.String commit,
DocumentStructure docStructure,
InvocationConfig invocationConfig)
Get the cluster configuration and related metadata.
|
java.lang.String |
importConfig_Task(java.lang.String cluster,
ConfigurationTypes.ImportSpec spec)
This API replaces the existing desired configuration of the cluster with the
configuration provided in the input parameter document.
|
void |
importConfig_Task(java.lang.String cluster,
ConfigurationTypes.ImportSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
This API replaces the existing desired configuration of the cluster with the
configuration provided in the input parameter document.
|
void |
importConfig_Task(java.lang.String cluster,
ConfigurationTypes.ImportSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
This API replaces the existing desired configuration of the cluster with the
configuration provided in the input parameter document.
|
java.lang.String |
importConfig_Task(java.lang.String cluster,
ConfigurationTypes.ImportSpec spec,
InvocationConfig invocationConfig)
This API replaces the existing desired configuration of the cluster with the
configuration provided in the input parameter document.
|
java.lang.String |
precheck_Task(java.lang.String cluster)
This API will perform precheck of the desired cluster configuration on each of
the hosts in the cluster.
|
void |
precheck_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback)
This API will perform precheck of the desired cluster configuration on each of
the hosts in the cluster.
|
void |
precheck_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
This API will perform precheck of the desired cluster configuration on each of
the hosts in the cluster.
|
java.lang.String |
precheck_Task(java.lang.String cluster,
InvocationConfig invocationConfig)
This API will perform precheck of the desired cluster configuration on each of
the hosts in the cluster.
|
java.lang.String |
validate_Task(java.lang.String cluster)
Synchronous method overload.
|
void |
validate_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload.
|
void |
validate_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Asynchronous method overload.
|
java.lang.String |
validate_Task(java.lang.String cluster,
InvocationConfig invocationConfig)
Synchronous method overload.
|
public ConfigurationStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ConfigurationStub(ApiProvider apiProvider, StubConfigurationBase config)
public ConfigurationTypes.Info get(java.lang.String cluster, java.lang.String commit, DocumentStructure docStructure)
Configuration
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Configuration
cluster
- Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource
.commit
- Identifier of the commit to get.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public ConfigurationTypes.Info get(java.lang.String cluster, java.lang.String commit, DocumentStructure docStructure, InvocationConfig invocationConfig)
Configuration
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 Configuration
cluster
- Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource
.commit
- Identifier of the commit to get.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String cluster, java.lang.String commit, DocumentStructure docStructure, AsyncCallback<ConfigurationTypes.Info> asyncCallback)
Configuration
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
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
or no commit associated
with commit
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.ClusterConfiguration.View
. ClusterComputeResource
referenced by the parameter cluster
requires VcIntegrity.ClusterConfiguration.View
. get
in interface Configuration
cluster
- Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource
.commit
- Identifier of the commit to get.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String cluster, java.lang.String commit, DocumentStructure docStructure, AsyncCallback<ConfigurationTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Configuration
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 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
or no commit associated
with commit
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.ClusterConfiguration.View
. ClusterComputeResource
referenced by the parameter cluster
requires VcIntegrity.ClusterConfiguration.View
. get
in interface Configuration
cluster
- Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource
.commit
- Identifier of the commit to get.
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, ConfigurationTypes.ApplySpec spec)
Configuration
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
apply_Task
in interface Configuration
public java.lang.String apply_Task(java.lang.String cluster, ConfigurationTypes.ApplySpec spec, InvocationConfig invocationConfig)
Configuration
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 Configuration
invocationConfig
- Configuration for the method invocation.public void apply_Task(java.lang.String cluster, ConfigurationTypes.ApplySpec spec, AsyncCallback<java.lang.String> asyncCallback)
Configuration
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:
apply_Task
in interface Configuration
cluster
- The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void apply_Task(java.lang.String cluster, ConfigurationTypes.ApplySpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Configuration
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:
apply_Task
in interface Configuration
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 checkCompliance_Task(java.lang.String cluster)
Configuration
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
checkCompliance_Task
in interface Configuration
cluster
- Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource
.public java.lang.String checkCompliance_Task(java.lang.String cluster, InvocationConfig invocationConfig)
Configuration
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.
checkCompliance_Task
in interface Configuration
cluster
- Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void checkCompliance_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback)
Configuration
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 an internal error occurred. The accompanying error message will give more
details about the failure.
InvalidArgument
- If API is called on a cluster that is not managed by desired configuration
management platform.
NotFound
- If there is no cluster associated with cluster
ServiceUnavailable
- If the service is not available.
TimedOut
- If the API timed out before completion.
Unauthenticated
- If the caller is not authenticated.
checkCompliance_Task
in interface Configuration
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.public void checkCompliance_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Configuration
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 an internal error occurred. The accompanying error message will give more
details about the failure.
InvalidArgument
- If API is called on a cluster that is not managed by desired configuration
management platform.
NotFound
- If there is no cluster associated with cluster
ServiceUnavailable
- If the service is not available.
TimedOut
- If the API timed out before completion.
Unauthenticated
- If the caller is not authenticated.
checkCompliance_Task
in interface Configuration
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 validate_Task(java.lang.String cluster)
Configuration
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
validate_Task
in interface Configuration
public java.lang.String validate_Task(java.lang.String cluster, InvocationConfig invocationConfig)
Configuration
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.
validate_Task
in interface Configuration
invocationConfig
- Configuration for the method invocation.public void validate_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback)
Configuration
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:
validate_Task
in interface Configuration
cluster
- The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void validate_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Configuration
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:
validate_Task
in interface Configuration
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 precheck_Task(java.lang.String cluster)
Configuration
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
precheck_Task
in interface Configuration
cluster
- The cluster on which to perform precheck.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public java.lang.String precheck_Task(java.lang.String cluster, InvocationConfig invocationConfig)
Configuration
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.
precheck_Task
in interface Configuration
cluster
- The cluster on which to perform precheck.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void precheck_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback)
Configuration
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:
InvalidArgument
- If API is called on a cluster that is not managed by desired configuration
management platform.
NotFound
- If the cluster is not found in the system.
ServiceUnavailable
- If the service is not available.
TimedOut
- If the API timed out before completion.
Unauthenticated
- If the caller is not authenticated.
precheck_Task
in interface Configuration
cluster
- The cluster on which to perform precheck.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void precheck_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Configuration
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:
InvalidArgument
- If API is called on a cluster that is not managed by desired configuration
management platform.
NotFound
- If the cluster is not found in the system.
ServiceUnavailable
- If the service is not available.
TimedOut
- If the API timed out before completion.
Unauthenticated
- If the caller is not authenticated.
precheck_Task
in interface Configuration
cluster
- The cluster on which to perform precheck.
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 importConfig_Task(java.lang.String cluster, ConfigurationTypes.ImportSpec spec)
Configuration
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
importConfig_Task
in interface Configuration
cluster
- The cluster on which this operation must be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- An ImportSpec
that contains the new desired configuration for the
cluster.public java.lang.String importConfig_Task(java.lang.String cluster, ConfigurationTypes.ImportSpec spec, InvocationConfig invocationConfig)
Configuration
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.
importConfig_Task
in interface Configuration
cluster
- The cluster on which this operation must be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- An ImportSpec
that contains the new desired configuration for the
cluster.invocationConfig
- Configuration for the method invocation.public void importConfig_Task(java.lang.String cluster, ConfigurationTypes.ImportSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Configuration
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 some other unknown internal error. The accompanying error message
will give more details about the failure.
NotFound
- If the cluster is not found in the system.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
importConfig_Task
in interface Configuration
cluster
- The cluster on which this operation must be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- An ImportSpec
that contains the new desired configuration for the
cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void importConfig_Task(java.lang.String cluster, ConfigurationTypes.ImportSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Configuration
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 some other unknown internal error. The accompanying error message
will give more details about the failure.
NotFound
- If the cluster is not found in the system.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
importConfig_Task
in interface Configuration
cluster
- The cluster on which this operation must be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.spec
- An ImportSpec
that contains the new desired configuration for the
cluster.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ExportResult exportConfig(java.lang.String cluster)
Configuration
Synchronous method overload. Result of the invocation will be reported as a method return value.
exportConfig
in interface Configuration
cluster
- Identifier of the cluster on which operation should be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.com.vmware.esx.settings.clusters.Configuration#ExportResult
contains the
configuration document encoded as JSON.public ExportResult exportConfig(java.lang.String cluster, InvocationConfig invocationConfig)
Configuration
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
exportConfig
in interface Configuration
cluster
- Identifier of the cluster on which operation should be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.com.vmware.esx.settings.clusters.Configuration#ExportResult
contains the
configuration document encoded as JSON.public void exportConfig(java.lang.String cluster, AsyncCallback<ExportResult> asyncCallback)
Configuration
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
This output structure of type com.vmware.esx.settings.clusters.Configuration#ExportResult
contains the
configuration document encoded as JSON.
Operation Errors:
Error
- If there is some other unknown internal error. The accompanying error message
will give more details about the failure.
NotFound
- If the cluster is not found 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.ClusterConfiguration.Export
. ClusterComputeResource
referenced by the parameter cluster
requires VcIntegrity.ClusterConfiguration.Export
. exportConfig
in interface Configuration
cluster
- Identifier of the cluster on which operation should be performed.
The parameter must be an identifier for the resource type: ClusterComputeResource
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void exportConfig(java.lang.String cluster, AsyncCallback<ExportResult> asyncCallback, InvocationConfig invocationConfig)
Configuration
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:
This output structure of type com.vmware.esx.settings.clusters.Configuration#ExportResult
contains the
configuration document encoded as JSON.
Operation Errors:
Error
- If there is some other unknown internal error. The accompanying error message
will give more details about the failure.
NotFound
- If the cluster is not found 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.ClusterConfiguration.Export
. ClusterComputeResource
referenced by the parameter cluster
requires VcIntegrity.ClusterConfiguration.Export
. exportConfig
in interface Configuration
cluster
- Identifier of the cluster on which operation should be performed.
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.