Skip to content

Commit

Permalink
Code changes in SO api-handler for RAN Slice
Browse files Browse the repository at this point in the history
Issue-ID: SO-4038
Change-Id: Ifad4e0a65dc810a753d30741a84c08081bcfd258
Signed-off-by: Patil <[email protected]>
  • Loading branch information
Abhishek Patil committed Mar 31, 2023
1 parent dbbde62 commit 4647e3e
Show file tree
Hide file tree
Showing 20 changed files with 1,905 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public enum WorkflowType {
NETWORKCOLLECTION("NetworkCollection"),
CONFIGURATION("Configuration"),
INSTANCE_GROUP("InstanceGroup"),
NETWORK_SLICE_SUBNET("NetworkSliceSubnet"),
CNF("Cnf");

private final String type;
Expand Down
82 changes: 82 additions & 0 deletions common/src/main/java/org/onap/so/moi/Attributes.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
102 changes: 102 additions & 0 deletions common/src/main/java/org/onap/so/moi/GETMoiResponse.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
55 changes: 55 additions & 0 deletions common/src/main/java/org/onap/so/moi/MoiAllocateRequest.java
Original file line number Diff line number Diff line change
@@ -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);
}

}
68 changes: 68 additions & 0 deletions common/src/main/java/org/onap/so/moi/PlmnId.java
Original file line number Diff line number Diff line change
@@ -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);
}

}
68 changes: 68 additions & 0 deletions common/src/main/java/org/onap/so/moi/PlmnInfo.java
Original file line number Diff line number Diff line change
@@ -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);
}

}
Loading

0 comments on commit 4647e3e

Please sign in to comment.