public class ComplianceStub extends com.vmware.vapi.internal.bindings.Stub implements Compliance
Compliance
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ComplianceStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ComplianceStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
HostCompliance |
get(java.lang.String host)
Returns the compliance state for the host.
|
void |
get(java.lang.String host,
AsyncCallback<HostCompliance> asyncCallback)
Returns the compliance state for the host.
|
void |
get(java.lang.String host,
AsyncCallback<HostCompliance> asyncCallback,
InvocationConfig invocationConfig)
Returns the compliance state for the host.
|
HostCompliance |
get(java.lang.String host,
InvocationConfig invocationConfig)
Returns the compliance state for the host.
|
public ComplianceStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ComplianceStub(ApiProvider apiProvider, StubConfigurationBase config)
public HostCompliance get(java.lang.String host)
Compliance
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Compliance
host
- Identifier of the host.
The parameter must be an identifier for the resource type: HostSystem
.public HostCompliance get(java.lang.String host, InvocationConfig invocationConfig)
Compliance
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 Compliance
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<HostCompliance> asyncCallback)
Compliance
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Host compliance 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 host associated with host
in the system.
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 Compliance
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<HostCompliance> asyncCallback, InvocationConfig invocationConfig)
Compliance
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:
Host compliance 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 host associated with host
in the system.
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 Compliance
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.