Class ExternalSegmentServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.gbp.internal.ExternalSegmentServiceImpl
-
- All Implemented Interfaces:
ExternalSegmentService
public class ExternalSegmentServiceImpl extends BaseNetworkingServices implements ExternalSegmentService
External Segment 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 ExternalSegmentServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalSegment
create(ExternalSegment externalSegment)
Create a new external segmentActionResponse
delete(String id)
Delete of the external segmentExternalSegment
get(String id)
Get the specified external segment by IDList<? extends ExternalSegment>
list()
List all external segmentList<? extends ExternalSegment>
list(Map<String,String> filteringParams)
Returns list of external segments filtered by parameters.ExternalSegment
update(String externalSegmentId, ExternalSegment externalSegment)
Updates an existing external segment-
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 ExternalSegment> list()
List all external segment- Specified by:
list
in interfaceExternalSegmentService
- Returns:
- List of external segment
-
list
public List<? extends ExternalSegment> list(Map<String,String> filteringParams)
Returns list of external segments filtered by parameters.- Specified by:
list
in interfaceExternalSegmentService
- Parameters:
filteringParams
- map (name, value) of filtering parameters
-
get
public ExternalSegment get(String id)
Get the specified external segment by ID- Specified by:
get
in interfaceExternalSegmentService
- Parameters:
id
- the external segment id- Returns:
- external segment or null if not found
-
delete
public ActionResponse delete(String id)
Delete of the external segment- Specified by:
delete
in interfaceExternalSegmentService
- Parameters:
id
- the external segment id- Returns:
- the action response
-
create
public ExternalSegment create(ExternalSegment externalSegment)
Create a new external segment- Specified by:
create
in interfaceExternalSegmentService
- Returns:
- the newly created external segment
-
update
public ExternalSegment update(String externalSegmentId, ExternalSegment externalSegment)
Updates an existing external segment- Specified by:
update
in interfaceExternalSegmentService
- Returns:
- the updated external segment
-
-