Update swagger generator to OpenAPI 3.0
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / swagger / OpenApiObject.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  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 package org.opendaylight.netconf.sal.rest.doc.swagger;
9
10 import com.fasterxml.jackson.databind.node.ObjectNode;
11 import java.util.List;
12
13 public class OpenApiObject implements CommonApiObject {
14     private String openapi;
15     private Info info;
16     private List<Server> servers;
17     private ObjectNode paths;
18     private Components components;
19
20     public String getOpenapi() {
21         return openapi;
22     }
23
24     public void setOpenapi(String openapi) {
25         this.openapi = openapi;
26     }
27
28     public Info getInfo() {
29         return info;
30     }
31
32     public void setInfo(Info info) {
33         this.info = info;
34     }
35
36     public List<Server> getServers() {
37         return servers;
38     }
39
40     public void setServers(List<Server> servers) {
41         this.servers = servers;
42     }
43
44     public ObjectNode getPaths() {
45         return paths;
46     }
47
48     public void setPaths(ObjectNode paths) {
49         this.paths = paths;
50     }
51
52     public Components getComponents() {
53         return components;
54     }
55
56     public void setComponents(Components components) {
57         this.components = components;
58     }
59 }