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, retryPolicy, 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 host)
Generates recommended software image spec(s) based on current desired software
spec.
|
void |
generate_Task(java.lang.String host,
AsyncCallback<java.lang.String> asyncCallback)
Generates recommended software image spec(s) based on current desired software
spec.
|
void |
generate_Task(java.lang.String host,
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 host,
InvocationConfig invocationConfig)
Generates recommended software image spec(s) based on current desired software
spec.
|
RecommendationsTypes.Info |
get(java.lang.String host)
Returns Information about the most recent recommendation generation result.
|
void |
get(java.lang.String host,
AsyncCallback<RecommendationsTypes.Info> asyncCallback)
Returns Information about the most recent recommendation generation result.
|
void |
get(java.lang.String host,
AsyncCallback<RecommendationsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns Information about the most recent recommendation generation result.
|
RecommendationsTypes.Info |
get(java.lang.String host,
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 host)
Recommendations
Synchronous method overload. Result of the invocation is a task identifier which will be returned by this method.
generate_Task
in interface Recommendations
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.public java.lang.String generate_Task(java.lang.String host, 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
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.invocationConfig
- Configuration for the method invocation.public void generate_Task(java.lang.String host, 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.
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.
Unauthenticated
- If the caller is not authenticated.
Unsupported
- If the host is not a vLCM managed standlone host.
generate_Task
in interface Recommendations
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void generate_Task(java.lang.String host, 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.
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.
Unauthenticated
- If the caller is not authenticated.
Unsupported
- If the host is not a vLCM managed standlone host.
generate_Task
in interface Recommendations
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.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 host)
Recommendations
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Recommendations
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.public RecommendationsTypes.Info get(java.lang.String host, 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
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String host, 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.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
Unsupported
- If the host is not a vLCM managed standlone host.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSoftwareSpecification.Read
.
HostSystem
referenced by the parameter host
requires VcIntegrity.lifecycleSoftwareSpecification.Read
.
get
in interface Recommendations
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String host, 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.
ServiceUnavailable
- If the service is not available.
Unauthenticated
- If the caller is not authenticated.
Unsupported
- If the host is not a vLCM managed standlone host.
Unauthorized
- if you do not have all of the privileges described as follows:
VcIntegrity.lifecycleSoftwareSpecification.Read
.
HostSystem
referenced by the parameter host
requires VcIntegrity.lifecycleSoftwareSpecification.Read
.
get
in interface Recommendations
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.