public class ConnectionTemplateClientImpl extends Object implements ConnectionTemplateClient
Modifier | Constructor and Description |
---|---|
protected |
ConnectionTemplateClientImpl(ConnectionTemplateAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
ConnectionTemplateCollection |
getAllConnectionTemplates(RestParams params)
The module aids in fetching the connection template details for all
networks found under the current HPE OneView.
|
static ConnectionTemplateClient |
getClient() |
ConnectionTemplate |
getConnectionTemplate(RestParams params,
String resourceId)
The module aids in fetching the connection template when provided with
the ConnectionTemplate resource identifier.
|
ConnectionTemplate |
getConnectionTemplateByName(RestParams params,
String resourceName)
The module aids in fetching the connection template when provided with
the connection template name.
|
ConnectionTemplate |
getDefaultConnectionTemplateForConnectionTemplate(RestParams params)
The module aids in fetching the default connection template details for
the network found under the current HPE OneView.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the connection template resource identifier for the
connection template name as specified in HPE OneView.
|
ConnectionTemplate |
updateConnectionTemplate(RestParams params,
String resourceId,
ConnectionTemplate connectionTemplateDto,
boolean useJsonRequest)
The module takes in a ConnectionTemplate object or JsonRequest and
updates the existing connection template based on the resource identifier.
|
protected ConnectionTemplateClientImpl(ConnectionTemplateAdaptor adaptor)
public static ConnectionTemplateClient getClient()
public ConnectionTemplate getConnectionTemplate(RestParams params, String resourceId)
ConnectionTemplateClient
getConnectionTemplate
in interface ConnectionTemplateClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for the connection template as seen in HPE OneView.ConnectionTemplate
containing the connection template details.public ConnectionTemplate getConnectionTemplateByName(RestParams params, String resourceName)
ConnectionTemplateClient
getConnectionTemplateByName
in interface ConnectionTemplateClient
params
- The RestParams
is a structure containing the connection details.resourceName
- The resourceName is the connection template name as seen in HPE OneView.ConnectionTemplate
containing the connection template details.public ConnectionTemplate updateConnectionTemplate(RestParams params, String resourceId, ConnectionTemplate connectionTemplateDto, boolean useJsonRequest)
ConnectionTemplateClient
updateConnectionTemplate
in interface ConnectionTemplateClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for the connection template as seen in HPE OneView.connectionTemplateDto
- This is a object containing the update to be made to an existing
ConnectionTemplate pointed to by the above mentioned
resource identifier.useJsonRequest
- The JsonRequest body is part of ConnectionTemplate Object
which takes in a String containing the update to be made,
which is converted to ConnectionTemplate Object using adaptor
and processed.ConnectionTemplate
containing the updated connection template details.public ConnectionTemplateCollection getAllConnectionTemplates(RestParams params)
ConnectionTemplateClient
getAllConnectionTemplates
in interface ConnectionTemplateClient
params
- The RestParams
is a structure containing the connection details.ConnectionTemplateCollection
containing the collection
of connection template details.public ConnectionTemplate getDefaultConnectionTemplateForConnectionTemplate(RestParams params)
ConnectionTemplateClient
getDefaultConnectionTemplateForConnectionTemplate
in interface ConnectionTemplateClient
params
- The RestParams
is a structure containing the connection details.ConnectionTemplate
containing the connection template details.public String getId(RestParams params, String name)
ConnectionTemplateClient
getId
in interface ConnectionTemplateClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the connection template name as seen in HPE OneView.Copyright © 2016. All rights reserved.