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.CompatibilityInfo, PoliciesTypes.CompatibleDatastoreInfo, PoliciesTypes.FilterSpec, 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 |
---|---|
PoliciesTypes.CompatibilityInfo |
checkCompatibility(java.lang.String policy,
java.util.Set<java.lang.String> datastores)
Returns datastore compatibility summary about a specific storage policy.
|
void |
checkCompatibility(java.lang.String policy,
java.util.Set<java.lang.String> datastores,
AsyncCallback<PoliciesTypes.CompatibilityInfo> asyncCallback)
Returns datastore compatibility summary about a specific storage policy.
|
void |
checkCompatibility(java.lang.String policy,
java.util.Set<java.lang.String> datastores,
AsyncCallback<PoliciesTypes.CompatibilityInfo> asyncCallback,
InvocationConfig invocationConfig)
Returns datastore compatibility summary about a specific storage policy.
|
PoliciesTypes.CompatibilityInfo |
checkCompatibility(java.lang.String policy,
java.util.Set<java.lang.String> datastores,
InvocationConfig invocationConfig)
Returns datastore compatibility summary about a specific storage policy.
|
java.util.List<PoliciesTypes.Summary> |
list(PoliciesTypes.FilterSpec filter)
Returns information about at most 1024 visible (subject to permission checks)
storage solicies availabe in vCenter.
|
void |
list(PoliciesTypes.FilterSpec filter,
AsyncCallback<java.util.List<PoliciesTypes.Summary>> asyncCallback)
Returns information about at most 1024 visible (subject to permission checks)
storage solicies availabe in vCenter.
|
void |
list(PoliciesTypes.FilterSpec filter,
AsyncCallback<java.util.List<PoliciesTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about at most 1024 visible (subject to permission checks)
storage solicies availabe in vCenter.
|
java.util.List<PoliciesTypes.Summary> |
list(PoliciesTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about at most 1024 visible (subject to permission checks)
storage solicies availabe in vCenter.
|
public PoliciesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PoliciesStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<PoliciesTypes.Summary> list(PoliciesTypes.FilterSpec filter)
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface Policies
filter
- Specification of matching storage policies for which information should be
returned.
If null
, the behavior is equivalent to a PoliciesTypes.FilterSpec
with all properties null
which means all storage policies match the filterpublic java.util.List<PoliciesTypes.Summary> list(PoliciesTypes.FilterSpec filter, 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.
list
in interface Policies
filter
- Specification of matching storage policies for which information should be
returned.
If null
, the behavior is equivalent to a PoliciesTypes.FilterSpec
with all properties null
which means all storage policies match the filterinvocationConfig
- Configuration for the method invocation.public void list(PoliciesTypes.FilterSpec filter, AsyncCallback<java.util.List<PoliciesTypes.Summary>> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Commonly used Information about the storage policies.
Operation Errors:
InvalidArgument
- if the PoliciesTypes.FilterSpec
contains a
value that is not supported by the server.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
UnableToAllocateResource
- if more than 1024 storage policies exist.
list
in interface Policies
filter
- Specification of matching storage policies for which information should be
returned.
If null
, the behavior is equivalent to a PoliciesTypes.FilterSpec
with all properties null
which means all storage policies match the filterasyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(PoliciesTypes.FilterSpec filter, 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:
Commonly used Information about the storage policies.
Operation Errors:
InvalidArgument
- if the PoliciesTypes.FilterSpec
contains a
value that is not supported by the server.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
UnableToAllocateResource
- if more than 1024 storage policies exist.
list
in interface Policies
filter
- Specification of matching storage policies for which information should be
returned.
If null
, the behavior is equivalent to a PoliciesTypes.FilterSpec
with all properties null
which means all storage policies match the filterasyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public PoliciesTypes.CompatibilityInfo checkCompatibility(java.lang.String policy, java.util.Set<java.lang.String> datastores)
Policies
Synchronous method overload. Result of the invocation will be reported as a method return value.
checkCompatibility
in interface Policies
policy
- The storage policy identifier
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.datastores
- Datastores used to check compatibility against a storage policy. The number of
datastores is limited to 1024.
The parameter must contain identifiers for the resource type: Datastore
.public PoliciesTypes.CompatibilityInfo checkCompatibility(java.lang.String policy, java.util.Set<java.lang.String> datastores, 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.
checkCompatibility
in interface Policies
policy
- The storage policy identifier
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.datastores
- Datastores used to check compatibility against a storage policy. The number of
datastores is limited to 1024.
The parameter must contain identifiers for the resource type: Datastore
.invocationConfig
- Configuration for the method invocation.public void checkCompatibility(java.lang.String policy, java.util.Set<java.lang.String> datastores, AsyncCallback<PoliciesTypes.CompatibilityInfo> asyncCallback)
Policies
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
datastore compatibility summary about a specific storage policy.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the storage policy specified does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
UnableToAllocateResource
- if input more than 1024 datastores.
checkCompatibility
in interface Policies
policy
- The storage policy identifier
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.datastores
- Datastores used to check compatibility against a storage policy. The number of
datastores is limited to 1024.
The parameter must contain identifiers for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void checkCompatibility(java.lang.String policy, java.util.Set<java.lang.String> datastores, AsyncCallback<PoliciesTypes.CompatibilityInfo> 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:
datastore compatibility summary about a specific storage policy.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the storage policy specified does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
UnableToAllocateResource
- if input more than 1024 datastores.
checkCompatibility
in interface Policies
policy
- The storage policy identifier
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.datastores
- Datastores used to check compatibility against a storage policy. The number of
datastores is limited to 1024.
The parameter must contain identifiers for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.