public class StorageSystemClientImpl extends Object implements StorageSystemClient
Modifier | Constructor and Description |
---|---|
protected |
StorageSystemClientImpl(StorageSystemAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
String |
createStorageSystem(RestParams params,
AddStorageSystemCredentials addStorageSystemCredentialsDto,
boolean useJsonRequest)
The module aids in creation of storage system when provided with the
storage system details as
AddStorageSystemCredentials object or
JsonRequest. |
String |
deleteStorageSystem(RestParams params,
String resourceId)
The module aids in deleting a storage system for the specified storage system resource identifier.
|
StorageTargetPortCollection |
getAllManagedPortsForStorageSystem(RestParams params,
String resourceId)
This module aids in retrieving all managed target ports for the specified storage system.
|
StorageSystemCollection |
getAllStorageSystems(RestParams params)
The module aids in fetching the storage system details for all the
storage system found under the current HPE OneView.
|
static StorageSystemClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the storage system resource identifier for the
storage system name as specified in HPE OneView.
|
StorageTargetPortV2 |
getManagedPortsForStorageSystem(RestParams params,
String resourceId,
String targetPortId)
This module aids in retrieving a managed target ports for the specified storage system.
|
StoragePoolCollection |
getStoragePoolsForStorageSystem(RestParams params,
String arrayId)
This module aids in retrieving a list of storage pools belonging to the
storage system referred by the path property {arrayId} parameter.
|
StorageSystemV2 |
getStorageSystem(RestParams params,
String resourceId)
The module aids in fetching the storage system details for the specified
storage system resource identifier.
|
StorageSystemV2 |
getStorageSystemByName(RestParams params,
String name)
The module aids in fetching the storage system details for the
storage system name as specified in HPE OneView.
|
List<String> |
getStorageSystemHostTypes(RestParams params)
The module aids in fetching the list of supported storage host types.
|
String |
updateStorageSystem(RestParams params,
String resourceId,
StorageSystemV2 storageSystemDto,
boolean useJsonRequest)
The module takes in an
StorageSystemV2 object or JsonRequest and updates
the existing storage system based on resource identifier. |
protected StorageSystemClientImpl(StorageSystemAdaptor adaptor)
public static StorageSystemClient getClient()
public StorageSystemV2 getStorageSystem(RestParams params, String resourceId)
StorageSystemClient
getStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage system as seen in HPE OneView.StorageSystemV2
containing the storage system details.public StoragePoolCollection getStoragePoolsForStorageSystem(RestParams params, String arrayId)
StorageSystemClient
getStoragePoolsForStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.arrayId
- The array identifier for a storage system as seen in HPE OneView.StoragePoolCollection
containing a collection of storage system details.public StorageTargetPortCollection getAllManagedPortsForStorageSystem(RestParams params, String resourceId)
StorageSystemClient
getAllManagedPortsForStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for a storage system as seen in HPE OneView.StorageTargetPortCollection
containing a collection of storage target port details.public StorageTargetPortV2 getManagedPortsForStorageSystem(RestParams params, String resourceId, String targetPortId)
StorageSystemClient
getManagedPortsForStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage system as seen in HPE OneView.targetPortId
- The target port identifier where the managed port is defined.public List<String> getStorageSystemHostTypes(RestParams params)
StorageSystemClient
getStorageSystemHostTypes
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.public StorageSystemCollection getAllStorageSystems(RestParams params)
StorageSystemClient
getAllStorageSystems
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.StorageSystemCollection
containing a collection storage system details.public StorageSystemV2 getStorageSystemByName(RestParams params, String name)
StorageSystemClient
getStorageSystemByName
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage system name as seen in HPE OneView.StorageSystemV2
containing the storage system details.public String createStorageSystem(RestParams params, AddStorageSystemCredentials addStorageSystemCredentialsDto, boolean useJsonRequest)
StorageSystemClient
AddStorageSystemCredentials
object or
JsonRequest.createStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.addStorageSystemCredentialsDto
- Object containing the storage system details, used to create a storage system.useJsonRequest
- The JsonRequest body is part of AddStorageSystemCredentials object which
takes in a String containing new storage system details, which
is converted to AddStorageSystemCredentials object using an adaptor and
processed.Created
if successful.public String updateStorageSystem(RestParams params, String resourceId, StorageSystemV2 storageSystemDto, boolean useJsonRequest)
StorageSystemClient
StorageSystemV2
object or JsonRequest and updates
the existing storage system based on resource identifier. This can also be used
for updating the storage path of storage system.updateStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage system as seen in HPE OneView.storageSystemDto
- Object containing the storage system details, used to update a storage system.useJsonRequest
- The JsonRequest body is part of StorageSystemV2 object which
takes in a String containing the update to be made, which is
converted to StorageSystemV2 object using an adaptor and processed.Updated
if successful.public String deleteStorageSystem(RestParams params, String resourceId)
StorageSystemClient
deleteStorageSystem
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage system as seen in HPE OneView.Deleted
if successful.public String getId(RestParams params, String name)
StorageSystemClient
getId
in interface StorageSystemClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage system name as seen in HPE OneView.Copyright © 2016. All rights reserved.