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

@ -15,7 +15,7 @@ OpenAPI_sm_context_release_data_t *OpenAPI_sm_context_release_data_create(
OpenAPI_ref_to_binary_data_t *n2_sm_info,
OpenAPI_n2_sm_info_type_e n2_sm_info_type,
int ismf_release_only
)
)
{
OpenAPI_sm_context_release_data_t *sm_context_release_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_sm_context_release_data_t));
if (!sm_context_release_data_local_var) {
@ -60,97 +60,97 @@ cJSON *OpenAPI_sm_context_release_data_convertToJSON(OpenAPI_sm_context_release_
item = cJSON_CreateObject();
if (sm_context_release_data->cause) {
if (cJSON_AddStringToObject(item, "cause", OpenAPI_cause_ToString(sm_context_release_data->cause)) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [cause]");
goto end;
}
if (cJSON_AddStringToObject(item, "cause", OpenAPI_cause_ToString(sm_context_release_data->cause)) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [cause]");
goto end;
}
}
if (sm_context_release_data->ng_ap_cause) {
cJSON *ng_ap_cause_local_JSON = OpenAPI_ng_ap_cause_convertToJSON(sm_context_release_data->ng_ap_cause);
if (ng_ap_cause_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ng_ap_cause]");
goto end;
}
cJSON_AddItemToObject(item, "ngApCause", ng_ap_cause_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ng_ap_cause]");
goto end;
}
cJSON *ng_ap_cause_local_JSON = OpenAPI_ng_ap_cause_convertToJSON(sm_context_release_data->ng_ap_cause);
if (ng_ap_cause_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ng_ap_cause]");
goto end;
}
cJSON_AddItemToObject(item, "ngApCause", ng_ap_cause_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ng_ap_cause]");
goto end;
}
}
if (sm_context_release_data->_5g_mm_cause_value) {
if (cJSON_AddNumberToObject(item, "5gMmCauseValue", sm_context_release_data->_5g_mm_cause_value) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [_5g_mm_cause_value]");
goto end;
}
if (cJSON_AddNumberToObject(item, "5gMmCauseValue", sm_context_release_data->_5g_mm_cause_value) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [_5g_mm_cause_value]");
goto end;
}
}
if (sm_context_release_data->ue_location) {
cJSON *ue_location_local_JSON = OpenAPI_user_location_convertToJSON(sm_context_release_data->ue_location);
if (ue_location_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ue_location]");
goto end;
}
cJSON_AddItemToObject(item, "ueLocation", ue_location_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ue_location]");
goto end;
}
cJSON *ue_location_local_JSON = OpenAPI_user_location_convertToJSON(sm_context_release_data->ue_location);
if (ue_location_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ue_location]");
goto end;
}
cJSON_AddItemToObject(item, "ueLocation", ue_location_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ue_location]");
goto end;
}
}
if (sm_context_release_data->ue_time_zone) {
if (cJSON_AddStringToObject(item, "ueTimeZone", sm_context_release_data->ue_time_zone) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ue_time_zone]");
goto end;
}
if (cJSON_AddStringToObject(item, "ueTimeZone", sm_context_release_data->ue_time_zone) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ue_time_zone]");
goto end;
}
}
if (sm_context_release_data->add_ue_location) {
cJSON *add_ue_location_local_JSON = OpenAPI_user_location_convertToJSON(sm_context_release_data->add_ue_location);
if (add_ue_location_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [add_ue_location]");
goto end;
}
cJSON_AddItemToObject(item, "addUeLocation", add_ue_location_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [add_ue_location]");
goto end;
}
cJSON *add_ue_location_local_JSON = OpenAPI_user_location_convertToJSON(sm_context_release_data->add_ue_location);
if (add_ue_location_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [add_ue_location]");
goto end;
}
cJSON_AddItemToObject(item, "addUeLocation", add_ue_location_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [add_ue_location]");
goto end;
}
}
if (sm_context_release_data->vsmf_release_only) {
if (cJSON_AddBoolToObject(item, "vsmfReleaseOnly", sm_context_release_data->vsmf_release_only) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [vsmf_release_only]");
goto end;
}
if (cJSON_AddBoolToObject(item, "vsmfReleaseOnly", sm_context_release_data->vsmf_release_only) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [vsmf_release_only]");
goto end;
}
}
if (sm_context_release_data->n2_sm_info) {
cJSON *n2_sm_info_local_JSON = OpenAPI_ref_to_binary_data_convertToJSON(sm_context_release_data->n2_sm_info);
if (n2_sm_info_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [n2_sm_info]");
goto end;
}
cJSON_AddItemToObject(item, "n2SmInfo", n2_sm_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [n2_sm_info]");
goto end;
}
cJSON *n2_sm_info_local_JSON = OpenAPI_ref_to_binary_data_convertToJSON(sm_context_release_data->n2_sm_info);
if (n2_sm_info_local_JSON == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [n2_sm_info]");
goto end;
}
cJSON_AddItemToObject(item, "n2SmInfo", n2_sm_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [n2_sm_info]");
goto end;
}
}
if (sm_context_release_data->n2_sm_info_type) {
if (cJSON_AddStringToObject(item, "n2SmInfoType", OpenAPI_n2_sm_info_type_ToString(sm_context_release_data->n2_sm_info_type)) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [n2_sm_info_type]");
goto end;
}
if (cJSON_AddStringToObject(item, "n2SmInfoType", OpenAPI_n2_sm_info_type_ToString(sm_context_release_data->n2_sm_info_type)) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [n2_sm_info_type]");
goto end;
}
}
if (sm_context_release_data->ismf_release_only) {
if (cJSON_AddBoolToObject(item, "ismfReleaseOnly", sm_context_release_data->ismf_release_only) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ismf_release_only]");
goto end;
}
if (cJSON_AddBoolToObject(item, "ismfReleaseOnly", sm_context_release_data->ismf_release_only) == NULL) {
ogs_error("OpenAPI_sm_context_release_data_convertToJSON() failed [ismf_release_only]");
goto end;
}
}
end:
@ -163,88 +163,88 @@ OpenAPI_sm_context_release_data_t *OpenAPI_sm_context_release_data_parseFromJSON
cJSON *cause = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "cause");
OpenAPI_cause_e causeVariable;
if (cause) {
if (!cJSON_IsString(cause)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [cause]");
goto end;
}
causeVariable = OpenAPI_cause_FromString(cause->valuestring);
if (cause) {
if (!cJSON_IsString(cause)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [cause]");
goto end;
}
causeVariable = OpenAPI_cause_FromString(cause->valuestring);
}
cJSON *ng_ap_cause = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "ngApCause");
OpenAPI_ng_ap_cause_t *ng_ap_cause_local_nonprim = NULL;
if (ng_ap_cause) {
ng_ap_cause_local_nonprim = OpenAPI_ng_ap_cause_parseFromJSON(ng_ap_cause);
}
if (ng_ap_cause) {
ng_ap_cause_local_nonprim = OpenAPI_ng_ap_cause_parseFromJSON(ng_ap_cause);
}
cJSON *_5g_mm_cause_value = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "5gMmCauseValue");
if (_5g_mm_cause_value) {
if (!cJSON_IsNumber(_5g_mm_cause_value)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [_5g_mm_cause_value]");
goto end;
}
if (_5g_mm_cause_value) {
if (!cJSON_IsNumber(_5g_mm_cause_value)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [_5g_mm_cause_value]");
goto end;
}
}
cJSON *ue_location = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "ueLocation");
OpenAPI_user_location_t *ue_location_local_nonprim = NULL;
if (ue_location) {
ue_location_local_nonprim = OpenAPI_user_location_parseFromJSON(ue_location);
}
if (ue_location) {
ue_location_local_nonprim = OpenAPI_user_location_parseFromJSON(ue_location);
}
cJSON *ue_time_zone = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "ueTimeZone");
if (ue_time_zone) {
if (!cJSON_IsString(ue_time_zone)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [ue_time_zone]");
goto end;
}
if (ue_time_zone) {
if (!cJSON_IsString(ue_time_zone)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [ue_time_zone]");
goto end;
}
}
cJSON *add_ue_location = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "addUeLocation");
OpenAPI_user_location_t *add_ue_location_local_nonprim = NULL;
if (add_ue_location) {
add_ue_location_local_nonprim = OpenAPI_user_location_parseFromJSON(add_ue_location);
}
if (add_ue_location) {
add_ue_location_local_nonprim = OpenAPI_user_location_parseFromJSON(add_ue_location);
}
cJSON *vsmf_release_only = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "vsmfReleaseOnly");
if (vsmf_release_only) {
if (!cJSON_IsBool(vsmf_release_only)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [vsmf_release_only]");
goto end;
}
if (vsmf_release_only) {
if (!cJSON_IsBool(vsmf_release_only)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [vsmf_release_only]");
goto end;
}
}
cJSON *n2_sm_info = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "n2SmInfo");
OpenAPI_ref_to_binary_data_t *n2_sm_info_local_nonprim = NULL;
if (n2_sm_info) {
n2_sm_info_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n2_sm_info);
}
if (n2_sm_info) {
n2_sm_info_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n2_sm_info);
}
cJSON *n2_sm_info_type = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "n2SmInfoType");
OpenAPI_n2_sm_info_type_e n2_sm_info_typeVariable;
if (n2_sm_info_type) {
if (!cJSON_IsString(n2_sm_info_type)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [n2_sm_info_type]");
goto end;
}
n2_sm_info_typeVariable = OpenAPI_n2_sm_info_type_FromString(n2_sm_info_type->valuestring);
if (n2_sm_info_type) {
if (!cJSON_IsString(n2_sm_info_type)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [n2_sm_info_type]");
goto end;
}
n2_sm_info_typeVariable = OpenAPI_n2_sm_info_type_FromString(n2_sm_info_type->valuestring);
}
cJSON *ismf_release_only = cJSON_GetObjectItemCaseSensitive(sm_context_release_dataJSON, "ismfReleaseOnly");
if (ismf_release_only) {
if (!cJSON_IsBool(ismf_release_only)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [ismf_release_only]");
goto end;
}
if (ismf_release_only) {
if (!cJSON_IsBool(ismf_release_only)) {
ogs_error("OpenAPI_sm_context_release_data_parseFromJSON() failed [ismf_release_only]");
goto end;
}
}
sm_context_release_data_local_var = OpenAPI_sm_context_release_data_create (
cause ? causeVariable : 0,
@ -257,7 +257,7 @@ OpenAPI_sm_context_release_data_t *OpenAPI_sm_context_release_data_parseFromJSON
n2_sm_info ? n2_sm_info_local_nonprim : NULL,
n2_sm_info_type ? n2_sm_info_typeVariable : 0,
ismf_release_only ? ismf_release_only->valueint : 0
);
);
return sm_context_release_data_local_var;
end: