mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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
|
|
@ -11,7 +11,7 @@ OpenAPI_session_rule_t *OpenAPI_session_rule_create(
|
|||
char *ref_um_data,
|
||||
char *ref_um_n3g_data,
|
||||
char *ref_cond_data
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_session_rule_t *session_rule_local_var = OpenAPI_malloc(sizeof(OpenAPI_session_rule_t));
|
||||
if (!session_rule_local_var) {
|
||||
|
|
@ -53,29 +53,29 @@ cJSON *OpenAPI_session_rule_convertToJSON(OpenAPI_session_rule_t *session_rule)
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (session_rule->auth_sess_ambr) {
|
||||
cJSON *auth_sess_ambr_local_JSON = OpenAPI_ambr_convertToJSON(session_rule->auth_sess_ambr);
|
||||
if (auth_sess_ambr_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_sess_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "authSessAmbr", auth_sess_ambr_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_sess_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *auth_sess_ambr_local_JSON = OpenAPI_ambr_convertToJSON(session_rule->auth_sess_ambr);
|
||||
if (auth_sess_ambr_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_sess_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "authSessAmbr", auth_sess_ambr_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_sess_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (session_rule->auth_def_qos) {
|
||||
cJSON *auth_def_qos_local_JSON = OpenAPI_authorized_default_qos_convertToJSON(session_rule->auth_def_qos);
|
||||
if (auth_def_qos_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_def_qos]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "authDefQos", auth_def_qos_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_def_qos]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *auth_def_qos_local_JSON = OpenAPI_authorized_default_qos_convertToJSON(session_rule->auth_def_qos);
|
||||
if (auth_def_qos_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_def_qos]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "authDefQos", auth_def_qos_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [auth_def_qos]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (cJSON_AddStringToObject(item, "sessRuleId", session_rule->sess_rule_id) == NULL) {
|
||||
|
|
@ -84,24 +84,24 @@ cJSON *OpenAPI_session_rule_convertToJSON(OpenAPI_session_rule_t *session_rule)
|
|||
}
|
||||
|
||||
if (session_rule->ref_um_data) {
|
||||
if (cJSON_AddStringToObject(item, "refUmData", session_rule->ref_um_data) == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [ref_um_data]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "refUmData", session_rule->ref_um_data) == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [ref_um_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (session_rule->ref_um_n3g_data) {
|
||||
if (cJSON_AddStringToObject(item, "refUmN3gData", session_rule->ref_um_n3g_data) == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [ref_um_n3g_data]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "refUmN3gData", session_rule->ref_um_n3g_data) == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [ref_um_n3g_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (session_rule->ref_cond_data) {
|
||||
if (cJSON_AddStringToObject(item, "refCondData", session_rule->ref_cond_data) == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [ref_cond_data]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "refCondData", session_rule->ref_cond_data) == NULL) {
|
||||
ogs_error("OpenAPI_session_rule_convertToJSON() failed [ref_cond_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -114,16 +114,16 @@ OpenAPI_session_rule_t *OpenAPI_session_rule_parseFromJSON(cJSON *session_ruleJS
|
|||
cJSON *auth_sess_ambr = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "authSessAmbr");
|
||||
|
||||
OpenAPI_ambr_t *auth_sess_ambr_local_nonprim = NULL;
|
||||
if (auth_sess_ambr) {
|
||||
auth_sess_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(auth_sess_ambr);
|
||||
}
|
||||
if (auth_sess_ambr) {
|
||||
auth_sess_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(auth_sess_ambr);
|
||||
}
|
||||
|
||||
cJSON *auth_def_qos = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "authDefQos");
|
||||
|
||||
OpenAPI_authorized_default_qos_t *auth_def_qos_local_nonprim = NULL;
|
||||
if (auth_def_qos) {
|
||||
auth_def_qos_local_nonprim = OpenAPI_authorized_default_qos_parseFromJSON(auth_def_qos);
|
||||
}
|
||||
if (auth_def_qos) {
|
||||
auth_def_qos_local_nonprim = OpenAPI_authorized_default_qos_parseFromJSON(auth_def_qos);
|
||||
}
|
||||
|
||||
cJSON *sess_rule_id = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "sessRuleId");
|
||||
if (!sess_rule_id) {
|
||||
|
|
@ -131,7 +131,7 @@ OpenAPI_session_rule_t *OpenAPI_session_rule_parseFromJSON(cJSON *session_ruleJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(sess_rule_id)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [sess_rule_id]");
|
||||
goto end;
|
||||
|
|
@ -139,30 +139,30 @@ OpenAPI_session_rule_t *OpenAPI_session_rule_parseFromJSON(cJSON *session_ruleJS
|
|||
|
||||
cJSON *ref_um_data = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "refUmData");
|
||||
|
||||
if (ref_um_data) {
|
||||
if (!cJSON_IsString(ref_um_data)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [ref_um_data]");
|
||||
goto end;
|
||||
}
|
||||
if (ref_um_data) {
|
||||
if (!cJSON_IsString(ref_um_data)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [ref_um_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ref_um_n3g_data = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "refUmN3gData");
|
||||
|
||||
if (ref_um_n3g_data) {
|
||||
if (!cJSON_IsString(ref_um_n3g_data)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [ref_um_n3g_data]");
|
||||
goto end;
|
||||
}
|
||||
if (ref_um_n3g_data) {
|
||||
if (!cJSON_IsString(ref_um_n3g_data)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [ref_um_n3g_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ref_cond_data = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "refCondData");
|
||||
|
||||
if (ref_cond_data) {
|
||||
if (!cJSON_IsString(ref_cond_data)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [ref_cond_data]");
|
||||
goto end;
|
||||
}
|
||||
if (ref_cond_data) {
|
||||
if (!cJSON_IsString(ref_cond_data)) {
|
||||
ogs_error("OpenAPI_session_rule_parseFromJSON() failed [ref_cond_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
session_rule_local_var = OpenAPI_session_rule_create (
|
||||
auth_sess_ambr ? auth_sess_ambr_local_nonprim : NULL,
|
||||
|
|
@ -171,7 +171,7 @@ OpenAPI_session_rule_t *OpenAPI_session_rule_parseFromJSON(cJSON *session_ruleJS
|
|||
ref_um_data ? ogs_strdup_or_assert(ref_um_data->valuestring) : NULL,
|
||||
ref_um_n3g_data ? ogs_strdup_or_assert(ref_um_n3g_data->valuestring) : NULL,
|
||||
ref_cond_data ? ogs_strdup_or_assert(ref_cond_data->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return session_rule_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue