mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
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:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -6,7 +6,9 @@
|
|||
|
||||
OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_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,
|
||||
|
|
@ -19,7 +21,9 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_create(
|
|||
return NULL;
|
||||
}
|
||||
cn_assisted_ran_para_local_var->stationary_indication = stationary_indication;
|
||||
cn_assisted_ran_para_local_var->is_communication_duration_time = is_communication_duration_time;
|
||||
cn_assisted_ran_para_local_var->communication_duration_time = communication_duration_time;
|
||||
cn_assisted_ran_para_local_var->is_periodic_time = is_periodic_time;
|
||||
cn_assisted_ran_para_local_var->periodic_time = periodic_time;
|
||||
cn_assisted_ran_para_local_var->scheduled_communication_time = scheduled_communication_time;
|
||||
cn_assisted_ran_para_local_var->scheduled_communication_type = scheduled_communication_type;
|
||||
|
|
@ -57,14 +61,14 @@ cJSON *OpenAPI_cn_assisted_ran_para_convertToJSON(OpenAPI_cn_assisted_ran_para_t
|
|||
}
|
||||
}
|
||||
|
||||
if (cn_assisted_ran_para->communication_duration_time) {
|
||||
if (cn_assisted_ran_para->is_communication_duration_time) {
|
||||
if (cJSON_AddNumberToObject(item, "communicationDurationTime", cn_assisted_ran_para->communication_duration_time) == NULL) {
|
||||
ogs_error("OpenAPI_cn_assisted_ran_para_convertToJSON() failed [communication_duration_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (cn_assisted_ran_para->periodic_time) {
|
||||
if (cn_assisted_ran_para->is_periodic_time) {
|
||||
if (cJSON_AddNumberToObject(item, "periodicTime", cn_assisted_ran_para->periodic_time) == NULL) {
|
||||
ogs_error("OpenAPI_cn_assisted_ran_para_convertToJSON() failed [periodic_time]");
|
||||
goto end;
|
||||
|
|
@ -121,7 +125,7 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_parseFromJSON(cJSON
|
|||
cJSON *stationary_indication = cJSON_GetObjectItemCaseSensitive(cn_assisted_ran_paraJSON, "stationaryIndication");
|
||||
|
||||
OpenAPI_stationary_indication_e stationary_indicationVariable;
|
||||
if (stationary_indication) {
|
||||
if (stationary_indication) {
|
||||
if (!cJSON_IsString(stationary_indication)) {
|
||||
ogs_error("OpenAPI_cn_assisted_ran_para_parseFromJSON() failed [stationary_indication]");
|
||||
goto end;
|
||||
|
|
@ -131,7 +135,7 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_parseFromJSON(cJSON
|
|||
|
||||
cJSON *communication_duration_time = cJSON_GetObjectItemCaseSensitive(cn_assisted_ran_paraJSON, "communicationDurationTime");
|
||||
|
||||
if (communication_duration_time) {
|
||||
if (communication_duration_time) {
|
||||
if (!cJSON_IsNumber(communication_duration_time)) {
|
||||
ogs_error("OpenAPI_cn_assisted_ran_para_parseFromJSON() failed [communication_duration_time]");
|
||||
goto end;
|
||||
|
|
@ -140,7 +144,7 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_parseFromJSON(cJSON
|
|||
|
||||
cJSON *periodic_time = cJSON_GetObjectItemCaseSensitive(cn_assisted_ran_paraJSON, "periodicTime");
|
||||
|
||||
if (periodic_time) {
|
||||
if (periodic_time) {
|
||||
if (!cJSON_IsNumber(periodic_time)) {
|
||||
ogs_error("OpenAPI_cn_assisted_ran_para_parseFromJSON() failed [periodic_time]");
|
||||
goto end;
|
||||
|
|
@ -150,14 +154,14 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_parseFromJSON(cJSON
|
|||
cJSON *scheduled_communication_time = cJSON_GetObjectItemCaseSensitive(cn_assisted_ran_paraJSON, "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(cn_assisted_ran_paraJSON, "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_cn_assisted_ran_para_parseFromJSON() failed [scheduled_communication_type]");
|
||||
goto end;
|
||||
|
|
@ -168,7 +172,7 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_parseFromJSON(cJSON
|
|||
cJSON *traffic_profile = cJSON_GetObjectItemCaseSensitive(cn_assisted_ran_paraJSON, "trafficProfile");
|
||||
|
||||
OpenAPI_traffic_profile_e traffic_profileVariable;
|
||||
if (traffic_profile) {
|
||||
if (traffic_profile) {
|
||||
if (!cJSON_IsString(traffic_profile)) {
|
||||
ogs_error("OpenAPI_cn_assisted_ran_para_parseFromJSON() failed [traffic_profile]");
|
||||
goto end;
|
||||
|
|
@ -179,13 +183,15 @@ OpenAPI_cn_assisted_ran_para_t *OpenAPI_cn_assisted_ran_para_parseFromJSON(cJSON
|
|||
cJSON *battery_indication = cJSON_GetObjectItemCaseSensitive(cn_assisted_ran_paraJSON, "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);
|
||||
}
|
||||
|
||||
cn_assisted_ran_para_local_var = OpenAPI_cn_assisted_ran_para_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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue