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.Summary
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
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 |
---|---|
java.lang.String |
create(Structure spec)
Creates a new compute policy.
|
void |
create(Structure spec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new compute policy.
|
void |
create(Structure spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new compute policy.
|
java.lang.String |
create(Structure spec,
InvocationConfig invocationConfig)
Creates a new compute policy.
|
void |
delete(java.lang.String policy)
Deletes a specific compute policy.
|
void |
delete(java.lang.String policy,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a specific compute policy.
|
void |
delete(java.lang.String policy,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a specific compute policy.
|
void |
delete(java.lang.String policy,
InvocationConfig invocationConfig)
Deletes a specific compute policy.
|
Structure |
get(java.lang.String policy)
Returns information about a specific compute policy.
|
void |
get(java.lang.String policy,
AsyncCallback<Structure> asyncCallback)
Returns information about a specific compute policy.
|
void |
get(java.lang.String policy,
AsyncCallback<Structure> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific compute policy.
|
Structure |
get(java.lang.String policy,
InvocationConfig invocationConfig)
Returns information about a specific compute policy.
|
java.util.List<PoliciesTypes.Summary> |
list()
Returns information about the compute policies available in this vCenter server.
|
void |
list(AsyncCallback<java.util.List<PoliciesTypes.Summary>> asyncCallback)
Returns information about the compute policies available in this vCenter server.
|
void |
list(AsyncCallback<java.util.List<PoliciesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the compute policies available in this vCenter server.
|
java.util.List<PoliciesTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns information about the compute policies available in this vCenter server.
|
public PoliciesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PoliciesStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(Structure spec)
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Policies
spec
- Specification for the new policy to be created. The new policy will be an
instance of the capability that has the creation type (see CapabilitiesTypes.Info.getCreateSpecType()
)
equal to the type of the specified value (see spec
).
The parameter must contain all the properties defined in CreateSpec
.com.vmware.vcenter.compute.Policy
.public java.lang.String create(Structure spec, 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.
create
in interface Policies
spec
- Specification for the new policy to be created. The new policy will be an
instance of the capability that has the creation type (see CapabilitiesTypes.Info.getCreateSpecType()
)
equal to the type of the specified value (see spec
).
The parameter must contain all the properties defined in CreateSpec
.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.compute.Policy
.public void create(Structure spec, AsyncCallback<java.lang.String> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The identifier of the newly created policy. Use this identifier to get or
destroy the policy.
The return value will be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.
Operation Errors:
AlreadyExists
- if a policy with the same name is already present on this vCenter server.
InvalidArgument
- if a parameter passed in the spec is invalid.
UnableToAllocateResource
- if more than 100 policies are created.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
ComputePolicy.Manage
. create
in interface Policies
spec
- Specification for the new policy to be created. The new policy will be an
instance of the capability that has the creation type (see CapabilitiesTypes.Info.getCreateSpecType()
)
equal to the type of the specified value (see spec
).
The parameter must contain all the properties defined in CreateSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(Structure spec, AsyncCallback<java.lang.String> 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:
The identifier of the newly created policy. Use this identifier to get or
destroy the policy.
The return value will be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.
Operation Errors:
AlreadyExists
- if a policy with the same name is already present on this vCenter server.
InvalidArgument
- if a parameter passed in the spec is invalid.
UnableToAllocateResource
- if more than 100 policies are created.
Unauthorized
- if the user doesn't have the required privileges.
Unauthorized
- if you do not have all of the privileges described as follows:
ComputePolicy.Manage
. create
in interface Policies
spec
- Specification for the new policy to be created. The new policy will be an
instance of the capability that has the creation type (see CapabilitiesTypes.Info.getCreateSpecType()
)
equal to the type of the specified value (see spec
).
The parameter must contain all the properties defined in CreateSpec
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<PoliciesTypes.Summary> list()
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<PoliciesTypes.Summary> list(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.
public void list(AsyncCallback<java.util.List<PoliciesTypes.Summary>> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of compute policies 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
. public void list(AsyncCallback<java.util.List<PoliciesTypes.Summary>> 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:
The list of compute policies 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
. public Structure get(java.lang.String policy)
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Policies
policy
- Identifier of the policy for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.CapabilitiesTypes.Info.getInfoType()
.
The return value will contain all the properties defined in Info
.public Structure get(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
policy
- Identifier of the policy for which information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy
.invocationConfig
- Configuration for the method invocation.CapabilitiesTypes.Info.getInfoType()
.
The return value will contain all the properties defined in Info
.public void get(java.lang.String policy, AsyncCallback<Structure> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Detailed information about the specified compute policy. The returned value can
be converted to the information type of the capability that this policy is based
on. See CapabilitiesTypes.Info.getInfoType()
.
The return value will contain all the properties defined in Info
.
Operation Errors:
NotFound
- if a policy 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
. get
in interface Policies
policy
- Identifier of the policy for which information should be retrieved.
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 policy, AsyncCallback<Structure> 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:
Detailed information about the specified compute policy. The returned value can
be converted to the information type of the capability that this policy is based
on. See CapabilitiesTypes.Info.getInfoType()
.
The return value will contain all the properties defined in Info
.
Operation Errors:
NotFound
- if a policy 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
. get
in interface Policies
policy
- Identifier of the policy for which information should be retrieved.
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.public void delete(java.lang.String policy)
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(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.
public void delete(java.lang.String policy, AsyncCallback<java.lang.Void> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if a policy 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:
ComputePolicy.Manage
. public void delete(java.lang.String policy, AsyncCallback<java.lang.Void> 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 Errors:
NotFound
- if a policy 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:
ComputePolicy.Manage
. delete
in interface Policies
policy
- Identifier of the policy to be deleted.
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.