public class FcoeNetworkClientImpl extends Object implements FcoeNetworkClient
Modifier | Constructor and Description |
---|---|
protected |
FcoeNetworkClientImpl(HttpRestClient restClient,
ResourceAdaptor adaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createFcoeNetwork(RestParams params,
FcoeNetwork fcoeNetwork,
boolean aSync)
Creates an FCoE network according to the provided
FcoeNetwork
object. |
TaskResourceV2 |
deleteFcoeNetwork(RestParams params,
String resourceId,
boolean aSync)
Deletes the
FcoeNetwork identified by the given resource identifier. |
FcoeNetworkCollection |
getAllFcoeNetworks(RestParams params)
Retrieves an
FcoeNetworkCollection containing details
for all the available FCoE networks found under the current HPE OneView. |
static FcoeNetworkClient |
getClient() |
FcoeNetwork |
getFcoeNetwork(RestParams params,
String resourceId)
Retrieves the
FcoeNetwork details for the specified
FCoE network. |
FcoeNetwork |
getFcoeNetworkByName(RestParams params,
String name)
Retrieves the
FcoeNetwork details for the specified
FCoE network identified by name. |
String |
getId(RestParams params,
String name)
Retrieves the FCoE network resource identifier for the specified
FCoE network identified by name.
|
TaskResourceV2 |
updateFcoeNetwork(RestParams params,
String resourceId,
FcoeNetwork fcoeNetwork,
boolean aSync)
Updates an
FcoeNetwork identified by the given resource identifier. |
protected FcoeNetworkClientImpl(HttpRestClient restClient, ResourceAdaptor adaptor, TaskMonitorManager taskMonitor)
public static FcoeNetworkClient getClient()
public FcoeNetwork getFcoeNetwork(RestParams params, String resourceId)
FcoeNetworkClient
FcoeNetwork
details for the specified
FCoE network.getFcoeNetwork
in interface FcoeNetworkClient
params
- structure containing the connection details.resourceId
- FCoE network resource identifier as seen in HPE OneView.FcoeNetwork
object containing the details.public FcoeNetworkCollection getAllFcoeNetworks(RestParams params)
FcoeNetworkClient
FcoeNetworkCollection
containing details
for all the available FCoE networks found under the current HPE OneView.getAllFcoeNetworks
in interface FcoeNetworkClient
params
- structure containing the connection details.FcoeNetworkCollection
object containing the details
for all found FCoE networks.public FcoeNetwork getFcoeNetworkByName(RestParams params, String name)
FcoeNetworkClient
FcoeNetwork
details for the specified
FCoE network identified by name.getFcoeNetworkByName
in interface FcoeNetworkClient
params
- structure containing the connection details.name
- FCoE network name as seen in HPE OneView.FcoeNetwork
object containing the details.public TaskResourceV2 createFcoeNetwork(RestParams params, FcoeNetwork fcoeNetwork, boolean aSync)
FcoeNetworkClient
FcoeNetwork
object. The request can be processed asynchronously or synchronously.createFcoeNetwork
in interface FcoeNetworkClient
params
- structure containing the connection details.fcoeNetwork
- object containing the FCoE network details.aSync
- flag to indicate whether the request should be
processed asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateFcoeNetwork(RestParams params, String resourceId, FcoeNetwork fcoeNetwork, boolean aSync)
FcoeNetworkClient
FcoeNetwork
identified by the given resource identifier.updateFcoeNetwork
in interface FcoeNetworkClient
params
- structure containing the connection details.resourceId
- FCoE network resource identifier as seen in HPE OneView.fcoeNetwork
- object containing the FCoE network details.aSync
- flag to indicate whether the request should be
processed asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteFcoeNetwork(RestParams params, String resourceId, boolean aSync)
FcoeNetworkClient
FcoeNetwork
identified by the given resource identifier.deleteFcoeNetwork
in interface FcoeNetworkClient
params
- structure containing the connection details.resourceId
- FCoE network resource identifier as seen in HPE OneView.aSync
- flag to indicate whether the request should be
processed asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public String getId(RestParams params, String name)
FcoeNetworkClient
getId
in interface FcoeNetworkClient
params
- structure containing the connection details.name
- FCoE network name as seen in HPE OneView.Copyright © 2016. All rights reserved.