public class SenlinPolicyServiceImpl extends BaseSenlinServices implements SenlinPolicyService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
SenlinPolicyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Policy |
create(PolicyCreate newPolicy)
|
ActionResponse |
delete(String policyID)
Deletes the specified
Policy from the server. |
Policy |
get(String policyID)
returns details of a
Policy . |
List<? extends Policy> |
list()
Gets a list of currently existing
Policy s. |
Policy |
update(String policyID,
PolicyCreate newPolicy)
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Policy> list()
SenlinPolicyService
Policy
s.list
in interface SenlinPolicyService
Policy
spublic Policy create(PolicyCreate newPolicy)
SenlinPolicyService
create
in interface SenlinPolicyService
newPolicy
- PolicyCreate
object out of which policy is to be createdPolicy
as returned from the serverpublic Policy get(String policyID)
SenlinPolicyService
Policy
.get
in interface SenlinPolicyService
policyID
- Id of Policy
public Policy update(String policyID, PolicyCreate newPolicy)
SenlinPolicyService
update
in interface SenlinPolicyService
policyID
- Id of Policy
newPolicy
- PolicyCreate
object out of which stack is to be updatePolicy
as returned from the serverpublic ActionResponse delete(String policyID)
SenlinPolicyService
Policy
from the server.delete
in interface SenlinPolicyService
policyID
- Id of Policy
Copyright © 2017. All rights reserved.