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

@ -6,7 +6,9 @@
OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_create(
OpenAPI_stationary_indication_e stationary_indication,
bool is_communication_duration_time,
int communication_duration_time,
bool is_periodic_time,
int periodic_time,
OpenAPI_scheduled_communication_time_t *scheduled_communication_time,
OpenAPI_scheduled_communication_type_e scheduled_communication_type,
@ -21,7 +23,9 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_create(
return NULL;
}
expected_ue_behaviour_data_local_var->stationary_indication = stationary_indication;
expected_ue_behaviour_data_local_var->is_communication_duration_time = is_communication_duration_time;
expected_ue_behaviour_data_local_var->communication_duration_time = communication_duration_time;
expected_ue_behaviour_data_local_var->is_periodic_time = is_periodic_time;
expected_ue_behaviour_data_local_var->periodic_time = periodic_time;
expected_ue_behaviour_data_local_var->scheduled_communication_time = scheduled_communication_time;
expected_ue_behaviour_data_local_var->scheduled_communication_type = scheduled_communication_type;
@ -66,14 +70,14 @@ cJSON *OpenAPI_expected_ue_behaviour_data_convertToJSON(OpenAPI_expected_ue_beha
}
}
if (expected_ue_behaviour_data->communication_duration_time) {
if (expected_ue_behaviour_data->is_communication_duration_time) {
if (cJSON_AddNumberToObject(item, "communicationDurationTime", expected_ue_behaviour_data->communication_duration_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_data_convertToJSON() failed [communication_duration_time]");
goto end;
}
}
if (expected_ue_behaviour_data->periodic_time) {
if (expected_ue_behaviour_data->is_periodic_time) {
if (cJSON_AddNumberToObject(item, "periodicTime", expected_ue_behaviour_data->periodic_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_data_convertToJSON() failed [periodic_time]");
goto end;
@ -157,7 +161,7 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *stationary_indication = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "stationaryIndication");
OpenAPI_stationary_indication_e stationary_indicationVariable;
if (stationary_indication) {
if (stationary_indication) {
if (!cJSON_IsString(stationary_indication)) {
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [stationary_indication]");
goto end;
@ -167,7 +171,7 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *communication_duration_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "communicationDurationTime");
if (communication_duration_time) {
if (communication_duration_time) {
if (!cJSON_IsNumber(communication_duration_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [communication_duration_time]");
goto end;
@ -176,7 +180,7 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *periodic_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "periodicTime");
if (periodic_time) {
if (periodic_time) {
if (!cJSON_IsNumber(periodic_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [periodic_time]");
goto end;
@ -186,14 +190,14 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *scheduled_communication_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "scheduledCommunicationTime");
OpenAPI_scheduled_communication_time_t *scheduled_communication_time_local_nonprim = NULL;
if (scheduled_communication_time) {
if (scheduled_communication_time) {
scheduled_communication_time_local_nonprim = OpenAPI_scheduled_communication_time_parseFromJSON(scheduled_communication_time);
}
cJSON *scheduled_communication_type = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "scheduledCommunicationType");
OpenAPI_scheduled_communication_type_e scheduled_communication_typeVariable;
if (scheduled_communication_type) {
if (scheduled_communication_type) {
if (!cJSON_IsString(scheduled_communication_type)) {
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [scheduled_communication_type]");
goto end;
@ -204,7 +208,7 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *expected_umts = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "expectedUmts");
OpenAPI_list_t *expected_umtsList;
if (expected_umts) {
if (expected_umts) {
cJSON *expected_umts_local_nonprimitive;
if (!cJSON_IsArray(expected_umts)){
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [expected_umts]");
@ -227,7 +231,7 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *traffic_profile = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "trafficProfile");
OpenAPI_traffic_profile_e traffic_profileVariable;
if (traffic_profile) {
if (traffic_profile) {
if (!cJSON_IsString(traffic_profile)) {
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [traffic_profile]");
goto end;
@ -238,13 +242,13 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
cJSON *battery_indication = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "batteryIndication");
OpenAPI_battery_indication_t *battery_indication_local_nonprim = NULL;
if (battery_indication) {
if (battery_indication) {
battery_indication_local_nonprim = OpenAPI_battery_indication_parseFromJSON(battery_indication);
}
cJSON *validity_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviour_dataJSON, "validityTime");
if (validity_time) {
if (validity_time) {
if (!cJSON_IsString(validity_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_data_parseFromJSON() failed [validity_time]");
goto end;
@ -253,7 +257,9 @@ OpenAPI_expected_ue_behaviour_data_t *OpenAPI_expected_ue_behaviour_data_parseFr
expected_ue_behaviour_data_local_var = OpenAPI_expected_ue_behaviour_data_create (
stationary_indication ? stationary_indicationVariable : 0,
communication_duration_time ? true : false,
communication_duration_time ? communication_duration_time->valuedouble : 0,
periodic_time ? true : false,
periodic_time ? periodic_time->valuedouble : 0,
scheduled_communication_time ? scheduled_communication_time_local_nonprim : NULL,
scheduled_communication_type ? scheduled_communication_typeVariable : 0,