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

@ -7,6 +7,7 @@
OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_create(
OpenAPI_pdu_session_types_t *pdu_session_types,
OpenAPI_ssc_modes_t *ssc_modes,
bool is_iwk_eps_ind,
int iwk_eps_ind,
OpenAPI_subscribed_default_qos_t *_5g_qos_profile,
OpenAPI_ambr_t *session_ambr,
@ -16,12 +17,16 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_create(
OpenAPI_pdu_session_continuity_ind_e pdu_session_continuity_ind,
char *nidd_nef_id,
OpenAPI_nidd_information_t *nidd_info,
bool is_redundant_session_allowed,
int redundant_session_allowed,
OpenAPI_acs_info_t *acs_info,
OpenAPI_list_t *ipv4_frame_route_list,
OpenAPI_list_t *ipv6_frame_route_list,
bool is_atsss_allowed,
int atsss_allowed,
bool is_secondary_auth,
int secondary_auth,
bool is_dn_aaa_ip_address_allocation,
int dn_aaa_ip_address_allocation,
OpenAPI_ip_address_t *dn_aaa_address,
char *iptv_acc_ctrl_info
@ -33,6 +38,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_create(
}
dnn_configuration_local_var->pdu_session_types = pdu_session_types;
dnn_configuration_local_var->ssc_modes = ssc_modes;
dnn_configuration_local_var->is_iwk_eps_ind = is_iwk_eps_ind;
dnn_configuration_local_var->iwk_eps_ind = iwk_eps_ind;
dnn_configuration_local_var->_5g_qos_profile = _5g_qos_profile;
dnn_configuration_local_var->session_ambr = session_ambr;
@ -42,12 +48,16 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_create(
dnn_configuration_local_var->pdu_session_continuity_ind = pdu_session_continuity_ind;
dnn_configuration_local_var->nidd_nef_id = nidd_nef_id;
dnn_configuration_local_var->nidd_info = nidd_info;
dnn_configuration_local_var->is_redundant_session_allowed = is_redundant_session_allowed;
dnn_configuration_local_var->redundant_session_allowed = redundant_session_allowed;
dnn_configuration_local_var->acs_info = acs_info;
dnn_configuration_local_var->ipv4_frame_route_list = ipv4_frame_route_list;
dnn_configuration_local_var->ipv6_frame_route_list = ipv6_frame_route_list;
dnn_configuration_local_var->is_atsss_allowed = is_atsss_allowed;
dnn_configuration_local_var->atsss_allowed = atsss_allowed;
dnn_configuration_local_var->is_secondary_auth = is_secondary_auth;
dnn_configuration_local_var->secondary_auth = secondary_auth;
dnn_configuration_local_var->is_dn_aaa_ip_address_allocation = is_dn_aaa_ip_address_allocation;
dnn_configuration_local_var->dn_aaa_ip_address_allocation = dn_aaa_ip_address_allocation;
dnn_configuration_local_var->dn_aaa_address = dn_aaa_address;
dnn_configuration_local_var->iptv_acc_ctrl_info = iptv_acc_ctrl_info;
@ -119,7 +129,7 @@ cJSON *OpenAPI_dnn_configuration_convertToJSON(OpenAPI_dnn_configuration_t *dnn_
goto end;
}
if (dnn_configuration->iwk_eps_ind) {
if (dnn_configuration->is_iwk_eps_ind) {
if (cJSON_AddBoolToObject(item, "iwkEpsInd", dnn_configuration->iwk_eps_ind) == NULL) {
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [iwk_eps_ind]");
goto end;
@ -219,7 +229,7 @@ cJSON *OpenAPI_dnn_configuration_convertToJSON(OpenAPI_dnn_configuration_t *dnn_
}
}
if (dnn_configuration->redundant_session_allowed) {
if (dnn_configuration->is_redundant_session_allowed) {
if (cJSON_AddBoolToObject(item, "redundantSessionAllowed", dnn_configuration->redundant_session_allowed) == NULL) {
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [redundant_session_allowed]");
goto end;
@ -279,21 +289,21 @@ cJSON *OpenAPI_dnn_configuration_convertToJSON(OpenAPI_dnn_configuration_t *dnn_
}
}
if (dnn_configuration->atsss_allowed) {
if (dnn_configuration->is_atsss_allowed) {
if (cJSON_AddBoolToObject(item, "atsssAllowed", dnn_configuration->atsss_allowed) == NULL) {
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [atsss_allowed]");
goto end;
}
}
if (dnn_configuration->secondary_auth) {
if (dnn_configuration->is_secondary_auth) {
if (cJSON_AddBoolToObject(item, "secondaryAuth", dnn_configuration->secondary_auth) == NULL) {
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [secondary_auth]");
goto end;
}
}
if (dnn_configuration->dn_aaa_ip_address_allocation) {
if (dnn_configuration->is_dn_aaa_ip_address_allocation) {
if (cJSON_AddBoolToObject(item, "dnAaaIpAddressAllocation", dnn_configuration->dn_aaa_ip_address_allocation) == NULL) {
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_ip_address_allocation]");
goto end;
@ -334,7 +344,6 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
}
OpenAPI_pdu_session_types_t *pdu_session_types_local_nonprim = NULL;
pdu_session_types_local_nonprim = OpenAPI_pdu_session_types_parseFromJSON(pdu_session_types);
cJSON *ssc_modes = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "sscModes");
@ -344,12 +353,11 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
}
OpenAPI_ssc_modes_t *ssc_modes_local_nonprim = NULL;
ssc_modes_local_nonprim = OpenAPI_ssc_modes_parseFromJSON(ssc_modes);
cJSON *iwk_eps_ind = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "iwkEpsInd");
if (iwk_eps_ind) {
if (iwk_eps_ind) {
if (!cJSON_IsBool(iwk_eps_ind)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [iwk_eps_ind]");
goto end;
@ -359,20 +367,20 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *_5g_qos_profile = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "5gQosProfile");
OpenAPI_subscribed_default_qos_t *_5g_qos_profile_local_nonprim = NULL;
if (_5g_qos_profile) {
if (_5g_qos_profile) {
_5g_qos_profile_local_nonprim = OpenAPI_subscribed_default_qos_parseFromJSON(_5g_qos_profile);
}
cJSON *session_ambr = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "sessionAmbr");
OpenAPI_ambr_t *session_ambr_local_nonprim = NULL;
if (session_ambr) {
if (session_ambr) {
session_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(session_ambr);
}
cJSON *_3gpp_charging_characteristics = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "3gppChargingCharacteristics");
if (_3gpp_charging_characteristics) {
if (_3gpp_charging_characteristics) {
if (!cJSON_IsString(_3gpp_charging_characteristics)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [_3gpp_charging_characteristics]");
goto end;
@ -382,7 +390,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *static_ip_address = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "staticIpAddress");
OpenAPI_list_t *static_ip_addressList;
if (static_ip_address) {
if (static_ip_address) {
cJSON *static_ip_address_local_nonprimitive;
if (!cJSON_IsArray(static_ip_address)){
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [static_ip_address]");
@ -405,14 +413,14 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *up_security = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "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 *pdu_session_continuity_ind = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "pduSessionContinuityInd");
OpenAPI_pdu_session_continuity_ind_e pdu_session_continuity_indVariable;
if (pdu_session_continuity_ind) {
if (pdu_session_continuity_ind) {
if (!cJSON_IsString(pdu_session_continuity_ind)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [pdu_session_continuity_ind]");
goto end;
@ -422,7 +430,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *nidd_nef_id = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "niddNefId");
if (nidd_nef_id) {
if (nidd_nef_id) {
if (!cJSON_IsString(nidd_nef_id)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [nidd_nef_id]");
goto end;
@ -432,13 +440,13 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *nidd_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "niddInfo");
OpenAPI_nidd_information_t *nidd_info_local_nonprim = NULL;
if (nidd_info) {
if (nidd_info) {
nidd_info_local_nonprim = OpenAPI_nidd_information_parseFromJSON(nidd_info);
}
cJSON *redundant_session_allowed = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "redundantSessionAllowed");
if (redundant_session_allowed) {
if (redundant_session_allowed) {
if (!cJSON_IsBool(redundant_session_allowed)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [redundant_session_allowed]");
goto end;
@ -448,14 +456,14 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *acs_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "acsInfo");
OpenAPI_acs_info_t *acs_info_local_nonprim = NULL;
if (acs_info) {
if (acs_info) {
acs_info_local_nonprim = OpenAPI_acs_info_parseFromJSON(acs_info);
}
cJSON *ipv4_frame_route_list = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "ipv4FrameRouteList");
OpenAPI_list_t *ipv4_frame_route_listList;
if (ipv4_frame_route_list) {
if (ipv4_frame_route_list) {
cJSON *ipv4_frame_route_list_local_nonprimitive;
if (!cJSON_IsArray(ipv4_frame_route_list)){
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv4_frame_route_list]");
@ -478,7 +486,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *ipv6_frame_route_list = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "ipv6FrameRouteList");
OpenAPI_list_t *ipv6_frame_route_listList;
if (ipv6_frame_route_list) {
if (ipv6_frame_route_list) {
cJSON *ipv6_frame_route_list_local_nonprimitive;
if (!cJSON_IsArray(ipv6_frame_route_list)){
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv6_frame_route_list]");
@ -500,7 +508,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *atsss_allowed = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "atsssAllowed");
if (atsss_allowed) {
if (atsss_allowed) {
if (!cJSON_IsBool(atsss_allowed)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [atsss_allowed]");
goto end;
@ -509,7 +517,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *secondary_auth = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "secondaryAuth");
if (secondary_auth) {
if (secondary_auth) {
if (!cJSON_IsBool(secondary_auth)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [secondary_auth]");
goto end;
@ -518,7 +526,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *dn_aaa_ip_address_allocation = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "dnAaaIpAddressAllocation");
if (dn_aaa_ip_address_allocation) {
if (dn_aaa_ip_address_allocation) {
if (!cJSON_IsBool(dn_aaa_ip_address_allocation)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [dn_aaa_ip_address_allocation]");
goto end;
@ -528,13 +536,13 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
cJSON *dn_aaa_address = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "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 *iptv_acc_ctrl_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "iptvAccCtrlInfo");
if (iptv_acc_ctrl_info) {
if (iptv_acc_ctrl_info) {
if (!cJSON_IsString(iptv_acc_ctrl_info)) {
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [iptv_acc_ctrl_info]");
goto end;
@ -544,6 +552,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
dnn_configuration_local_var = OpenAPI_dnn_configuration_create (
pdu_session_types_local_nonprim,
ssc_modes_local_nonprim,
iwk_eps_ind ? true : false,
iwk_eps_ind ? iwk_eps_ind->valueint : 0,
_5g_qos_profile ? _5g_qos_profile_local_nonprim : NULL,
session_ambr ? session_ambr_local_nonprim : NULL,
@ -553,12 +562,16 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
pdu_session_continuity_ind ? pdu_session_continuity_indVariable : 0,
nidd_nef_id ? ogs_strdup_or_assert(nidd_nef_id->valuestring) : NULL,
nidd_info ? nidd_info_local_nonprim : NULL,
redundant_session_allowed ? true : false,
redundant_session_allowed ? redundant_session_allowed->valueint : 0,
acs_info ? acs_info_local_nonprim : NULL,
ipv4_frame_route_list ? ipv4_frame_route_listList : NULL,
ipv6_frame_route_list ? ipv6_frame_route_listList : NULL,
atsss_allowed ? true : false,
atsss_allowed ? atsss_allowed->valueint : 0,
secondary_auth ? true : false,
secondary_auth ? secondary_auth->valueint : 0,
dn_aaa_ip_address_allocation ? true : false,
dn_aaa_ip_address_allocation ? dn_aaa_ip_address_allocation->valueint : 0,
dn_aaa_address ? dn_aaa_address_local_nonprim : NULL,
iptv_acc_ctrl_info ? ogs_strdup_or_assert(iptv_acc_ctrl_info->valuestring) : NULL