public class ComplianceStub extends com.vmware.vapi.internal.bindings.Stub implements Compliance
Compliance
API service.
WARNING: Internal class, subject to change in future versions.
ComplianceTypes.CheckSpec, ComplianceTypes.Info, ComplianceTypes.Status, ComplianceTypes.VmComplianceInfo
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 |
---|---|
ComplianceTypes.Info |
check(java.lang.String vm,
ComplianceTypes.CheckSpec checkSpec)
Returns the storage policy Compliance
ComplianceTypes.Info of a virtual machine
after explicitly re-computing compliance check. |
void |
check(java.lang.String vm,
ComplianceTypes.CheckSpec checkSpec,
AsyncCallback<ComplianceTypes.Info> asyncCallback)
Returns the storage policy Compliance
ComplianceTypes.Info of a virtual machine
after explicitly re-computing compliance check. |
void |
check(java.lang.String vm,
ComplianceTypes.CheckSpec checkSpec,
AsyncCallback<ComplianceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the storage policy Compliance
ComplianceTypes.Info of a virtual machine
after explicitly re-computing compliance check. |
ComplianceTypes.Info |
check(java.lang.String vm,
ComplianceTypes.CheckSpec checkSpec,
InvocationConfig invocationConfig)
Returns the storage policy Compliance
ComplianceTypes.Info of a virtual machine
after explicitly re-computing compliance check. |
ComplianceTypes.Info |
get(java.lang.String vm)
Returns the cached storage policy compliance information of a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<ComplianceTypes.Info> asyncCallback)
Returns the cached storage policy compliance information of a virtual machine.
|
void |
get(java.lang.String vm,
AsyncCallback<ComplianceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the cached storage policy compliance information of a virtual machine.
|
ComplianceTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns the cached storage policy compliance information of a virtual machine.
|
public ComplianceStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ComplianceStub(ApiProvider apiProvider, StubConfigurationBase config)
public ComplianceTypes.Info get(java.lang.String vm)
Compliance
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.ComplianceTypes.Info
.
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.public ComplianceTypes.Info get(java.lang.String vm, 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
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.ComplianceTypes.Info
.
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.public void get(java.lang.String vm, AsyncCallback<ComplianceTypes.Info> asyncCallback)
Compliance
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Virtual machine storage policy compliance Info ComplianceTypes.Info
.
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.
Operation Errors:
Error
- if the system reports an error while responding to the request.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user cannot be authenticated.
Unauthorized
- if the user does not have the required privileges.
get
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String vm, AsyncCallback<ComplianceTypes.Info> 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:
Virtual machine storage policy compliance Info ComplianceTypes.Info
.
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.
Operation Errors:
Error
- if the system reports an error while responding to the request.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user cannot be authenticated.
Unauthorized
- if the user does not have the required privileges.
get
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ComplianceTypes.Info check(java.lang.String vm, ComplianceTypes.CheckSpec checkSpec)
Compliance
ComplianceTypes.Info
of a virtual machine
after explicitly re-computing compliance check. This method was added in vSphere
API 6.7.
Synchronous method overload. Result of the invocation will be reported as a method return value.
check
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.checkSpec
- Parameter specifies the entities on which storage policy compliance check is to
be invoked. The storage compliance Info ComplianceTypes.Info
is returned.
If null
, the behavior is equivalent to a ComplianceTypes.CheckSpec
with
CheckSpec#vmHome set to true and CheckSpec#disks populated with all disks
attached to the virtual machine.Info
class .
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.public ComplianceTypes.Info check(java.lang.String vm, ComplianceTypes.CheckSpec checkSpec, InvocationConfig invocationConfig)
Compliance
ComplianceTypes.Info
of a virtual machine
after explicitly re-computing compliance check. This method was added in vSphere
API 6.7.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
check
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.checkSpec
- Parameter specifies the entities on which storage policy compliance check is to
be invoked. The storage compliance Info ComplianceTypes.Info
is returned.
If null
, the behavior is equivalent to a ComplianceTypes.CheckSpec
with
CheckSpec#vmHome set to true and CheckSpec#disks populated with all disks
attached to the virtual machine.invocationConfig
- Configuration for the method invocation.Info
class .
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.public void check(java.lang.String vm, ComplianceTypes.CheckSpec checkSpec, AsyncCallback<ComplianceTypes.Info> asyncCallback)
Compliance
ComplianceTypes.Info
of a virtual machine
after explicitly re-computing compliance check. This method was added in vSphere
API 6.7.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Virtual machine storage policy compliance Info
class .
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.
Operation Errors:
Error
- if the system reports an error while responding to the request.
ServiceUnavailable
- if the system is unable to communicate with a service necessary to complete the
request.
Unauthenticated
- if the user cannot be authenticated.
Unauthorized
- if the user does not have the required privileges.
check
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.checkSpec
- Parameter specifies the entities on which storage policy compliance check is to
be invoked. The storage compliance Info ComplianceTypes.Info
is returned.
If null
, the behavior is equivalent to a ComplianceTypes.CheckSpec
with
CheckSpec#vmHome set to true and CheckSpec#disks populated with all disks
attached to the virtual machine.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void check(java.lang.String vm, ComplianceTypes.CheckSpec checkSpec, AsyncCallback<ComplianceTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Compliance
ComplianceTypes.Info
of a virtual machine
after explicitly re-computing compliance check. This method was added in vSphere
API 6.7.
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:
Virtual machine storage policy compliance Info
class .
If null
, neither the virtual machine home directory nor any of it's
virtual disks are associated with a storage policy.
Operation Errors:
Error
- if the system reports an error while responding to the request.
ServiceUnavailable
- if the system is unable to communicate with a service necessary to complete the
request.
Unauthenticated
- if the user cannot be authenticated.
Unauthorized
- if the user does not have the required privileges.
check
in interface Compliance
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.checkSpec
- Parameter specifies the entities on which storage policy compliance check is to
be invoked. The storage compliance Info ComplianceTypes.Info
is returned.
If null
, the behavior is equivalent to a ComplianceTypes.CheckSpec
with
CheckSpec#vmHome set to true and CheckSpec#disks populated with all disks
attached to the virtual machine.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.