--- /dev/null
+/**\r
+* Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+*/\r
+package org.openo.msb.api;\r
+\r
+import io.swagger.annotations.ApiModelProperty;\r
+\r
+import java.io.Serializable;\r
+\r
+import com.fasterxml.jackson.annotation.JsonInclude;\r
+import com.fasterxml.jackson.annotation.JsonInclude.Include;\r
+\r
+\r
+public class ApiRouteInfo implements Serializable{\r
+ private static final long serialVersionUID = 1L;\r
+ @ApiModelProperty(required = true)\r
+ private String serviceName; \r
+ \r
+ @ApiModelProperty(example = "v1", required = true)\r
+ private String version; \r
+ \r
+ @ApiModelProperty(value = "Target Service URL,start with /",example = "/test", required = true)\r
+ private String url; \r
+ \r
+ private String apiJson=""; //swagger json Path\r
+ \r
+ @ApiModelProperty(value = "[apiJson Type] 0:local file 1: remote file", allowableValues = "0,1", example = "1")\r
+ private String apiJsonType="1"; \r
+ private String metricsUrl=""; \r
+ \r
+ @ApiModelProperty(value = "[control Range] 0:default 1:readonly 2:hidden ", allowableValues = "0,1,2", example = "0")\r
+ private String control="0"; \r
+ \r
+ @ApiModelProperty(value = "[status] 1:abled 0:disabled ", allowableValues = "0,1", example = "1")\r
+ private String status="1"; \r
+ \r
+ @ApiModelProperty(value = "[visual Range]interSystem:0,inSystem:1", allowableValues = "0,1", example = "1")\r
+ private String visualRange = "1"; \r
+ \r
+ @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0")\r
+ private String useOwnUpstream="0"; //负载均衡策略 \r
+ \r
+ @ApiModelProperty(required = true)\r
+ private RouteServer servers[]; \r
+ \r
+ \r
+ \r
+ public String getServiceName() {\r
+ return serviceName;\r
+ }\r
+ public void setServiceName(String serviceName) {\r
+ this.serviceName = serviceName;\r
+ }\r
+ public String getVersion() {\r
+ return version;\r
+ }\r
+ public void setVersion(String version) {\r
+ this.version = version;\r
+ }\r
+ \r
+ public String getApiJson() {\r
+ return apiJson;\r
+ }\r
+ public void setApiJson(String apiJson) {\r
+ this.apiJson = apiJson;\r
+ }\r
+ \r
+ public String getUrl() {\r
+ return url;\r
+ }\r
+ public void setUrl(String url) {\r
+ this.url = url;\r
+ }\r
+ public RouteServer[] getServers() {\r
+ return servers;\r
+ }\r
+ public void setServers(RouteServer[] servers) {\r
+ this.servers = servers;\r
+ }\r
+ \r
+\r
+ public String getApiJsonType() {\r
+ return apiJsonType;\r
+ }\r
+ public void setApiJsonType(String apiJsonType) {\r
+ this.apiJsonType = apiJsonType;\r
+ }\r
+ public String getMetricsUrl() {\r
+ return metricsUrl;\r
+ }\r
+ public void setMetricsUrl(String metricsUrl) {\r
+ this.metricsUrl = metricsUrl;\r
+ }\r
+ public String getControl() {\r
+ return control;\r
+ }\r
+ public void setControl(String control) {\r
+ this.control = control;\r
+ }\r
+ public String getStatus() {\r
+ return status;\r
+ }\r
+ public void setStatus(String status) {\r
+ this.status = status;\r
+ }\r
+ public String getVisualRange() {\r
+ return visualRange;\r
+ }\r
+ public void setVisualRange(String visualRange) {\r
+ this.visualRange = visualRange;\r
+ }\r
+ public String getUseOwnUpstream() {\r
+ return useOwnUpstream;\r
+ }\r
+\r
+ public void setUseOwnUpstream(String useOwnUpstream) {\r
+ this.useOwnUpstream = useOwnUpstream;\r
+ }\r
+\r
+\r
+ \r
+ \r
+\r
+}\r