-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code changes in SO api-handler for RAN Slice
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
Showing
20 changed files
with
1,905 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
102
common/src/main/java/org/onap/so/moi/GETMoiResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
55
common/src/main/java/org/onap/so/moi/MoiAllocateRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
|
||
} |
Oops, something went wrong.