public class FcNetworkClientImpl extends Object implements FcNetworkClient
Modifier | Constructor and Description |
---|---|
protected |
FcNetworkClientImpl(FcNetworkAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createFcNetwork(RestParams params,
FcNetwork fcNetworkDto,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of an FC network when provided with the FC network
details as an FcNetwork object or JsonRequest.
|
TaskResourceV2 |
deleteFcNetwork(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting an FC network for the specified FC network
resource identifier.
|
FcNetworkCollection |
getAllFcNetworks(RestParams params)
The module aids in fetching the FC network details for all FC network
registered under the current HPE OneView.
|
static FcNetworkClient |
getClient() |
FcNetwork |
getFcNetwork(RestParams params,
String resourceId)
The module aids in fetching the FC network details for the specified
FC network resource identifier.
|
FcNetworkCollection |
getFcNetworkByFilter(RestParams params,
Integer start,
Integer count)
The module aids in fetching the FC network details, where start and count
values are specified to fetch the number of FC networks.
|
FcNetwork |
getFcNetworkByName(RestParams params,
String name)
The module aids in fetching the FC network details for the specified
FC network name.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the FC network resource identifier for the FC network name
as specified in HPE OneView.
|
TaskResourceV2 |
updateFcNetwork(RestParams params,
String resourceId,
FcNetwork fcNetworkDto,
boolean aSync,
boolean useJsonRequest)
The module takes in an FcNetwork object or JsonRequest and updates the
existing FC network based on the resource identifier.
|
protected FcNetworkClientImpl(FcNetworkAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static FcNetworkClient getClient()
public FcNetwork getFcNetwork(RestParams params, String resourceId)
FcNetworkClient
getFcNetwork
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for FC network as seen in HPE OneView.FcNetwork
containing the FC network details.public FcNetworkCollection getFcNetworkByFilter(RestParams params, Integer start, Integer count)
FcNetworkClient
getFcNetworkByFilter
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.start
- Integer value specifying the start count.count
- Integer value specifying the number of FC network fetched at once.FcNetworkCollection
containing a collection of FC network details.public FcNetworkCollection getAllFcNetworks(RestParams params)
FcNetworkClient
getAllFcNetworks
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.FcNetworkCollection
containing a collection of FC network details.public FcNetwork getFcNetworkByName(RestParams params, String name)
FcNetworkClient
getFcNetworkByName
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the FC network name as seen in HPE OneView.FcNetwork
containing the FC network details.public TaskResourceV2 createFcNetwork(RestParams params, FcNetwork fcNetworkDto, boolean aSync, boolean useJsonRequest)
FcNetworkClient
createFcNetwork
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.fcNetworkDto
- This is a object containing the FC network details, used to
create FC network.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of FcNetwork object which takes
in a String containing the new FC network details, which is
converted to FcNetwork object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateFcNetwork(RestParams params, String resourceId, FcNetwork fcNetworkDto, boolean aSync, boolean useJsonRequest)
FcNetworkClient
updateFcNetwork
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for FC network as seen in HPE OneView.fcNetworkDto
- This is a object containing the update to be made to existing
FC network pointed to by the above mentioned resource identifier.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of FcNetwork object which takes
in a String containing the update to be made, which is
converted to FcNetwork object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteFcNetwork(RestParams params, String resourceId, boolean aSync)
FcNetworkClient
deleteFcNetwork
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for FC network as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public String getId(RestParams params, String name)
FcNetworkClient
getId
in interface FcNetworkClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the FC network name as seen in HPE OneView.Copyright © 2016. All rights reserved.