public interface Capabilities extends Service, CapabilitiesTypes
Capabilities
interface provides methods to manage compute policy
capabilities. The description of the capability provides information about the
intent of a policy based on this capability. A capability provides a type to
create a policy (see Policies.create(com.vmware.vapi.bindings.Structure)
). A
capability also provides a type that describes the information returned when
retrieving information about a policy (see Policies.get(java.lang.String)
). Warning: This interface is
available as technical preview. It may be changed in a future release.CapabilitiesTypes.Info, CapabilitiesTypes.Summary
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
CapabilitiesTypes.Info |
get(java.lang.String capability)
Returns information about a specific compute policy capability.
|
void |
get(java.lang.String capability,
AsyncCallback<CapabilitiesTypes.Info> asyncCallback)
Returns information about a specific compute policy capability.
|
void |
get(java.lang.String capability,
AsyncCallback<CapabilitiesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific compute policy capability.
|
CapabilitiesTypes.Info |
get(java.lang.String capability,
InvocationConfig invocationConfig)
Returns information about a specific compute policy capability.
|
java.util.List<CapabilitiesTypes.Summary> |
list()
Returns information about the compute policy capabilities available in this
vCenter server.
|
void |
list(AsyncCallback<java.util.List<CapabilitiesTypes.Summary>> asyncCallback)
Returns information about the compute policy capabilities available in this
vCenter server.
|
void |
list(AsyncCallback<java.util.List<CapabilitiesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the compute policy capabilities available in this
vCenter server.
|
java.util.List<CapabilitiesTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns information about the compute policy capabilities available in this
vCenter server.
|
java.util.List<CapabilitiesTypes.Summary> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
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
. java.util.List<CapabilitiesTypes.Summary> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.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
. void list(AsyncCallback<java.util.List<CapabilitiesTypes.Summary>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of compute policy capabilities available on this vCenter server.
Operation Errors:
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
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<CapabilitiesTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
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:
The list of compute policy capabilities available on this vCenter server.
Operation Errors:
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
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.CapabilitiesTypes.Info get(java.lang.String capability)
Synchronous method overload. Result of the invocation will be reported as a method return value.
capability
- Identifier of the capability for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability
.NotFound
- if a capability with this 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
. CapabilitiesTypes.Info get(java.lang.String capability, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
capability
- Identifier of the capability for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability
.invocationConfig
- Configuration for the method invocation.NotFound
- if a capability with this 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
. void get(java.lang.String capability, AsyncCallback<CapabilitiesTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Detailed information about the capability.
Operation Errors:
NotFound
- if a capability with this 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
. capability
- Identifier of the capability for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String capability, AsyncCallback<CapabilitiesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
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:
Detailed information about the capability.
Operation Errors:
NotFound
- if a capability with this 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
. capability
- Identifier of the capability for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.