public class PoliciesStub extends com.vmware.vapi.internal.bindings.Stub implements Policies
Policies
API service.
WARNING: Internal class, subject to change in future versions.
PoliciesTypes.Info
Constructor and Description |
---|
PoliciesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
PoliciesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
PoliciesTypes.Info |
get(java.lang.String vm,
java.lang.String policy)
Returns information about the compliance of a virtual machine with a compute
policy.
|
void |
get(java.lang.String vm,
java.lang.String policy,
AsyncCallback<PoliciesTypes.Info> asyncCallback)
Returns information about the compliance of a virtual machine with a compute
policy.
|
void |
get(java.lang.String vm,
java.lang.String policy,
AsyncCallback<PoliciesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the compliance of a virtual machine with a compute
policy.
|
PoliciesTypes.Info |
get(java.lang.String vm,
java.lang.String policy,
InvocationConfig invocationConfig)
Returns information about the compliance of a virtual machine with a compute
policy.
|
public PoliciesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PoliciesStub(ApiProvider apiProvider, StubConfigurationBase config)
public PoliciesTypes.Info get(java.lang.String vm, java.lang.String policy)
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Policies
vm
- Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine
.policy
- Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.public PoliciesTypes.Info get(java.lang.String vm, java.lang.String policy, InvocationConfig invocationConfig)
Policies
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 Policies
vm
- Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine
.policy
- Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String vm, java.lang.String policy, AsyncCallback<PoliciesTypes.Info> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about the compliance of the specified virtual machine with the
specified compute policy.
Operation Errors:
NotFound
- if a virtual machine with the given identifier does not exist, or if a policy
with the given identifier does not exist.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. get
in interface Policies
vm
- Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine
.policy
- Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String vm, java.lang.String policy, AsyncCallback<PoliciesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Information about the compliance of the specified virtual machine with the
specified compute policy.
Operation Errors:
NotFound
- if a virtual machine with the given identifier does not exist, or if a policy
with the given identifier does not exist.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. get
in interface Policies
vm
- Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine
.policy
- Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.