mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -12,7 +12,7 @@ OpenAPI_vplmn_qos_t *OpenAPI_vplmn_qos_create(
|
|||
char *max_fbr_ul,
|
||||
char *gua_fbr_dl,
|
||||
char *gua_fbr_ul
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_vplmn_qos_t *vplmn_qos_local_var = OpenAPI_malloc(sizeof(OpenAPI_vplmn_qos_t));
|
||||
if (!vplmn_qos_local_var) {
|
||||
|
|
@ -55,64 +55,64 @@ cJSON *OpenAPI_vplmn_qos_convertToJSON(OpenAPI_vplmn_qos_t *vplmn_qos)
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (vplmn_qos->_5qi) {
|
||||
if (cJSON_AddNumberToObject(item, "5qi", vplmn_qos->_5qi) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [_5qi]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "5qi", vplmn_qos->_5qi) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [_5qi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (vplmn_qos->arp) {
|
||||
cJSON *arp_local_JSON = OpenAPI_arp_convertToJSON(vplmn_qos->arp);
|
||||
if (arp_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [arp]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "arp", arp_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [arp]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *arp_local_JSON = OpenAPI_arp_convertToJSON(vplmn_qos->arp);
|
||||
if (arp_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [arp]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "arp", arp_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [arp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (vplmn_qos->session_ambr) {
|
||||
cJSON *session_ambr_local_JSON = OpenAPI_ambr_convertToJSON(vplmn_qos->session_ambr);
|
||||
if (session_ambr_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sessionAmbr", session_ambr_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *session_ambr_local_JSON = OpenAPI_ambr_convertToJSON(vplmn_qos->session_ambr);
|
||||
if (session_ambr_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sessionAmbr", session_ambr_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (vplmn_qos->max_fbr_dl) {
|
||||
if (cJSON_AddStringToObject(item, "maxFbrDl", vplmn_qos->max_fbr_dl) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [max_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "maxFbrDl", vplmn_qos->max_fbr_dl) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [max_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (vplmn_qos->max_fbr_ul) {
|
||||
if (cJSON_AddStringToObject(item, "maxFbrUl", vplmn_qos->max_fbr_ul) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [max_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "maxFbrUl", vplmn_qos->max_fbr_ul) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [max_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (vplmn_qos->gua_fbr_dl) {
|
||||
if (cJSON_AddStringToObject(item, "guaFbrDl", vplmn_qos->gua_fbr_dl) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [gua_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "guaFbrDl", vplmn_qos->gua_fbr_dl) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [gua_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (vplmn_qos->gua_fbr_ul) {
|
||||
if (cJSON_AddStringToObject(item, "guaFbrUl", vplmn_qos->gua_fbr_ul) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [gua_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "guaFbrUl", vplmn_qos->gua_fbr_ul) == NULL) {
|
||||
ogs_error("OpenAPI_vplmn_qos_convertToJSON() failed [gua_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -124,62 +124,62 @@ OpenAPI_vplmn_qos_t *OpenAPI_vplmn_qos_parseFromJSON(cJSON *vplmn_qosJSON)
|
|||
OpenAPI_vplmn_qos_t *vplmn_qos_local_var = NULL;
|
||||
cJSON *_5qi = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "5qi");
|
||||
|
||||
if (_5qi) {
|
||||
if (!cJSON_IsNumber(_5qi)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [_5qi]");
|
||||
goto end;
|
||||
}
|
||||
if (_5qi) {
|
||||
if (!cJSON_IsNumber(_5qi)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [_5qi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *arp = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "arp");
|
||||
|
||||
OpenAPI_arp_t *arp_local_nonprim = NULL;
|
||||
if (arp) {
|
||||
arp_local_nonprim = OpenAPI_arp_parseFromJSON(arp);
|
||||
}
|
||||
if (arp) {
|
||||
arp_local_nonprim = OpenAPI_arp_parseFromJSON(arp);
|
||||
}
|
||||
|
||||
cJSON *session_ambr = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "sessionAmbr");
|
||||
|
||||
OpenAPI_ambr_t *session_ambr_local_nonprim = NULL;
|
||||
if (session_ambr) {
|
||||
session_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(session_ambr);
|
||||
}
|
||||
if (session_ambr) {
|
||||
session_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(session_ambr);
|
||||
}
|
||||
|
||||
cJSON *max_fbr_dl = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "maxFbrDl");
|
||||
|
||||
if (max_fbr_dl) {
|
||||
if (!cJSON_IsString(max_fbr_dl)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [max_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (max_fbr_dl) {
|
||||
if (!cJSON_IsString(max_fbr_dl)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [max_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *max_fbr_ul = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "maxFbrUl");
|
||||
|
||||
if (max_fbr_ul) {
|
||||
if (!cJSON_IsString(max_fbr_ul)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [max_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (max_fbr_ul) {
|
||||
if (!cJSON_IsString(max_fbr_ul)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [max_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *gua_fbr_dl = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "guaFbrDl");
|
||||
|
||||
if (gua_fbr_dl) {
|
||||
if (!cJSON_IsString(gua_fbr_dl)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [gua_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (gua_fbr_dl) {
|
||||
if (!cJSON_IsString(gua_fbr_dl)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [gua_fbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *gua_fbr_ul = cJSON_GetObjectItemCaseSensitive(vplmn_qosJSON, "guaFbrUl");
|
||||
|
||||
if (gua_fbr_ul) {
|
||||
if (!cJSON_IsString(gua_fbr_ul)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [gua_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (gua_fbr_ul) {
|
||||
if (!cJSON_IsString(gua_fbr_ul)) {
|
||||
ogs_error("OpenAPI_vplmn_qos_parseFromJSON() failed [gua_fbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
vplmn_qos_local_var = OpenAPI_vplmn_qos_create (
|
||||
_5qi ? _5qi->valuedouble : 0,
|
||||
|
|
@ -189,7 +189,7 @@ OpenAPI_vplmn_qos_t *OpenAPI_vplmn_qos_parseFromJSON(cJSON *vplmn_qosJSON)
|
|||
max_fbr_ul ? ogs_strdup_or_assert(max_fbr_ul->valuestring) : NULL,
|
||||
gua_fbr_dl ? ogs_strdup_or_assert(gua_fbr_dl->valuestring) : NULL,
|
||||
gua_fbr_ul ? ogs_strdup_or_assert(gua_fbr_ul->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return vplmn_qos_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue