SBI updated

- openapi-generator version 5.2.0
- add priority/capacity/load in NFProfile/NFService
- add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
Sukchan Lee 2021-07-16 17:02:33 +09:00
parent 1326fc85dc
commit 039b9d0aaa
930 changed files with 7387 additions and 5434 deletions

View file

@ -10,6 +10,7 @@ OpenAPI_n2_sm_information_t *OpenAPI_n2_sm_information_create(
OpenAPI_snssai_t *s_nssai,
OpenAPI_snssai_t *home_plmn_snssai,
OpenAPI_snssai_t *iwk_snssai,
bool is_subject_to_ho,
int subject_to_ho
)
{
@ -22,6 +23,7 @@ OpenAPI_n2_sm_information_t *OpenAPI_n2_sm_information_create(
n2_sm_information_local_var->s_nssai = s_nssai;
n2_sm_information_local_var->home_plmn_snssai = home_plmn_snssai;
n2_sm_information_local_var->iwk_snssai = iwk_snssai;
n2_sm_information_local_var->is_subject_to_ho = is_subject_to_ho;
n2_sm_information_local_var->subject_to_ho = subject_to_ho;
return n2_sm_information_local_var;
@ -107,7 +109,7 @@ cJSON *OpenAPI_n2_sm_information_convertToJSON(OpenAPI_n2_sm_information_t *n2_s
}
}
if (n2_sm_information->subject_to_ho) {
if (n2_sm_information->is_subject_to_ho) {
if (cJSON_AddBoolToObject(item, "subjectToHo", n2_sm_information->subject_to_ho) == NULL) {
ogs_error("OpenAPI_n2_sm_information_convertToJSON() failed [subject_to_ho]");
goto end;
@ -127,7 +129,6 @@ OpenAPI_n2_sm_information_t *OpenAPI_n2_sm_information_parseFromJSON(cJSON *n2_s
goto end;
}
if (!cJSON_IsNumber(pdu_session_id)) {
ogs_error("OpenAPI_n2_sm_information_parseFromJSON() failed [pdu_session_id]");
goto end;
@ -136,34 +137,34 @@ OpenAPI_n2_sm_information_t *OpenAPI_n2_sm_information_parseFromJSON(cJSON *n2_s
cJSON *n2_info_content = cJSON_GetObjectItemCaseSensitive(n2_sm_informationJSON, "n2InfoContent");
OpenAPI_n2_info_content_t *n2_info_content_local_nonprim = NULL;
if (n2_info_content) {
if (n2_info_content) {
n2_info_content_local_nonprim = OpenAPI_n2_info_content_parseFromJSON(n2_info_content);
}
cJSON *s_nssai = cJSON_GetObjectItemCaseSensitive(n2_sm_informationJSON, "sNssai");
OpenAPI_snssai_t *s_nssai_local_nonprim = NULL;
if (s_nssai) {
if (s_nssai) {
s_nssai_local_nonprim = OpenAPI_snssai_parseFromJSON(s_nssai);
}
cJSON *home_plmn_snssai = cJSON_GetObjectItemCaseSensitive(n2_sm_informationJSON, "homePlmnSnssai");
OpenAPI_snssai_t *home_plmn_snssai_local_nonprim = NULL;
if (home_plmn_snssai) {
if (home_plmn_snssai) {
home_plmn_snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(home_plmn_snssai);
}
cJSON *iwk_snssai = cJSON_GetObjectItemCaseSensitive(n2_sm_informationJSON, "iwkSnssai");
OpenAPI_snssai_t *iwk_snssai_local_nonprim = NULL;
if (iwk_snssai) {
if (iwk_snssai) {
iwk_snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(iwk_snssai);
}
cJSON *subject_to_ho = cJSON_GetObjectItemCaseSensitive(n2_sm_informationJSON, "subjectToHo");
if (subject_to_ho) {
if (subject_to_ho) {
if (!cJSON_IsBool(subject_to_ho)) {
ogs_error("OpenAPI_n2_sm_information_parseFromJSON() failed [subject_to_ho]");
goto end;
@ -171,11 +172,13 @@ OpenAPI_n2_sm_information_t *OpenAPI_n2_sm_information_parseFromJSON(cJSON *n2_s
}
n2_sm_information_local_var = OpenAPI_n2_sm_information_create (
pdu_session_id->valuedouble,
n2_info_content ? n2_info_content_local_nonprim : NULL,
s_nssai ? s_nssai_local_nonprim : NULL,
home_plmn_snssai ? home_plmn_snssai_local_nonprim : NULL,
iwk_snssai ? iwk_snssai_local_nonprim : NULL,
subject_to_ho ? true : false,
subject_to_ho ? subject_to_ho->valueint : 0
);