public class EnclosureGroupClientImpl extends Object implements EnclosureGroupClient
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
protected |
EnclosureGroupClientImpl(EnclosureGroupAdaptor adaptor,
TaskAdaptor taskAdaptor) |
Modifier and Type | Method and Description |
---|---|
EnclosureGroups |
createEnclosureGroup(RestParams params,
EnclosureGroups dto,
boolean useJsonRequest)
The module aids in the creation of an enclosure group when provided with the
enclosure group details as EnclosureGroups object or JsonRequest.
|
String |
deleteEnclosureGroup(RestParams params,
String resourceId)
The module aids in deleting an enclosure group for the specified enclosure
group resource identifier.
|
EnclosureGroupCollectionV2 |
getAllEnclosureGroups(RestParams params)
The module aids in fetching the enclosure group details for all enclosure
groups registered under the current HPE OneView.
|
static EnclosureGroupClient |
getClient() |
String |
getConfigurationScript(RestParams params,
String resourceId)
The module aids in fetching the configuration script for the specified
enclosure group resource identifier.
|
EnclosureGroups |
getEnclosureGroup(RestParams params,
String resourceId)
The module aids in fetching the enclosure group details for the specified
enclosure group resource identifier.
|
EnclosureGroups |
getEnclosureGroupByName(RestParams params,
String name)
The module aids in fetching the enclosure group details for the specified
enclosure group name.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the enclosure group resource identifier for the
enclosure group name as specified in HPE OneView.
|
String |
updateConfigurationScript(RestParams params,
String resourceId,
String scriptData)
The module aids in updating the configuration script for the specified
enclosure group resource identifier.
|
EnclosureGroups |
updateEnclosureGroup(RestParams params,
String resourceId,
EnclosureGroups enclosureGroupDto,
boolean useJsonRequest)
The module takes in an EnclosureGroups object or JsonRequest and updates
the existing enclosure group based on resource identifier.
|
protected EnclosureGroupClientImpl(EnclosureGroupAdaptor adaptor, TaskAdaptor taskAdaptor)
public static EnclosureGroupClient getClient()
public EnclosureGroups getEnclosureGroup(RestParams params, String resourceId)
EnclosureGroupClient
getEnclosureGroup
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure group as seen in HPE OneView.EnclosureGroups
containing the enclosure group details.public EnclosureGroupCollectionV2 getAllEnclosureGroups(RestParams params)
EnclosureGroupClient
getAllEnclosureGroups
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.EnclosureGroupCollectionV2
containing a collection of enclosure group details.public EnclosureGroups getEnclosureGroupByName(RestParams params, String name)
EnclosureGroupClient
getEnclosureGroupByName
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the enclosure group name as seen in HPE OneView.EnclosureGroups
containing the enclosure group details.public EnclosureGroups createEnclosureGroup(RestParams params, EnclosureGroups dto, boolean useJsonRequest)
EnclosureGroupClient
createEnclosureGroup
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.dto
- This is an object containing the enclosure group details, used
to create an enclosure group.useJsonRequest
- The JsonRequest body is part of EnclosureGroups
object which
takes in a String containing the new enclosure group details,
which is converted to EnclosureGroups
object using adaptor and
processed.EnclosureGroups
containing the enclosure group details.public EnclosureGroups updateEnclosureGroup(RestParams params, String resourceId, EnclosureGroups enclosureGroupDto, boolean useJsonRequest)
EnclosureGroupClient
updateEnclosureGroup
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure group as seen in HPE OneView.enclosureGroupDto
- This is a object containing the update to be made to existing
EnclosureGroup pointed to by the above mentioned resource identifier.useJsonRequest
- The JsonRequest body is part of EnclosureGroups
object which
takes in a String containing the update to be made, which is
converted to EnclosureGroups
object using adaptor and
processed.EnclosureGroups
containing the enclosure group details.public String deleteEnclosureGroup(RestParams params, String resourceId)
EnclosureGroupClient
deleteEnclosureGroup
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure group as seen in HPE OneView.public String getConfigurationScript(RestParams params, String resourceId)
EnclosureGroupClient
getConfigurationScript
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure group as seen in HPE OneView.public String updateConfigurationScript(RestParams params, String resourceId, String scriptData)
EnclosureGroupClient
updateConfigurationScript
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure group as seen in HPE OneView.scriptData
- THe script data to be updated for enclosure group.public String getId(RestParams params, String name)
EnclosureGroupClient
getId
in interface EnclosureGroupClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the enclosure group name as seen in HPE OneView.Copyright © 2016. All rights reserved.