public class EnclosureClientImpl extends Object implements EnclosureClient
Modifier | Constructor and Description |
---|---|
protected |
EnclosureClientImpl(EnclosureAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createEnclosure(RestParams params,
AddEnclosureV2 enclosureDto,
boolean aSync,
boolean useJsonRequest)
The module aids in the creation of an enclosure when provided with the enclosure
details as an AddEnclosure object or JsonRequest.
|
TaskResourceV2 |
deleteEnclosure(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting an enclosure for the specified enclosure
resource identifier.
|
SsoUrlData |
getActiveOaSsoUrl(RestParams params,
String resourceId)
This method aids in fetching data that can be used to construct a single
sign-on URL for an Onboard Administrator.
|
EnclosureCollectionV2 |
getAllEnclosures(RestParams params)
The module aids in fetching the enclosure details for all enclosures
registered under the current HPE OneView.
|
static EnclosureClient |
getClient() |
Enclosures |
getEnclosure(RestParams params,
String resourceId)
The module aids in fetching the enclosure details for the specified
enclosure resource identifier.
|
Enclosures |
getEnclosureByName(RestParams params,
String name)
The module aids in fetching the enclosure details for the specified
enclosure name.
|
EnvironmentalConfiguration |
getEnvironmentalConfiguration(RestParams params,
String resourceId)
This method aids in fetching the environmental configuration of the
enclosure identified by the given enclosure identifier.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the enclosure resource identifier for the enclosure name
as specified in HPE OneView.
|
String |
getScript(RestParams params,
String resourceId)
The module aids in fetching the configuration script for the specified
enclosure resource identifier.
|
SsoUrlData |
getStandbyOaSsoUrl(RestParams params,
String resourceId)
This method aids in fetching data that can be used to construct a single
sign-on URL for an onboard administrator.
|
UtilizationData |
getUtilization(RestParams params,
String resourceId)
This method aids in retrieving historical utilization data for the
specified enclosure.
|
TaskResourceV2 |
patchEnclosure(RestParams params,
String resourceId,
Patch patchDto,
boolean aSync)
The module takes in a Patch object or JsonRequest and updates the
existing enclosure based on the resource identifier and the content of the Patch object.
|
TaskResourceV2 |
updateCompliance(RestParams params,
String resourceId,
boolean aSync)
This method aids in updating the enclosure configuration with that of
the enclosure group script.
|
TaskResourceV2 |
updateConfiguration(RestParams params,
String resourceId,
boolean aSync)
This method aids in reapplying the enclosure configuration.
|
TaskResourceV2 |
updateEnclosure(RestParams params,
String resourceId,
Enclosures enclosureDto,
boolean aSync,
boolean useJsonRequest)
The module takes in an enclosure object or JsonRequest and updates the
existing enclosure based on the resource identifier.
|
TaskResourceV2 |
updateEnclosureFwBaseline(RestParams params,
String resourceId,
FwBaselineConfig fwBaselineConfigDto,
boolean aSync)
This method aids in applying the firmware baseline to the enclosure.
|
EnvironmentalConfiguration |
updateEnvironmentalConfiguration(RestParams params,
String resourceId,
EnvironmentalConfigurationUpdate environmentalConfigurationUpdateDto)
This method aids in updating the environmental configuration of the
enclosure resource identifier.
|
TaskResourceV2 |
updateRefreshState(RestParams params,
String resourceId,
RefreshStateConfig refreshStateConfigDto,
boolean aSync)
This method aids in refreshing the enclosure to fix configuration issues.
|
TaskResourceV2 |
updateScript(RestParams params,
String resourceId,
String scriptData,
boolean aSync,
boolean useJsonRequest)
The module aids in updating the configuration script for the specified
enclosure resource identifier.
|
protected EnclosureClientImpl(EnclosureAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static EnclosureClient getClient()
public Enclosures getEnclosure(RestParams params, String resourceId)
EnclosureClient
getEnclosure
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.Enclosures
containing the enclosure details.public EnclosureCollectionV2 getAllEnclosures(RestParams params)
EnclosureClient
getAllEnclosures
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.public Enclosures getEnclosureByName(RestParams params, String name)
EnclosureClient
getEnclosureByName
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the enclosure name as seen in HPE.Enclosures
containing the enclosure details.public TaskResourceV2 createEnclosure(RestParams params, AddEnclosureV2 enclosureDto, boolean aSync, boolean useJsonRequest)
EnclosureClient
createEnclosure
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.enclosureDto
- The enclosure information that should be created.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of AddEnclosure object which
takes in a String containing the new enclosure details, which
is converted to AddEnclosure object using adaptor and
processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateEnclosure(RestParams params, String resourceId, Enclosures enclosureDto, boolean aSync, boolean useJsonRequest)
EnclosureClient
updateEnclosure
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.enclosureDto
- This is a object containing the update to be made to existing
enclosure pointed to by the above mentioned resource identifier.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of Enclosures object which takes
in a String containing the update to be made, which is
converted to Enclosure object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 patchEnclosure(RestParams params, String resourceId, Patch patchDto, boolean aSync)
EnclosureClient
patchEnclosure
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.patchDto
- This is a object containing the update to be made to existing
enclosure pointed to by the above mentioned resource identifier.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteEnclosure(RestParams params, String resourceId, boolean aSync)
EnclosureClient
deleteEnclosure
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public SsoUrlData getActiveOaSsoUrl(RestParams params, String resourceId)
EnclosureClient
getActiveOaSsoUrl
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.public TaskResourceV2 updateCompliance(RestParams params, String resourceId, boolean aSync)
EnclosureClient
updateCompliance
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for 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)
EnclosureClient
updateConfiguration
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for 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 updateEnclosureFwBaseline(RestParams params, String resourceId, FwBaselineConfig fwBaselineConfigDto, boolean aSync)
EnclosureClient
updateEnclosureFwBaseline
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.fwBaselineConfigDto
- fwBaselineConfig is the firmware baseline to be applied to the
enclosureaSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public EnvironmentalConfiguration getEnvironmentalConfiguration(RestParams params, String resourceId)
EnclosureClient
getEnvironmentalConfiguration
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.EnvironmentalConfiguration
of the enclosure resource.public EnvironmentalConfiguration updateEnvironmentalConfiguration(RestParams params, String resourceId, EnvironmentalConfigurationUpdate environmentalConfigurationUpdateDto)
EnclosureClient
updateEnvironmentalConfiguration
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.environmentalConfigurationUpdateDto
- environmentalConfiguration, environmental configuration of
enclosure resource specifying the cpu, power value.EnvironmentalConfiguration
of the enclosure resource.public TaskResourceV2 updateRefreshState(RestParams params, String resourceId, RefreshStateConfig refreshStateConfigDto, boolean aSync)
EnclosureClient
updateRefreshState
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.refreshStateConfigDto
- refreshStateConfigDto, RefreshStateConfig containing the
refresh state details to fix configuration issues.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public String getScript(RestParams params, String resourceId)
EnclosureClient
getScript
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.public TaskResourceV2 updateScript(RestParams params, String resourceId, String scriptData, boolean aSync, boolean useJsonRequest)
EnclosureClient
updateScript
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.scriptData
- The script data to be updated for enclosure.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of Enclosure object which takes
in a String containing the update to be made, which is
converted to FwBaselineConfig object using adaptor and
processed.TaskResourceV2
containing the task status for the process.public SsoUrlData getStandbyOaSsoUrl(RestParams params, String resourceId)
EnclosureClient
getStandbyOaSsoUrl
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.SsoUrlData
containing the data used for single sign URL for onboard
administrator.public UtilizationData getUtilization(RestParams params, String resourceId)
EnclosureClient
getUtilization
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for enclosure as seen in HPE OneView.UtilizationData
containing resource data utilization such as power, cpu.public String getId(RestParams params, String name)
EnclosureClient
getId
in interface EnclosureClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the enclosure name as seen in HPE OneView.Copyright © 2016. All rights reserved.