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

@ -19,7 +19,7 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_create(
OpenAPI_steering_mode_t *steer_mode_dl,
OpenAPI_steering_mode_t *steer_mode_ul,
OpenAPI_multicast_access_control_t *mul_acc_ctrl
)
)
{
OpenAPI_traffic_control_data_t *traffic_control_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_traffic_control_data_t));
if (!traffic_control_data_local_var) {
@ -84,150 +84,150 @@ cJSON *OpenAPI_traffic_control_data_convertToJSON(OpenAPI_traffic_control_data_t
}
if (traffic_control_data->flow_status) {
if (cJSON_AddStringToObject(item, "flowStatus", OpenAPI_flow_status_ToString(traffic_control_data->flow_status)) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [flow_status]");
goto end;
}
if (cJSON_AddStringToObject(item, "flowStatus", OpenAPI_flow_status_ToString(traffic_control_data->flow_status)) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [flow_status]");
goto end;
}
}
if (traffic_control_data->redirect_info) {
cJSON *redirect_info_local_JSON = OpenAPI_redirect_information_convertToJSON(traffic_control_data->redirect_info);
if (redirect_info_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [redirect_info]");
goto end;
}
cJSON_AddItemToObject(item, "redirectInfo", redirect_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [redirect_info]");
goto end;
}
cJSON *redirect_info_local_JSON = OpenAPI_redirect_information_convertToJSON(traffic_control_data->redirect_info);
if (redirect_info_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [redirect_info]");
goto end;
}
cJSON_AddItemToObject(item, "redirectInfo", redirect_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [redirect_info]");
goto end;
}
}
if (traffic_control_data->add_redirect_info) {
cJSON *add_redirect_infoList = cJSON_AddArrayToObject(item, "addRedirectInfo");
if (add_redirect_infoList == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [add_redirect_info]");
goto end;
}
cJSON *add_redirect_infoList = cJSON_AddArrayToObject(item, "addRedirectInfo");
if (add_redirect_infoList == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [add_redirect_info]");
goto end;
}
OpenAPI_lnode_t *add_redirect_info_node;
if (traffic_control_data->add_redirect_info) {
OpenAPI_list_for_each(traffic_control_data->add_redirect_info, add_redirect_info_node) {
cJSON *itemLocal = OpenAPI_redirect_information_convertToJSON(add_redirect_info_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [add_redirect_info]");
goto end;
}
cJSON_AddItemToArray(add_redirect_infoList, itemLocal);
OpenAPI_lnode_t *add_redirect_info_node;
if (traffic_control_data->add_redirect_info) {
OpenAPI_list_for_each(traffic_control_data->add_redirect_info, add_redirect_info_node) {
cJSON *itemLocal = OpenAPI_redirect_information_convertToJSON(add_redirect_info_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [add_redirect_info]");
goto end;
}
cJSON_AddItemToArray(add_redirect_infoList, itemLocal);
}
}
}
if (traffic_control_data->mute_notif) {
if (cJSON_AddBoolToObject(item, "muteNotif", traffic_control_data->mute_notif) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [mute_notif]");
goto end;
}
if (cJSON_AddBoolToObject(item, "muteNotif", traffic_control_data->mute_notif) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [mute_notif]");
goto end;
}
}
if (traffic_control_data->traffic_steering_pol_id_dl) {
if (cJSON_AddStringToObject(item, "trafficSteeringPolIdDl", traffic_control_data->traffic_steering_pol_id_dl) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [traffic_steering_pol_id_dl]");
goto end;
}
if (cJSON_AddStringToObject(item, "trafficSteeringPolIdDl", traffic_control_data->traffic_steering_pol_id_dl) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [traffic_steering_pol_id_dl]");
goto end;
}
}
if (traffic_control_data->traffic_steering_pol_id_ul) {
if (cJSON_AddStringToObject(item, "trafficSteeringPolIdUl", traffic_control_data->traffic_steering_pol_id_ul) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [traffic_steering_pol_id_ul]");
goto end;
}
if (cJSON_AddStringToObject(item, "trafficSteeringPolIdUl", traffic_control_data->traffic_steering_pol_id_ul) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [traffic_steering_pol_id_ul]");
goto end;
}
}
if (traffic_control_data->route_to_locs) {
cJSON *route_to_locsList = cJSON_AddArrayToObject(item, "routeToLocs");
if (route_to_locsList == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [route_to_locs]");
goto end;
}
cJSON *route_to_locsList = cJSON_AddArrayToObject(item, "routeToLocs");
if (route_to_locsList == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [route_to_locs]");
goto end;
}
OpenAPI_lnode_t *route_to_locs_node;
if (traffic_control_data->route_to_locs) {
OpenAPI_list_for_each(traffic_control_data->route_to_locs, route_to_locs_node) {
cJSON *itemLocal = OpenAPI_route_to_location_convertToJSON(route_to_locs_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [route_to_locs]");
goto end;
}
cJSON_AddItemToArray(route_to_locsList, itemLocal);
OpenAPI_lnode_t *route_to_locs_node;
if (traffic_control_data->route_to_locs) {
OpenAPI_list_for_each(traffic_control_data->route_to_locs, route_to_locs_node) {
cJSON *itemLocal = OpenAPI_route_to_location_convertToJSON(route_to_locs_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [route_to_locs]");
goto end;
}
cJSON_AddItemToArray(route_to_locsList, itemLocal);
}
}
}
if (traffic_control_data->traff_corre_ind) {
if (cJSON_AddBoolToObject(item, "traffCorreInd", traffic_control_data->traff_corre_ind) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [traff_corre_ind]");
goto end;
}
if (cJSON_AddBoolToObject(item, "traffCorreInd", traffic_control_data->traff_corre_ind) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [traff_corre_ind]");
goto end;
}
}
if (traffic_control_data->up_path_chg_event) {
cJSON *up_path_chg_event_local_JSON = OpenAPI_up_path_chg_event_convertToJSON(traffic_control_data->up_path_chg_event);
if (up_path_chg_event_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [up_path_chg_event]");
goto end;
}
cJSON_AddItemToObject(item, "upPathChgEvent", up_path_chg_event_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [up_path_chg_event]");
goto end;
}
cJSON *up_path_chg_event_local_JSON = OpenAPI_up_path_chg_event_convertToJSON(traffic_control_data->up_path_chg_event);
if (up_path_chg_event_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [up_path_chg_event]");
goto end;
}
cJSON_AddItemToObject(item, "upPathChgEvent", up_path_chg_event_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [up_path_chg_event]");
goto end;
}
}
if (traffic_control_data->steer_fun) {
if (cJSON_AddStringToObject(item, "steerFun", OpenAPI_steering_functionality_ToString(traffic_control_data->steer_fun)) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_fun]");
goto end;
}
if (cJSON_AddStringToObject(item, "steerFun", OpenAPI_steering_functionality_ToString(traffic_control_data->steer_fun)) == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_fun]");
goto end;
}
}
if (traffic_control_data->steer_mode_dl) {
cJSON *steer_mode_dl_local_JSON = OpenAPI_steering_mode_convertToJSON(traffic_control_data->steer_mode_dl);
if (steer_mode_dl_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_dl]");
goto end;
}
cJSON_AddItemToObject(item, "steerModeDl", steer_mode_dl_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_dl]");
goto end;
}
cJSON *steer_mode_dl_local_JSON = OpenAPI_steering_mode_convertToJSON(traffic_control_data->steer_mode_dl);
if (steer_mode_dl_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_dl]");
goto end;
}
cJSON_AddItemToObject(item, "steerModeDl", steer_mode_dl_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_dl]");
goto end;
}
}
if (traffic_control_data->steer_mode_ul) {
cJSON *steer_mode_ul_local_JSON = OpenAPI_steering_mode_convertToJSON(traffic_control_data->steer_mode_ul);
if (steer_mode_ul_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_ul]");
goto end;
}
cJSON_AddItemToObject(item, "steerModeUl", steer_mode_ul_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_ul]");
goto end;
}
cJSON *steer_mode_ul_local_JSON = OpenAPI_steering_mode_convertToJSON(traffic_control_data->steer_mode_ul);
if (steer_mode_ul_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_ul]");
goto end;
}
cJSON_AddItemToObject(item, "steerModeUl", steer_mode_ul_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [steer_mode_ul]");
goto end;
}
}
if (traffic_control_data->mul_acc_ctrl) {
cJSON *mul_acc_ctrl_local_JSON = OpenAPI_multicast_access_control_convertToJSON(traffic_control_data->mul_acc_ctrl);
if (mul_acc_ctrl_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [mul_acc_ctrl]");
goto end;
}
cJSON_AddItemToObject(item, "mulAccCtrl", mul_acc_ctrl_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [mul_acc_ctrl]");
goto end;
}
cJSON *mul_acc_ctrl_local_JSON = OpenAPI_multicast_access_control_convertToJSON(traffic_control_data->mul_acc_ctrl);
if (mul_acc_ctrl_local_JSON == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [mul_acc_ctrl]");
goto end;
}
cJSON_AddItemToObject(item, "mulAccCtrl", mul_acc_ctrl_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed [mul_acc_ctrl]");
goto end;
}
}
end:
@ -243,7 +243,7 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_parseFromJSON(cJSON
goto end;
}
if (!cJSON_IsString(tc_id)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [tc_id]");
goto end;
@ -252,141 +252,141 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_parseFromJSON(cJSON
cJSON *flow_status = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "flowStatus");
OpenAPI_flow_status_e flow_statusVariable;
if (flow_status) {
if (!cJSON_IsString(flow_status)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [flow_status]");
goto end;
}
flow_statusVariable = OpenAPI_flow_status_FromString(flow_status->valuestring);
if (flow_status) {
if (!cJSON_IsString(flow_status)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [flow_status]");
goto end;
}
flow_statusVariable = OpenAPI_flow_status_FromString(flow_status->valuestring);
}
cJSON *redirect_info = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "redirectInfo");
OpenAPI_redirect_information_t *redirect_info_local_nonprim = NULL;
if (redirect_info) {
redirect_info_local_nonprim = OpenAPI_redirect_information_parseFromJSON(redirect_info);
}
if (redirect_info) {
redirect_info_local_nonprim = OpenAPI_redirect_information_parseFromJSON(redirect_info);
}
cJSON *add_redirect_info = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "addRedirectInfo");
OpenAPI_list_t *add_redirect_infoList;
if (add_redirect_info) {
cJSON *add_redirect_info_local_nonprimitive;
if (!cJSON_IsArray(add_redirect_info)) {
if (add_redirect_info) {
cJSON *add_redirect_info_local_nonprimitive;
if (!cJSON_IsArray(add_redirect_info)){
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [add_redirect_info]");
goto end;
}
add_redirect_infoList = OpenAPI_list_create();
cJSON_ArrayForEach(add_redirect_info_local_nonprimitive, add_redirect_info ) {
if (!cJSON_IsObject(add_redirect_info_local_nonprimitive)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [add_redirect_info]");
goto end;
}
OpenAPI_redirect_information_t *add_redirect_infoItem = OpenAPI_redirect_information_parseFromJSON(add_redirect_info_local_nonprimitive);
add_redirect_infoList = OpenAPI_list_create();
cJSON_ArrayForEach(add_redirect_info_local_nonprimitive, add_redirect_info ) {
if (!cJSON_IsObject(add_redirect_info_local_nonprimitive)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [add_redirect_info]");
goto end;
}
OpenAPI_redirect_information_t *add_redirect_infoItem = OpenAPI_redirect_information_parseFromJSON(add_redirect_info_local_nonprimitive);
OpenAPI_list_add(add_redirect_infoList, add_redirect_infoItem);
}
OpenAPI_list_add(add_redirect_infoList, add_redirect_infoItem);
}
}
cJSON *mute_notif = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "muteNotif");
if (mute_notif) {
if (!cJSON_IsBool(mute_notif)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [mute_notif]");
goto end;
}
if (mute_notif) {
if (!cJSON_IsBool(mute_notif)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [mute_notif]");
goto end;
}
}
cJSON *traffic_steering_pol_id_dl = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "trafficSteeringPolIdDl");
if (traffic_steering_pol_id_dl) {
if (!cJSON_IsString(traffic_steering_pol_id_dl)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [traffic_steering_pol_id_dl]");
goto end;
}
if (traffic_steering_pol_id_dl) {
if (!cJSON_IsString(traffic_steering_pol_id_dl)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [traffic_steering_pol_id_dl]");
goto end;
}
}
cJSON *traffic_steering_pol_id_ul = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "trafficSteeringPolIdUl");
if (traffic_steering_pol_id_ul) {
if (!cJSON_IsString(traffic_steering_pol_id_ul)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [traffic_steering_pol_id_ul]");
goto end;
}
if (traffic_steering_pol_id_ul) {
if (!cJSON_IsString(traffic_steering_pol_id_ul)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [traffic_steering_pol_id_ul]");
goto end;
}
}
cJSON *route_to_locs = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "routeToLocs");
OpenAPI_list_t *route_to_locsList;
if (route_to_locs) {
cJSON *route_to_locs_local_nonprimitive;
if (!cJSON_IsArray(route_to_locs)) {
if (route_to_locs) {
cJSON *route_to_locs_local_nonprimitive;
if (!cJSON_IsArray(route_to_locs)){
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [route_to_locs]");
goto end;
}
route_to_locsList = OpenAPI_list_create();
cJSON_ArrayForEach(route_to_locs_local_nonprimitive, route_to_locs ) {
if (!cJSON_IsObject(route_to_locs_local_nonprimitive)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [route_to_locs]");
goto end;
}
OpenAPI_route_to_location_t *route_to_locsItem = OpenAPI_route_to_location_parseFromJSON(route_to_locs_local_nonprimitive);
route_to_locsList = OpenAPI_list_create();
cJSON_ArrayForEach(route_to_locs_local_nonprimitive, route_to_locs ) {
if (!cJSON_IsObject(route_to_locs_local_nonprimitive)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [route_to_locs]");
goto end;
}
OpenAPI_route_to_location_t *route_to_locsItem = OpenAPI_route_to_location_parseFromJSON(route_to_locs_local_nonprimitive);
OpenAPI_list_add(route_to_locsList, route_to_locsItem);
}
OpenAPI_list_add(route_to_locsList, route_to_locsItem);
}
}
cJSON *traff_corre_ind = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "traffCorreInd");
if (traff_corre_ind) {
if (!cJSON_IsBool(traff_corre_ind)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [traff_corre_ind]");
goto end;
}
if (traff_corre_ind) {
if (!cJSON_IsBool(traff_corre_ind)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [traff_corre_ind]");
goto end;
}
}
cJSON *up_path_chg_event = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "upPathChgEvent");
OpenAPI_up_path_chg_event_t *up_path_chg_event_local_nonprim = NULL;
if (up_path_chg_event) {
up_path_chg_event_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_event);
}
if (up_path_chg_event) {
up_path_chg_event_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_event);
}
cJSON *steer_fun = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "steerFun");
OpenAPI_steering_functionality_e steer_funVariable;
if (steer_fun) {
if (!cJSON_IsString(steer_fun)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [steer_fun]");
goto end;
}
steer_funVariable = OpenAPI_steering_functionality_FromString(steer_fun->valuestring);
if (steer_fun) {
if (!cJSON_IsString(steer_fun)) {
ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed [steer_fun]");
goto end;
}
steer_funVariable = OpenAPI_steering_functionality_FromString(steer_fun->valuestring);
}
cJSON *steer_mode_dl = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "steerModeDl");
OpenAPI_steering_mode_t *steer_mode_dl_local_nonprim = NULL;
if (steer_mode_dl) {
steer_mode_dl_local_nonprim = OpenAPI_steering_mode_parseFromJSON(steer_mode_dl);
}
if (steer_mode_dl) {
steer_mode_dl_local_nonprim = OpenAPI_steering_mode_parseFromJSON(steer_mode_dl);
}
cJSON *steer_mode_ul = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "steerModeUl");
OpenAPI_steering_mode_t *steer_mode_ul_local_nonprim = NULL;
if (steer_mode_ul) {
steer_mode_ul_local_nonprim = OpenAPI_steering_mode_parseFromJSON(steer_mode_ul);
}
if (steer_mode_ul) {
steer_mode_ul_local_nonprim = OpenAPI_steering_mode_parseFromJSON(steer_mode_ul);
}
cJSON *mul_acc_ctrl = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "mulAccCtrl");
OpenAPI_multicast_access_control_t *mul_acc_ctrl_local_nonprim = NULL;
if (mul_acc_ctrl) {
mul_acc_ctrl_local_nonprim = OpenAPI_multicast_access_control_parseFromJSON(mul_acc_ctrl);
}
if (mul_acc_ctrl) {
mul_acc_ctrl_local_nonprim = OpenAPI_multicast_access_control_parseFromJSON(mul_acc_ctrl);
}
traffic_control_data_local_var = OpenAPI_traffic_control_data_create (
ogs_strdup_or_assert(tc_id->valuestring),
@ -403,7 +403,7 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_parseFromJSON(cJSON
steer_mode_dl ? steer_mode_dl_local_nonprim : NULL,
steer_mode_ul ? steer_mode_ul_local_nonprim : NULL,
mul_acc_ctrl ? mul_acc_ctrl_local_nonprim : NULL
);
);
return traffic_control_data_local_var;
end: