Class ExternalPolicyServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.gbp.internal.ExternalPolicyServiceImpl
-
- All Implemented Interfaces:
ExternalPolicyService,RestService
public class ExternalPolicyServiceImpl extends BaseNetworkingServices implements ExternalPolicyService
External Policy 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 ExternalPolicyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalPolicycreate(ExternalPolicyCreate externalPolicy)Create a new external policyActionResponsedelete(String id)Delete of the external policyExternalPolicyget(String id)Get the specified external policy by IDList<? extends ExternalPolicy>list()List all external policiesList<? extends ExternalPolicy>list(Map<String,String> filteringParams)Returns list of external policies filtered by parameters.ExternalPolicyupdate(String externalPolicyId, ExternalPolicyCreate externalPolicy)Updates an existing external 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
-
list
public List<? extends ExternalPolicy> list()
List all external policies- Specified by:
listin interfaceExternalPolicyService- Returns:
- List of external policies
-
list
public List<? extends ExternalPolicy> list(Map<String,String> filteringParams)
Returns list of external policies filtered by parameters.- Specified by:
listin interfaceExternalPolicyService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public ExternalPolicy get(String id)
Get the specified external policy by ID- Specified by:
getin interfaceExternalPolicyService- Parameters:
id- the external policy id- Returns:
- the external policy or null if not found
-
delete
public ActionResponse delete(String id)
Delete of the external policy- Specified by:
deletein interfaceExternalPolicyService- Parameters:
id- the external policy id- Returns:
- the action response
-
create
public ExternalPolicy create(ExternalPolicyCreate externalPolicy)
Create a new external policy- Specified by:
createin interfaceExternalPolicyService- Returns:
- the newly created external policy
-
update
public ExternalPolicy update(String externalPolicyId, ExternalPolicyCreate externalPolicy)
Updates an existing external policy- Specified by:
updatein interfaceExternalPolicyService- Returns:
- the updated external policy
-
-