public class PolicyServiceImpl extends BaseOpenStackService implements PolicyService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
PolicyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Policy |
create(Policy policy)
Create a policy
|
Policy |
create(String blob,
String type,
String projectId,
String userId)
Create a policy
|
ActionResponse |
delete(String policyId)
Delete a policy
|
Policy |
get(String policyId)
Get detailed information on a policy by id
|
List<? extends Policy> |
list() |
Policy |
update(Policy policy)
Update a policy
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public Policy create(Policy policy)
PolicyService
create
in interface PolicyService
policy
- the policypublic Policy create(String blob, String type, String projectId, String userId)
PolicyService
create
in interface PolicyService
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 policypublic Policy get(String policyId)
PolicyService
get
in interface PolicyService
policyId
- the policy idpublic Policy update(Policy policy)
PolicyService
update
in interface PolicyService
policy
- the policy set to updatepublic ActionResponse delete(String policyId)
PolicyService
delete
in interface PolicyService
policyId
- the policy idpublic List<? extends Policy> list()
list
in interface PolicyService
Copyright © 2017. All rights reserved.