Package org.openstack4j.api.identity.v3
Interface PolicyService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
PolicyServiceImpl
public interface PolicyService extends RestService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Policycreate(String blob, String type, String projectId, String userId)Create a policyPolicycreate(Policy policy)Create a policyActionResponsedelete(String policyId)Delete a policyPolicyget(String policyId)Get detailed information on a policy by idList<? extends Policy>list()Policyupdate(Policy policy)Update a policy
-
-
-
Method Detail
-
create
Policy create(Policy policy)
Create a policy- Parameters:
policy- the policy- Returns:
- the newly created policy
-
create
Policy create(String blob, String type, String projectId, String userId)
Create a policy- Parameters:
blob- the policy rule itself as a serialized blobtype- the MIME media type of the serialized policy blobprojectId- the uuid for the associated projectuserId- the id of the user who owns the policy- Returns:
- the newly created policy
-
get
Policy get(String policyId)
Get detailed information on a policy by id- Parameters:
policyId- the policy id- Returns:
- the policy
-
update
Policy update(Policy policy)
Update a policy- Parameters:
policy- the policy set to update- Returns:
- the updated policy
-
delete
ActionResponse delete(String policyId)
Delete a policy- Parameters:
policyId- the policy id- Returns:
- the ActionResponse
-
-