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,13 +6,21 @@
|
|||
|
||||
OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_create(
|
||||
char *ref_um_ids,
|
||||
bool is_vol_usage,
|
||||
long vol_usage,
|
||||
bool is_vol_usage_uplink,
|
||||
long vol_usage_uplink,
|
||||
bool is_vol_usage_downlink,
|
||||
long vol_usage_downlink,
|
||||
bool is_time_usage,
|
||||
int time_usage,
|
||||
bool is_next_vol_usage,
|
||||
long next_vol_usage,
|
||||
bool is_next_vol_usage_uplink,
|
||||
long next_vol_usage_uplink,
|
||||
bool is_next_vol_usage_downlink,
|
||||
long next_vol_usage_downlink,
|
||||
bool is_next_time_usage,
|
||||
int next_time_usage
|
||||
)
|
||||
{
|
||||
|
|
@ -21,13 +29,21 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_create(
|
|||
return NULL;
|
||||
}
|
||||
accu_usage_report_local_var->ref_um_ids = ref_um_ids;
|
||||
accu_usage_report_local_var->is_vol_usage = is_vol_usage;
|
||||
accu_usage_report_local_var->vol_usage = vol_usage;
|
||||
accu_usage_report_local_var->is_vol_usage_uplink = is_vol_usage_uplink;
|
||||
accu_usage_report_local_var->vol_usage_uplink = vol_usage_uplink;
|
||||
accu_usage_report_local_var->is_vol_usage_downlink = is_vol_usage_downlink;
|
||||
accu_usage_report_local_var->vol_usage_downlink = vol_usage_downlink;
|
||||
accu_usage_report_local_var->is_time_usage = is_time_usage;
|
||||
accu_usage_report_local_var->time_usage = time_usage;
|
||||
accu_usage_report_local_var->is_next_vol_usage = is_next_vol_usage;
|
||||
accu_usage_report_local_var->next_vol_usage = next_vol_usage;
|
||||
accu_usage_report_local_var->is_next_vol_usage_uplink = is_next_vol_usage_uplink;
|
||||
accu_usage_report_local_var->next_vol_usage_uplink = next_vol_usage_uplink;
|
||||
accu_usage_report_local_var->is_next_vol_usage_downlink = is_next_vol_usage_downlink;
|
||||
accu_usage_report_local_var->next_vol_usage_downlink = next_vol_usage_downlink;
|
||||
accu_usage_report_local_var->is_next_time_usage = is_next_time_usage;
|
||||
accu_usage_report_local_var->next_time_usage = next_time_usage;
|
||||
|
||||
return accu_usage_report_local_var;
|
||||
|
|
@ -58,56 +74,56 @@ cJSON *OpenAPI_accu_usage_report_convertToJSON(OpenAPI_accu_usage_report_t *accu
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (accu_usage_report->vol_usage) {
|
||||
if (accu_usage_report->is_vol_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "volUsage", accu_usage_report->vol_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [vol_usage]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->vol_usage_uplink) {
|
||||
if (accu_usage_report->is_vol_usage_uplink) {
|
||||
if (cJSON_AddNumberToObject(item, "volUsageUplink", accu_usage_report->vol_usage_uplink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [vol_usage_uplink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->vol_usage_downlink) {
|
||||
if (accu_usage_report->is_vol_usage_downlink) {
|
||||
if (cJSON_AddNumberToObject(item, "volUsageDownlink", accu_usage_report->vol_usage_downlink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [vol_usage_downlink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->time_usage) {
|
||||
if (accu_usage_report->is_time_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "timeUsage", accu_usage_report->time_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [time_usage]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_vol_usage) {
|
||||
if (accu_usage_report->is_next_vol_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "nextVolUsage", accu_usage_report->next_vol_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_vol_usage]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_vol_usage_uplink) {
|
||||
if (accu_usage_report->is_next_vol_usage_uplink) {
|
||||
if (cJSON_AddNumberToObject(item, "nextVolUsageUplink", accu_usage_report->next_vol_usage_uplink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_vol_usage_uplink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_vol_usage_downlink) {
|
||||
if (accu_usage_report->is_next_vol_usage_downlink) {
|
||||
if (cJSON_AddNumberToObject(item, "nextVolUsageDownlink", accu_usage_report->next_vol_usage_downlink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_vol_usage_downlink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_time_usage) {
|
||||
if (accu_usage_report->is_next_time_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "nextTimeUsage", accu_usage_report->next_time_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_time_usage]");
|
||||
goto end;
|
||||
|
|
@ -127,7 +143,6 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(ref_um_ids)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [ref_um_ids]");
|
||||
goto end;
|
||||
|
|
@ -135,7 +150,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *vol_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "volUsage");
|
||||
|
||||
if (vol_usage) {
|
||||
if (vol_usage) {
|
||||
if (!cJSON_IsNumber(vol_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [vol_usage]");
|
||||
goto end;
|
||||
|
|
@ -144,7 +159,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *vol_usage_uplink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "volUsageUplink");
|
||||
|
||||
if (vol_usage_uplink) {
|
||||
if (vol_usage_uplink) {
|
||||
if (!cJSON_IsNumber(vol_usage_uplink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [vol_usage_uplink]");
|
||||
goto end;
|
||||
|
|
@ -153,7 +168,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *vol_usage_downlink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "volUsageDownlink");
|
||||
|
||||
if (vol_usage_downlink) {
|
||||
if (vol_usage_downlink) {
|
||||
if (!cJSON_IsNumber(vol_usage_downlink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [vol_usage_downlink]");
|
||||
goto end;
|
||||
|
|
@ -162,7 +177,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *time_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "timeUsage");
|
||||
|
||||
if (time_usage) {
|
||||
if (time_usage) {
|
||||
if (!cJSON_IsNumber(time_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [time_usage]");
|
||||
goto end;
|
||||
|
|
@ -171,7 +186,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_vol_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextVolUsage");
|
||||
|
||||
if (next_vol_usage) {
|
||||
if (next_vol_usage) {
|
||||
if (!cJSON_IsNumber(next_vol_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_vol_usage]");
|
||||
goto end;
|
||||
|
|
@ -180,7 +195,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_vol_usage_uplink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextVolUsageUplink");
|
||||
|
||||
if (next_vol_usage_uplink) {
|
||||
if (next_vol_usage_uplink) {
|
||||
if (!cJSON_IsNumber(next_vol_usage_uplink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_vol_usage_uplink]");
|
||||
goto end;
|
||||
|
|
@ -189,7 +204,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_vol_usage_downlink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextVolUsageDownlink");
|
||||
|
||||
if (next_vol_usage_downlink) {
|
||||
if (next_vol_usage_downlink) {
|
||||
if (!cJSON_IsNumber(next_vol_usage_downlink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_vol_usage_downlink]");
|
||||
goto end;
|
||||
|
|
@ -198,7 +213,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_time_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextTimeUsage");
|
||||
|
||||
if (next_time_usage) {
|
||||
if (next_time_usage) {
|
||||
if (!cJSON_IsNumber(next_time_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_time_usage]");
|
||||
goto end;
|
||||
|
|
@ -207,13 +222,21 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
accu_usage_report_local_var = OpenAPI_accu_usage_report_create (
|
||||
ogs_strdup_or_assert(ref_um_ids->valuestring),
|
||||
vol_usage ? true : false,
|
||||
vol_usage ? vol_usage->valuedouble : 0,
|
||||
vol_usage_uplink ? true : false,
|
||||
vol_usage_uplink ? vol_usage_uplink->valuedouble : 0,
|
||||
vol_usage_downlink ? true : false,
|
||||
vol_usage_downlink ? vol_usage_downlink->valuedouble : 0,
|
||||
time_usage ? true : false,
|
||||
time_usage ? time_usage->valuedouble : 0,
|
||||
next_vol_usage ? true : false,
|
||||
next_vol_usage ? next_vol_usage->valuedouble : 0,
|
||||
next_vol_usage_uplink ? true : false,
|
||||
next_vol_usage_uplink ? next_vol_usage_uplink->valuedouble : 0,
|
||||
next_vol_usage_downlink ? true : false,
|
||||
next_vol_usage_downlink ? next_vol_usage_downlink->valuedouble : 0,
|
||||
next_time_usage ? true : false,
|
||||
next_time_usage ? next_time_usage->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue