public class ObjectVirtualPools extends AbstractCoreBulkResources<ObjectVirtualPoolRestRep> implements TopLevelResources<ObjectVirtualPoolRestRep>, ACLResources, QuotaResources
Base URL: /object/vpools
| Constructor and Description | 
|---|
ObjectVirtualPools(ViPRCoreClient parent,
                  RestClient client)  | 
| Modifier and Type | Method and Description | 
|---|---|
ObjectVirtualPoolRestRep | 
assignStoragePools(java.net.URI id,
                  VirtualPoolPoolUpdateParam input)
Manually updates storage pool assignments for a given object virtual pool. 
 | 
ObjectVirtualPoolRestRep | 
create(ObjectVirtualPoolParam input)
Creates a object virtual pool. 
 | 
void | 
deactivate(ObjectVirtualPoolRestRep pool)  | 
void | 
deactivate(java.net.URI id)
Deactivates a object virtual pool. 
 | 
java.util.List<ACLEntry> | 
getACLs(java.net.URI id)
Gets the ACL entries for a given resource by ID. 
 | 
java.util.List<ObjectVirtualPoolRestRep> | 
getAll()
Gets a list of all object virtual pools. 
 | 
java.util.List<ObjectVirtualPoolRestRep> | 
getAll(ResourceFilter<ObjectVirtualPoolRestRep> filter)
Gets a list of all object virtual pools, optionally filtering the results. 
 | 
java.util.List<ObjectVirtualPoolRestRep> | 
getByTenant(java.net.URI tenantId)  | 
java.util.List<ObjectVirtualPoolRestRep> | 
getByTenant(java.net.URI tenantId,
           ResourceFilter<ObjectVirtualPoolRestRep> filter)  | 
java.util.List<ObjectVirtualPoolRestRep> | 
getByVirtualArray(java.net.URI varrayId)
Gets the storage pools that are associated with the given block virtual pool. 
 | 
java.util.List<ObjectVirtualPoolRestRep> | 
getByVirtualArray(java.net.URI varrayId,
                 ResourceFilter<ObjectVirtualPoolRestRep> filter)
Gets the storage pools that are associated with the given block virtual pool. 
 | 
java.util.List<ObjectVirtualPoolRestRep> | 
getByVirtualArray(java.net.URI varrayId,
                 java.net.URI tenantId,
                 ResourceFilter<ObjectVirtualPoolRestRep> filter)  | 
java.util.List<ObjectVirtualPoolRestRep> | 
getByVirtualArrayAndTenant(java.net.URI varrayId,
                          java.net.URI tenantId)
Gets the storage pools that are associated with the given block virtual pool and tenant. 
 | 
CapacityResponse | 
getCapacityOnVirtualArray(java.net.URI id,
                         java.net.URI virtualArrayId)
Get the capacity of the object virtual pool on the given virtual array. 
 | 
java.util.List<StoragePoolRestRep> | 
getMatchingStoragePools(ObjectVirtualPoolParam input)
Gets all storage pools that would match the given object virtual pool configuration. 
 | 
QuotaInfo | 
getQuota(java.net.URI id)
Gets the quota information for a given resource by ID. 
 | 
java.util.List<StoragePoolRestRep> | 
getStoragePools(java.net.URI id)
Gets the list of storage pools for the given object virtual pool by ID. 
 | 
java.util.List<NamedRelatedVirtualPoolRep> | 
list()
Lists all object virtual pools. 
 | 
java.util.List<NamedRelatedVirtualPoolRep> | 
listByTenant(java.net.URI tenantId)
Lists all virtual pools of specific tenant 
 | 
java.util.List<NamedRelatedVirtualPoolRep> | 
listByVDC(java.lang.String shortVdcId)
Lists all virtual pools in a virtual data center 
 | 
java.util.List<NamedRelatedVirtualPoolRep> | 
listByVirtualArray(java.net.URI varrayId)
Lists the virtual pools that are associated with the given virtual array. 
 | 
java.util.List<NamedRelatedVirtualPoolRep> | 
listByVirtualArrayAndTenant(java.net.URI varrayId,
                           java.net.URI tenantId)  | 
java.util.List<NamedRelatedResourceRep> | 
listMatchingStoragePools(ObjectVirtualPoolParam input)
Lists all storage pools that would match the given object virtual pool configuration. 
 | 
java.util.List<NamedRelatedResourceRep> | 
listStoragePools(java.net.URI id)
Lists the storage pools for the given object virtual pool by ID. 
 | 
java.util.List<NamedRelatedResourceRep> | 
refreshMatchingStoragePools(java.net.URI id)
Refreshes the storage pools that match the given object virtual pool. 
 | 
ObjectVirtualPoolRestRep | 
update(java.net.URI id,
      ObjectVirtualPoolUpdateParam input)
Updates an object virtual pool. 
 | 
java.util.List<ACLEntry> | 
updateACLs(java.net.URI id,
          ACLAssignmentChanges aclChanges)
Updates the ACL entries for a given resource by ID. 
 | 
QuotaInfo | 
updateQuota(java.net.URI id,
           QuotaUpdateParam quota)
Updates the quota information for a given resource by ID. 
 | 
ObjectVirtualPools | 
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources. 
 | 
ObjectVirtualPools | 
withInternal(boolean internal)
Configures the fetch operations to include internal resources. 
 | 
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic ObjectVirtualPools(ViPRCoreClient parent, RestClient client)
public ObjectVirtualPools withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<ObjectVirtualPoolRestRep>inactive - whether to include inactive resources.public ObjectVirtualPools withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<ObjectVirtualPoolRestRep>internal - whether to include internal resources.public java.util.List<NamedRelatedVirtualPoolRep> list()
API Call: GET /object/vpools
list in interface TopLevelResources<ObjectVirtualPoolRestRep>public java.util.List<NamedRelatedVirtualPoolRep> listByVDC(java.lang.String shortVdcId)
API Call: GET /object/vpools
public java.util.List<NamedRelatedVirtualPoolRep> listByTenant(java.net.URI tenantId)
API Call: GET /object/vpools
public java.util.List<ObjectVirtualPoolRestRep> getByTenant(java.net.URI tenantId)
public java.util.List<ObjectVirtualPoolRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<ObjectVirtualPoolRestRep> filter)
public java.util.List<ObjectVirtualPoolRestRep> getAll()
This is a convenience method for: getByRefs(list())
getAll in interface TopLevelResources<ObjectVirtualPoolRestRep>TopLevelResources.list(), 
Resources.getByRefs(java.util.Collection)public java.util.List<ObjectVirtualPoolRestRep> getAll(ResourceFilter<ObjectVirtualPoolRestRep> filter)
This is a convenience method for: getByRefs(list(), filter)
getAll in interface TopLevelResources<ObjectVirtualPoolRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(), 
Resources.getByRefs(java.util.Collection, ResourceFilter)public ObjectVirtualPoolRestRep create(ObjectVirtualPoolParam input)
API Call: POST /object/vpools
input - the virtual pool configuration.public ObjectVirtualPoolRestRep update(java.net.URI id, ObjectVirtualPoolUpdateParam input)
API Call: PUT /object/vpools/{id}
id - the ID of the object virtual pool to update.input - public void deactivate(java.net.URI id)
API Call: POST /object/vpools/{id}/deactivate
id - the ID of the object virtual pool.public void deactivate(ObjectVirtualPoolRestRep pool)
public java.util.List<NamedRelatedVirtualPoolRep> listByVirtualArray(java.net.URI varrayId)
API Call: GET /vdc/varrays/{id}/vpools
varrayId - the ID of the virtual array.public java.util.List<NamedRelatedVirtualPoolRep> listByVirtualArrayAndTenant(java.net.URI varrayId, java.net.URI tenantId)
public java.util.List<ObjectVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId)
varrayId - the ID of the virtual array.listByVirtualArray(URI), 
AbstractResources.getByRefs(java.util.Collection)public java.util.List<ObjectVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId, ResourceFilter<ObjectVirtualPoolRestRep> filter)
varrayId - the ID of the virtual array.filter - the resource filter to apply to the results as they are returned (optional).listByVirtualArray(URI), 
AbstractResources.getByRefs(java.util.Collection)public java.util.List<ObjectVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId, java.net.URI tenantId, ResourceFilter<ObjectVirtualPoolRestRep> filter)
public java.util.List<ObjectVirtualPoolRestRep> getByVirtualArrayAndTenant(java.net.URI varrayId, java.net.URI tenantId)
varrayId - the ID of the virtual array.tenantId - the ID of tenantlistByVirtualArray(URI), 
AbstractResources.getByRefs(java.util.Collection)public java.util.List<ACLEntry> getACLs(java.net.URI id)
ACLResourcesAPI Call: GET baseUrl/{id}/acl
getACLs in interface ACLResourcesid - the resource ID.public java.util.List<ACLEntry> updateACLs(java.net.URI id, ACLAssignmentChanges aclChanges)
ACLResourcesAPI Call: PUT baseUrl/{id}/acl
updateACLs in interface ACLResourcesid - the resource ID.aclChanges - the ACL changes to perform (ACL entries to add/remove).public QuotaInfo getQuota(java.net.URI id)
QuotaResourcesAPI Call: GET baseUrl/{id}/quota
getQuota in interface QuotaResourcesid - the resource ID.public QuotaInfo updateQuota(java.net.URI id, QuotaUpdateParam quota)
QuotaResourcesAPI Call: PUT baseUrl/{id}/quota
updateQuota in interface QuotaResourcesid - the resource ID.quota - the update to the quota.public CapacityResponse getCapacityOnVirtualArray(java.net.URI id, java.net.URI virtualArrayId)
API Call: GET /object/vpools/{id}/varrays/{virtualArrayId}/capacity
id - the ID of the object virtual pool.virtualArrayId - the virtual array.public java.util.List<NamedRelatedResourceRep> listStoragePools(java.net.URI id)
API Call: GET /object/vpools/{id}/storage-pools
id - the ID of the object virtual pool.public java.util.List<StoragePoolRestRep> getStoragePools(java.net.URI id)
id - the ID of the object virtual pool.public java.util.List<NamedRelatedResourceRep> listMatchingStoragePools(ObjectVirtualPoolParam input)
API Call: POST /object/vpools/matching-pools
input - the object virtual pool configuration.public java.util.List<StoragePoolRestRep> getMatchingStoragePools(ObjectVirtualPoolParam input)
input - the object virtual pool configuration.public java.util.List<NamedRelatedResourceRep> refreshMatchingStoragePools(java.net.URI id)
API Call: GET /object/vpools/{id}/refresh-matched-pools
id - the ID of the object virtual pool.public ObjectVirtualPoolRestRep assignStoragePools(java.net.URI id, VirtualPoolPoolUpdateParam input)
API Call: PUT /object/vpools/{id}/assign-matched-pools
id - the ID of the object virtual pool.input - the configuration of the storage pool assignments.