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_qos_monitoring_information_t *OpenAPI_qos_monitoring_information_create(
int rep_thresh_dl,
int rep_thresh_ul,
int rep_thresh_rp
)
)
{
OpenAPI_qos_monitoring_information_t *qos_monitoring_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_monitoring_information_t));
if (!qos_monitoring_information_local_var) {
@ -41,24 +41,24 @@ cJSON *OpenAPI_qos_monitoring_information_convertToJSON(OpenAPI_qos_monitoring_i
item = cJSON_CreateObject();
if (qos_monitoring_information->rep_thresh_dl) {
if (cJSON_AddNumberToObject(item, "repThreshDl", qos_monitoring_information->rep_thresh_dl) == NULL) {
ogs_error("OpenAPI_qos_monitoring_information_convertToJSON() failed [rep_thresh_dl]");
goto end;
}
if (cJSON_AddNumberToObject(item, "repThreshDl", qos_monitoring_information->rep_thresh_dl) == NULL) {
ogs_error("OpenAPI_qos_monitoring_information_convertToJSON() failed [rep_thresh_dl]");
goto end;
}
}
if (qos_monitoring_information->rep_thresh_ul) {
if (cJSON_AddNumberToObject(item, "repThreshUl", qos_monitoring_information->rep_thresh_ul) == NULL) {
ogs_error("OpenAPI_qos_monitoring_information_convertToJSON() failed [rep_thresh_ul]");
goto end;
}
if (cJSON_AddNumberToObject(item, "repThreshUl", qos_monitoring_information->rep_thresh_ul) == NULL) {
ogs_error("OpenAPI_qos_monitoring_information_convertToJSON() failed [rep_thresh_ul]");
goto end;
}
}
if (qos_monitoring_information->rep_thresh_rp) {
if (cJSON_AddNumberToObject(item, "repThreshRp", qos_monitoring_information->rep_thresh_rp) == NULL) {
ogs_error("OpenAPI_qos_monitoring_information_convertToJSON() failed [rep_thresh_rp]");
goto end;
}
if (cJSON_AddNumberToObject(item, "repThreshRp", qos_monitoring_information->rep_thresh_rp) == NULL) {
ogs_error("OpenAPI_qos_monitoring_information_convertToJSON() failed [rep_thresh_rp]");
goto end;
}
}
end:
@ -70,36 +70,36 @@ OpenAPI_qos_monitoring_information_t *OpenAPI_qos_monitoring_information_parseFr
OpenAPI_qos_monitoring_information_t *qos_monitoring_information_local_var = NULL;
cJSON *rep_thresh_dl = cJSON_GetObjectItemCaseSensitive(qos_monitoring_informationJSON, "repThreshDl");
if (rep_thresh_dl) {
if (!cJSON_IsNumber(rep_thresh_dl)) {
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON() failed [rep_thresh_dl]");
goto end;
}
if (rep_thresh_dl) {
if (!cJSON_IsNumber(rep_thresh_dl)) {
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON() failed [rep_thresh_dl]");
goto end;
}
}
cJSON *rep_thresh_ul = cJSON_GetObjectItemCaseSensitive(qos_monitoring_informationJSON, "repThreshUl");
if (rep_thresh_ul) {
if (!cJSON_IsNumber(rep_thresh_ul)) {
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON() failed [rep_thresh_ul]");
goto end;
}
if (rep_thresh_ul) {
if (!cJSON_IsNumber(rep_thresh_ul)) {
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON() failed [rep_thresh_ul]");
goto end;
}
}
cJSON *rep_thresh_rp = cJSON_GetObjectItemCaseSensitive(qos_monitoring_informationJSON, "repThreshRp");
if (rep_thresh_rp) {
if (!cJSON_IsNumber(rep_thresh_rp)) {
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON() failed [rep_thresh_rp]");
goto end;
}
if (rep_thresh_rp) {
if (!cJSON_IsNumber(rep_thresh_rp)) {
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON() failed [rep_thresh_rp]");
goto end;
}
}
qos_monitoring_information_local_var = OpenAPI_qos_monitoring_information_create (
rep_thresh_dl ? rep_thresh_dl->valuedouble : 0,
rep_thresh_ul ? rep_thresh_ul->valuedouble : 0,
rep_thresh_rp ? rep_thresh_rp->valuedouble : 0
);
);
return qos_monitoring_information_local_var;
end: