Class PolicyServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v3.internal.BaseIdentityServices
-
- org.openstack4j.openstack.identity.v3.internal.PolicyServiceImpl
-
- All Implemented Interfaces:
PolicyService,RestService
public class PolicyServiceImpl extends BaseIdentityServices implements PolicyService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description PolicyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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-
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
-
create
public Policy create(Policy policy)
Description copied from interface:PolicyServiceCreate a policy- Specified by:
createin interfacePolicyService- Parameters:
policy- the policy- Returns:
- the newly created policy
-
create
public Policy create(String blob, String type, String projectId, String userId)
Description copied from interface:PolicyServiceCreate a policy- Specified by:
createin interfacePolicyService- 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
public Policy get(String policyId)
Description copied from interface:PolicyServiceGet detailed information on a policy by id- Specified by:
getin interfacePolicyService- Parameters:
policyId- the policy id- Returns:
- the policy
-
update
public Policy update(Policy policy)
Description copied from interface:PolicyServiceUpdate a policy- Specified by:
updatein interfacePolicyService- Parameters:
policy- the policy set to update- Returns:
- the updated policy
-
delete
public ActionResponse delete(String policyId)
Description copied from interface:PolicyServiceDelete a policy- Specified by:
deletein interfacePolicyService- Parameters:
policyId- the policy id- Returns:
- the ActionResponse
-
list
public List<? extends Policy> list()
- Specified by:
listin interfacePolicyService- Returns:
- list of policies
-
-