public class LogicalEnclosureClientImpl extends Object implements LogicalEnclosureClient
Modifier | Constructor and Description |
---|---|
protected |
LogicalEnclosureClientImpl(LogicalEnclosureAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createLogicalEnclosure(RestParams params,
AddLogicalEnclosure addLogicalEnclosureDto,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of logical enclosure when provided with the logical enclosure
details as AddEnclosure object or JsonRequest.
|
TaskResourceV2 |
createSupportDump(RestParams params,
SupportDump supportDumpDto,
String resourceId,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of a support dump for the logical enclosure with the
specified resource identifier.
|
TaskResourceV2 |
deleteLogicalEnclosure(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a logical enclosure for the specified logical enclosure
resource identifier.
|
LogicalEnclosureList |
getAllLogicalEnclosures(RestParams params)
The module aids in fetching the logical enclosure details for all logical enclosures
registered under the current HPE OneView.
|
static LogicalEnclosureClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the logical enclosure resource identifier for
the logical enclosure name as specified in HPE OneView.
|
LogicalEnclosure |
getLogicalEnclosure(RestParams params,
String resourceId)
The module aids in fetching the logical enclosure details for the specified
logical enclosure resource identifier.
|
LogicalEnclosure |
getLogicalEnclosureByName(RestParams params,
String name)
The module aids in fetching the logical enclosure details for the specified
logical enclosure name.
|
String |
getScript(RestParams params,
String resourceId)
The module aids in fetching the configuration script for the specified
logical enclosure resource identifier.
|
TaskResourceV2 |
patchLogicalEnclosure(RestParams params,
String resourceId,
Patch patchDto,
boolean aSync,
boolean useJsonRequest)
The module takes in a Patch object or JsonRequest and updates the
existing logical enclosure based on the resource identifier and the content of the Patch object.
|
TaskResourceV2 |
updateConfiguration(RestParams params,
String resourceId,
boolean aSync)
This method aids in reapplying the logical enclosure configuration.
|
TaskResourceV2 |
updateFromGroup(RestParams params,
String resourceId,
boolean aSync)
This method aids in updating the logical enclosure to be consistent with the
enclosure group when the logical enclosure is in an inconsistent state.
|
TaskResourceV2 |
updateLogicalEnclosure(RestParams params,
String resourceId,
LogicalEnclosure logicalEnclosureDto,
boolean aSync,
boolean useJsonRequest)
The module takes in an LogicalEnclosure object or JsonRequest and updates the
existing logical enclosure based on resource identifier.
|
TaskResourceV2 |
updateScript(RestParams params,
String resourceId,
String scriptData,
boolean aSync)
The module aids in updating the configuration script for the specified
logical enclosure resource identifier.
|
protected LogicalEnclosureClientImpl(LogicalEnclosureAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static LogicalEnclosureClient getClient()
public LogicalEnclosure getLogicalEnclosure(RestParams params, String resourceId)
LogicalEnclosureClient
getLogicalEnclosure
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.LogicalEnclosure
containing the logical enclosure details.public LogicalEnclosureList getAllLogicalEnclosures(RestParams params)
LogicalEnclosureClient
getAllLogicalEnclosures
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.LogicalEnclosureList
containing the collection of logical enclosures.public LogicalEnclosure getLogicalEnclosureByName(RestParams params, String name)
LogicalEnclosureClient
getLogicalEnclosureByName
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the logical enclosure name as seen in HPE OneView.LogicalEnclosure
containing the logical enclosure details.public TaskResourceV2 createLogicalEnclosure(RestParams params, AddLogicalEnclosure addLogicalEnclosureDto, boolean aSync, boolean useJsonRequest)
LogicalEnclosureClient
createLogicalEnclosure
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.addLogicalEnclosureDto
- The connection details to fetch logical enclosure.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of AddLogicalEnclosure object which
takes in a String containing the new logical enclosure details, which
is converted to AddLogicalEnclosure object using adaptor and
processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateLogicalEnclosure(RestParams params, String resourceId, LogicalEnclosure logicalEnclosureDto, boolean aSync, boolean useJsonRequest)
LogicalEnclosureClient
updateLogicalEnclosure
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.logicalEnclosureDto
- This is a object containing the update to be made to existing
logical enclosure pointed to by the above mentioned resource identifieraSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of LogicalEnclosure object which takes
in a String containing the update to be made, which is
converted to LogicalEnclosure object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 patchLogicalEnclosure(RestParams params, String resourceId, Patch patchDto, boolean aSync, boolean useJsonRequest)
LogicalEnclosureClient
patchLogicalEnclosure
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.patchDto
- This is a object containing the update to be made to existing
logical enclosure pointed to by the above mentioned resource identifieraSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of Patch object which takes
in a String containing the update to be made, which is
converted to Patch object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteLogicalEnclosure(RestParams params, String resourceId, boolean aSync)
LogicalEnclosureClient
deleteLogicalEnclosure
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateFromGroup(RestParams params, String resourceId, boolean aSync)
LogicalEnclosureClient
updateFromGroup
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateConfiguration(RestParams params, String resourceId, boolean aSync)
LogicalEnclosureClient
updateConfiguration
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public String getScript(RestParams params, String resourceId)
LogicalEnclosureClient
getScript
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.public TaskResourceV2 updateScript(RestParams params, String resourceId, String scriptData, boolean aSync)
LogicalEnclosureClient
updateScript
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.scriptData
- The script data to be updated for logical enclosure.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 createSupportDump(RestParams params, SupportDump supportDumpDto, String resourceId, boolean aSync, boolean useJsonRequest)
LogicalEnclosureClient
createSupportDump
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.supportDumpDto
- The details to create the support dump.resourceId
- The resource identifier for logical enclosure as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of SupportDump object which
takes in a String containing the support dump details, which
is converted to SupportDump object using adaptor and
processed.TaskResourceV2
containing the task status for the process.public String getId(RestParams params, String name)
LogicalEnclosureClient
getId
in interface LogicalEnclosureClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the logical enclosure name as seen in HPE OneView.Copyright © 2016. All rights reserved.