Upgrade SBI(Service-based Interface)

* OpenAPI Generator version: 4.3.1 ==> 5.5.1
* Specification : r16.8.0 (20210629)
This commit is contained in:
Sukchan Lee 2021-07-07 17:32:55 +09:00
parent 2aaa8200c2
commit f278d58a69
1914 changed files with 91329 additions and 57361 deletions

View file

@ -8,7 +8,7 @@ OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_create(
int max_tsc_burst_size,
int tsc_pack_delay,
int tsc_prio_level
)
)
{
OpenAPI_tsn_qos_container_rm_t *tsn_qos_container_rm_local_var = OpenAPI_malloc(sizeof(OpenAPI_tsn_qos_container_rm_t));
if (!tsn_qos_container_rm_local_var) {
@ -41,24 +41,24 @@ cJSON *OpenAPI_tsn_qos_container_rm_convertToJSON(OpenAPI_tsn_qos_container_rm_t
item = cJSON_CreateObject();
if (tsn_qos_container_rm->max_tsc_burst_size) {
if (cJSON_AddNumberToObject(item, "maxTscBurstSize", tsn_qos_container_rm->max_tsc_burst_size) == NULL) {
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [max_tsc_burst_size]");
goto end;
}
if (cJSON_AddNumberToObject(item, "maxTscBurstSize", tsn_qos_container_rm->max_tsc_burst_size) == NULL) {
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [max_tsc_burst_size]");
goto end;
}
}
if (tsn_qos_container_rm->tsc_pack_delay) {
if (cJSON_AddNumberToObject(item, "tscPackDelay", tsn_qos_container_rm->tsc_pack_delay) == NULL) {
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [tsc_pack_delay]");
goto end;
}
if (cJSON_AddNumberToObject(item, "tscPackDelay", tsn_qos_container_rm->tsc_pack_delay) == NULL) {
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [tsc_pack_delay]");
goto end;
}
}
if (tsn_qos_container_rm->tsc_prio_level) {
if (cJSON_AddNumberToObject(item, "tscPrioLevel", tsn_qos_container_rm->tsc_prio_level) == NULL) {
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [tsc_prio_level]");
goto end;
}
if (cJSON_AddNumberToObject(item, "tscPrioLevel", tsn_qos_container_rm->tsc_prio_level) == NULL) {
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [tsc_prio_level]");
goto end;
}
}
end:
@ -70,36 +70,36 @@ OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_parseFromJSON(cJSON
OpenAPI_tsn_qos_container_rm_t *tsn_qos_container_rm_local_var = NULL;
cJSON *max_tsc_burst_size = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "maxTscBurstSize");
if (max_tsc_burst_size) {
if (!cJSON_IsNumber(max_tsc_burst_size)) {
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [max_tsc_burst_size]");
goto end;
}
if (max_tsc_burst_size) {
if (!cJSON_IsNumber(max_tsc_burst_size)) {
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [max_tsc_burst_size]");
goto end;
}
}
cJSON *tsc_pack_delay = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPackDelay");
if (tsc_pack_delay) {
if (!cJSON_IsNumber(tsc_pack_delay)) {
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [tsc_pack_delay]");
goto end;
}
if (tsc_pack_delay) {
if (!cJSON_IsNumber(tsc_pack_delay)) {
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [tsc_pack_delay]");
goto end;
}
}
cJSON *tsc_prio_level = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPrioLevel");
if (tsc_prio_level) {
if (!cJSON_IsNumber(tsc_prio_level)) {
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [tsc_prio_level]");
goto end;
}
if (tsc_prio_level) {
if (!cJSON_IsNumber(tsc_prio_level)) {
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [tsc_prio_level]");
goto end;
}
}
tsn_qos_container_rm_local_var = OpenAPI_tsn_qos_container_rm_create (
max_tsc_burst_size ? max_tsc_burst_size->valuedouble : 0,
tsc_pack_delay ? tsc_pack_delay->valuedouble : 0,
tsc_prio_level ? tsc_prio_level->valuedouble : 0
);
);
return tsn_qos_container_rm_local_var;
end: