public class DataCenterClientImpl extends Object implements DataCenterClient
Modifier and Type | Method and Description |
---|---|
DataCenter |
addDataCenter(RestParams params,
DataCenter dataCenter)
Adds a data center according to the provided
DataCenter object. |
ResourceCollection<DataCenter> |
getAllDataCenters(RestParams params)
Retrieves a
ResourceCollection <DataCenter > containing details
for all the available data centers found under the current HPE OneView. |
static DataCenterClient |
getClient() |
DataCenter |
getDataCenter(RestParams params,
String resourceId)
Retrieves the
DataCenter details for the specified
data center. |
DataCenter |
getDataCenterByName(RestParams params,
String name)
Retrieves the
DataCenter details for the specified
data center identified by name. |
String |
getId(RestParams params,
String name)
Retrieves the data center resource identifier for the specified
data center identified by name.
|
List<VisualContent> |
getVisualContent(RestParams params,
String resourceId)
Retrieves a
List <VisualContent > describing each rack
within the data center. |
String |
removeDataCenter(RestParams params,
String resourceId)
Removes the
DataCenter identified by the given resource identifier. |
TaskResourceV2 |
removeDataCenterByFilter(RestParams params,
String filter,
boolean aSync)
Removes the
DataCenter (s) matching the filter. |
DataCenter |
updateDataCenter(RestParams params,
String resourceId,
DataCenter dataCenter)
Updates a
DataCenter identified by the given resource identifier. |
public static DataCenterClient getClient()
public DataCenter getDataCenter(RestParams params, String resourceId)
DataCenterClient
DataCenter
details for the specified
data center.getDataCenter
in interface DataCenterClient
params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.DataCenter
object containing the details.public ResourceCollection<DataCenter> getAllDataCenters(RestParams params)
DataCenterClient
ResourceCollection
<DataCenter
> containing details
for all the available data centers found under the current HPE OneView.getAllDataCenters
in interface DataCenterClient
params
- structure containing the connection details.ResourceCollection
<DataCenter
> containing
the details for all found data centers.public DataCenter getDataCenterByName(RestParams params, String name)
DataCenterClient
DataCenter
details for the specified
data center identified by name.getDataCenterByName
in interface DataCenterClient
params
- structure containing the connection details.name
- data center name as seen in HPE OneView.DataCenter
object containing the details.public DataCenter addDataCenter(RestParams params, DataCenter dataCenter)
DataCenterClient
DataCenter
object.addDataCenter
in interface DataCenterClient
params
- structure containing the connection details.dataCenter
- object containing the data center details.DataCenter
containing the added data center.public DataCenter updateDataCenter(RestParams params, String resourceId, DataCenter dataCenter)
DataCenterClient
DataCenter
identified by the given resource identifier.updateDataCenter
in interface DataCenterClient
params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.dataCenter
- object containing the data center details.DataCenter
containing the data center updated.public String removeDataCenter(RestParams params, String resourceId)
DataCenterClient
DataCenter
identified by the given resource identifier.removeDataCenter
in interface DataCenterClient
params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.public TaskResourceV2 removeDataCenterByFilter(RestParams params, String filter, boolean aSync)
DataCenterClient
DataCenter
(s) matching the filter. A filter is required
to identify the set of resources to be removed. The actual deletion will proceed
asynchronously. Although, the method can process the request asynchronously or
synchronously, based on the aSync flag input.removeDataCenterByFilter
in interface DataCenterClient
params
- structure containing the connection details.filter
- A general filter/query string that narrows the list of resources.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public List<VisualContent> getVisualContent(RestParams params, String resourceId)
DataCenterClient
List
<VisualContent
> describing each rack
within the data center.getVisualContent
in interface DataCenterClient
params
- structure containing the connection details.resourceId
- data center resource identifier as seen in HPE OneView.List
<VisualContent
> containing the details of each rack
within the data center.public String getId(RestParams params, String name)
DataCenterClient
getId
in interface DataCenterClient
params
- structure containing the connection details.name
- data center name as seen in HPE OneView.Copyright © 2016. All rights reserved.