mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -13,7 +13,7 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_create(
|
|||
int max_packet_loss_rate_dl,
|
||||
int max_packet_loss_rate_ul,
|
||||
OpenAPI_list_t *alternative_qos_profile_list
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_gbr_qos_flow_information_t *gbr_qos_flow_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_gbr_qos_flow_information_t));
|
||||
if (!gbr_qos_flow_information_local_var) {
|
||||
|
|
@ -79,45 +79,45 @@ cJSON *OpenAPI_gbr_qos_flow_information_convertToJSON(OpenAPI_gbr_qos_flow_infor
|
|||
}
|
||||
|
||||
if (gbr_qos_flow_information->notif_control) {
|
||||
if (cJSON_AddStringToObject(item, "notifControl", OpenAPI_notification_control_ToString(gbr_qos_flow_information->notif_control)) == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [notif_control]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "notifControl", OpenAPI_notification_control_ToString(gbr_qos_flow_information->notif_control)) == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [notif_control]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (gbr_qos_flow_information->max_packet_loss_rate_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateDl", gbr_qos_flow_information->max_packet_loss_rate_dl) == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateDl", gbr_qos_flow_information->max_packet_loss_rate_dl) == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (gbr_qos_flow_information->max_packet_loss_rate_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateUl", gbr_qos_flow_information->max_packet_loss_rate_ul) == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateUl", gbr_qos_flow_information->max_packet_loss_rate_ul) == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (gbr_qos_flow_information->alternative_qos_profile_list) {
|
||||
cJSON *alternative_qos_profile_listList = cJSON_AddArrayToObject(item, "alternativeQosProfileList");
|
||||
if (alternative_qos_profile_listList == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *alternative_qos_profile_listList = cJSON_AddArrayToObject(item, "alternativeQosProfileList");
|
||||
if (alternative_qos_profile_listList == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *alternative_qos_profile_list_node;
|
||||
if (gbr_qos_flow_information->alternative_qos_profile_list) {
|
||||
OpenAPI_list_for_each(gbr_qos_flow_information->alternative_qos_profile_list, alternative_qos_profile_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_alternative_qos_profile_convertToJSON(alternative_qos_profile_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(alternative_qos_profile_listList, itemLocal);
|
||||
OpenAPI_lnode_t *alternative_qos_profile_list_node;
|
||||
if (gbr_qos_flow_information->alternative_qos_profile_list) {
|
||||
OpenAPI_list_for_each(gbr_qos_flow_information->alternative_qos_profile_list, alternative_qos_profile_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_alternative_qos_profile_convertToJSON(alternative_qos_profile_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_convertToJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(alternative_qos_profile_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
return item;
|
||||
|
|
@ -132,7 +132,7 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_parseFromJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(max_fbr_dl)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [max_fbr_dl]");
|
||||
goto end;
|
||||
|
|
@ -144,7 +144,7 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_parseFromJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(max_fbr_ul)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [max_fbr_ul]");
|
||||
goto end;
|
||||
|
|
@ -156,7 +156,7 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_parseFromJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(gua_fbr_dl)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [gua_fbr_dl]");
|
||||
goto end;
|
||||
|
|
@ -168,7 +168,7 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_parseFromJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(gua_fbr_ul)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [gua_fbr_ul]");
|
||||
goto end;
|
||||
|
|
@ -177,54 +177,54 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_parseFromJS
|
|||
cJSON *notif_control = cJSON_GetObjectItemCaseSensitive(gbr_qos_flow_informationJSON, "notifControl");
|
||||
|
||||
OpenAPI_notification_control_e notif_controlVariable;
|
||||
if (notif_control) {
|
||||
if (!cJSON_IsString(notif_control)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [notif_control]");
|
||||
goto end;
|
||||
}
|
||||
notif_controlVariable = OpenAPI_notification_control_FromString(notif_control->valuestring);
|
||||
if (notif_control) {
|
||||
if (!cJSON_IsString(notif_control)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [notif_control]");
|
||||
goto end;
|
||||
}
|
||||
notif_controlVariable = OpenAPI_notification_control_FromString(notif_control->valuestring);
|
||||
}
|
||||
|
||||
cJSON *max_packet_loss_rate_dl = cJSON_GetObjectItemCaseSensitive(gbr_qos_flow_informationJSON, "maxPacketLossRateDl");
|
||||
|
||||
if (max_packet_loss_rate_dl) {
|
||||
if (!cJSON_IsNumber(max_packet_loss_rate_dl)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (max_packet_loss_rate_dl) {
|
||||
if (!cJSON_IsNumber(max_packet_loss_rate_dl)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *max_packet_loss_rate_ul = cJSON_GetObjectItemCaseSensitive(gbr_qos_flow_informationJSON, "maxPacketLossRateUl");
|
||||
|
||||
if (max_packet_loss_rate_ul) {
|
||||
if (!cJSON_IsNumber(max_packet_loss_rate_ul)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (max_packet_loss_rate_ul) {
|
||||
if (!cJSON_IsNumber(max_packet_loss_rate_ul)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *alternative_qos_profile_list = cJSON_GetObjectItemCaseSensitive(gbr_qos_flow_informationJSON, "alternativeQosProfileList");
|
||||
|
||||
OpenAPI_list_t *alternative_qos_profile_listList;
|
||||
if (alternative_qos_profile_list) {
|
||||
cJSON *alternative_qos_profile_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(alternative_qos_profile_list)) {
|
||||
if (alternative_qos_profile_list) {
|
||||
cJSON *alternative_qos_profile_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(alternative_qos_profile_list)){
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
alternative_qos_profile_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(alternative_qos_profile_list_local_nonprimitive, alternative_qos_profile_list ) {
|
||||
if (!cJSON_IsObject(alternative_qos_profile_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_alternative_qos_profile_t *alternative_qos_profile_listItem = OpenAPI_alternative_qos_profile_parseFromJSON(alternative_qos_profile_list_local_nonprimitive);
|
||||
|
||||
alternative_qos_profile_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(alternative_qos_profile_list_local_nonprimitive, alternative_qos_profile_list ) {
|
||||
if (!cJSON_IsObject(alternative_qos_profile_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_gbr_qos_flow_information_parseFromJSON() failed [alternative_qos_profile_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_alternative_qos_profile_t *alternative_qos_profile_listItem = OpenAPI_alternative_qos_profile_parseFromJSON(alternative_qos_profile_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(alternative_qos_profile_listList, alternative_qos_profile_listItem);
|
||||
}
|
||||
OpenAPI_list_add(alternative_qos_profile_listList, alternative_qos_profile_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
gbr_qos_flow_information_local_var = OpenAPI_gbr_qos_flow_information_create (
|
||||
ogs_strdup_or_assert(max_fbr_dl->valuestring),
|
||||
|
|
@ -235,7 +235,7 @@ OpenAPI_gbr_qos_flow_information_t *OpenAPI_gbr_qos_flow_information_parseFromJS
|
|||
max_packet_loss_rate_dl ? max_packet_loss_rate_dl->valuedouble : 0,
|
||||
max_packet_loss_rate_ul ? max_packet_loss_rate_ul->valuedouble : 0,
|
||||
alternative_qos_profile_list ? alternative_qos_profile_listList : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return gbr_qos_flow_information_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue