Class PolicyRuleServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.gbp.internal.PolicyRuleServiceImpl
-
- All Implemented Interfaces:
PolicyRuleService
public class PolicyRuleServiceImpl extends BaseNetworkingServices implements PolicyRuleService
Policy Rule API Implementation- Author:
- vinod borole
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description PolicyRuleServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyRulecreate(PolicyRule policyRule)Create a new policy ruleActionResponsedelete(String id)Delete of the policy rulePolicyRuleget(String id)Get the specified policy rule by IDList<? extends PolicyRule>list()List all policy rulesList<? extends PolicyRule>list(Map<String,String> filteringParams)Returns list of policy rules filtered by parameters.PolicyRuleupdate(String policyRuleId, PolicyRule policyRule)Updates an existing policy rule-
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 PolicyRule> list()
List all policy rules- Specified by:
listin interfacePolicyRuleService- Returns:
- List of policy rules
-
list
public List<? extends PolicyRule> list(Map<String,String> filteringParams)
Returns list of policy rules filtered by parameters.- Specified by:
listin interfacePolicyRuleService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public PolicyRule get(String id)
Get the specified policy rule by ID- Specified by:
getin interfacePolicyRuleService- Parameters:
id- the policy rule id- Returns:
- policy rule or null if not found
-
delete
public ActionResponse delete(String id)
Delete of the policy rule- Specified by:
deletein interfacePolicyRuleService- Parameters:
id- the policy rule id- Returns:
- the rule response
-
create
public PolicyRule create(PolicyRule policyRule)
Create a new policy rule- Specified by:
createin interfacePolicyRuleService- Returns:
- the newly created policy rule
-
update
public PolicyRule update(String policyRuleId, PolicyRule policyRule)
Updates an existing policy rule- Specified by:
updatein interfacePolicyRuleService- Returns:
- the updated policy rule
-
-