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:
Sukchan Lee 2021-07-16 17:02:33 +09:00
parent 1326fc85dc
commit 039b9d0aaa
930 changed files with 7387 additions and 5434 deletions

View file

@ -7,6 +7,7 @@
OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_create(
int pqi,
OpenAPI_pc5_flow_bit_rates_t *pc5_flow_bit_rates,
bool is_range,
int range
)
{
@ -16,6 +17,7 @@ OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_create(
}
pc5_qos_flow_item_local_var->pqi = pqi;
pc5_qos_flow_item_local_var->pc5_flow_bit_rates = pc5_flow_bit_rates;
pc5_qos_flow_item_local_var->is_range = is_range;
pc5_qos_flow_item_local_var->range = range;
return pc5_qos_flow_item_local_var;
@ -59,7 +61,7 @@ cJSON *OpenAPI_pc5_qos_flow_item_convertToJSON(OpenAPI_pc5_qos_flow_item_t *pc5_
}
}
if (pc5_qos_flow_item->range) {
if (pc5_qos_flow_item->is_range) {
if (cJSON_AddNumberToObject(item, "range", pc5_qos_flow_item->range) == NULL) {
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [range]");
goto end;
@ -79,7 +81,6 @@ OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_parseFromJSON(cJSON *pc5_
goto end;
}
if (!cJSON_IsNumber(pqi)) {
ogs_error("OpenAPI_pc5_qos_flow_item_parseFromJSON() failed [pqi]");
goto end;
@ -88,13 +89,13 @@ OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_parseFromJSON(cJSON *pc5_
cJSON *pc5_flow_bit_rates = cJSON_GetObjectItemCaseSensitive(pc5_qos_flow_itemJSON, "pc5FlowBitRates");
OpenAPI_pc5_flow_bit_rates_t *pc5_flow_bit_rates_local_nonprim = NULL;
if (pc5_flow_bit_rates) {
if (pc5_flow_bit_rates) {
pc5_flow_bit_rates_local_nonprim = OpenAPI_pc5_flow_bit_rates_parseFromJSON(pc5_flow_bit_rates);
}
cJSON *range = cJSON_GetObjectItemCaseSensitive(pc5_qos_flow_itemJSON, "range");
if (range) {
if (range) {
if (!cJSON_IsNumber(range)) {
ogs_error("OpenAPI_pc5_qos_flow_item_parseFromJSON() failed [range]");
goto end;
@ -102,8 +103,10 @@ OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_parseFromJSON(cJSON *pc5_
}
pc5_qos_flow_item_local_var = OpenAPI_pc5_qos_flow_item_create (
pqi->valuedouble,
pc5_flow_bit_rates ? pc5_flow_bit_rates_local_nonprim : NULL,
range ? true : false,
range ? range->valuedouble : 0
);