public class UplinkSetClientImpl extends Object implements UplinkSetClient
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
protected |
UplinkSetClientImpl(UplinkSetAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createUplinkSet(RestParams params,
UplinkSets uplinkSetDto,
boolean aSync,
boolean useJsonRequest)
This module aids in creation of uplink set.
|
TaskResourceV2 |
deleteUplinkSet(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a uplink set for the specified uplink set
resource identifier.
|
UplinkSetCollectionV2 |
getAllUplinkSet(RestParams params)
The module aids in fetching the uplink set details for all the uplink sets
found under the current HPE OneView.
|
static UplinkSetClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the uplink set resource identifier for the uplink set name as
specified in HPE OneView.
|
UplinkSets |
getUplinkSet(RestParams params,
String resourceId)
The module aids in fetching the uplink set details for the specified
uplink set resource identifier.
|
UplinkSets |
getUplinkSetsByName(RestParams params,
String name)
The module aids in fetching the uplink set details for the specified
uplink set name as specified in HPE OneView.
|
TaskResourceV2 |
updateUplinkSet(RestParams params,
String resourceId,
UplinkSets uplinkDto,
boolean aSync,
boolean useJsonRequest)
The module takes in an UplinkSet object or a JsonRequest and updates the
existing uplink set based on the resource identifier.
|
protected UplinkSetClientImpl(UplinkSetAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static UplinkSetClient getClient()
public UplinkSets getUplinkSet(RestParams params, String resourceId)
UplinkSetClient
getUplinkSet
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for uplink set as seen in HPE OneView.UplinkSets
containing a the uplink set details.public UplinkSetCollectionV2 getAllUplinkSet(RestParams params)
UplinkSetClient
getAllUplinkSet
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.UplinkSetCollectionV2
containing a collection of uplink set details.public TaskResourceV2 deleteUplinkSet(RestParams params, String resourceId, boolean aSync)
UplinkSetClient
deleteUplinkSet
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for uplink set as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateUplinkSet(RestParams params, String resourceId, UplinkSets uplinkDto, boolean aSync, boolean useJsonRequest)
UplinkSetClient
updateUplinkSet
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for uplink set as seen in HPE OneView.uplinkDto
- Object containing the uplink set details, used to update a uplink set.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of UplinkSet object which takes
in a String containing the update to be made, which is
converted to UplinkSet object using an adaptor and processed.TaskResourceV2
containing the task status for the process.public UplinkSets getUplinkSetsByName(RestParams params, String name)
UplinkSetClient
getUplinkSetsByName
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.name
- The uplinkSetName is the uplink set name as seen in HPE OneView.UplinkSets
containing the uplink set details.public TaskResourceV2 createUplinkSet(RestParams params, UplinkSets uplinkSetDto, boolean aSync, boolean useJsonRequest)
UplinkSetClient
createUplinkSet
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.uplinkSetDto
- Object containing the uplink set details, used to create a uplink set.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of UplinkSet object which takes
in a String containing the update to be made, which is
converted to UplinkSets object using an adaptor and processed.TaskResourceV2
containing the task status for the process.public String getId(RestParams params, String name)
UplinkSetClient
getId
in interface UplinkSetClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the uplink set name as seen in HPE OneView.Copyright © 2016. All rights reserved.