use of com.emc.storageos.model.vpool.VirtualPoolList in project coprhd-controller by CoprHD.
the class ObjectVirtualPools method listByVDC.
/**
* Lists all virtual pools in a virtual data center
* <p>
* API Call: <tt>GET /object/vpools</tt>
*
* @return the list of virtual pool references in a virtual data center
*/
public List<NamedRelatedVirtualPoolRep> listByVDC(String shortVdcId) {
UriBuilder builder = client.uriBuilder(baseUrl);
builder.queryParam(SearchConstants.VDC_ID_PARAM, shortVdcId);
VirtualPoolList response = client.getURI(VirtualPoolList.class, builder.build());
return ResourceUtils.defaultList(response.getVirtualPool());
}
use of com.emc.storageos.model.vpool.VirtualPoolList in project coprhd-controller by CoprHD.
the class ObjectVirtualPools method listByTenant.
/**
* Lists all virtual pools of specific tenant
* <p>
* API Call: <tt>GET /object/vpools</tt>
*
* @return the list of virtual pool references of specific tenant
*/
public List<NamedRelatedVirtualPoolRep> listByTenant(URI tenantId) {
UriBuilder builder = client.uriBuilder(baseUrl);
builder.queryParam(SearchConstants.TENANT_ID_PARAM, tenantId);
VirtualPoolList response = client.getURI(VirtualPoolList.class, builder.build());
return ResourceUtils.defaultList(response.getVirtualPool());
}
use of com.emc.storageos.model.vpool.VirtualPoolList in project coprhd-controller by CoprHD.
the class BlockVirtualPools method listByVirtualArrayAndTenant.
public List<NamedRelatedVirtualPoolRep> listByVirtualArrayAndTenant(URI varrayId, URI tenantId) {
UriBuilder builder = client.uriBuilder(String.format(ID_URL_FORMAT, VARRAY_URL) + "/vpools");
builder.queryParam(SearchConstants.TENANT_ID_PARAM, tenantId);
VirtualPoolList response = client.getURI(VirtualPoolList.class, builder.build(varrayId));
return defaultList(response.getVirtualPool());
}
use of com.emc.storageos.model.vpool.VirtualPoolList in project coprhd-controller by CoprHD.
the class FileVirtualPools method listByVDC.
/**
* Lists all virtual pools in a virtual data center
* <p>
* API Call: <tt>GET /file/vpools</tt>
*
* @return the list of virtual pool references in a virtual data center
*/
public List<NamedRelatedVirtualPoolRep> listByVDC(String shortVdcId) {
UriBuilder builder = client.uriBuilder(baseUrl);
builder.queryParam(SearchConstants.VDC_ID_PARAM, shortVdcId);
VirtualPoolList response = client.getURI(VirtualPoolList.class, builder.build());
return ResourceUtils.defaultList(response.getVirtualPool());
}
use of com.emc.storageos.model.vpool.VirtualPoolList in project coprhd-controller by CoprHD.
the class ObjectVirtualPools method listByVirtualArrayAndTenant.
public List<NamedRelatedVirtualPoolRep> listByVirtualArrayAndTenant(URI varrayId, URI tenantId) {
UriBuilder builder = client.uriBuilder(String.format(ID_URL_FORMAT, VARRAY_URL) + "/vpools");
builder.queryParam(SearchConstants.TENANT_ID_PARAM, tenantId);
VirtualPoolList response = client.getURI(VirtualPoolList.class, builder.build(varrayId));
return defaultList(response.getVirtualPool());
}
Aggregations