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

@ -8,17 +8,23 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_create(
OpenAPI_list_t *s_nssai_upf_info_list,
OpenAPI_list_t *smf_serving_area,
OpenAPI_list_t *interface_upf_info_list,
bool is_iwk_eps_ind,
int iwk_eps_ind,
OpenAPI_list_t *pdu_session_types,
OpenAPI_atsss_capability_t *atsss_capability,
bool is_ue_ip_addr_ind,
int ue_ip_addr_ind,
OpenAPI_list_t *tai_list,
OpenAPI_w_agf_info_t *w_agf_info,
OpenAPI_tngf_info_t *tngf_info,
OpenAPI_twif_info_t *twif_info,
bool is_priority,
int priority,
bool is_redundant_gtpu,
int redundant_gtpu,
bool is_ipups,
int ipups,
bool is_data_forwarding,
int data_forwarding
)
{
@ -29,17 +35,23 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_create(
upf_info_local_var->s_nssai_upf_info_list = s_nssai_upf_info_list;
upf_info_local_var->smf_serving_area = smf_serving_area;
upf_info_local_var->interface_upf_info_list = interface_upf_info_list;
upf_info_local_var->is_iwk_eps_ind = is_iwk_eps_ind;
upf_info_local_var->iwk_eps_ind = iwk_eps_ind;
upf_info_local_var->pdu_session_types = pdu_session_types;
upf_info_local_var->atsss_capability = atsss_capability;
upf_info_local_var->is_ue_ip_addr_ind = is_ue_ip_addr_ind;
upf_info_local_var->ue_ip_addr_ind = ue_ip_addr_ind;
upf_info_local_var->tai_list = tai_list;
upf_info_local_var->w_agf_info = w_agf_info;
upf_info_local_var->tngf_info = tngf_info;
upf_info_local_var->twif_info = twif_info;
upf_info_local_var->is_priority = is_priority;
upf_info_local_var->priority = priority;
upf_info_local_var->is_redundant_gtpu = is_redundant_gtpu;
upf_info_local_var->redundant_gtpu = redundant_gtpu;
upf_info_local_var->is_ipups = is_ipups;
upf_info_local_var->ipups = ipups;
upf_info_local_var->is_data_forwarding = is_data_forwarding;
upf_info_local_var->data_forwarding = data_forwarding;
return upf_info_local_var;
@ -139,7 +151,7 @@ cJSON *OpenAPI_upf_info_convertToJSON(OpenAPI_upf_info_t *upf_info)
}
}
if (upf_info->iwk_eps_ind) {
if (upf_info->is_iwk_eps_ind) {
if (cJSON_AddBoolToObject(item, "iwkEpsInd", upf_info->iwk_eps_ind) == NULL) {
ogs_error("OpenAPI_upf_info_convertToJSON() failed [iwk_eps_ind]");
goto end;
@ -174,7 +186,7 @@ cJSON *OpenAPI_upf_info_convertToJSON(OpenAPI_upf_info_t *upf_info)
}
}
if (upf_info->ue_ip_addr_ind) {
if (upf_info->is_ue_ip_addr_ind) {
if (cJSON_AddBoolToObject(item, "ueIpAddrInd", upf_info->ue_ip_addr_ind) == NULL) {
ogs_error("OpenAPI_upf_info_convertToJSON() failed [ue_ip_addr_ind]");
goto end;
@ -240,28 +252,28 @@ cJSON *OpenAPI_upf_info_convertToJSON(OpenAPI_upf_info_t *upf_info)
}
}
if (upf_info->priority) {
if (upf_info->is_priority) {
if (cJSON_AddNumberToObject(item, "priority", upf_info->priority) == NULL) {
ogs_error("OpenAPI_upf_info_convertToJSON() failed [priority]");
goto end;
}
}
if (upf_info->redundant_gtpu) {
if (upf_info->is_redundant_gtpu) {
if (cJSON_AddBoolToObject(item, "redundantGtpu", upf_info->redundant_gtpu) == NULL) {
ogs_error("OpenAPI_upf_info_convertToJSON() failed [redundant_gtpu]");
goto end;
}
}
if (upf_info->ipups) {
if (upf_info->is_ipups) {
if (cJSON_AddBoolToObject(item, "ipups", upf_info->ipups) == NULL) {
ogs_error("OpenAPI_upf_info_convertToJSON() failed [ipups]");
goto end;
}
}
if (upf_info->data_forwarding) {
if (upf_info->is_data_forwarding) {
if (cJSON_AddBoolToObject(item, "dataForwarding", upf_info->data_forwarding) == NULL) {
ogs_error("OpenAPI_upf_info_convertToJSON() failed [data_forwarding]");
goto end;
@ -282,7 +294,6 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
}
OpenAPI_list_t *s_nssai_upf_info_listList;
cJSON *s_nssai_upf_info_list_local_nonprimitive;
if (!cJSON_IsArray(s_nssai_upf_info_list)){
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [s_nssai_upf_info_list]");
@ -304,7 +315,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *smf_serving_area = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "smfServingArea");
OpenAPI_list_t *smf_serving_areaList;
if (smf_serving_area) {
if (smf_serving_area) {
cJSON *smf_serving_area_local;
if (!cJSON_IsArray(smf_serving_area)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [smf_serving_area]");
@ -318,13 +329,13 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
goto end;
}
OpenAPI_list_add(smf_serving_areaList , ogs_strdup_or_assert(smf_serving_area_local->valuestring));
}
}
}
cJSON *interface_upf_info_list = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "interfaceUpfInfoList");
OpenAPI_list_t *interface_upf_info_listList;
if (interface_upf_info_list) {
if (interface_upf_info_list) {
cJSON *interface_upf_info_list_local_nonprimitive;
if (!cJSON_IsArray(interface_upf_info_list)){
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [interface_upf_info_list]");
@ -346,7 +357,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *iwk_eps_ind = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "iwkEpsInd");
if (iwk_eps_ind) {
if (iwk_eps_ind) {
if (!cJSON_IsBool(iwk_eps_ind)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [iwk_eps_ind]");
goto end;
@ -356,7 +367,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *pdu_session_types = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "pduSessionTypes");
OpenAPI_list_t *pdu_session_typesList;
if (pdu_session_types) {
if (pdu_session_types) {
cJSON *pdu_session_types_local_nonprimitive;
if (!cJSON_IsArray(pdu_session_types)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [pdu_session_types]");
@ -378,13 +389,13 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *atsss_capability = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "atsssCapability");
OpenAPI_atsss_capability_t *atsss_capability_local_nonprim = NULL;
if (atsss_capability) {
if (atsss_capability) {
atsss_capability_local_nonprim = OpenAPI_atsss_capability_parseFromJSON(atsss_capability);
}
cJSON *ue_ip_addr_ind = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "ueIpAddrInd");
if (ue_ip_addr_ind) {
if (ue_ip_addr_ind) {
if (!cJSON_IsBool(ue_ip_addr_ind)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [ue_ip_addr_ind]");
goto end;
@ -394,7 +405,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *tai_list = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "taiList");
OpenAPI_list_t *tai_listList;
if (tai_list) {
if (tai_list) {
cJSON *tai_list_local_nonprimitive;
if (!cJSON_IsArray(tai_list)){
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [tai_list]");
@ -417,27 +428,27 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *w_agf_info = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "wAgfInfo");
OpenAPI_w_agf_info_t *w_agf_info_local_nonprim = NULL;
if (w_agf_info) {
if (w_agf_info) {
w_agf_info_local_nonprim = OpenAPI_w_agf_info_parseFromJSON(w_agf_info);
}
cJSON *tngf_info = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "tngfInfo");
OpenAPI_tngf_info_t *tngf_info_local_nonprim = NULL;
if (tngf_info) {
if (tngf_info) {
tngf_info_local_nonprim = OpenAPI_tngf_info_parseFromJSON(tngf_info);
}
cJSON *twif_info = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "twifInfo");
OpenAPI_twif_info_t *twif_info_local_nonprim = NULL;
if (twif_info) {
if (twif_info) {
twif_info_local_nonprim = OpenAPI_twif_info_parseFromJSON(twif_info);
}
cJSON *priority = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "priority");
if (priority) {
if (priority) {
if (!cJSON_IsNumber(priority)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [priority]");
goto end;
@ -446,7 +457,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *redundant_gtpu = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "redundantGtpu");
if (redundant_gtpu) {
if (redundant_gtpu) {
if (!cJSON_IsBool(redundant_gtpu)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [redundant_gtpu]");
goto end;
@ -455,7 +466,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *ipups = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "ipups");
if (ipups) {
if (ipups) {
if (!cJSON_IsBool(ipups)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [ipups]");
goto end;
@ -464,7 +475,7 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
cJSON *data_forwarding = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "dataForwarding");
if (data_forwarding) {
if (data_forwarding) {
if (!cJSON_IsBool(data_forwarding)) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed [data_forwarding]");
goto end;
@ -475,17 +486,23 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
s_nssai_upf_info_listList,
smf_serving_area ? smf_serving_areaList : NULL,
interface_upf_info_list ? interface_upf_info_listList : NULL,
iwk_eps_ind ? true : false,
iwk_eps_ind ? iwk_eps_ind->valueint : 0,
pdu_session_types ? pdu_session_typesList : NULL,
atsss_capability ? atsss_capability_local_nonprim : NULL,
ue_ip_addr_ind ? true : false,
ue_ip_addr_ind ? ue_ip_addr_ind->valueint : 0,
tai_list ? tai_listList : NULL,
w_agf_info ? w_agf_info_local_nonprim : NULL,
tngf_info ? tngf_info_local_nonprim : NULL,
twif_info ? twif_info_local_nonprim : NULL,
priority ? true : false,
priority ? priority->valuedouble : 0,
redundant_gtpu ? true : false,
redundant_gtpu ? redundant_gtpu->valueint : 0,
ipups ? true : false,
ipups ? ipups->valueint : 0,
data_forwarding ? true : false,
data_forwarding ? data_forwarding->valueint : 0
);