Package org.openstack4j.api.senlin
Interface SenlinPolicyService
-
- All Known Implementing Classes:
SenlinPolicyServiceImpl
public interface SenlinPolicyServiceThis interface defines all methods for the manipulation of Policy- Author:
- lion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Policycreate(PolicyCreate newPolicy)POST /v1/policiesActionResponsedelete(String policyID)Deletes the specifiedPolicyfrom the server.Policyget(String policyID)returns details of aPolicy.List<? extends Policy>list()Gets a list of currently existingPolicys.Policyupdate(String policyID, PolicyCreate newPolicy)PATCH /v1/policies/{policy_id}
-
-
-
Method Detail
-
list
List<? extends Policy> list()
Gets a list of currently existingPolicys.- Returns:
- the list of
Policys
-
create
Policy create(PolicyCreate newPolicy)
- Parameters:
newPolicy-PolicyCreateobject out of which policy is to be created- Returns:
- new
Policyas returned from the server
-
get
Policy get(String policyID)
returns details of aPolicy.- Parameters:
policyID- Id ofPolicy- Returns:
- Policy
-
update
Policy update(String policyID, PolicyCreate newPolicy)
- Parameters:
policyID- Id ofPolicynewPolicy-PolicyCreateobject out of which stack is to be update- Returns:
- new
Policyas returned from the server
-
delete
ActionResponse delete(String policyID)
Deletes the specifiedPolicyfrom the server.- Parameters:
policyID- Id ofPolicy- Returns:
- the action response
-
-