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
|
|
@ -7,7 +7,9 @@
|
|||
OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_create(
|
||||
OpenAPI_restriction_type_e restriction_type,
|
||||
OpenAPI_list_t *areas,
|
||||
bool is_max_num_of_tas,
|
||||
int max_num_of_tas,
|
||||
bool is_max_num_of_tas_for_not_allowed_areas,
|
||||
int max_num_of_tas_for_not_allowed_areas
|
||||
)
|
||||
{
|
||||
|
|
@ -17,7 +19,9 @@ OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_create(
|
|||
}
|
||||
service_area_restriction_1_local_var->restriction_type = restriction_type;
|
||||
service_area_restriction_1_local_var->areas = areas;
|
||||
service_area_restriction_1_local_var->is_max_num_of_tas = is_max_num_of_tas;
|
||||
service_area_restriction_1_local_var->max_num_of_tas = max_num_of_tas;
|
||||
service_area_restriction_1_local_var->is_max_num_of_tas_for_not_allowed_areas = is_max_num_of_tas_for_not_allowed_areas;
|
||||
service_area_restriction_1_local_var->max_num_of_tas_for_not_allowed_areas = max_num_of_tas_for_not_allowed_areas;
|
||||
|
||||
return service_area_restriction_1_local_var;
|
||||
|
|
@ -73,14 +77,14 @@ cJSON *OpenAPI_service_area_restriction_1_convertToJSON(OpenAPI_service_area_res
|
|||
}
|
||||
}
|
||||
|
||||
if (service_area_restriction_1->max_num_of_tas) {
|
||||
if (service_area_restriction_1->is_max_num_of_tas) {
|
||||
if (cJSON_AddNumberToObject(item, "maxNumOfTAs", service_area_restriction_1->max_num_of_tas) == NULL) {
|
||||
ogs_error("OpenAPI_service_area_restriction_1_convertToJSON() failed [max_num_of_tas]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (service_area_restriction_1->max_num_of_tas_for_not_allowed_areas) {
|
||||
if (service_area_restriction_1->is_max_num_of_tas_for_not_allowed_areas) {
|
||||
if (cJSON_AddNumberToObject(item, "maxNumOfTAsForNotAllowedAreas", service_area_restriction_1->max_num_of_tas_for_not_allowed_areas) == NULL) {
|
||||
ogs_error("OpenAPI_service_area_restriction_1_convertToJSON() failed [max_num_of_tas_for_not_allowed_areas]");
|
||||
goto end;
|
||||
|
|
@ -97,7 +101,7 @@ OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_parseFr
|
|||
cJSON *restriction_type = cJSON_GetObjectItemCaseSensitive(service_area_restriction_1JSON, "restrictionType");
|
||||
|
||||
OpenAPI_restriction_type_e restriction_typeVariable;
|
||||
if (restriction_type) {
|
||||
if (restriction_type) {
|
||||
if (!cJSON_IsString(restriction_type)) {
|
||||
ogs_error("OpenAPI_service_area_restriction_1_parseFromJSON() failed [restriction_type]");
|
||||
goto end;
|
||||
|
|
@ -108,7 +112,7 @@ OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_parseFr
|
|||
cJSON *areas = cJSON_GetObjectItemCaseSensitive(service_area_restriction_1JSON, "areas");
|
||||
|
||||
OpenAPI_list_t *areasList;
|
||||
if (areas) {
|
||||
if (areas) {
|
||||
cJSON *areas_local_nonprimitive;
|
||||
if (!cJSON_IsArray(areas)){
|
||||
ogs_error("OpenAPI_service_area_restriction_1_parseFromJSON() failed [areas]");
|
||||
|
|
@ -130,7 +134,7 @@ OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_parseFr
|
|||
|
||||
cJSON *max_num_of_tas = cJSON_GetObjectItemCaseSensitive(service_area_restriction_1JSON, "maxNumOfTAs");
|
||||
|
||||
if (max_num_of_tas) {
|
||||
if (max_num_of_tas) {
|
||||
if (!cJSON_IsNumber(max_num_of_tas)) {
|
||||
ogs_error("OpenAPI_service_area_restriction_1_parseFromJSON() failed [max_num_of_tas]");
|
||||
goto end;
|
||||
|
|
@ -139,7 +143,7 @@ OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_parseFr
|
|||
|
||||
cJSON *max_num_of_tas_for_not_allowed_areas = cJSON_GetObjectItemCaseSensitive(service_area_restriction_1JSON, "maxNumOfTAsForNotAllowedAreas");
|
||||
|
||||
if (max_num_of_tas_for_not_allowed_areas) {
|
||||
if (max_num_of_tas_for_not_allowed_areas) {
|
||||
if (!cJSON_IsNumber(max_num_of_tas_for_not_allowed_areas)) {
|
||||
ogs_error("OpenAPI_service_area_restriction_1_parseFromJSON() failed [max_num_of_tas_for_not_allowed_areas]");
|
||||
goto end;
|
||||
|
|
@ -149,7 +153,9 @@ OpenAPI_service_area_restriction_1_t *OpenAPI_service_area_restriction_1_parseFr
|
|||
service_area_restriction_1_local_var = OpenAPI_service_area_restriction_1_create (
|
||||
restriction_type ? restriction_typeVariable : 0,
|
||||
areas ? areasList : NULL,
|
||||
max_num_of_tas ? true : false,
|
||||
max_num_of_tas ? max_num_of_tas->valuedouble : 0,
|
||||
max_num_of_tas_for_not_allowed_areas ? true : false,
|
||||
max_num_of_tas_for_not_allowed_areas ? max_num_of_tas_for_not_allowed_areas->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue