--- /dev/null
+/*-\r
+ * ========================LICENSE_START=================================\r
+ * O-RAN-SC\r
+ * %%\r
+ * Copyright (C) 2024 OpenInfra Foundation Europe.\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
+ * ========================LICENSE_END===================================\r
+ */\r
+\r
+package org.oransc.nonrtric.sample.rest.response;\r
+\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+import java.util.List;\r
+\r
+public class ApiResponse {\r
+\r
+ @JsonProperty("serviceAPIDescriptions")\r
+ private List<ServiceAPIDescription> serviceAPIDescriptions;\r
+\r
+ public List<ServiceAPIDescription> getServiceAPIDescriptions() {\r
+ return serviceAPIDescriptions;\r
+ }\r
+\r
+ public void setServiceAPIDescriptions(List<ServiceAPIDescription> serviceAPIDescriptions) {\r
+ this.serviceAPIDescriptions = serviceAPIDescriptions;\r
+ }\r
+\r
+ public static class ServiceAPIDescription {\r
+ @JsonProperty("apiName")\r
+ private String apiName;\r
+\r
+ @JsonProperty("apiId")\r
+ private String apiId;\r
+\r
+ @JsonProperty("description")\r
+ private String description;\r
+\r
+ @JsonProperty("aefProfiles")\r
+ private List<AefProfile> aefProfiles;\r
+\r
+ public String getApiName() {\r
+ return apiName;\r
+ }\r
+\r
+ public void setApiName(String apiName) {\r
+ this.apiName = apiName;\r
+ }\r
+\r
+ public String getApiId() {\r
+ return apiId;\r
+ }\r
+\r
+ public void setApiId(String apiId) {\r
+ this.apiId = apiId;\r
+ }\r
+\r
+ public String getDescription() {\r
+ return description;\r
+ }\r
+\r
+ public void setDescription(String description) {\r
+ this.description = description;\r
+ }\r
+\r
+ public List<AefProfile> getAefProfiles() {\r
+ return aefProfiles;\r
+ }\r
+\r
+ public void setAefProfiles(List<AefProfile> aefProfiles) {\r
+ this.aefProfiles = aefProfiles;\r
+ }\r
+ }\r
+\r
+ public static class AefProfile {\r
+ private String aefId;\r
+ private String domainName;\r
+ private List<ApiVersion> versions;\r
+ private String protocol;\r
+ private List<InterfaceDescription> interfaceDescriptions;\r
+\r
+ public String getAefId() {\r
+ return aefId;\r
+ }\r
+\r
+ public String getDomainName() {\r
+ return domainName;\r
+ }\r
+\r
+ public void setDomainName(String domainName) {\r
+ this.domainName = domainName;\r
+ }\r
+\r
+ public void setAefId(String aefId) {\r
+ this.aefId = aefId;\r
+ }\r
+\r
+ public List<ApiVersion> getVersions() {\r
+ return versions;\r
+ }\r
+\r
+ public void setVersions(List<ApiVersion> versions) {\r
+ this.versions = versions;\r
+ }\r
+\r
+ public String getProtocol() {\r
+ return protocol;\r
+ }\r
+\r
+ public void setProtocol(String protocol) {\r
+ this.protocol = protocol;\r
+ }\r
+\r
+ public List<InterfaceDescription> getInterfaceDescriptions() {\r
+ return interfaceDescriptions;\r
+ }\r
+\r
+ public void setInterfaceDescriptions(\r
+ List<InterfaceDescription> interfaceDescriptions) {\r
+ this.interfaceDescriptions = interfaceDescriptions;\r
+ }\r
+ }\r
+\r
+ public static class ApiVersion {\r
+ private String apiVersion;\r
+ private List<Resource> resources;\r
+\r
+ public String getApiVersion() {\r
+ return apiVersion;\r
+ }\r
+\r
+ public void setApiVersion(String apiVersion) {\r
+ this.apiVersion = apiVersion;\r
+ }\r
+\r
+ public List<Resource> getResources() {\r
+ return resources;\r
+ }\r
+\r
+ public void setResources(List<Resource> resources) {\r
+ this.resources = resources;\r
+ }\r
+ }\r
+\r
+ public static class Resource {\r
+ private String resourceName;\r
+ private String commType;\r
+ private String uri;\r
+ private List<String> operations;\r
+\r
+ public String getResourceName() {\r
+ return resourceName;\r
+ }\r
+\r
+ public void setResourceName(String resourceName) {\r
+ this.resourceName = resourceName;\r
+ }\r
+\r
+ public String getCommType() {\r
+ return commType;\r
+ }\r
+\r
+ public void setCommType(String commType) {\r
+ this.commType = commType;\r
+ }\r
+\r
+ public String getUri() {\r
+ return uri;\r
+ }\r
+\r
+ public void setUri(String uri) {\r
+ this.uri = uri;\r
+ }\r
+\r
+ public List<String> getOperations() {\r
+ return operations;\r
+ }\r
+\r
+ public void setOperations(List<String> operations) {\r
+ this.operations = operations;\r
+ }\r
+ }\r
+\r
+ public static class InterfaceDescription {\r
+ private String ipv4Addr;\r
+ private int port;\r
+\r
+ public String getIpv4Addr() {\r
+ return ipv4Addr;\r
+ }\r
+\r
+ public void setIpv4Addr(String ipv4Addr) {\r
+ this.ipv4Addr = ipv4Addr;\r
+ }\r
+\r
+ public int getPort() {\r
+ return port;\r
+ }\r
+\r
+ public void setPort(int port) {\r
+ this.port = port;\r
+ }\r
+ }\r
+}\r
+\r