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

@ -28,23 +28,28 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_create(
char *pdu_session_smf_set_id,
char *pdu_session_smf_service_set_id,
OpenAPI_sbi_binding_level_e pdu_session_smf_binding,
bool is_enable_pause_charging,
int enable_pause_charging,
char *ue_ipv4_address,
char *ue_ipv6_prefix,
OpenAPI_eps_pdn_cnx_info_t *eps_pdn_cnx_info,
OpenAPI_list_t *eps_bearer_info,
OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate,
bool is_always_on_granted,
int always_on_granted,
OpenAPI_up_security_t *up_security,
char *h_smf_service_instance_id,
char *smf_service_instance_id,
char *recovery_time,
bool is_forwarding_ind,
int forwarding_ind,
OpenAPI_tunnel_info_t *psa_tunnel_info,
char *charging_id,
OpenAPI_charging_information_t *charging_info,
OpenAPI_roaming_charging_profile_t *roaming_charging_profile,
bool is_nef_ext_buf_support_ind,
int nef_ext_buf_support_ind,
bool is_ipv6_index,
int ipv6_index,
OpenAPI_ip_address_t *dn_aaa_address,
OpenAPI_redundant_pdu_session_information_t *redundant_pdu_session_info,
@ -81,23 +86,28 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_create(
sm_context_local_var->pdu_session_smf_set_id = pdu_session_smf_set_id;
sm_context_local_var->pdu_session_smf_service_set_id = pdu_session_smf_service_set_id;
sm_context_local_var->pdu_session_smf_binding = pdu_session_smf_binding;
sm_context_local_var->is_enable_pause_charging = is_enable_pause_charging;
sm_context_local_var->enable_pause_charging = enable_pause_charging;
sm_context_local_var->ue_ipv4_address = ue_ipv4_address;
sm_context_local_var->ue_ipv6_prefix = ue_ipv6_prefix;
sm_context_local_var->eps_pdn_cnx_info = eps_pdn_cnx_info;
sm_context_local_var->eps_bearer_info = eps_bearer_info;
sm_context_local_var->max_integrity_protected_data_rate = max_integrity_protected_data_rate;
sm_context_local_var->is_always_on_granted = is_always_on_granted;
sm_context_local_var->always_on_granted = always_on_granted;
sm_context_local_var->up_security = up_security;
sm_context_local_var->h_smf_service_instance_id = h_smf_service_instance_id;
sm_context_local_var->smf_service_instance_id = smf_service_instance_id;
sm_context_local_var->recovery_time = recovery_time;
sm_context_local_var->is_forwarding_ind = is_forwarding_ind;
sm_context_local_var->forwarding_ind = forwarding_ind;
sm_context_local_var->psa_tunnel_info = psa_tunnel_info;
sm_context_local_var->charging_id = charging_id;
sm_context_local_var->charging_info = charging_info;
sm_context_local_var->roaming_charging_profile = roaming_charging_profile;
sm_context_local_var->is_nef_ext_buf_support_ind = is_nef_ext_buf_support_ind;
sm_context_local_var->nef_ext_buf_support_ind = nef_ext_buf_support_ind;
sm_context_local_var->is_ipv6_index = is_ipv6_index;
sm_context_local_var->ipv6_index = ipv6_index;
sm_context_local_var->dn_aaa_address = dn_aaa_address;
sm_context_local_var->redundant_pdu_session_info = redundant_pdu_session_info;
@ -357,7 +367,7 @@ cJSON *OpenAPI_sm_context_convertToJSON(OpenAPI_sm_context_t *sm_context)
}
}
if (sm_context->enable_pause_charging) {
if (sm_context->is_enable_pause_charging) {
if (cJSON_AddBoolToObject(item, "enablePauseCharging", sm_context->enable_pause_charging) == NULL) {
ogs_error("OpenAPI_sm_context_convertToJSON() failed [enable_pause_charging]");
goto end;
@ -418,7 +428,7 @@ cJSON *OpenAPI_sm_context_convertToJSON(OpenAPI_sm_context_t *sm_context)
}
}
if (sm_context->always_on_granted) {
if (sm_context->is_always_on_granted) {
if (cJSON_AddBoolToObject(item, "alwaysOnGranted", sm_context->always_on_granted) == NULL) {
ogs_error("OpenAPI_sm_context_convertToJSON() failed [always_on_granted]");
goto end;
@ -459,7 +469,7 @@ cJSON *OpenAPI_sm_context_convertToJSON(OpenAPI_sm_context_t *sm_context)
}
}
if (sm_context->forwarding_ind) {
if (sm_context->is_forwarding_ind) {
if (cJSON_AddBoolToObject(item, "forwardingInd", sm_context->forwarding_ind) == NULL) {
ogs_error("OpenAPI_sm_context_convertToJSON() failed [forwarding_ind]");
goto end;
@ -512,14 +522,14 @@ cJSON *OpenAPI_sm_context_convertToJSON(OpenAPI_sm_context_t *sm_context)
}
}
if (sm_context->nef_ext_buf_support_ind) {
if (sm_context->is_nef_ext_buf_support_ind) {
if (cJSON_AddBoolToObject(item, "nefExtBufSupportInd", sm_context->nef_ext_buf_support_ind) == NULL) {
ogs_error("OpenAPI_sm_context_convertToJSON() failed [nef_ext_buf_support_ind]");
goto end;
}
}
if (sm_context->ipv6_index) {
if (sm_context->is_ipv6_index) {
if (cJSON_AddNumberToObject(item, "ipv6Index", sm_context->ipv6_index) == NULL) {
ogs_error("OpenAPI_sm_context_convertToJSON() failed [ipv6_index]");
goto end;
@ -631,7 +641,6 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
goto end;
}
if (!cJSON_IsNumber(pdu_session_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_id]");
goto end;
@ -643,7 +652,6 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
goto end;
}
if (!cJSON_IsString(dnn)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [dnn]");
goto end;
@ -651,7 +659,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *selected_dnn = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "selectedDnn");
if (selected_dnn) {
if (selected_dnn) {
if (!cJSON_IsString(selected_dnn)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [selected_dnn]");
goto end;
@ -665,13 +673,12 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
}
OpenAPI_snssai_t *s_nssai_local_nonprim = NULL;
s_nssai_local_nonprim = OpenAPI_snssai_parseFromJSON(s_nssai);
cJSON *hplmn_snssai = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "hplmnSnssai");
OpenAPI_snssai_t *hplmn_snssai_local_nonprim = NULL;
if (hplmn_snssai) {
if (hplmn_snssai) {
hplmn_snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(hplmn_snssai);
}
@ -682,7 +689,6 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
}
OpenAPI_pdu_session_type_e pdu_session_typeVariable;
if (!cJSON_IsString(pdu_session_type)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_type]");
goto end;
@ -691,7 +697,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "gpsi");
if (gpsi) {
if (gpsi) {
if (!cJSON_IsString(gpsi)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [gpsi]");
goto end;
@ -700,7 +706,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *h_smf_uri = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "hSmfUri");
if (h_smf_uri) {
if (h_smf_uri) {
if (!cJSON_IsString(h_smf_uri)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [h_smf_uri]");
goto end;
@ -709,7 +715,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *smf_uri = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "smfUri");
if (smf_uri) {
if (smf_uri) {
if (!cJSON_IsString(smf_uri)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [smf_uri]");
goto end;
@ -718,7 +724,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pdu_session_ref = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionRef");
if (pdu_session_ref) {
if (pdu_session_ref) {
if (!cJSON_IsString(pdu_session_ref)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_ref]");
goto end;
@ -727,7 +733,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pcf_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pcfId");
if (pcf_id) {
if (pcf_id) {
if (!cJSON_IsString(pcf_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pcf_id]");
goto end;
@ -736,7 +742,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pcf_group_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pcfGroupId");
if (pcf_group_id) {
if (pcf_group_id) {
if (!cJSON_IsString(pcf_group_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pcf_group_id]");
goto end;
@ -745,7 +751,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pcf_set_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pcfSetId");
if (pcf_set_id) {
if (pcf_set_id) {
if (!cJSON_IsString(pcf_set_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pcf_set_id]");
goto end;
@ -755,7 +761,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *sel_mode = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "selMode");
OpenAPI_dnn_selection_mode_e sel_modeVariable;
if (sel_mode) {
if (sel_mode) {
if (!cJSON_IsString(sel_mode)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [sel_mode]");
goto end;
@ -765,7 +771,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *udm_group_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "udmGroupId");
if (udm_group_id) {
if (udm_group_id) {
if (!cJSON_IsString(udm_group_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [udm_group_id]");
goto end;
@ -774,7 +780,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *routing_indicator = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "routingIndicator");
if (routing_indicator) {
if (routing_indicator) {
if (!cJSON_IsString(routing_indicator)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [routing_indicator]");
goto end;
@ -788,7 +794,6 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
}
OpenAPI_ambr_t *session_ambr_local_nonprim = NULL;
session_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(session_ambr);
cJSON *qos_flows_list = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "qosFlowsList");
@ -798,7 +803,6 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
}
OpenAPI_list_t *qos_flows_listList;
cJSON *qos_flows_list_local_nonprimitive;
if (!cJSON_IsArray(qos_flows_list)){
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [qos_flows_list]");
@ -819,7 +823,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *h_smf_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "hSmfInstanceId");
if (h_smf_instance_id) {
if (h_smf_instance_id) {
if (!cJSON_IsString(h_smf_instance_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [h_smf_instance_id]");
goto end;
@ -828,7 +832,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *smf_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "smfInstanceId");
if (smf_instance_id) {
if (smf_instance_id) {
if (!cJSON_IsString(smf_instance_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [smf_instance_id]");
goto end;
@ -837,7 +841,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pdu_session_smf_set_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionSmfSetId");
if (pdu_session_smf_set_id) {
if (pdu_session_smf_set_id) {
if (!cJSON_IsString(pdu_session_smf_set_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_smf_set_id]");
goto end;
@ -846,7 +850,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pdu_session_smf_service_set_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionSmfServiceSetId");
if (pdu_session_smf_service_set_id) {
if (pdu_session_smf_service_set_id) {
if (!cJSON_IsString(pdu_session_smf_service_set_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_smf_service_set_id]");
goto end;
@ -856,7 +860,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *pdu_session_smf_binding = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionSmfBinding");
OpenAPI_sbi_binding_level_e pdu_session_smf_bindingVariable;
if (pdu_session_smf_binding) {
if (pdu_session_smf_binding) {
if (!cJSON_IsString(pdu_session_smf_binding)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_smf_binding]");
goto end;
@ -866,7 +870,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *enable_pause_charging = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "enablePauseCharging");
if (enable_pause_charging) {
if (enable_pause_charging) {
if (!cJSON_IsBool(enable_pause_charging)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [enable_pause_charging]");
goto end;
@ -875,7 +879,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *ue_ipv4_address = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ueIpv4Address");
if (ue_ipv4_address) {
if (ue_ipv4_address) {
if (!cJSON_IsString(ue_ipv4_address)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [ue_ipv4_address]");
goto end;
@ -884,7 +888,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *ue_ipv6_prefix = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ueIpv6Prefix");
if (ue_ipv6_prefix) {
if (ue_ipv6_prefix) {
if (!cJSON_IsString(ue_ipv6_prefix)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [ue_ipv6_prefix]");
goto end;
@ -894,14 +898,14 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *eps_pdn_cnx_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "epsPdnCnxInfo");
OpenAPI_eps_pdn_cnx_info_t *eps_pdn_cnx_info_local_nonprim = NULL;
if (eps_pdn_cnx_info) {
if (eps_pdn_cnx_info) {
eps_pdn_cnx_info_local_nonprim = OpenAPI_eps_pdn_cnx_info_parseFromJSON(eps_pdn_cnx_info);
}
cJSON *eps_bearer_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "epsBearerInfo");
OpenAPI_list_t *eps_bearer_infoList;
if (eps_bearer_info) {
if (eps_bearer_info) {
cJSON *eps_bearer_info_local_nonprimitive;
if (!cJSON_IsArray(eps_bearer_info)){
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [eps_bearer_info]");
@ -924,7 +928,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *max_integrity_protected_data_rate = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "maxIntegrityProtectedDataRate");
OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rateVariable;
if (max_integrity_protected_data_rate) {
if (max_integrity_protected_data_rate) {
if (!cJSON_IsString(max_integrity_protected_data_rate)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [max_integrity_protected_data_rate]");
goto end;
@ -934,7 +938,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *always_on_granted = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "alwaysOnGranted");
if (always_on_granted) {
if (always_on_granted) {
if (!cJSON_IsBool(always_on_granted)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [always_on_granted]");
goto end;
@ -944,13 +948,13 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *up_security = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "upSecurity");
OpenAPI_up_security_t *up_security_local_nonprim = NULL;
if (up_security) {
if (up_security) {
up_security_local_nonprim = OpenAPI_up_security_parseFromJSON(up_security);
}
cJSON *h_smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "hSmfServiceInstanceId");
if (h_smf_service_instance_id) {
if (h_smf_service_instance_id) {
if (!cJSON_IsString(h_smf_service_instance_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [h_smf_service_instance_id]");
goto end;
@ -959,7 +963,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "smfServiceInstanceId");
if (smf_service_instance_id) {
if (smf_service_instance_id) {
if (!cJSON_IsString(smf_service_instance_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [smf_service_instance_id]");
goto end;
@ -968,7 +972,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *recovery_time = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "recoveryTime");
if (recovery_time) {
if (recovery_time) {
if (!cJSON_IsString(recovery_time)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [recovery_time]");
goto end;
@ -977,7 +981,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *forwarding_ind = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "forwardingInd");
if (forwarding_ind) {
if (forwarding_ind) {
if (!cJSON_IsBool(forwarding_ind)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [forwarding_ind]");
goto end;
@ -987,13 +991,13 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *psa_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "psaTunnelInfo");
OpenAPI_tunnel_info_t *psa_tunnel_info_local_nonprim = NULL;
if (psa_tunnel_info) {
if (psa_tunnel_info) {
psa_tunnel_info_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(psa_tunnel_info);
}
cJSON *charging_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "chargingId");
if (charging_id) {
if (charging_id) {
if (!cJSON_IsString(charging_id)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [charging_id]");
goto end;
@ -1003,20 +1007,20 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *charging_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "chargingInfo");
OpenAPI_charging_information_t *charging_info_local_nonprim = NULL;
if (charging_info) {
if (charging_info) {
charging_info_local_nonprim = OpenAPI_charging_information_parseFromJSON(charging_info);
}
cJSON *roaming_charging_profile = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "roamingChargingProfile");
OpenAPI_roaming_charging_profile_t *roaming_charging_profile_local_nonprim = NULL;
if (roaming_charging_profile) {
if (roaming_charging_profile) {
roaming_charging_profile_local_nonprim = OpenAPI_roaming_charging_profile_parseFromJSON(roaming_charging_profile);
}
cJSON *nef_ext_buf_support_ind = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "nefExtBufSupportInd");
if (nef_ext_buf_support_ind) {
if (nef_ext_buf_support_ind) {
if (!cJSON_IsBool(nef_ext_buf_support_ind)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [nef_ext_buf_support_ind]");
goto end;
@ -1025,7 +1029,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *ipv6_index = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ipv6Index");
if (ipv6_index) {
if (ipv6_index) {
if (!cJSON_IsNumber(ipv6_index)) {
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [ipv6_index]");
goto end;
@ -1035,28 +1039,28 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *dn_aaa_address = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "dnAaaAddress");
OpenAPI_ip_address_t *dn_aaa_address_local_nonprim = NULL;
if (dn_aaa_address) {
if (dn_aaa_address) {
dn_aaa_address_local_nonprim = OpenAPI_ip_address_parseFromJSON(dn_aaa_address);
}
cJSON *redundant_pdu_session_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "redundantPduSessionInfo");
OpenAPI_redundant_pdu_session_information_t *redundant_pdu_session_info_local_nonprim = NULL;
if (redundant_pdu_session_info) {
if (redundant_pdu_session_info) {
redundant_pdu_session_info_local_nonprim = OpenAPI_redundant_pdu_session_information_parseFromJSON(redundant_pdu_session_info);
}
cJSON *ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ranTunnelInfo");
OpenAPI_qos_flow_tunnel_t *ran_tunnel_info_local_nonprim = NULL;
if (ran_tunnel_info) {
if (ran_tunnel_info) {
ran_tunnel_info_local_nonprim = OpenAPI_qos_flow_tunnel_parseFromJSON(ran_tunnel_info);
}
cJSON *add_ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "addRanTunnelInfo");
OpenAPI_list_t *add_ran_tunnel_infoList;
if (add_ran_tunnel_info) {
if (add_ran_tunnel_info) {
cJSON *add_ran_tunnel_info_local_nonprimitive;
if (!cJSON_IsArray(add_ran_tunnel_info)){
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [add_ran_tunnel_info]");
@ -1079,14 +1083,14 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
cJSON *red_ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "redRanTunnelInfo");
OpenAPI_qos_flow_tunnel_t *red_ran_tunnel_info_local_nonprim = NULL;
if (red_ran_tunnel_info) {
if (red_ran_tunnel_info) {
red_ran_tunnel_info_local_nonprim = OpenAPI_qos_flow_tunnel_parseFromJSON(red_ran_tunnel_info);
}
cJSON *add_red_ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "addRedRanTunnelInfo");
OpenAPI_list_t *add_red_ran_tunnel_infoList;
if (add_red_ran_tunnel_info) {
if (add_red_ran_tunnel_info) {
cJSON *add_red_ran_tunnel_info_local_nonprimitive;
if (!cJSON_IsArray(add_red_ran_tunnel_info)){
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [add_red_ran_tunnel_info]");
@ -1107,6 +1111,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
}
sm_context_local_var = OpenAPI_sm_context_create (
pdu_session_id->valuedouble,
ogs_strdup_or_assert(dnn->valuestring),
selected_dnn ? ogs_strdup_or_assert(selected_dnn->valuestring) : NULL,
@ -1130,23 +1135,28 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
pdu_session_smf_set_id ? ogs_strdup_or_assert(pdu_session_smf_set_id->valuestring) : NULL,
pdu_session_smf_service_set_id ? ogs_strdup_or_assert(pdu_session_smf_service_set_id->valuestring) : NULL,
pdu_session_smf_binding ? pdu_session_smf_bindingVariable : 0,
enable_pause_charging ? true : false,
enable_pause_charging ? enable_pause_charging->valueint : 0,
ue_ipv4_address ? ogs_strdup_or_assert(ue_ipv4_address->valuestring) : NULL,
ue_ipv6_prefix ? ogs_strdup_or_assert(ue_ipv6_prefix->valuestring) : NULL,
eps_pdn_cnx_info ? eps_pdn_cnx_info_local_nonprim : NULL,
eps_bearer_info ? eps_bearer_infoList : NULL,
max_integrity_protected_data_rate ? max_integrity_protected_data_rateVariable : 0,
always_on_granted ? true : false,
always_on_granted ? always_on_granted->valueint : 0,
up_security ? up_security_local_nonprim : NULL,
h_smf_service_instance_id ? ogs_strdup_or_assert(h_smf_service_instance_id->valuestring) : NULL,
smf_service_instance_id ? ogs_strdup_or_assert(smf_service_instance_id->valuestring) : NULL,
recovery_time ? ogs_strdup_or_assert(recovery_time->valuestring) : NULL,
forwarding_ind ? true : false,
forwarding_ind ? forwarding_ind->valueint : 0,
psa_tunnel_info ? psa_tunnel_info_local_nonprim : NULL,
charging_id ? ogs_strdup_or_assert(charging_id->valuestring) : NULL,
charging_info ? charging_info_local_nonprim : NULL,
roaming_charging_profile ? roaming_charging_profile_local_nonprim : NULL,
nef_ext_buf_support_ind ? true : false,
nef_ext_buf_support_ind ? nef_ext_buf_support_ind->valueint : 0,
ipv6_index ? true : false,
ipv6_index ? ipv6_index->valuedouble : 0,
dn_aaa_address ? dn_aaa_address_local_nonprim : NULL,
redundant_pdu_session_info ? redundant_pdu_session_info_local_nonprim : NULL,