mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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
|
|
@ -22,6 +22,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_create(
|
|||
OpenAPI_list_t *group_ids,
|
||||
OpenAPI_service_area_restriction_t *serv_area_res,
|
||||
OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res,
|
||||
bool is_rfsp,
|
||||
int rfsp,
|
||||
OpenAPI_ambr_t *ue_ambr,
|
||||
OpenAPI_list_t *allowed_snssais,
|
||||
|
|
@ -54,6 +55,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_create(
|
|||
policy_association_request_local_var->group_ids = group_ids;
|
||||
policy_association_request_local_var->serv_area_res = serv_area_res;
|
||||
policy_association_request_local_var->wl_serv_area_res = wl_serv_area_res;
|
||||
policy_association_request_local_var->is_rfsp = is_rfsp;
|
||||
policy_association_request_local_var->rfsp = rfsp;
|
||||
policy_association_request_local_var->ue_ambr = ue_ambr;
|
||||
policy_association_request_local_var->allowed_snssais = allowed_snssais;
|
||||
|
|
@ -321,7 +323,7 @@ cJSON *OpenAPI_policy_association_request_convertToJSON(OpenAPI_policy_associati
|
|||
}
|
||||
}
|
||||
|
||||
if (policy_association_request->rfsp) {
|
||||
if (policy_association_request->is_rfsp) {
|
||||
if (cJSON_AddNumberToObject(item, "rfsp", policy_association_request->rfsp) == NULL) {
|
||||
ogs_error("OpenAPI_policy_association_request_convertToJSON() failed [rfsp]");
|
||||
goto end;
|
||||
|
|
@ -452,7 +454,6 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(notification_uri)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [notification_uri]");
|
||||
goto end;
|
||||
|
|
@ -461,7 +462,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *alt_notif_ipv4_addrs = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "altNotifIpv4Addrs");
|
||||
|
||||
OpenAPI_list_t *alt_notif_ipv4_addrsList;
|
||||
if (alt_notif_ipv4_addrs) {
|
||||
if (alt_notif_ipv4_addrs) {
|
||||
cJSON *alt_notif_ipv4_addrs_local;
|
||||
if (!cJSON_IsArray(alt_notif_ipv4_addrs)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [alt_notif_ipv4_addrs]");
|
||||
|
|
@ -475,13 +476,13 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(alt_notif_ipv4_addrsList , ogs_strdup_or_assert(alt_notif_ipv4_addrs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *alt_notif_ipv6_addrs = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "altNotifIpv6Addrs");
|
||||
|
||||
OpenAPI_list_t *alt_notif_ipv6_addrsList;
|
||||
if (alt_notif_ipv6_addrs) {
|
||||
if (alt_notif_ipv6_addrs) {
|
||||
cJSON *alt_notif_ipv6_addrs_local;
|
||||
if (!cJSON_IsArray(alt_notif_ipv6_addrs)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [alt_notif_ipv6_addrs]");
|
||||
|
|
@ -495,13 +496,13 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(alt_notif_ipv6_addrsList , ogs_strdup_or_assert(alt_notif_ipv6_addrs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *alt_notif_fqdns = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "altNotifFqdns");
|
||||
|
||||
OpenAPI_list_t *alt_notif_fqdnsList;
|
||||
if (alt_notif_fqdns) {
|
||||
if (alt_notif_fqdns) {
|
||||
cJSON *alt_notif_fqdns_local;
|
||||
if (!cJSON_IsArray(alt_notif_fqdns)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [alt_notif_fqdns]");
|
||||
|
|
@ -515,7 +516,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(alt_notif_fqdnsList , ogs_strdup_or_assert(alt_notif_fqdns_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "supi");
|
||||
|
|
@ -524,7 +525,6 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
|
@ -532,7 +532,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
|
||||
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "gpsi");
|
||||
|
||||
if (gpsi) {
|
||||
if (gpsi) {
|
||||
if (!cJSON_IsString(gpsi)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
|
|
@ -542,7 +542,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *access_type = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "accessType");
|
||||
|
||||
OpenAPI_access_type_e access_typeVariable;
|
||||
if (access_type) {
|
||||
if (access_type) {
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
|
|
@ -553,7 +553,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *access_types = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "accessTypes");
|
||||
|
||||
OpenAPI_list_t *access_typesList;
|
||||
if (access_types) {
|
||||
if (access_types) {
|
||||
cJSON *access_types_local_nonprimitive;
|
||||
if (!cJSON_IsArray(access_types)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [access_types]");
|
||||
|
|
@ -574,7 +574,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
|
@ -584,13 +584,13 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *user_loc = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "userLoc");
|
||||
|
||||
OpenAPI_user_location_t *user_loc_local_nonprim = NULL;
|
||||
if (user_loc) {
|
||||
if (user_loc) {
|
||||
user_loc_local_nonprim = OpenAPI_user_location_parseFromJSON(user_loc);
|
||||
}
|
||||
|
||||
cJSON *time_zone = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "timeZone");
|
||||
|
||||
if (time_zone) {
|
||||
if (time_zone) {
|
||||
if (!cJSON_IsString(time_zone)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [time_zone]");
|
||||
goto end;
|
||||
|
|
@ -600,14 +600,14 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *serving_plmn = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "servingPlmn");
|
||||
|
||||
OpenAPI_plmn_id_nid_t *serving_plmn_local_nonprim = NULL;
|
||||
if (serving_plmn) {
|
||||
if (serving_plmn) {
|
||||
serving_plmn_local_nonprim = OpenAPI_plmn_id_nid_parseFromJSON(serving_plmn);
|
||||
}
|
||||
|
||||
cJSON *rat_type = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "ratType");
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
if (rat_type) {
|
||||
if (rat_type) {
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
|
|
@ -618,7 +618,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *rat_types = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "ratTypes");
|
||||
|
||||
OpenAPI_list_t *rat_typesList;
|
||||
if (rat_types) {
|
||||
if (rat_types) {
|
||||
cJSON *rat_types_local_nonprimitive;
|
||||
if (!cJSON_IsArray(rat_types)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [rat_types]");
|
||||
|
|
@ -640,7 +640,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *group_ids = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "groupIds");
|
||||
|
||||
OpenAPI_list_t *group_idsList;
|
||||
if (group_ids) {
|
||||
if (group_ids) {
|
||||
cJSON *group_ids_local;
|
||||
if (!cJSON_IsArray(group_ids)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [group_ids]");
|
||||
|
|
@ -654,26 +654,26 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(group_idsList , ogs_strdup_or_assert(group_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *serv_area_res = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "servAreaRes");
|
||||
|
||||
OpenAPI_service_area_restriction_t *serv_area_res_local_nonprim = NULL;
|
||||
if (serv_area_res) {
|
||||
if (serv_area_res) {
|
||||
serv_area_res_local_nonprim = OpenAPI_service_area_restriction_parseFromJSON(serv_area_res);
|
||||
}
|
||||
|
||||
cJSON *wl_serv_area_res = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "wlServAreaRes");
|
||||
|
||||
OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res_local_nonprim = NULL;
|
||||
if (wl_serv_area_res) {
|
||||
if (wl_serv_area_res) {
|
||||
wl_serv_area_res_local_nonprim = OpenAPI_wireline_service_area_restriction_parseFromJSON(wl_serv_area_res);
|
||||
}
|
||||
|
||||
cJSON *rfsp = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "rfsp");
|
||||
|
||||
if (rfsp) {
|
||||
if (rfsp) {
|
||||
if (!cJSON_IsNumber(rfsp)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [rfsp]");
|
||||
goto end;
|
||||
|
|
@ -683,14 +683,14 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *ue_ambr = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "ueAmbr");
|
||||
|
||||
OpenAPI_ambr_t *ue_ambr_local_nonprim = NULL;
|
||||
if (ue_ambr) {
|
||||
if (ue_ambr) {
|
||||
ue_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(ue_ambr);
|
||||
}
|
||||
|
||||
cJSON *allowed_snssais = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "allowedSnssais");
|
||||
|
||||
OpenAPI_list_t *allowed_snssaisList;
|
||||
if (allowed_snssais) {
|
||||
if (allowed_snssais) {
|
||||
cJSON *allowed_snssais_local_nonprimitive;
|
||||
if (!cJSON_IsArray(allowed_snssais)){
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [allowed_snssais]");
|
||||
|
|
@ -713,7 +713,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *mapping_snssais = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "mappingSnssais");
|
||||
|
||||
OpenAPI_list_t *mapping_snssaisList;
|
||||
if (mapping_snssais) {
|
||||
if (mapping_snssais) {
|
||||
cJSON *mapping_snssais_local_nonprimitive;
|
||||
if (!cJSON_IsArray(mapping_snssais)){
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [mapping_snssais]");
|
||||
|
|
@ -736,7 +736,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *n3g_allowed_snssais = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "n3gAllowedSnssais");
|
||||
|
||||
OpenAPI_list_t *n3g_allowed_snssaisList;
|
||||
if (n3g_allowed_snssais) {
|
||||
if (n3g_allowed_snssais) {
|
||||
cJSON *n3g_allowed_snssais_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n3g_allowed_snssais)){
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [n3g_allowed_snssais]");
|
||||
|
|
@ -759,13 +759,13 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *guami = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "guami");
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
if (guami) {
|
||||
if (guami) {
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
}
|
||||
|
||||
cJSON *service_name = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "serviceName");
|
||||
|
||||
if (service_name) {
|
||||
if (service_name) {
|
||||
if (!cJSON_IsString(service_name)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [service_name]");
|
||||
goto end;
|
||||
|
|
@ -775,7 +775,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
cJSON *trace_req = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "traceReq");
|
||||
|
||||
OpenAPI_trace_data_t *trace_req_local_nonprim = NULL;
|
||||
if (trace_req) {
|
||||
if (trace_req) {
|
||||
trace_req_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_req);
|
||||
}
|
||||
|
||||
|
|
@ -785,7 +785,6 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(supp_feat)) {
|
||||
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed [supp_feat]");
|
||||
goto end;
|
||||
|
|
@ -809,6 +808,7 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
|
|||
group_ids ? group_idsList : NULL,
|
||||
serv_area_res ? serv_area_res_local_nonprim : NULL,
|
||||
wl_serv_area_res ? wl_serv_area_res_local_nonprim : NULL,
|
||||
rfsp ? true : false,
|
||||
rfsp ? rfsp->valuedouble : 0,
|
||||
ue_ambr ? ue_ambr_local_nonprim : NULL,
|
||||
allowed_snssais ? allowed_snssaisList : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue