public class NetworkSetClientImpl extends Object implements NetworkSetClient
Modifier | Constructor and Description |
---|---|
protected |
NetworkSetClientImpl(NetworkSetAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createNetworkSet(RestParams params,
NetworkSets networkSetDto,
boolean aSync,
boolean useJsonRequest)
The module aids in the creation of a network set when provided with the
network set details as a NetworkSets object or JsonRequest.
|
TaskResourceV2 |
deleteNetworkSet(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a network set for the specified network set
resource identifier.
|
NetworkSetCollection |
getAllNetworkSets(RestParams params)
The module aids in fetching the network set details for all the
network sets found under the current HPE OneView.
|
static NetworkSetClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the network set resource identifier for the network set
name as specified in HPE OneView.
|
NetworkSets |
getNetworkSets(RestParams params,
String resourceId)
The module aids in fetching the network set details for the specified
network set resource identifier.
|
NetworkSets |
getNetworkSetsByName(RestParams params,
String name)
The module aids in fetching the network set details for the network set
name as specified in HPE OneView.
|
TaskResourceV2 |
updateNetworkSet(RestParams params,
String resourceId,
NetworkSets networkSetDto,
boolean aSync,
boolean useJsonRequest)
The module takes in a NetworkSet object or JsonRequest and updates the
existing network set based on the resource identifier.
|
protected NetworkSetClientImpl(NetworkSetAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static NetworkSetClient getClient()
public NetworkSets getNetworkSets(RestParams params, String resourceId)
NetworkSetClient
getNetworkSets
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for network set as seen in HPE OneView.NetworkSets
containing the network set details.public NetworkSetCollection getAllNetworkSets(RestParams params)
NetworkSetClient
getAllNetworkSets
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.NetworkSetCollection
containing a collection of network set details.public NetworkSets getNetworkSetsByName(RestParams params, String name)
NetworkSetClient
getNetworkSetsByName
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the network set name as seen in HPE OneView.NetworkSets
containing the network set details.public TaskResourceV2 createNetworkSet(RestParams params, NetworkSets networkSetDto, boolean aSync, boolean useJsonRequest)
NetworkSetClient
createNetworkSet
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.networkSetDto
- Object containing the network set details, used to create a network set.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of NetworkSets object which takes
in a String containing the new network set details, which is
converted to a NetworkSets object using an adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateNetworkSet(RestParams params, String resourceId, NetworkSets networkSetDto, boolean aSync, boolean useJsonRequest)
NetworkSetClient
updateNetworkSet
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for network set as seen in HPE OneView.networkSetDto
- Object containing the network set details, used to update a network set.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of NetworkSet object which takes
in a String containing the update to be made, which is
converted to NetworkSet object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteNetworkSet(RestParams params, String resourceId, boolean aSync)
NetworkSetClient
deleteNetworkSet
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for network set 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)
NetworkSetClient
getId
in interface NetworkSetClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the network set name as seen in HPE OneView.Copyright © 2016. All rights reserved.