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

@ -5,8 +5,11 @@
#include "exemption_ind.h"
OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_create(
bool is_dnn_congestion,
int dnn_congestion,
bool is_snssai_only_congestion,
int snssai_only_congestion,
bool is_snssai_dnn_congestion,
int snssai_dnn_congestion
)
{
@ -14,8 +17,11 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_create(
if (!exemption_ind_local_var) {
return NULL;
}
exemption_ind_local_var->is_dnn_congestion = is_dnn_congestion;
exemption_ind_local_var->dnn_congestion = dnn_congestion;
exemption_ind_local_var->is_snssai_only_congestion = is_snssai_only_congestion;
exemption_ind_local_var->snssai_only_congestion = snssai_only_congestion;
exemption_ind_local_var->is_snssai_dnn_congestion = is_snssai_dnn_congestion;
exemption_ind_local_var->snssai_dnn_congestion = snssai_dnn_congestion;
return exemption_ind_local_var;
@ -40,21 +46,21 @@ cJSON *OpenAPI_exemption_ind_convertToJSON(OpenAPI_exemption_ind_t *exemption_in
}
item = cJSON_CreateObject();
if (exemption_ind->dnn_congestion) {
if (exemption_ind->is_dnn_congestion) {
if (cJSON_AddBoolToObject(item, "dnnCongestion", exemption_ind->dnn_congestion) == NULL) {
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [dnn_congestion]");
goto end;
}
}
if (exemption_ind->snssai_only_congestion) {
if (exemption_ind->is_snssai_only_congestion) {
if (cJSON_AddBoolToObject(item, "snssaiOnlyCongestion", exemption_ind->snssai_only_congestion) == NULL) {
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [snssai_only_congestion]");
goto end;
}
}
if (exemption_ind->snssai_dnn_congestion) {
if (exemption_ind->is_snssai_dnn_congestion) {
if (cJSON_AddBoolToObject(item, "snssaiDnnCongestion", exemption_ind->snssai_dnn_congestion) == NULL) {
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [snssai_dnn_congestion]");
goto end;
@ -70,7 +76,7 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_parseFromJSON(cJSON *exemption_in
OpenAPI_exemption_ind_t *exemption_ind_local_var = NULL;
cJSON *dnn_congestion = cJSON_GetObjectItemCaseSensitive(exemption_indJSON, "dnnCongestion");
if (dnn_congestion) {
if (dnn_congestion) {
if (!cJSON_IsBool(dnn_congestion)) {
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [dnn_congestion]");
goto end;
@ -79,7 +85,7 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_parseFromJSON(cJSON *exemption_in
cJSON *snssai_only_congestion = cJSON_GetObjectItemCaseSensitive(exemption_indJSON, "snssaiOnlyCongestion");
if (snssai_only_congestion) {
if (snssai_only_congestion) {
if (!cJSON_IsBool(snssai_only_congestion)) {
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [snssai_only_congestion]");
goto end;
@ -88,7 +94,7 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_parseFromJSON(cJSON *exemption_in
cJSON *snssai_dnn_congestion = cJSON_GetObjectItemCaseSensitive(exemption_indJSON, "snssaiDnnCongestion");
if (snssai_dnn_congestion) {
if (snssai_dnn_congestion) {
if (!cJSON_IsBool(snssai_dnn_congestion)) {
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [snssai_dnn_congestion]");
goto end;
@ -96,8 +102,11 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_parseFromJSON(cJSON *exemption_in
}
exemption_ind_local_var = OpenAPI_exemption_ind_create (
dnn_congestion ? true : false,
dnn_congestion ? dnn_congestion->valueint : 0,
snssai_only_congestion ? true : false,
snssai_only_congestion ? snssai_only_congestion->valueint : 0,
snssai_dnn_congestion ? true : false,
snssai_dnn_congestion ? snssai_dnn_congestion->valueint : 0
);