public class RecommendationsStub extends com.vmware.vapi.internal.bindings.Stub implements Recommendations
Recommendations
API service.
WARNING: Internal class, subject to change in future versions.
RecommendationsTypes._VAPI_OPERATIONS, RecommendationsTypes.ExplanationDetails, RecommendationsTypes.Info
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
RecommendationsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
RecommendationsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generate_Task(java.lang.String cluster)
Generates recommended software image spec(s) based on current desired software
spec.
|
void |
generate_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback)
Generates recommended software image spec(s) based on current desired software
spec.
|
void |
generate_Task(java.lang.String cluster,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Generates recommended software image spec(s) based on current desired software
spec.
|
java.lang.String |
generate_Task(java.lang.String cluster,
InvocationConfig invocationConfig)
Generates recommended software image spec(s) based on current desired software
spec.
|
RecommendationsTypes.Info |
get(java.lang.String cluster)
Returns Information about the most recent recommendation generation result.
|
void |
get(java.lang.String cluster,
AsyncCallback<RecommendationsTypes.Info> asyncCallback)
Returns Information about the most recent recommendation generation result.
|
void |
get(java.lang.String cluster,
AsyncCallback<RecommendationsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns Information about the most recent recommendation generation result.
|
RecommendationsTypes.Info |
get(java.lang.String cluster,
InvocationConfig invocationConfig)
Returns Information about the most recent recommendation generation result.
|
public RecommendationsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public RecommendationsStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String generate_Task(java.lang.String cluster)
Recommendations
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
generate_Task
in interface Recommendations
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public java.lang.String generate_Task(java.lang.String cluster, InvocationConfig invocationConfig)
Recommendations
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.
generate_Task
in interface Recommendations
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void generate_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback)
Recommendations
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
.
ConcurrentChange
- If a new desired image is committed in parallel via a different client while
recommendation is being generated.
ServiceUnavailable
- If the service is not available.
generate_Task
in interface Recommendations
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 generate_Task(java.lang.String cluster, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Recommendations
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
.
ConcurrentChange
- If a new desired image is committed in parallel via a different client while
recommendation is being generated.
ServiceUnavailable
- If the service is not available.
generate_Task
in interface Recommendations
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 RecommendationsTypes.Info get(java.lang.String cluster)
Recommendations
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Recommendations
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.public RecommendationsTypes.Info get(java.lang.String cluster, InvocationConfig invocationConfig)
Recommendations
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 Recommendations
cluster
- Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String cluster, AsyncCallback<RecommendationsTypes.Info> asyncCallback)
Recommendations
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the most recent recommendation generation result.
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
recommendation is non-existing for the cluster due to either it is never
generated or deleted due to changes in cluster state such as a new desired image
spec being committed.
ServiceUnavailable
- If the service is not available.
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 Recommendations
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 get(java.lang.String cluster, AsyncCallback<RecommendationsTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Recommendations
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:
Information about the most recent recommendation generation result.
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
recommendation is non-existing for the cluster due to either it is never
generated or deleted due to changes in cluster state such as a new desired image
spec being committed.
ServiceUnavailable
- If the service is not available.
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 Recommendations
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.