public class StoragePoolClientImpl extends Object implements StoragePoolClient
Modifier | Constructor and Description |
---|---|
protected |
StoragePoolClientImpl(HttpRestClient restClient,
StoragePoolAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
String |
createStoragePool(RestParams params,
AddStoragePool addStoragePoolDto,
boolean useJsonRequest)
The module aids in creation of storage pool when provided with the
storage pool details as an AddStoragePool object or JsonRequest.
|
String |
deleteStoragePool(RestParams params,
String resourceId)
The module aids in deleting a storage pool for the specified storage pool
resource identifier.
|
StoragePoolCollection |
getAllStoragePools(RestParams params)
The module aids in fetching the storage pool details for all the
storage pools found under the current HPE OneView.
|
static StoragePoolClient |
getClient() |
String |
getId(RestParams params,
String name,
String storageSystemUri)
The module aids in fetching the storage pool resource identifier for the storage pool
name as specified in HPE OneView.
|
StoragePool |
getStoragePool(RestParams params,
String resourceId)
The module aids in fetching the StoragePool details for the specified
storage pool resource identifier.
|
StoragePool |
getStoragePoolByName(RestParams params,
String name,
String storageSystemUri)
The module aids in fetching the storage pool details for the storage pool
name as specified in HPE OneView.
|
String |
updateStoragePool(RestParams params,
String resourceId,
StoragePool storagePoolDto,
boolean useJsonRequest)
This module aids in refreshing the storage pool.
|
protected StoragePoolClientImpl(HttpRestClient restClient, StoragePoolAdaptor adaptor)
public static StoragePoolClient getClient()
public StoragePool getStoragePool(RestParams params, String resourceId)
StoragePoolClient
getStoragePool
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage pool as seen in HPE OneView.StoragePool
containing the storage pool details.public StoragePoolCollection getAllStoragePools(RestParams params)
StoragePoolClient
getAllStoragePools
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.StoragePoolCollection
containing a collection of storage pool details.public StoragePool getStoragePoolByName(RestParams params, String name, String storageSystemUri)
StoragePoolClient
getStoragePoolByName
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage pool name as seen in HPE OneView.storageSystemUri
- URI of the storage system.StoragePool
containing the storage pool details.public String createStoragePool(RestParams params, AddStoragePool addStoragePoolDto, boolean useJsonRequest)
StoragePoolClient
createStoragePool
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.addStoragePoolDto
- Object containing the storage pool details, used to create a storage pool.useJsonRequest
- The JsonRequest body is part of AddStoragePool object which
takes in a String containing the new storage pool details,
which is converted to AddStoragePool object using adaptor and
processed.Created
if successful.public String updateStoragePool(RestParams params, String resourceId, StoragePool storagePoolDto, boolean useJsonRequest)
StoragePoolClient
RefreshState.RefreshPending
state.updateStoragePool
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage pool as seen in HPE OneView.storagePoolDto
- Object containing the storage pool details, used to update a storage pool.useJsonRequest
- The JsonRequest body is part of StoragePool object which takes
in a String containing the update to be made, which is
converted to StoragePool object using an adaptor and processed.public String deleteStoragePool(RestParams params, String resourceId)
StoragePoolClient
deleteStoragePool
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage pool as seen in HPE OneView.Deleted
if successful.public String getId(RestParams params, String name, String storageSystemUri)
StoragePoolClient
getId
in interface StoragePoolClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the storage pool name as seen in HPE OneView.storageSystemUri
- The uri of the storage system the storage pool is associated with.Copyright © 2016. All rights reserved.