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, uripublic Policy create(Policy policy)
PolicyServicecreate in interface PolicyServicepolicy - the policypublic Policy create(String blob, String type, String projectId, String userId)
PolicyServicecreate in interface PolicyServiceblob - 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)
PolicyServiceget in interface PolicyServicepolicyId - the policy idpublic Policy update(Policy policy)
PolicyServiceupdate in interface PolicyServicepolicy - the policy set to updatepublic ActionResponse delete(String policyId)
PolicyServicedelete in interface PolicyServicepolicyId - the policy idpublic List<? extends Policy> list()
list in interface PolicyServiceCopyright © 2017. All rights reserved.