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

@ -17,7 +17,7 @@ OpenAPI_expected_ue_behaviour_t *OpenAPI_expected_ue_behaviour_create(
OpenAPI_battery_indication_rm_t *battery_indication,
char *validity_time,
char *mtc_provider_information
)
)
{
OpenAPI_expected_ue_behaviour_t *expected_ue_behaviour_local_var = OpenAPI_malloc(sizeof(OpenAPI_expected_ue_behaviour_t));
if (!expected_ue_behaviour_local_var) {
@ -81,116 +81,116 @@ cJSON *OpenAPI_expected_ue_behaviour_convertToJSON(OpenAPI_expected_ue_behaviour
}
if (expected_ue_behaviour->stationary_indication) {
cJSON *stationary_indication_local_JSON = OpenAPI_stationary_indication_rm_convertToJSON(expected_ue_behaviour->stationary_indication);
if (stationary_indication_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [stationary_indication]");
goto end;
}
cJSON_AddItemToObject(item, "stationaryIndication", stationary_indication_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [stationary_indication]");
goto end;
}
cJSON *stationary_indication_local_JSON = OpenAPI_stationary_indication_rm_convertToJSON(expected_ue_behaviour->stationary_indication);
if (stationary_indication_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [stationary_indication]");
goto end;
}
cJSON_AddItemToObject(item, "stationaryIndication", stationary_indication_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [stationary_indication]");
goto end;
}
}
if (expected_ue_behaviour->communication_duration_time) {
if (cJSON_AddNumberToObject(item, "communicationDurationTime", expected_ue_behaviour->communication_duration_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [communication_duration_time]");
goto end;
}
if (cJSON_AddNumberToObject(item, "communicationDurationTime", expected_ue_behaviour->communication_duration_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [communication_duration_time]");
goto end;
}
}
if (expected_ue_behaviour->scheduled_communication_type) {
cJSON *scheduled_communication_type_local_JSON = OpenAPI_scheduled_communication_type_rm_convertToJSON(expected_ue_behaviour->scheduled_communication_type);
if (scheduled_communication_type_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_type]");
goto end;
}
cJSON_AddItemToObject(item, "scheduledCommunicationType", scheduled_communication_type_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_type]");
goto end;
}
cJSON *scheduled_communication_type_local_JSON = OpenAPI_scheduled_communication_type_rm_convertToJSON(expected_ue_behaviour->scheduled_communication_type);
if (scheduled_communication_type_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_type]");
goto end;
}
cJSON_AddItemToObject(item, "scheduledCommunicationType", scheduled_communication_type_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_type]");
goto end;
}
}
if (expected_ue_behaviour->periodic_time) {
if (cJSON_AddNumberToObject(item, "periodicTime", expected_ue_behaviour->periodic_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [periodic_time]");
goto end;
}
if (cJSON_AddNumberToObject(item, "periodicTime", expected_ue_behaviour->periodic_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [periodic_time]");
goto end;
}
}
if (expected_ue_behaviour->scheduled_communication_time) {
cJSON *scheduled_communication_time_local_JSON = OpenAPI_scheduled_communication_time_rm_convertToJSON(expected_ue_behaviour->scheduled_communication_time);
if (scheduled_communication_time_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_time]");
goto end;
}
cJSON_AddItemToObject(item, "scheduledCommunicationTime", scheduled_communication_time_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_time]");
goto end;
}
cJSON *scheduled_communication_time_local_JSON = OpenAPI_scheduled_communication_time_rm_convertToJSON(expected_ue_behaviour->scheduled_communication_time);
if (scheduled_communication_time_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_time]");
goto end;
}
cJSON_AddItemToObject(item, "scheduledCommunicationTime", scheduled_communication_time_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [scheduled_communication_time]");
goto end;
}
}
if (expected_ue_behaviour->expected_umts) {
cJSON *expected_umtsList = cJSON_AddArrayToObject(item, "expectedUmts");
if (expected_umtsList == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [expected_umts]");
goto end;
}
cJSON *expected_umtsList = cJSON_AddArrayToObject(item, "expectedUmts");
if (expected_umtsList == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [expected_umts]");
goto end;
}
OpenAPI_lnode_t *expected_umts_node;
if (expected_ue_behaviour->expected_umts) {
OpenAPI_list_for_each(expected_ue_behaviour->expected_umts, expected_umts_node) {
cJSON *itemLocal = OpenAPI_location_area_convertToJSON(expected_umts_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [expected_umts]");
goto end;
}
cJSON_AddItemToArray(expected_umtsList, itemLocal);
OpenAPI_lnode_t *expected_umts_node;
if (expected_ue_behaviour->expected_umts) {
OpenAPI_list_for_each(expected_ue_behaviour->expected_umts, expected_umts_node) {
cJSON *itemLocal = OpenAPI_location_area_convertToJSON(expected_umts_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [expected_umts]");
goto end;
}
cJSON_AddItemToArray(expected_umtsList, itemLocal);
}
}
}
if (expected_ue_behaviour->traffic_profile) {
cJSON *traffic_profile_local_JSON = OpenAPI_traffic_profile_rm_convertToJSON(expected_ue_behaviour->traffic_profile);
if (traffic_profile_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [traffic_profile]");
goto end;
}
cJSON_AddItemToObject(item, "trafficProfile", traffic_profile_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [traffic_profile]");
goto end;
}
cJSON *traffic_profile_local_JSON = OpenAPI_traffic_profile_rm_convertToJSON(expected_ue_behaviour->traffic_profile);
if (traffic_profile_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [traffic_profile]");
goto end;
}
cJSON_AddItemToObject(item, "trafficProfile", traffic_profile_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [traffic_profile]");
goto end;
}
}
if (expected_ue_behaviour->battery_indication) {
cJSON *battery_indication_local_JSON = OpenAPI_battery_indication_rm_convertToJSON(expected_ue_behaviour->battery_indication);
if (battery_indication_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [battery_indication]");
goto end;
}
cJSON_AddItemToObject(item, "batteryIndication", battery_indication_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [battery_indication]");
goto end;
}
cJSON *battery_indication_local_JSON = OpenAPI_battery_indication_rm_convertToJSON(expected_ue_behaviour->battery_indication);
if (battery_indication_local_JSON == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [battery_indication]");
goto end;
}
cJSON_AddItemToObject(item, "batteryIndication", battery_indication_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [battery_indication]");
goto end;
}
}
if (expected_ue_behaviour->validity_time) {
if (cJSON_AddStringToObject(item, "validityTime", expected_ue_behaviour->validity_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [validity_time]");
goto end;
}
if (cJSON_AddStringToObject(item, "validityTime", expected_ue_behaviour->validity_time) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [validity_time]");
goto end;
}
}
if (expected_ue_behaviour->mtc_provider_information) {
if (cJSON_AddStringToObject(item, "mtcProviderInformation", expected_ue_behaviour->mtc_provider_information) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [mtc_provider_information]");
goto end;
}
if (cJSON_AddStringToObject(item, "mtcProviderInformation", expected_ue_behaviour->mtc_provider_information) == NULL) {
ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed [mtc_provider_information]");
goto end;
}
}
end:
@ -206,7 +206,7 @@ OpenAPI_expected_ue_behaviour_t *OpenAPI_expected_ue_behaviour_parseFromJSON(cJS
goto end;
}
if (!cJSON_IsString(af_instance_id)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [af_instance_id]");
goto end;
@ -218,7 +218,7 @@ OpenAPI_expected_ue_behaviour_t *OpenAPI_expected_ue_behaviour_parseFromJSON(cJS
goto end;
}
if (!cJSON_IsNumber(reference_id)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [reference_id]");
goto end;
@ -227,96 +227,96 @@ OpenAPI_expected_ue_behaviour_t *OpenAPI_expected_ue_behaviour_parseFromJSON(cJS
cJSON *stationary_indication = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "stationaryIndication");
OpenAPI_stationary_indication_rm_t *stationary_indication_local_nonprim = NULL;
if (stationary_indication) {
stationary_indication_local_nonprim = OpenAPI_stationary_indication_rm_parseFromJSON(stationary_indication);
}
if (stationary_indication) {
stationary_indication_local_nonprim = OpenAPI_stationary_indication_rm_parseFromJSON(stationary_indication);
}
cJSON *communication_duration_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "communicationDurationTime");
if (communication_duration_time) {
if (!cJSON_IsNumber(communication_duration_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [communication_duration_time]");
goto end;
}
if (communication_duration_time) {
if (!cJSON_IsNumber(communication_duration_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [communication_duration_time]");
goto end;
}
}
cJSON *scheduled_communication_type = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "scheduledCommunicationType");
OpenAPI_scheduled_communication_type_rm_t *scheduled_communication_type_local_nonprim = NULL;
if (scheduled_communication_type) {
scheduled_communication_type_local_nonprim = OpenAPI_scheduled_communication_type_rm_parseFromJSON(scheduled_communication_type);
}
if (scheduled_communication_type) {
scheduled_communication_type_local_nonprim = OpenAPI_scheduled_communication_type_rm_parseFromJSON(scheduled_communication_type);
}
cJSON *periodic_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "periodicTime");
if (periodic_time) {
if (!cJSON_IsNumber(periodic_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [periodic_time]");
goto end;
}
if (periodic_time) {
if (!cJSON_IsNumber(periodic_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [periodic_time]");
goto end;
}
}
cJSON *scheduled_communication_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "scheduledCommunicationTime");
OpenAPI_scheduled_communication_time_rm_t *scheduled_communication_time_local_nonprim = NULL;
if (scheduled_communication_time) {
scheduled_communication_time_local_nonprim = OpenAPI_scheduled_communication_time_rm_parseFromJSON(scheduled_communication_time);
}
if (scheduled_communication_time) {
scheduled_communication_time_local_nonprim = OpenAPI_scheduled_communication_time_rm_parseFromJSON(scheduled_communication_time);
}
cJSON *expected_umts = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "expectedUmts");
OpenAPI_list_t *expected_umtsList;
if (expected_umts) {
cJSON *expected_umts_local_nonprimitive;
if (!cJSON_IsArray(expected_umts)) {
if (expected_umts) {
cJSON *expected_umts_local_nonprimitive;
if (!cJSON_IsArray(expected_umts)){
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [expected_umts]");
goto end;
}
expected_umtsList = OpenAPI_list_create();
cJSON_ArrayForEach(expected_umts_local_nonprimitive, expected_umts ) {
if (!cJSON_IsObject(expected_umts_local_nonprimitive)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [expected_umts]");
goto end;
}
OpenAPI_location_area_t *expected_umtsItem = OpenAPI_location_area_parseFromJSON(expected_umts_local_nonprimitive);
expected_umtsList = OpenAPI_list_create();
cJSON_ArrayForEach(expected_umts_local_nonprimitive, expected_umts ) {
if (!cJSON_IsObject(expected_umts_local_nonprimitive)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [expected_umts]");
goto end;
}
OpenAPI_location_area_t *expected_umtsItem = OpenAPI_location_area_parseFromJSON(expected_umts_local_nonprimitive);
OpenAPI_list_add(expected_umtsList, expected_umtsItem);
}
OpenAPI_list_add(expected_umtsList, expected_umtsItem);
}
}
cJSON *traffic_profile = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "trafficProfile");
OpenAPI_traffic_profile_rm_t *traffic_profile_local_nonprim = NULL;
if (traffic_profile) {
traffic_profile_local_nonprim = OpenAPI_traffic_profile_rm_parseFromJSON(traffic_profile);
}
if (traffic_profile) {
traffic_profile_local_nonprim = OpenAPI_traffic_profile_rm_parseFromJSON(traffic_profile);
}
cJSON *battery_indication = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "batteryIndication");
OpenAPI_battery_indication_rm_t *battery_indication_local_nonprim = NULL;
if (battery_indication) {
battery_indication_local_nonprim = OpenAPI_battery_indication_rm_parseFromJSON(battery_indication);
}
if (battery_indication) {
battery_indication_local_nonprim = OpenAPI_battery_indication_rm_parseFromJSON(battery_indication);
}
cJSON *validity_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "validityTime");
if (validity_time) {
if (!cJSON_IsString(validity_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [validity_time]");
goto end;
}
if (validity_time) {
if (!cJSON_IsString(validity_time)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [validity_time]");
goto end;
}
}
cJSON *mtc_provider_information = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "mtcProviderInformation");
if (mtc_provider_information) {
if (!cJSON_IsString(mtc_provider_information)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [mtc_provider_information]");
goto end;
}
if (mtc_provider_information) {
if (!cJSON_IsString(mtc_provider_information)) {
ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed [mtc_provider_information]");
goto end;
}
}
expected_ue_behaviour_local_var = OpenAPI_expected_ue_behaviour_create (
ogs_strdup_or_assert(af_instance_id->valuestring),
@ -331,7 +331,7 @@ OpenAPI_expected_ue_behaviour_t *OpenAPI_expected_ue_behaviour_parseFromJSON(cJS
battery_indication ? battery_indication_local_nonprim : NULL,
validity_time ? ogs_strdup_or_assert(validity_time->valuestring) : NULL,
mtc_provider_information ? ogs_strdup_or_assert(mtc_provider_information->valuestring) : NULL
);
);
return expected_ue_behaviour_local_var;
end: