public class StorageVolumeTemplateClientImpl extends Object implements StorageVolumeTemplateClient
Modifier | Constructor and Description |
---|---|
protected |
StorageVolumeTemplateClientImpl(HttpRestClient restClient,
StorageVolumeTemplateAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
StorageVolumeTemplate |
createStorageVolumeTemplate(RestParams params,
StorageVolumeTemplate storageVolumeTemplateDto,
boolean aSync,
boolean useJsonRequest)
The module aids in the creation of a storage volume template when provided with
the storage volume template details as a StorageVolumeTemplate object or
JsonRequest.
|
String |
deleteStorageVolumeTemplate(RestParams params,
String resourceId)
The module aids in deleting a storage volume template for the specified
storage volume template resource identifier.
|
StorageVolumeTemplateCollection |
getAllStorageVolumeTemplates(RestParams params)
The module aids in fetching the storage volume template details for all the
storage volume templates found under the current HPE OneView.
|
static StorageVolumeTemplateClient |
getClient() |
ConnectableStorageVolumeTemplateCollection |
getConnectableVolumeTemplates(RestParams params)
This module aids in fetching the storage volume templates that are
available on the specified networks based on the storage system port's
expected network connectivity.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the storage volume template resource identifier for the
storage volume template name as specified in HPE OneView.
|
StorageVolumeTemplate |
getStorageVolumeTemplate(RestParams params,
String resourceId)
The module aids in fetching the storage volume template details for the
specified storage volume template resource identifier.
|
StorageVolumeTemplate |
getStorageVolumeTemplateByName(RestParams params,
String name)
The module aids in fetching the storage volume template details for the
storage volume template name as specified in HPE OneView.
|
StorageVolumeTemplate |
updateStorageVolumeTemplate(RestParams params,
String resourceId,
StorageVolumeTemplate storageVolumeTemplateDto,
boolean useJsonRequest)
The module takes in an StorageVolumeTemplate object or JsonRequest and
updates the existing storage volume template based on the resource identifier.
|
protected StorageVolumeTemplateClientImpl(HttpRestClient restClient, StorageVolumeTemplateAdaptor adaptor)
public static StorageVolumeTemplateClient getClient()
public StorageVolumeTemplate getStorageVolumeTemplate(RestParams params, String resourceId)
StorageVolumeTemplateClient
getStorageVolumeTemplate
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume template as seen in HPE OneView.StorageVolumeTemplate
containing the storage volume template details.public StorageVolumeTemplateCollection getAllStorageVolumeTemplates(RestParams params)
StorageVolumeTemplateClient
getAllStorageVolumeTemplates
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.StorageVolumeTemplateCollection
containing a collection of
storage volume template details.public StorageVolumeTemplate getStorageVolumeTemplateByName(RestParams params, String name)
StorageVolumeTemplateClient
getStorageVolumeTemplateByName
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage volume template name as seen in HPE OneView.StorageVolumeTemplate
containing the storage volume template details.public StorageVolumeTemplate createStorageVolumeTemplate(RestParams params, StorageVolumeTemplate storageVolumeTemplateDto, boolean aSync, boolean useJsonRequest)
StorageVolumeTemplateClient
createStorageVolumeTemplate
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.storageVolumeTemplateDto
- Object containing the storage volume template details,
used to create a storage volume template.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of StorageVolumeTemplate object
which takes in a String containing the new storage volume template
details, which is converted to a StorageVolumeTemplate object
using an adaptor and processed.StorageVolumeTemplate
containing the storage volume template details.public StorageVolumeTemplate updateStorageVolumeTemplate(RestParams params, String resourceId, StorageVolumeTemplate storageVolumeTemplateDto, boolean useJsonRequest)
StorageVolumeTemplateClient
updateStorageVolumeTemplate
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume template as seen in HPE OneView.storageVolumeTemplateDto
- This is a object containing the storage volume template details,
used to update a storage volume template.useJsonRequest
- The JsonRequest body is part of StorageVolumeTemplate object
which takes in a String containing the update to be made,
which is converted to StorageVolumeTemplate object using an
adaptor and processed.StorageVolumeTemplate
containing the storage volume template details.public String deleteStorageVolumeTemplate(RestParams params, String resourceId)
StorageVolumeTemplateClient
deleteStorageVolumeTemplate
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for storage volume template as seen in HPE OneView.Deleted
if successful.public ConnectableStorageVolumeTemplateCollection getConnectableVolumeTemplates(RestParams params)
StorageVolumeTemplateClient
getConnectableVolumeTemplates
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.ConnectableStorageVolumeTemplateCollection
storage volume templates
on the specified networks based on the storage system port.public String getId(RestParams params, String name)
StorageVolumeTemplateClient
getId
in interface StorageVolumeTemplateClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the storage volume template name as seen in HPE OneView.Copyright © 2016. All rights reserved.