public class StorageVolumeClientImpl extends Object implements StorageVolumeClient
REPAIR_FILTER
Modifier | Constructor and Description |
---|---|
protected |
StorageVolumeClientImpl(HttpRestClient restClient,
ResourceAdaptor resourceAdaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createStorageVolume(RestParams params,
AddStorageVolumeV2 addStorageVolumeDto,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of storage volume when provided with the
storage volume details as an AddStorageVolume object or JsonRequest.
|
TaskResourceV2 |
createStorageVolumeSnapshot(RestParams params,
String storageVolumeId,
StorageVolumeSnapshot snapshot,
boolean aSync)
Creates a snapshot for the storage volume specified by the resource identifier.
|
TaskResourceV2 |
deleteStorageVolume(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a storage volume for the specified storage volume
resource identifier.
|
TaskResourceV2 |
deleteStorageVolumeSnapshot(RestParams params,
String storageVolumeId,
String snapshotId,
boolean aSync)
Removes a storage volume snapshot from HPE OneView and storage system.
|
StorageVolumeCollection |
getAllStorageVolumes(RestParams params)
The module aids in fetching the storage volume details for all the
storage volumes found under the current HPE OneView.
|
StorageVolumeSnapshotCollection |
getAllStorageVolumeSnapshots(RestParams params,
String storageVolumeId)
Returns all the snapshots available of an existing storage volume.
|
AttachableStorageVolumeCollection |
getAttachableVolumes(RestParams params)
This method aids in fetching the attachable volumes that are connected to the
specified networks based on the storage system port's expected network connectivity.
|
static StorageVolumeClient |
getClient() |
ExtraStorageVolumeCollection |
getExtraManagedStorageVolumePaths(RestParams params)
Returns the list of extra managed storage volume paths.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the storage volume resource identifier for the
storage volume name as specified in HPE OneView.
|
StorageVolumeV2 |
getStorageVolume(RestParams params,
String resourceId)
The module aids in fetching the storage volume details for the specified
storage volume resource identifier.
|
StorageVolumeV2 |
getStorageVolumeByName(RestParams params,
String name)
The module aids in fetching the storage volume details for the
storage volume name as specified in HPE OneView.
|
StorageVolumeSnapshot |
getStorageVolumeSnapshot(RestParams params,
String storageVolumeId,
String snapshotId)
Returns a snapshot of a storage volume.
|
TaskResourceV2 |
repairExtraManagedStorageVolumePath(RestParams params,
ExtraStorageVolumeRepair repair,
boolean aSync)
Removes extra presentations from a specified storage volume on the storage system.
|
String |
updateStorageVolume(RestParams params,
String resourceId,
StorageVolumeV2 storageVolumeDto,
boolean useJsonRequest)
The module takes in an StorageVolumeV2 object or JsonRequest and updates
the existing storage volume based on the resource identifier.
|
protected StorageVolumeClientImpl(HttpRestClient restClient, ResourceAdaptor resourceAdaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static StorageVolumeClient getClient()
public StorageVolumeV2 getStorageVolume(RestParams params, String resourceId)
StorageVolumeClient
getStorageVolume
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume as seen in HPE OneView.StorageVolumeV2
containing the storage volume details.public StorageVolumeCollection getAllStorageVolumes(RestParams params)
StorageVolumeClient
getAllStorageVolumes
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.StorageVolumeCollection
containing a collection of storage volume details.public StorageVolumeV2 getStorageVolumeByName(RestParams params, String name)
StorageVolumeClient
getStorageVolumeByName
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage volume name as seen in HPE OneView.StorageVolumeV2
containing the storage volume details.public TaskResourceV2 createStorageVolume(RestParams params, AddStorageVolumeV2 addStorageVolumeDto, boolean aSync, boolean useJsonRequest)
StorageVolumeClient
createStorageVolume
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.addStorageVolumeDto
- Object containing the storage volume details, used to create a storage volume.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of AddStorageVolumeV2 object which
takes in a String containing new storage volume details, which
is converted to a StorageVolume object using adaptor and
processed.TaskResourceV2
containing the task status for the process.public String updateStorageVolume(RestParams params, String resourceId, StorageVolumeV2 storageVolumeDto, boolean useJsonRequest)
StorageVolumeClient
updateStorageVolume
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume as seen in HPE OneView.storageVolumeDto
- Object containing the storage volume details, used to update a storage volume.useJsonRequest
- The JsonRequest body is part of StorageVolumeV2 object which
takes in a String containing the update to be made, which is
converted to StorageVolumeV2 object using an adaptor and processed.Updated
if successful.public TaskResourceV2 deleteStorageVolume(RestParams params, String resourceId, boolean aSync)
StorageVolumeClient
deleteStorageVolume
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public AttachableStorageVolumeCollection getAttachableVolumes(RestParams params)
StorageVolumeClient
getAttachableVolumes
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.AttachableStorageVolumeCollection
containing the attached storage
volume details.public StorageVolumeSnapshot getStorageVolumeSnapshot(RestParams params, String storageVolumeId, String snapshotId)
StorageVolumeClient
getStorageVolumeSnapshot
in interface StorageVolumeClient
params
- structure containing the connection details.storageVolumeId
- resource identifier for a storage volume as seen in HPE OneView.snapshotId
- resource identifier for the snapshot of the storage volume.StorageVolumeSnapshot
or null
in case the parameter snapshotId
does not match any existing storage volume snapshot.public StorageVolumeSnapshotCollection getAllStorageVolumeSnapshots(RestParams params, String storageVolumeId)
StorageVolumeClient
getAllStorageVolumeSnapshots
in interface StorageVolumeClient
params
- structure containing the connection details.storageVolumeId
- resource identifier for the storage volume as seen in HPE OneView.StorageVolumeSnapshotCollection
containing all snapshots for
the storage volume.public TaskResourceV2 createStorageVolumeSnapshot(RestParams params, String storageVolumeId, StorageVolumeSnapshot snapshot, boolean aSync)
StorageVolumeClient
createStorageVolumeSnapshot
in interface StorageVolumeClient
params
- structure containing the connection details.storageVolumeId
- resource identifier for a storage volume as seen in HPE OneView.snapshot
- StorageVolumeSnapshot
object containing the data to be used during
the snapshot creation.aSync
- flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public TaskResourceV2 deleteStorageVolumeSnapshot(RestParams params, String storageVolumeId, String snapshotId, boolean aSync)
StorageVolumeClient
deleteStorageVolumeSnapshot
in interface StorageVolumeClient
params
- structure containing the connection details.storageVolumeId
- resource identifier for a storage volume as seen in HPE OneView.snapshotId
- resource identifier for the snapshot of the storage volume.aSync
- flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public ExtraStorageVolumeCollection getExtraManagedStorageVolumePaths(RestParams params)
StorageVolumeClient
getExtraManagedStorageVolumePaths
in interface StorageVolumeClient
params
- structure containing the connection details.ExtraStorageVolumeCollection
containing the resources found.public TaskResourceV2 repairExtraManagedStorageVolumePath(RestParams params, ExtraStorageVolumeRepair repair, boolean aSync)
StorageVolumeClient
repairExtraManagedStorageVolumePath
in interface StorageVolumeClient
params
- structure containing the connection details.repair
- information about the extra paths to delete.aSync
- flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public String getId(RestParams params, String name)
StorageVolumeClient
getId
in interface StorageVolumeClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage volume name as seen in HPE OneView.Copyright © 2016. All rights reserved.