public class NetworkClientImpl extends Object implements NetworkClient
Modifier | Constructor and Description |
---|---|
protected |
NetworkClientImpl(HttpRestClient restClient,
ConnectionTemplateClient connectionTemplateClient,
NetworkAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createNetwork(RestParams params,
Network dto,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of an ethernet network when provided with the ethernet network
details as a Network object or JsonRequest.
|
TaskResourceV2 |
createNetworkInBulk(RestParams params,
BulkEthernetNetwork bulkEthernetDto,
boolean aSync,
boolean useJsonRequest)
The module aids in creation of set of ethernet networks when provided with the
ethernet network details as a BulkEthernetNetwork object or a JsonRequest containing
a VLAN identifier range.
|
TaskResourceV2 |
deleteNetwork(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a ethernet network for the specified ethernet network
resource identifier.
|
NetworkCollection |
getAllNetworks(RestParams params)
The module aids in fetching the ethernet network details for all the ethernet networks
found under the current HPE OneView.
|
static NetworkClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the ethernet network resource identifier for the
ethernet network name as specified in HPE OneView.
|
Network |
getNetwork(RestParams params,
String resourceId)
The module aids in fetching the Network details for the specified ethernet network
resource identifier.
|
List<String> |
getNetworkAssociatedProfiles(RestParams params,
String resourceId)
Returns a list of profile URIs for the ethernet network.
|
List<String> |
getNetworkAssociatedUplinkGroups(RestParams params,
String resourceId)
Returns the uplink sets which are using an ethernet network.
|
Network |
getNetworkByName(RestParams params,
String name)
The module aids in fetching the ethernet network details for the ethernet network name as
specified in HPE OneView.
|
TaskResourceV2 |
updateNetwork(RestParams params,
String resourceId,
Network dto,
boolean asyncOrSyncMode,
boolean useJsonRequest)
The module takes in a Network object or JsonRequest and updates the
existing ethernet network based on the resource identifier.
|
protected NetworkClientImpl(HttpRestClient restClient, ConnectionTemplateClient connectionTemplateClient, NetworkAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static NetworkClient getClient()
public Network getNetwork(RestParams params, String resourceId)
NetworkClient
getNetwork
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for ethernet network as seen in HPE OneView.Network
containing the ethernet network details.public NetworkCollection getAllNetworks(RestParams params)
NetworkClient
getAllNetworks
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.NetworkCollection
containing the collection of ethernet network details.public Network getNetworkByName(RestParams params, String name)
NetworkClient
getNetworkByName
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the ethernet network name as seen in HPE OneView.Network
containing the ethernet network details.public TaskResourceV2 createNetwork(RestParams params, Network dto, boolean aSync, boolean useJsonRequest)
NetworkClient
true
and you set some connection template data, this information will not be used.
Thus, we strongly recommend the value false
for the async flag if
you want to set bandwidth values.createNetwork
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.dto
- This is a object containing the ethernet network details, used to
create a ethernet network.aSync
- Flag input to process request asynchronously or synchronously
(preferable false
).useJsonRequest
- The JsonRequest body is part of Network object which takes in
a String containing the new ethernet network details, which is
converted to Network object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateNetwork(RestParams params, String resourceId, Network dto, boolean asyncOrSyncMode, boolean useJsonRequest)
NetworkClient
updateNetwork
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for ethernet network as seen in HPE OneView.dto
- This is a object containing the ethernet network details, used to
update a ethernet networkasyncOrSyncMode
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of Network object which takes in
a String containing the update to be made, which is converted
to Network object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteNetwork(RestParams params, String resourceId, boolean aSync)
NetworkClient
deleteNetwork
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for ethernet network as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 createNetworkInBulk(RestParams params, BulkEthernetNetwork bulkEthernetDto, boolean aSync, boolean useJsonRequest)
NetworkClient
createNetworkInBulk
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.bulkEthernetDto
- This is a object containing the BulkEthernetNetwork details,
used to create a set of ethernet networks for the mentioned range with
VLAN name as suffix.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of BulkEthernetNetwork object
which takes in a String containing the new bulk ethernet network
details, which is converted to a BulkEthernetNetwork object
using an adaptor and processed.TaskResourceV2
containing the task status for the process.public List<String> getNetworkAssociatedProfiles(RestParams params, String resourceId)
NetworkClient
getNetworkAssociatedProfiles
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for ethernet network as seen in HPE OneView.public List<String> getNetworkAssociatedUplinkGroups(RestParams params, String resourceId)
NetworkClient
getNetworkAssociatedUplinkGroups
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for ethernet network as seen in HPE OneView.public String getId(RestParams params, String name)
NetworkClient
getId
in interface NetworkClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the ethernet network name as seen in HPE OneView.Copyright © 2016. All rights reserved.