diff options
Diffstat (limited to 'common/src/main')
8 files changed, 670 insertions, 0 deletions
diff --git a/common/src/main/java/org/onap/so/moi/Attributes.java b/common/src/main/java/org/onap/so/moi/Attributes.java new file mode 100644 index 0000000000..72d00c2b90 --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/Attributes.java @@ -0,0 +1,82 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"sliceProfileList"}) +public class Attributes { + + @JsonProperty("sliceProfileList") + private List<SliceProfile> sliceProfileList = null; + + @JsonProperty("operationalState") + private String operationalState; + + @JsonProperty("administrativeState") + private String administrativeState; + + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("sliceProfileList") + public List<SliceProfile> getSliceProfileList() { + return sliceProfileList; + } + + @JsonProperty("sliceProfileList") + public void setSliceProfileList(List<SliceProfile> sliceProfileList) { + this.sliceProfileList = sliceProfileList; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + @JsonProperty("operationalState") + public String getOperationalState() { + return operationalState; + } + + @JsonProperty("operationalState") + public void setOperationalState(String operationalState) { + this.operationalState = operationalState; + } + + @JsonProperty("administrativeState") + public String getAdministrativeState() { + return administrativeState; + } + + @JsonProperty("administrativeState") + public void setAdministrativeState(String administrativeState) { + this.administrativeState = administrativeState; + } +} diff --git a/common/src/main/java/org/onap/so/moi/GETMoiResponse.java b/common/src/main/java/org/onap/so/moi/GETMoiResponse.java new file mode 100644 index 0000000000..569b3a45a3 --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/GETMoiResponse.java @@ -0,0 +1,102 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import org.springframework.beans.factory.annotation.Autowired; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"id", "operationalState", "administrativeState", "attributes"}) +public class GETMoiResponse { + + @JsonProperty("id") + private String id = null; + + @JsonProperty("operationalState") + private String operationalState = null; + + @JsonProperty("administrativeState") + private String administrativeState = null; + + @Autowired + @JsonProperty("attributes") + private Attributes attributes; + + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("id") + public String getId() { + return id; + } + + @JsonProperty("id") + public void setId(String id) { + this.id = id; + } + + @JsonProperty("operationalState") + public String getOperationalState() { + return operationalState; + } + + @JsonProperty("operationalState") + public void setOperationalState(String operationalState) { + this.operationalState = operationalState; + } + + @JsonProperty("administrativeState") + public String getAdministrativeState() { + return administrativeState; + } + + @JsonProperty("administrativeState") + public void setAdministrativeState(String administrativeState) { + this.administrativeState = administrativeState; + } + + @JsonProperty("attributes") + public Attributes getAttributes() { + return attributes; + } + + @JsonProperty("attributes") + public void setAttributes(Attributes attributes) { + this.attributes = attributes; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperties(Map<String, Object> additionalProperties) { + this.additionalProperties = additionalProperties; + } +} diff --git a/common/src/main/java/org/onap/so/moi/MoiAllocateRequest.java b/common/src/main/java/org/onap/so/moi/MoiAllocateRequest.java new file mode 100644 index 0000000000..cc4f02051d --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/MoiAllocateRequest.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"attributes"}) +public class MoiAllocateRequest { + + @JsonProperty("attributes") + private Attributes attributes; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("attributes") + public Attributes getAttributes() { + return attributes; + } + + @JsonProperty("attributes") + public void setAttributes(Attributes attributes) { + this.attributes = attributes; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + +} diff --git a/common/src/main/java/org/onap/so/moi/PlmnId.java b/common/src/main/java/org/onap/so/moi/PlmnId.java new file mode 100644 index 0000000000..77a44bd414 --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/PlmnId.java @@ -0,0 +1,68 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"mcc", "mnc"}) +public class PlmnId { + + @JsonProperty("mcc") + private Integer mcc; + @JsonProperty("mnc") + private Integer mnc; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("mcc") + public Integer getMcc() { + return mcc; + } + + @JsonProperty("mcc") + public void setMcc(Integer mcc) { + this.mcc = mcc; + } + + @JsonProperty("mnc") + public Integer getMnc() { + return mnc; + } + + @JsonProperty("mnc") + public void setMnc(Integer mnc) { + this.mnc = mnc; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + +} diff --git a/common/src/main/java/org/onap/so/moi/PlmnInfo.java b/common/src/main/java/org/onap/so/moi/PlmnInfo.java new file mode 100644 index 0000000000..bd16423d38 --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/PlmnInfo.java @@ -0,0 +1,68 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"plmnId", "snssai"}) +public class PlmnInfo { + + @JsonProperty("plmnId") + private PlmnId plmnId; + @JsonProperty("snssai") + private Snssai snssai; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("plmnId") + public PlmnId getPlmnId() { + return plmnId; + } + + @JsonProperty("plmnId") + public void setPlmnId(PlmnId plmnId) { + this.plmnId = plmnId; + } + + @JsonProperty("snssai") + public Snssai getSnssai() { + return snssai; + } + + @JsonProperty("snssai") + public void setSnssai(Snssai snssai) { + this.snssai = snssai; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + +} diff --git a/common/src/main/java/org/onap/so/moi/RANSliceSubnetProfile.java b/common/src/main/java/org/onap/so/moi/RANSliceSubnetProfile.java new file mode 100644 index 0000000000..dc2bac50b4 --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/RANSliceSubnetProfile.java @@ -0,0 +1,143 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import javax.annotation.Generated; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"coverageAreaTAList", "dLLatency", "uLLatency", "resourceSharingLevel", "serviceType", + "maxNumberofUEs"}) +@Generated("jsonschema2pojo") +public class RANSliceSubnetProfile { + + @JsonProperty("coverageAreaTAList") + private Integer coverageAreaTAList; + @JsonProperty("latency") + private Integer latency; + @JsonProperty("dLLatency") + private Integer dLLatency; + @JsonProperty("uLLatency") + private Integer uLLatency; + @JsonProperty("resourceSharingLevel") + private String resourceSharingLevel; + @JsonProperty("serviceType") + private String serviceType; + @JsonProperty("maxNumberofUEs") + private Integer maxNumberofUEs; + @JsonProperty("areaTrafficCapDL") + private Integer areaTrafficCapDL; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("coverageAreaTAList") + public Integer getCoverageAreaTAList() { + return coverageAreaTAList; + } + + @JsonProperty("coverageAreaTAList") + public void setCoverageAreaTAList(Integer coverageAreaTAList) { + this.coverageAreaTAList = coverageAreaTAList; + } + + @JsonProperty("dLLatency") + public Integer getdLLatency() { + return dLLatency; + } + + @JsonProperty("dLLatency") + public void setdLLatency(Integer dLLatency) { + this.dLLatency = dLLatency; + } + + @JsonProperty("uLLatency") + public Integer getuLLatency() { + return uLLatency; + } + + @JsonProperty("uLLatency") + public void setuLLatency(Integer uLLatency) { + this.uLLatency = uLLatency; + } + + @JsonProperty("resourceSharingLevel") + public String getResourceSharingLevel() { + return resourceSharingLevel; + } + + @JsonProperty("resourceSharingLevel") + public void setResourceSharingLevel(String resourceSharingLevel) { + this.resourceSharingLevel = resourceSharingLevel; + } + + @JsonProperty("serviceType") + public String getServiceType() { + return serviceType; + } + + @JsonProperty("serviceType") + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + @JsonProperty("maxNumberofUEs") + public Integer getMaxNumberofUEs() { + return maxNumberofUEs; + } + + @JsonProperty("maxNumberofUEs") + public void setMaxNumberofUEs(Integer maxNumberofUEs) { + this.maxNumberofUEs = maxNumberofUEs; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + @JsonProperty("areaTrafficCapDL") + public Integer getAreaTrafficCapDL() { + return this.areaTrafficCapDL; + } + + @JsonProperty("latency") + public Integer getLatency() { + return latency; + } + + @JsonProperty("latency") + public void setLatency(Integer latency) { + this.latency = latency; + } + + @JsonProperty("areaTrafficCapDL") + public void setAreaTrafficCapDL(Integer areaTrafficCapDL) { + this.areaTrafficCapDL = areaTrafficCapDL; + } + +} diff --git a/common/src/main/java/org/onap/so/moi/SliceProfile.java b/common/src/main/java/org/onap/so/moi/SliceProfile.java new file mode 100644 index 0000000000..ec6104f4fe --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/SliceProfile.java @@ -0,0 +1,84 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"sliceProfileId", "plmnInfoList", "RANSliceSubnetProfile"}) +public class SliceProfile { + + @JsonProperty("sliceProfileId") + private String sliceProfileId = null; + + @JsonProperty("plmnInfoList") + private List<PlmnInfo> plmnInfoList = null; + + @JsonProperty("RANSliceSubnetProfile") + private RANSliceSubnetProfile rANSliceSubnetProfile; + + @JsonProperty("sliceProfileId") + public String getSliceProfileId() { + return sliceProfileId; + } + + @JsonProperty("sliceProfileId") + public void setSliceProfileId(String sliceProfileId) { + this.sliceProfileId = sliceProfileId; + } + + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("plmnInfoList") + public List<PlmnInfo> getPlmnInfoList() { + return plmnInfoList; + } + + @JsonProperty("plmnInfoList") + public void setPlmnInfoList(List<PlmnInfo> plmnInfoList) { + this.plmnInfoList = plmnInfoList; + } + + @JsonProperty("RANSliceSubnetProfile") + public RANSliceSubnetProfile getRANSliceSubnetProfile() { + return rANSliceSubnetProfile; + } + + @JsonProperty("RANSliceSubnetProfile") + public void setrANSliceSubnetProfile(RANSliceSubnetProfile rANSliceSubnetProfile) { + this.rANSliceSubnetProfile = rANSliceSubnetProfile; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + +} diff --git a/common/src/main/java/org/onap/so/moi/Snssai.java b/common/src/main/java/org/onap/so/moi/Snssai.java new file mode 100644 index 0000000000..8ed2892817 --- /dev/null +++ b/common/src/main/java/org/onap/so/moi/Snssai.java @@ -0,0 +1,68 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.moi; + +import com.fasterxml.jackson.annotation.*; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"sst", "sd"}) +public class Snssai { + + @JsonProperty("sst") + private String sst; + @JsonProperty("sd") + private String sd; + @JsonIgnore + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); + + @JsonProperty("sst") + public String getSst() { + return sst; + } + + @JsonProperty("sst") + public void setSst(String sst) { + this.sst = sst; + } + + @JsonProperty("sd") + public String getSd() { + return sd; + } + + @JsonProperty("sd") + public void setSd(String sd) { + this.sd = sd; + } + + @JsonAnyGetter + public Map<String, Object> getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + +} |