public class ComputeVirtualPools extends AbstractCoreBulkResources<ComputeVirtualPoolRestRep> implements TopLevelResources<ComputeVirtualPoolRestRep>, ACLResources, QuotaResources
Base URL: /compute/vpools
| Constructor and Description |
|---|
ComputeVirtualPools(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
ComputeVirtualPoolRestRep |
assignComputeElements(java.net.URI id,
ComputeVirtualPoolElementUpdateParam input)
Updates a compute virtual pool.
|
ComputeVirtualPoolRestRep |
create(ComputeVirtualPoolCreateParam input)
Creates a new compute virtual pool.
|
void |
deactivate(ComputeVirtualPoolRestRep pool) |
void |
deactivate(java.net.URI id)
Deactivates a compute virtual pool.
|
java.util.List<ACLEntry> |
getACLs(java.net.URI id)
Gets the ACL entries for a given resource by ID.
|
java.util.List<ComputeVirtualPoolRestRep> |
getAll()
Gets all compute virtual pools.
|
java.util.List<ComputeVirtualPoolRestRep> |
getAll(ResourceFilter<ComputeVirtualPoolRestRep> filter)
Gets all compute virtual pools, optionally filtering the results.
|
java.util.List<ComputeVirtualPoolRestRep> |
getByTenant(java.net.URI tenantId)
Get all virtual pools of specific tenant
|
java.util.List<ComputeVirtualPoolRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<ComputeVirtualPoolRestRep> filter)
Gets all compute virtual pools of specific tenant, optionally filtering the results.
|
java.util.List<ComputeVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId)
Gets the compute virtual pools that are associated with the given virtual array.
|
java.util.List<ComputeVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId,
java.net.URI tenantId,
ResourceFilter<ComputeVirtualPoolRestRep> filter)
Gets the compute virtual pools that are associated with the given virtual array and specific tenant.
|
java.util.List<ComputeVirtualPoolRestRep> |
getByVirtualArrayAndTenant(java.net.URI varrayId,
java.net.URI tenantId)
Gets the compute virtual pools that are associated with the given virtual array and tenant.
|
ComputeVirtualPoolRestRep |
getComputeVirtualPool(java.net.URI id)
Get a compute virtual pool.
|
ComputeElementListRestRep |
getMatchedComputeElements(java.net.URI id)
Lists elements of a compute virtual pool.
|
QuotaInfo |
getQuota(java.net.URI id)
Gets the quota information for a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all compute virtual pools.
|
java.util.List<NamedRelatedResourceRep> |
listByTenant(java.net.URI tenantId)
Lists all virtual pools of specific tenant
|
java.util.List<NamedRelatedResourceRep> |
listComputeElements(java.net.URI id) |
java.util.List<ComputeElementRestRep> |
listMatchingComputeElements(ComputeVirtualPoolCreateParam input)
Lists the compute elements that would match a virtual compute pool with the given configuration.
|
ComputeVirtualPoolRestRep |
update(java.net.URI id,
ComputeVirtualPoolUpdateParam input)
Updates a compute 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.
|
ComputeVirtualPools |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags, withInternalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic ComputeVirtualPools(ViPRCoreClient parent, RestClient client)
public ComputeVirtualPools withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<ComputeVirtualPoolRestRep>inactive - whether to include inactive resources.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /compute/vpools
list in interface TopLevelResources<ComputeVirtualPoolRestRep>public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
API Call: GET /compute/vpools
public java.util.List<ComputeVirtualPoolRestRep> getByTenant(java.net.URI tenantId)
tenantId - the ID of the tenantpublic java.util.List<ComputeVirtualPoolRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<ComputeVirtualPoolRestRep> filter)
tenantId - the ID of the tenantfilter - the resource filter to apply to the results as they are returned (optional).public java.util.List<ComputeVirtualPoolRestRep> getAll()
getAll in interface TopLevelResources<ComputeVirtualPoolRestRep>list(),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<ComputeVirtualPoolRestRep> getAll(ResourceFilter<ComputeVirtualPoolRestRep> filter)
getAll in interface TopLevelResources<ComputeVirtualPoolRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(),
Resources.getByRefs(java.util.Collection, ResourceFilter)public java.util.List<ComputeVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId)
varrayId - the ID of the virtual array.public java.util.List<ComputeVirtualPoolRestRep> getByVirtualArrayAndTenant(java.net.URI varrayId, java.net.URI tenantId)
varrayId - the ID of the virtual array.tenantId - the ID of tenantpublic java.util.List<ComputeVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId, java.net.URI tenantId, ResourceFilter<ComputeVirtualPoolRestRep> filter)
varrayId - the ID of the virtual array.tenantId - the ID of the tenant.filter - the resource filter to apply to the results as they are returned (optional).public ComputeVirtualPoolRestRep create(ComputeVirtualPoolCreateParam input)
API Call: POST /compute/vpools
input - the create configuration.public ComputeVirtualPoolRestRep update(java.net.URI id, ComputeVirtualPoolUpdateParam input)
API Call: PUT /compute/vpools/{id}
id - the ID of the compute virtual pool to update.input - the update configuration.public void deactivate(java.net.URI id)
API Call: POST /compute/vpools/{id}/deactivate
id - the ID of the compute virtual pool to deactivate.public void deactivate(ComputeVirtualPoolRestRep pool)
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 java.util.List<NamedRelatedResourceRep> listComputeElements(java.net.URI id)
public java.util.List<ComputeElementRestRep> listMatchingComputeElements(ComputeVirtualPoolCreateParam input)
API Call: POST /compute/vpools/matching-elements
input - the configuration for a potential virtual compute pool.public ComputeVirtualPoolRestRep assignComputeElements(java.net.URI id, ComputeVirtualPoolElementUpdateParam input)
API Call: PUT /compute/vpools/{id}/assign-matched-elements
id - the ID of the compute virtual pool to update.input - the update configuration.public ComputeElementListRestRep getMatchedComputeElements(java.net.URI id)
API Call: GET /compute/vpools/{id}/matched-elements
id - the ID of the compute virtual pool .public ComputeVirtualPoolRestRep getComputeVirtualPool(java.net.URI id)
API Call: GET /compute/vpools/{id}
id - the ID of the compute virtual pool .