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
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
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 in VMware Cloud on AWS.
|
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 in VMware Cloud on AWS.
|
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 in VMware Cloud on AWS.
|
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 in VMware Cloud on AWS.
|
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.Resources.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.Resources.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
.
Invocation 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.
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.Resources.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.
Invocation 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.
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.Resources.COMPUTE_POLICY
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.