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,6 +8,7 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_create(
OpenAPI_steer_mode_value_e steer_mode_value,
OpenAPI_access_type_e active,
OpenAPI_access_type_rm_t *standby,
bool is__3g_load,
int _3g_load,
OpenAPI_access_type_e prio_acc
)
@ -19,6 +20,7 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_create(
steering_mode_local_var->steer_mode_value = steer_mode_value;
steering_mode_local_var->active = active;
steering_mode_local_var->standby = standby;
steering_mode_local_var->is__3g_load = is__3g_load;
steering_mode_local_var->_3g_load = _3g_load;
steering_mode_local_var->prio_acc = prio_acc;
@ -70,7 +72,7 @@ cJSON *OpenAPI_steering_mode_convertToJSON(OpenAPI_steering_mode_t *steering_mod
}
}
if (steering_mode->_3g_load) {
if (steering_mode->is__3g_load) {
if (cJSON_AddNumberToObject(item, "3gLoad", steering_mode->_3g_load) == NULL) {
ogs_error("OpenAPI_steering_mode_convertToJSON() failed [_3g_load]");
goto end;
@ -98,7 +100,6 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
}
OpenAPI_steer_mode_value_e steer_mode_valueVariable;
if (!cJSON_IsString(steer_mode_value)) {
ogs_error("OpenAPI_steering_mode_parseFromJSON() failed [steer_mode_value]");
goto end;
@ -108,7 +109,7 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
cJSON *active = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "active");
OpenAPI_access_type_e activeVariable;
if (active) {
if (active) {
if (!cJSON_IsString(active)) {
ogs_error("OpenAPI_steering_mode_parseFromJSON() failed [active]");
goto end;
@ -119,13 +120,13 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
cJSON *standby = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "standby");
OpenAPI_access_type_rm_t *standby_local_nonprim = NULL;
if (standby) {
if (standby) {
standby_local_nonprim = OpenAPI_access_type_rm_parseFromJSON(standby);
}
cJSON *_3g_load = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "3gLoad");
if (_3g_load) {
if (_3g_load) {
if (!cJSON_IsNumber(_3g_load)) {
ogs_error("OpenAPI_steering_mode_parseFromJSON() failed [_3g_load]");
goto end;
@ -135,7 +136,7 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
cJSON *prio_acc = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "prioAcc");
OpenAPI_access_type_e prio_accVariable;
if (prio_acc) {
if (prio_acc) {
if (!cJSON_IsString(prio_acc)) {
ogs_error("OpenAPI_steering_mode_parseFromJSON() failed [prio_acc]");
goto end;
@ -147,6 +148,7 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
steer_mode_valueVariable,
active ? activeVariable : 0,
standby ? standby_local_nonprim : NULL,
_3g_load ? true : false,
_3g_load ? _3g_load->valuedouble : 0,
prio_acc ? prio_accVariable : 0
);