Package org.openstack4j.api.gbp
Interface PolicyTargetService
-
- All Known Implementing Classes:
PolicyTargetServiceImpl
public interface PolicyTargetServiceThis interface defines all methods for the manipulation of policy targets- Author:
- vinod borole
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
list
List<? extends PolicyTarget> list()
List all policy target- Returns:
- List of policy target
-
list
List<? extends PolicyTarget> list(Map<String,String> filteringParams)
Returns list of policy target filtered by parameters.- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
PolicyTarget get(String id)
Get the specified policy target by ID- Parameters:
id- the policy target id- Returns:
- policy target or null if not found
-
delete
ActionResponse delete(String id)
Delete of the policy target- Parameters:
id- the policy target id- Returns:
- the target response
-
create
PolicyTarget create(PolicyTarget policyTarget)
Create a new policy target- Parameters:
policy- target- Returns:
- the newly created policy target
-
update
PolicyTarget update(String policyTargetId, PolicyTarget policyTarget)
Updates an existing policy target- Parameters:
policy- target identifierpolicy- target that is be used to updated- Returns:
- the updated policy target
-
-