public class RackClientImpl extends Object implements RackClient
| Modifier and Type | Method and Description |
|---|---|
Rack |
addRack(RestParams params,
Rack rack)
Adds a rack according to the provided
Rack object. |
ResourceCollection<Rack> |
getAllRacks(RestParams params)
Retrieves a
ResourceCollection<Rack> containing details
for all the available racks found under the current HPE OneView. |
static RackClient |
getClient() |
TopologyInformation |
getDeviceTopology(RestParams params,
String resourceId)
Retrieves the topology information for the rack resource specified by
the given identifier.
|
String |
getId(RestParams params,
String name)
Retrieves the rack resource identifier for the specified
rack identified by name.
|
Rack |
getRack(RestParams params,
String resourceId)
Retrieves the
Rack details for the specified rack. |
Rack |
getRackByName(RestParams params,
String name)
Retrieves the
Rack details for the specified
rack identified by name. |
String |
removeRack(RestParams params,
String resourceId)
Removes the
Rack identified by the given resource identifier. |
TaskResourceV2 |
removeRackByFilter(RestParams params,
String filter,
boolean aSync)
Removes the
Rack(s) matching the filter. |
Rack |
updateRack(RestParams params,
String resourceId,
Rack rack)
Updates a
Rack identified by the given resource identifier. |
public static RackClient getClient()
public Rack getRack(RestParams params, String resourceId)
RackClientRack details for the specified rack.getRack in interface RackClientparams - structure containing the connection details.resourceId - rack resource identifier as seen in HPE OneView.Rack object containing the details.public ResourceCollection<Rack> getAllRacks(RestParams params)
RackClientResourceCollection<Rack> containing details
for all the available racks found under the current HPE OneView.getAllRacks in interface RackClientparams - structure containing the connection details.ResourceCollection<Rack> containing
the details for all found racks.public Rack getRackByName(RestParams params, String name)
RackClientRack details for the specified
rack identified by name.getRackByName in interface RackClientparams - structure containing the connection details.name - rack name as seen in HPE OneView.Rack object containing the details.public Rack addRack(RestParams params, Rack rack)
RackClientRack object.addRack in interface RackClientparams - structure containing the connection details.rack - object containing the rack details.Rack containing the added rack.public Rack updateRack(RestParams params, String resourceId, Rack rack)
RackClientRack identified by the given resource identifier.updateRack in interface RackClientparams - structure containing the connection details.resourceId - rack resource identifier as seen in HPE OneView.rack - object containing the rack details.Rack containing the rack updated.public String removeRack(RestParams params, String resourceId)
RackClientRack identified by the given resource identifier.removeRack in interface RackClientparams - structure containing the connection details.resourceId - rack resource identifier as seen in HPE OneView.public TaskResourceV2 removeRackByFilter(RestParams params, String filter, boolean aSync)
RackClientRack(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.removeRackByFilter in interface RackClientparams - 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 TopologyInformation getDeviceTopology(RestParams params, String resourceId)
RackClientgetDeviceTopology in interface RackClientparams - structure containing the connection details.resourceId - rack resource identifier as seen in HPE OneView.TopologyInformation containing the topology information for the rack.public String getId(RestParams params, String name)
RackClientgetId in interface RackClientparams - structure containing the connection details.name - rack name as seen in HPE OneView.Copyright © 2016. All rights reserved.