Class NeutronTrunksNorthbound
- java.lang.Object
-
- org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound<NeutronTrunk,NeutronTrunkRequest,INeutronTrunkCRUD>
-
- org.opendaylight.neutron.northbound.api.NeutronTrunksNorthbound
-
@Singleton @Path("/trunks") public final class NeutronTrunksNorthbound extends AbstractNeutronNorthbound<NeutronTrunk,NeutronTrunkRequest,INeutronTrunkCRUD>
-
-
Field Summary
-
Fields inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
HTTP_OK_BOTTOM, HTTP_OK_TOP
-
-
Constructor Summary
Constructors Constructor Description NeutronTrunksNorthbound(INeutronTrunkCRUD neutronCRUD)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createTrunks(NeutronTrunkRequest input)
Creates new Trunk.javax.ws.rs.core.Response
deleteTrunk(String trunkUUID)
Deletes a Trunk.protected String
getResourceName()
javax.ws.rs.core.Response
listGroups(List<String> fields, String queryUUID, String queryTenantID, String queryStatus, String queryName, String limit, String marker, String pageReverse)
Returns a list of all Trunks.javax.ws.rs.core.Response
showTrunk(String trunkUUID, List<String> fields)
Returns a specific Trunk.javax.ws.rs.core.Response
updateTrunk(String trunkUUID, NeutronTrunkRequest input)
Updates a Trunk.-
Methods inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
create, delete, getNeutronCRUD, serviceUnavailable, show, update, updateDelta, uuidNoExist
-
-
-
-
Constructor Detail
-
NeutronTrunksNorthbound
@Inject public NeutronTrunksNorthbound(INeutronTrunkCRUD neutronCRUD)
-
-
Method Detail
-
getResourceName
protected String getResourceName()
- Specified by:
getResourceName
in classAbstractNeutronNorthbound<NeutronTrunk,NeutronTrunkRequest,INeutronTrunkCRUD>
-
listGroups
@GET @Produces("application/json") public javax.ws.rs.core.Response listGroups(@QueryParam("fields") List<String> fields, @QueryParam("id") String queryUUID, @QueryParam("tenant_id") String queryTenantID, @QueryParam("status") String queryStatus, @QueryParam("name") String queryName, @QueryParam("limit") String limit, @QueryParam("marker") String marker, @QueryParam("page_reverse") String pageReverse)
Returns a list of all Trunks.
-
showTrunk
@Path("{trunkUUID}") @GET @Produces("application/json") public javax.ws.rs.core.Response showTrunk(@PathParam("trunkUUID") String trunkUUID, @QueryParam("fields") List<String> fields)
Returns a specific Trunk.
-
createTrunks
@POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createTrunks(NeutronTrunkRequest input)
Creates new Trunk.
-
updateTrunk
@Path("{trunkUUID}") @PUT @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateTrunk(@PathParam("trunkUUID") String trunkUUID, NeutronTrunkRequest input)
Updates a Trunk.
-
deleteTrunk
@Path("{trunkUUID}") @DELETE public javax.ws.rs.core.Response deleteTrunk(@PathParam("trunkUUID") String trunkUUID)
Deletes a Trunk.
-
-