public class LogicalSwitchClientImpl extends Object implements LogicalSwitchClient
Constructor and Description |
---|
LogicalSwitchClientImpl(HttpRestClient restClient,
ResourceAdaptor adaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createLogicalSwitch(RestParams params,
AddLogicalSwitch addLogicalSwitch,
boolean aSync)
Creates a logical switch according to the provided
LogicalSwitch
object. |
TaskResourceV2 |
deleteLogicalSwitch(RestParams params,
String resourceId,
boolean aSync)
Removes a logical switch identified by the provided resource identifier.
|
LogicalSwitchCollection |
getAllLogicalSwitches(RestParams params)
Retrieves the logical switch details for all the logical switches
under the current HPE OneView.
|
static LogicalSwitchClientImpl |
getClient() |
String |
getId(RestParams params,
String name)
Retrieves the logical switch resource identifier for the specified logical switch name.
|
LogicalSwitch |
getLogicalSwitch(RestParams params,
String resourceId)
Retrieves the
LogicalSwitch details for the specified
logical switch resource identifier. |
LogicalSwitch |
getLogicalSwitchByName(RestParams params,
String name)
Retrieves the
LogicalSwitch details for the specified
logical switch name. |
TaskResourceV2 |
refreshLogicalSwitch(RestParams params,
String resourceId,
boolean aSync)
Executes a refresh action for a logical switch identified by the provided
resource identifier.
|
TaskResourceV2 |
updateLogicalSwitch(RestParams params,
String resourceId,
AddLogicalSwitch addLogicalSwitch,
boolean aSync)
Updates a logical switch according to the provided
LogicalSwitch
object. |
public LogicalSwitchClientImpl(HttpRestClient restClient, ResourceAdaptor adaptor, TaskMonitorManager taskMonitor)
public static LogicalSwitchClientImpl getClient()
public LogicalSwitch getLogicalSwitch(RestParams params, String resourceId)
LogicalSwitchClient
LogicalSwitch
details for the specified
logical switch resource identifier.getLogicalSwitch
in interface LogicalSwitchClient
params
- structure containing the connection details.resourceId
- logical switch identifier as seen in HPE OneView.LogicalSwitch
object containing the details.public LogicalSwitch getLogicalSwitchByName(RestParams params, String name)
LogicalSwitchClient
LogicalSwitch
details for the specified
logical switch name.getLogicalSwitchByName
in interface LogicalSwitchClient
params
- structure containing the connection details.name
- logical switch name as seen in HPE OneView.LogicalSwitch
object containing the details.public LogicalSwitchCollection getAllLogicalSwitches(RestParams params)
LogicalSwitchClient
getAllLogicalSwitches
in interface LogicalSwitchClient
params
- structure containing the connection details.LogicalSwitchCollection
object containing the details
for all the logical switches found in HPE OneView.public TaskResourceV2 createLogicalSwitch(RestParams params, AddLogicalSwitch addLogicalSwitch, boolean aSync)
LogicalSwitchClient
LogicalSwitch
object. The request can be processed asynchronously or synchronously.createLogicalSwitch
in interface LogicalSwitchClient
params
- structure containing the connection details.addLogicalSwitch
- object containing the logical switch details.aSync
- flag to indicate whether the request should be
processed asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateLogicalSwitch(RestParams params, String resourceId, AddLogicalSwitch addLogicalSwitch, boolean aSync)
LogicalSwitchClient
LogicalSwitch
object. The request can be processed asynchronously or synchronously.updateLogicalSwitch
in interface LogicalSwitchClient
params
- structure containing the connection details.resourceId
- logical switch identifier as seen in HPE OneView.addLogicalSwitch
- object containing the logical switch details.aSync
- flag to indicate whether the request should be
processed asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteLogicalSwitch(RestParams params, String resourceId, boolean aSync)
LogicalSwitchClient
deleteLogicalSwitch
in interface LogicalSwitchClient
params
- structure containing the connection details.resourceId
- logical switch 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 TaskResourceV2 refreshLogicalSwitch(RestParams params, String resourceId, boolean aSync)
LogicalSwitchClient
refreshLogicalSwitch
in interface LogicalSwitchClient
params
- structure containing the connection details.resourceId
- logical switch 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)
LogicalSwitchClient
getId
in interface LogicalSwitchClient
params
- structure containing the connection details.name
- logical switch name as seen in HPE OneView.Copyright © 2016. All rights reserved.