0128d4d183d326c29e660dcc8ada0586fa51daec
[neutron.git] /
1 /*
2  * Copyright IBM Corporation, 2015.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.neutron.northbound.api;
10
11 import java.util.ArrayList;
12 import java.util.HashMap;
13 import java.util.Iterator;
14 import java.util.List;
15
16 import javax.ws.rs.Consumes;
17 import javax.ws.rs.DELETE;
18 import javax.ws.rs.DefaultValue;
19 import javax.ws.rs.GET;
20 import javax.ws.rs.POST;
21 import javax.ws.rs.Path;
22 import javax.ws.rs.PathParam;
23 import javax.ws.rs.Produces;
24 import javax.ws.rs.QueryParam;
25 import javax.ws.rs.core.Context;
26 import javax.ws.rs.core.MediaType;
27 import javax.ws.rs.core.Response;
28 import javax.ws.rs.core.UriInfo;
29
30 import org.codehaus.enunciate.jaxrs.ResponseCode;
31 import org.codehaus.enunciate.jaxrs.StatusCodes;
32 import org.codehaus.enunciate.jaxrs.TypeHint;
33
34 /**
35  * Neutron Northbound REST APIs for Metering Lables.<br>
36  * This class provides REST APIs for managing neutron metering labels
37  *
38  * <br>
39  * <br>
40  * Authentication scheme : <b>HTTP Basic</b><br>
41  * Authentication realm : <b>opendaylight</b><br>
42  * Transport : <b>HTTP and HTTPS</b><br>
43  * <br>
44  * HTTPS Authentication is disabled by default. Administrator can enable it in
45  * tomcat-server.xml after adding a proper keystore / SSL certificate from a
46  * trusted authority.<br>
47  * More info :
48  * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
49  *
50  */
51
52 @Path("/metering/metering-labels")
53 public class NeutronMeteringLabelsNorthbound {
54
55     @Context
56     UriInfo uriInfo;
57
58     /**
59      * Returns a list of all metering labels */
60
61     @GET
62     @Produces({ MediaType.APPLICATION_JSON })
63     //@TypeHint(OpenStackNetworks.class)
64     @StatusCodes({
65         @ResponseCode(code = 501, condition = "Not Implemented") })
66     public Response listMeteringLabels(
67             ) {
68         throw new UnimplementedException("Unimplemented");
69     }
70
71     /**
72      * Returns a specific metering label */
73
74     @Path("{labelUUID}")
75     @GET
76     @Produces({ MediaType.APPLICATION_JSON })
77     @StatusCodes({
78         @ResponseCode(code = 501, condition = "Not Implemented") })
79     public Response showMeteringLabel(
80             @PathParam("labelUUID") String labelUUID
81             ) {
82         throw new UnimplementedException("Unimplemented");
83     }
84
85     /**
86      * Creates new metering label */
87     @POST
88     @Produces({ MediaType.APPLICATION_JSON })
89     @Consumes({ MediaType.APPLICATION_JSON })
90     //@TypeHint(NeutronNetwork.class)
91     @StatusCodes({
92         @ResponseCode(code = 501, condition = "Not Implemented") })
93     public Response createMeteringLabel(final NeutronMeteringLabelRequest input) {
94         throw new UnimplementedException("Unimplemented");
95     }
96
97     /**
98      * Deletes a Metering Label */
99
100     @Path("{labelUUID}")
101     @DELETE
102     @StatusCodes({
103         @ResponseCode(code = 501, condition = "Not Implemented") })
104     public Response deleteMeteringLabel(
105             @PathParam("labelUUID") String labelUUID) {
106         throw new UnimplementedException("Unimplemented");
107     }
108 }