Package org.openstack4j.api.gbp
Interface ExternalPolicyService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
ExternalPolicyServiceImpl
public interface ExternalPolicyService extends RestService
This interface defines all methods for the manipulation of external policies- Author:
- vinod borole
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExternalPolicycreate(ExternalPolicyCreate externalPolicy)Create a new external policyActionResponsedelete(String id)Delete of the external policyExternalPolicyget(String id)Get the specified external policy by IDList<? extends ExternalPolicy>list()List all external policiesList<? extends ExternalPolicy>list(Map<String,String> filteringParams)Returns list of external policies filtered by parameters.ExternalPolicyupdate(String externalPolicyId, ExternalPolicyCreate externalPolicy)Updates an existing external policy
-
-
-
Method Detail
-
list
List<? extends ExternalPolicy> list()
List all external policies- Returns:
- List of external policies
-
list
List<? extends ExternalPolicy> list(Map<String,String> filteringParams)
Returns list of external policies filtered by parameters.- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
ExternalPolicy get(String id)
Get the specified external policy by ID- Parameters:
id- the external policy id- Returns:
- the external policy or null if not found
-
delete
ActionResponse delete(String id)
Delete of the external policy- Parameters:
id- the external policy id- Returns:
- the action response
-
create
ExternalPolicy create(ExternalPolicyCreate externalPolicy)
Create a new external policy- Parameters:
external- policy- Returns:
- the newly created external policy
-
update
ExternalPolicy update(String externalPolicyId, ExternalPolicyCreate externalPolicy)
Updates an existing external policy- Parameters:
external- policy identifierexternal- policy that is be used to updated- Returns:
- the updated external policy
-
-