Class SenlinPolicyServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.senlin.internal.BaseSenlinServices
-
- org.openstack4j.openstack.senlin.internal.SenlinPolicyServiceImpl
-
- All Implemented Interfaces:
SenlinPolicyService
public class SenlinPolicyServiceImpl extends BaseSenlinServices implements SenlinPolicyService
This class contains getters for all implementation of the available policy services- Author:
- lion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description SenlinPolicyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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}-
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 Policy> list()
Description copied from interface:SenlinPolicyServiceGets a list of currently existingPolicys.- Specified by:
listin interfaceSenlinPolicyService- Returns:
- the list of
Policys
-
create
public Policy create(PolicyCreate newPolicy)
Description copied from interface:SenlinPolicyService- Specified by:
createin interfaceSenlinPolicyService- Parameters:
newPolicy-PolicyCreateobject out of which policy is to be created- Returns:
- new
Policyas returned from the server
-
get
public Policy get(String policyID)
Description copied from interface:SenlinPolicyServicereturns details of aPolicy.- Specified by:
getin interfaceSenlinPolicyService- Parameters:
policyID- Id ofPolicy- Returns:
- Policy
-
update
public Policy update(String policyID, PolicyCreate newPolicy)
Description copied from interface:SenlinPolicyService- Specified by:
updatein interfaceSenlinPolicyService- Parameters:
policyID- Id ofPolicynewPolicy-PolicyCreateobject out of which stack is to be update- Returns:
- new
Policyas returned from the server
-
delete
public ActionResponse delete(String policyID)
Description copied from interface:SenlinPolicyServiceDeletes the specifiedPolicyfrom the server.- Specified by:
deletein interfaceSenlinPolicyService- Parameters:
policyID- Id ofPolicy- Returns:
- the action response
-
-