Class NeutronMeteringLabelRulesNorthbound
- java.lang.Object
-
- org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound<NeutronMeteringLabelRule,NeutronMeteringLabelRuleRequest,INeutronMeteringLabelRuleCRUD>
-
- org.opendaylight.neutron.northbound.api.NeutronMeteringLabelRulesNorthbound
-
@Singleton @Path("/metering/metering-label-rules") public final class NeutronMeteringLabelRulesNorthbound extends AbstractNeutronNorthbound<NeutronMeteringLabelRule,NeutronMeteringLabelRuleRequest,INeutronMeteringLabelRuleCRUD>
Neutron Northbound REST APIs for Metering Lable Rules.
-
-
Field Summary
-
Fields inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
HTTP_OK_BOTTOM, HTTP_OK_TOP
-
-
Constructor Summary
Constructors Constructor Description NeutronMeteringLabelRulesNorthbound(INeutronMeteringLabelRuleCRUD neutronCRUD)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createMeteringLabelRule(NeutronMeteringLabelRuleRequest input)
Creates new metering label rule.javax.ws.rs.core.Response
deleteMeteringLabelRule(String ruleUUID)
Deletes a Metering Label rule.protected String
getResourceName()
javax.ws.rs.core.Response
listMeteringLabelRules(List<String> fields, String queryID, String queryDirection, String queryRemoteIpPrefix, String queryLabelID)
Returns a list of all metering label rules.javax.ws.rs.core.Response
showMeteringLabelRule(String ruleUUID, List<String> fields)
Returns a specific metering label rule.-
Methods inherited from class org.opendaylight.neutron.northbound.api.AbstractNeutronNorthbound
create, delete, getNeutronCRUD, serviceUnavailable, show, update, updateDelta, uuidNoExist
-
-
-
-
Constructor Detail
-
NeutronMeteringLabelRulesNorthbound
@Inject public NeutronMeteringLabelRulesNorthbound(INeutronMeteringLabelRuleCRUD neutronCRUD)
-
-
Method Detail
-
getResourceName
protected String getResourceName()
-
listMeteringLabelRules
@GET @Produces("application/json") public javax.ws.rs.core.Response listMeteringLabelRules(@QueryParam("fields") List<String> fields, @QueryParam("id") String queryID, @QueryParam("direction") String queryDirection, @QueryParam("remote_ip_prefix") String queryRemoteIpPrefix, @QueryParam("metering_label_id") String queryLabelID)
Returns a list of all metering label rules.
-
showMeteringLabelRule
@Path("{ruleUUID}") @GET @Produces("application/json") public javax.ws.rs.core.Response showMeteringLabelRule(@PathParam("ruleUUID") String ruleUUID, @QueryParam("fields") List<String> fields)
Returns a specific metering label rule.
-
createMeteringLabelRule
@POST @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createMeteringLabelRule(NeutronMeteringLabelRuleRequest input)
Creates new metering label rule.
-
deleteMeteringLabelRule
@Path("{ruleUUID}") @DELETE public javax.ws.rs.core.Response deleteMeteringLabelRule(@PathParam("ruleUUID") String ruleUUID)
Deletes a Metering Label rule.
-
-