Class L2policyServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.gbp.internal.L2policyServiceImpl
-
- All Implemented Interfaces:
L2policyService
public class L2policyServiceImpl extends BaseNetworkingServices implements L2policyService
L2 Policy API Implementation- Author:
- vinod borole
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description L2policyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2Policycreate(L2Policy l2Policy)Create a new l2 policyActionResponsedelete(String id)Delete of the l2 policyL2Policyget(String id)Get the specified l2 policy by IDList<? extends L2Policy>list()List all l2 policiesList<? extends L2Policy>list(Map<String,String> filteringParams)Returns list of l2 policies filtered by parameters.L2Policyupdate(String l2PolicyId, L2Policy l2Policy)Updates an existing l2 policy-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends L2Policy> list()
List all l2 policies- Specified by:
listin interfaceL2policyService- Returns:
- List of l2 policies
-
list
public List<? extends L2Policy> list(Map<String,String> filteringParams)
Returns list of l2 policies filtered by parameters.- Specified by:
listin interfaceL2policyService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public L2Policy get(String id)
Get the specified l2 policy by ID- Specified by:
getin interfaceL2policyService- Parameters:
id- the l2 policy id- Returns:
- l2 policy or null if not found
-
delete
public ActionResponse delete(String id)
Delete of the l2 policy- Specified by:
deletein interfaceL2policyService- Parameters:
id- the l2 policy id- Returns:
- the action response
-
create
public L2Policy create(L2Policy l2Policy)
Create a new l2 policy- Specified by:
createin interfaceL2policyService- Returns:
- the newly created l2 policy
-
update
public L2Policy update(String l2PolicyId, L2Policy l2Policy)
Updates an existing l2 policy- Specified by:
updatein interfaceL2policyService- Returns:
- the updated l2 policy
-
-