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_eps_pdn_cnx_info_t *OpenAPI_eps_pdn_cnx_info_create(
char pgw_s8c_fteid,
char pgw_node_name,
bool is_linked_bearer_id,
int linked_bearer_id
)
{
@ -16,6 +17,7 @@ OpenAPI_eps_pdn_cnx_info_t *OpenAPI_eps_pdn_cnx_info_create(
}
eps_pdn_cnx_info_local_var->pgw_s8c_fteid = pgw_s8c_fteid;
eps_pdn_cnx_info_local_var->pgw_node_name = pgw_node_name;
eps_pdn_cnx_info_local_var->is_linked_bearer_id = is_linked_bearer_id;
eps_pdn_cnx_info_local_var->linked_bearer_id = linked_bearer_id;
return eps_pdn_cnx_info_local_var;
@ -52,7 +54,7 @@ cJSON *OpenAPI_eps_pdn_cnx_info_convertToJSON(OpenAPI_eps_pdn_cnx_info_t *eps_pd
}
}
if (eps_pdn_cnx_info->linked_bearer_id) {
if (eps_pdn_cnx_info->is_linked_bearer_id) {
if (cJSON_AddNumberToObject(item, "linkedBearerId", eps_pdn_cnx_info->linked_bearer_id) == NULL) {
ogs_error("OpenAPI_eps_pdn_cnx_info_convertToJSON() failed [linked_bearer_id]");
goto end;
@ -72,7 +74,6 @@ OpenAPI_eps_pdn_cnx_info_t *OpenAPI_eps_pdn_cnx_info_parseFromJSON(cJSON *eps_pd
goto end;
}
if (!cJSON_IsNumber(pgw_s8c_fteid)) {
ogs_error("OpenAPI_eps_pdn_cnx_info_parseFromJSON() failed [pgw_s8c_fteid]");
goto end;
@ -80,7 +81,7 @@ OpenAPI_eps_pdn_cnx_info_t *OpenAPI_eps_pdn_cnx_info_parseFromJSON(cJSON *eps_pd
cJSON *pgw_node_name = cJSON_GetObjectItemCaseSensitive(eps_pdn_cnx_infoJSON, "pgwNodeName");
if (pgw_node_name) {
if (pgw_node_name) {
if (!cJSON_IsNumber(pgw_node_name)) {
ogs_error("OpenAPI_eps_pdn_cnx_info_parseFromJSON() failed [pgw_node_name]");
goto end;
@ -89,7 +90,7 @@ OpenAPI_eps_pdn_cnx_info_t *OpenAPI_eps_pdn_cnx_info_parseFromJSON(cJSON *eps_pd
cJSON *linked_bearer_id = cJSON_GetObjectItemCaseSensitive(eps_pdn_cnx_infoJSON, "linkedBearerId");
if (linked_bearer_id) {
if (linked_bearer_id) {
if (!cJSON_IsNumber(linked_bearer_id)) {
ogs_error("OpenAPI_eps_pdn_cnx_info_parseFromJSON() failed [linked_bearer_id]");
goto end;
@ -99,6 +100,7 @@ OpenAPI_eps_pdn_cnx_info_t *OpenAPI_eps_pdn_cnx_info_parseFromJSON(cJSON *eps_pd
eps_pdn_cnx_info_local_var = OpenAPI_eps_pdn_cnx_info_create (
pgw_s8c_fteid->valueint,
pgw_node_name ? pgw_node_name->valueint : 0,
linked_bearer_id ? true : false,
linked_bearer_id ? linked_bearer_id->valuedouble : 0
);