Class PolicyTargetServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.gbp.internal.PolicyTargetServiceImpl
-
- All Implemented Interfaces:
PolicyTargetService
public class PolicyTargetServiceImpl extends BaseNetworkingServices implements PolicyTargetService
Policy target 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 PolicyTargetServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyTargetcreate(PolicyTarget policyTarget)Create a new policy targetActionResponsedelete(String id)Delete of the policy targetPolicyTargetget(String id)Get the specified policy target by IDList<? extends PolicyTarget>list()List all policy targetList<? extends PolicyTarget>list(Map<String,String> filteringParams)Returns list of policy target filtered by parameters.PolicyTargetupdate(String policyTargetId, PolicyTarget policyTarget)Updates an existing policy target-
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 PolicyTarget> list()
List all policy target- Specified by:
listin interfacePolicyTargetService- Returns:
- List of policy target
-
list
public List<? extends PolicyTarget> list(Map<String,String> filteringParams)
Returns list of policy target filtered by parameters.- Specified by:
listin interfacePolicyTargetService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public PolicyTarget get(String id)
Get the specified policy target by ID- Specified by:
getin interfacePolicyTargetService- Parameters:
id- the policy target id- Returns:
- policy target or null if not found
-
delete
public ActionResponse delete(String id)
Delete of the policy target- Specified by:
deletein interfacePolicyTargetService- Parameters:
id- the policy target id- Returns:
- the target response
-
create
public PolicyTarget create(PolicyTarget policyTarget)
Create a new policy target- Specified by:
createin interfacePolicyTargetService- Returns:
- the newly created policy target
-
update
public PolicyTarget update(String policyTargetId, PolicyTarget policyTarget)
Updates an existing policy target- Specified by:
updatein interfacePolicyTargetService- Returns:
- the updated policy target
-
-