public class UnmanagedDeviceClientImpl extends Object implements UnmanagedDeviceClient
Modifier and Type | Method and Description |
---|---|
UnmanagedDevice |
addUnmanagedDevice(RestParams params,
UnmanagedDevice unmanagedDevice)
Adds an unmanaged device according to the provided
UnmanagedDevice object. |
ResourceCollection<UnmanagedDevice> |
getAllUnmanagedDevices(RestParams params)
Retrieves a
ResourceCollection <UnmanagedDevice > containing details
for all the available unmanaged devices found under the current HPE OneView. |
static UnmanagedDeviceClient |
getClient() |
EnvironmentalConfiguration |
getEnvironmentalConfiguration(RestParams params,
String resourceId)
Returns a description of the environmental configuration (supported feature set,
calibrated minimum and maximum power, location and dimensions, ...) of the resource.
|
String |
getId(RestParams params,
String name)
Retrieves the unmanaged device resource identifier for the specified
unmanaged device identified by name.
|
UnmanagedDevice |
getUnmanagedDevice(RestParams params,
String resourceId)
Retrieves the
UnmanagedDevice details for the specified
unmanaged device. |
UnmanagedDevice |
getUnmanagedDeviceByName(RestParams params,
String name)
Retrieves the
UnmanagedDevice details for the specified
unmanaged device identified by name. |
String |
removeUnmanagedDevice(RestParams params,
String resourceId)
Removes the
UnmanagedDevice identified by the given resource identifier. |
TaskResourceV2 |
removeUnmanagedDeviceByFilter(RestParams params,
String filter,
boolean aSync)
Removes the
UnmanagedDevice (s) matching the filter. |
UnmanagedDevice |
updateUnmanagedDevice(RestParams params,
String resourceId,
UnmanagedDevice unmanagedDevice)
Updates an
UnmanagedDevice identified by the given resource identifier. |
public static UnmanagedDeviceClient getClient()
public UnmanagedDevice getUnmanagedDevice(RestParams params, String resourceId)
UnmanagedDeviceClient
UnmanagedDevice
details for the specified
unmanaged device.getUnmanagedDevice
in interface UnmanagedDeviceClient
params
- structure containing the connection details.resourceId
- unmanaged device resource identifier as seen in HPE OneView.UnmanagedDevice
object containing the details.public ResourceCollection<UnmanagedDevice> getAllUnmanagedDevices(RestParams params)
UnmanagedDeviceClient
ResourceCollection
<UnmanagedDevice
> containing details
for all the available unmanaged devices found under the current HPE OneView.getAllUnmanagedDevices
in interface UnmanagedDeviceClient
params
- structure containing the connection details.ResourceCollection
<UnmanagedDevice
> containing
the details for all found unmanaged devices.public UnmanagedDevice getUnmanagedDeviceByName(RestParams params, String name)
UnmanagedDeviceClient
UnmanagedDevice
details for the specified
unmanaged device identified by name.getUnmanagedDeviceByName
in interface UnmanagedDeviceClient
params
- structure containing the connection details.name
- unmanaged device name as seen in HPE OneView.UnmanagedDevice
object containing the details.public UnmanagedDevice addUnmanagedDevice(RestParams params, UnmanagedDevice unmanagedDevice)
UnmanagedDeviceClient
UnmanagedDevice
object.addUnmanagedDevice
in interface UnmanagedDeviceClient
params
- structure containing the connection details.unmanagedDevice
- object containing the unmanaged device details.UnmanagedDevice
containing the added unmanaged device.public UnmanagedDevice updateUnmanagedDevice(RestParams params, String resourceId, UnmanagedDevice unmanagedDevice)
UnmanagedDeviceClient
UnmanagedDevice
identified by the given resource identifier.updateUnmanagedDevice
in interface UnmanagedDeviceClient
params
- structure containing the connection details.resourceId
- unmanaged device resource identifier as seen in HPE OneView.unmanagedDevice
- object containing the unmanaged device details.UnmanagedDevice
containing the unmanaged device updated.public String removeUnmanagedDevice(RestParams params, String resourceId)
UnmanagedDeviceClient
UnmanagedDevice
identified by the given resource identifier.removeUnmanagedDevice
in interface UnmanagedDeviceClient
params
- structure containing the connection details.resourceId
- unmanaged device resource identifier as seen in HPE OneView.public TaskResourceV2 removeUnmanagedDeviceByFilter(RestParams params, String filter, boolean aSync)
UnmanagedDeviceClient
UnmanagedDevice
(s) matching the filter. A filter is required
to identify the set of resources to be removed. The actual removal will proceed
asynchronously. Although, the method can process the request asynchronously or
synchronously, based on the aSync flag input.removeUnmanagedDeviceByFilter
in interface UnmanagedDeviceClient
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 EnvironmentalConfiguration getEnvironmentalConfiguration(RestParams params, String resourceId)
UnmanagedDeviceClient
getEnvironmentalConfiguration
in interface UnmanagedDeviceClient
params
- structure containing the connection details.resourceId
- unmanaged device resource identifier as seen in HPE OneView.EnvironmentalConfiguration
containing the description of the
environmental configuration.public String getId(RestParams params, String name)
UnmanagedDeviceClient
getId
in interface UnmanagedDeviceClient
params
- structure containing the connection details.name
- unmanaged device name as seen in HPE OneView.Copyright © 2016. All rights reserved.