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

@ -11,7 +11,7 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_create(
char qos_flow_description,
OpenAPI_qos_flow_profile_t *qos_flow_profile,
OpenAPI_qos_flow_access_type_e associated_an_type
)
)
{
OpenAPI_qos_flow_setup_item_t *qos_flow_setup_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_flow_setup_item_t));
if (!qos_flow_setup_item_local_var) {
@ -58,37 +58,37 @@ cJSON *OpenAPI_qos_flow_setup_item_convertToJSON(OpenAPI_qos_flow_setup_item_t *
}
if (qos_flow_setup_item->ebi) {
if (cJSON_AddNumberToObject(item, "ebi", qos_flow_setup_item->ebi) == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [ebi]");
goto end;
}
if (cJSON_AddNumberToObject(item, "ebi", qos_flow_setup_item->ebi) == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [ebi]");
goto end;
}
}
if (qos_flow_setup_item->qos_flow_description) {
if (cJSON_AddNumberToObject(item, "qosFlowDescription", qos_flow_setup_item->qos_flow_description) == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [qos_flow_description]");
goto end;
}
if (cJSON_AddNumberToObject(item, "qosFlowDescription", qos_flow_setup_item->qos_flow_description) == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [qos_flow_description]");
goto end;
}
}
if (qos_flow_setup_item->qos_flow_profile) {
cJSON *qos_flow_profile_local_JSON = OpenAPI_qos_flow_profile_convertToJSON(qos_flow_setup_item->qos_flow_profile);
if (qos_flow_profile_local_JSON == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [qos_flow_profile]");
goto end;
}
cJSON_AddItemToObject(item, "qosFlowProfile", qos_flow_profile_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [qos_flow_profile]");
goto end;
}
cJSON *qos_flow_profile_local_JSON = OpenAPI_qos_flow_profile_convertToJSON(qos_flow_setup_item->qos_flow_profile);
if (qos_flow_profile_local_JSON == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [qos_flow_profile]");
goto end;
}
cJSON_AddItemToObject(item, "qosFlowProfile", qos_flow_profile_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [qos_flow_profile]");
goto end;
}
}
if (qos_flow_setup_item->associated_an_type) {
if (cJSON_AddStringToObject(item, "associatedAnType", OpenAPI_qos_flow_access_type_ToString(qos_flow_setup_item->associated_an_type)) == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [associated_an_type]");
goto end;
}
if (cJSON_AddStringToObject(item, "associatedAnType", OpenAPI_qos_flow_access_type_ToString(qos_flow_setup_item->associated_an_type)) == NULL) {
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [associated_an_type]");
goto end;
}
}
end:
@ -104,7 +104,7 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_parseFromJSON(cJSON *
goto end;
}
if (!cJSON_IsNumber(qfi)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [qfi]");
goto end;
@ -116,7 +116,7 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_parseFromJSON(cJSON *
goto end;
}
if (!cJSON_IsNumber(qos_rules)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [qos_rules]");
goto end;
@ -124,39 +124,39 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_parseFromJSON(cJSON *
cJSON *ebi = cJSON_GetObjectItemCaseSensitive(qos_flow_setup_itemJSON, "ebi");
if (ebi) {
if (!cJSON_IsNumber(ebi)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [ebi]");
goto end;
}
if (ebi) {
if (!cJSON_IsNumber(ebi)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [ebi]");
goto end;
}
}
cJSON *qos_flow_description = cJSON_GetObjectItemCaseSensitive(qos_flow_setup_itemJSON, "qosFlowDescription");
if (qos_flow_description) {
if (!cJSON_IsNumber(qos_flow_description)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [qos_flow_description]");
goto end;
}
if (qos_flow_description) {
if (!cJSON_IsNumber(qos_flow_description)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [qos_flow_description]");
goto end;
}
}
cJSON *qos_flow_profile = cJSON_GetObjectItemCaseSensitive(qos_flow_setup_itemJSON, "qosFlowProfile");
OpenAPI_qos_flow_profile_t *qos_flow_profile_local_nonprim = NULL;
if (qos_flow_profile) {
qos_flow_profile_local_nonprim = OpenAPI_qos_flow_profile_parseFromJSON(qos_flow_profile);
}
if (qos_flow_profile) {
qos_flow_profile_local_nonprim = OpenAPI_qos_flow_profile_parseFromJSON(qos_flow_profile);
}
cJSON *associated_an_type = cJSON_GetObjectItemCaseSensitive(qos_flow_setup_itemJSON, "associatedAnType");
OpenAPI_qos_flow_access_type_e associated_an_typeVariable;
if (associated_an_type) {
if (!cJSON_IsString(associated_an_type)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [associated_an_type]");
goto end;
}
associated_an_typeVariable = OpenAPI_qos_flow_access_type_FromString(associated_an_type->valuestring);
if (associated_an_type) {
if (!cJSON_IsString(associated_an_type)) {
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [associated_an_type]");
goto end;
}
associated_an_typeVariable = OpenAPI_qos_flow_access_type_FromString(associated_an_type->valuestring);
}
qos_flow_setup_item_local_var = OpenAPI_qos_flow_setup_item_create (
qfi->valuedouble,
@ -165,7 +165,7 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_parseFromJSON(cJSON *
qos_flow_description ? qos_flow_description->valueint : 0,
qos_flow_profile ? qos_flow_profile_local_nonprim : NULL,
associated_an_type ? associated_an_typeVariable : 0
);
);
return qos_flow_setup_item_local_var;
end: