Class NeutronMeteringLabelsNorthbound
- java.lang.Object
 - 
- org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound<NeutronMeteringLabel,NeutronMeteringLabelRequest,INeutronMeteringLabelCRUD>
 - 
- org.opendaylight.neutron.northbound.api.NeutronMeteringLabelsNorthbound
 
 
 
- 
@Singleton @Path("/metering/metering-labels") public final class NeutronMeteringLabelsNorthbound extends AbstractNeutronNorthbound<NeutronMeteringLabel,NeutronMeteringLabelRequest,INeutronMeteringLabelCRUD>Neutron Northbound REST APIs for Metering Lables. 
- 
- 
Field Summary
- 
Fields inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
HTTP_OK_BOTTOM, HTTP_OK_TOP 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NeutronMeteringLabelsNorthbound(INeutronMeteringLabelCRUD neutronCRUD) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateMeteringLabel(NeutronMeteringLabelRequest input)Creates new metering label.javax.ws.rs.core.ResponsedeleteMeteringLabel(String labelUUID)Deletes a Metering Label.protected StringgetResourceName()javax.ws.rs.core.ResponselistMeteringLabels(List<String> fields, String queryID, String queryName, String queryTenantID)Returns a list of all metering labels.javax.ws.rs.core.ResponseshowMeteringLabel(String labelUUID, List<String> fields)Returns a specific metering label.- 
Methods inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
create, delete, getNeutronCRUD, serviceUnavailable, show, update, updateDelta, uuidNoExist 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
NeutronMeteringLabelsNorthbound
@Inject public NeutronMeteringLabelsNorthbound(INeutronMeteringLabelCRUD neutronCRUD)
 
 - 
 
- 
Method Detail
- 
getResourceName
protected String getResourceName()
- Specified by:
 getResourceNamein classAbstractNeutronNorthbound<NeutronMeteringLabel,NeutronMeteringLabelRequest,INeutronMeteringLabelCRUD>
 
- 
listMeteringLabels
@GET @Produces("application/json") public javax.ws.rs.core.Response listMeteringLabels(@QueryParam("fields") List<String> fields, @QueryParam("id") String queryID, @QueryParam("name") String queryName, @QueryParam("tenant_id") String queryTenantID)Returns a list of all metering labels. 
- 
showMeteringLabel
@Path("{labelUUID}") @GET @Produces("application/json") public javax.ws.rs.core.Response showMeteringLabel(@PathParam("labelUUID") String labelUUID, @QueryParam("fields") List<String> fields)Returns a specific metering label. 
- 
createMeteringLabel
@POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createMeteringLabel(NeutronMeteringLabelRequest input)Creates new metering label. 
- 
deleteMeteringLabel
@Path("{labelUUID}") @DELETE public javax.ws.rs.core.Response deleteMeteringLabel(@PathParam("labelUUID") String labelUUID)Deletes a Metering Label. 
 - 
 
 -