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

@ -13,7 +13,7 @@ OpenAPI_pp_data_t *OpenAPI_pp_data_create(
char *stn_sr,
OpenAPI_lcs_privacy_t *lcs_privacy,
OpenAPI_sor_info_t *sor_info
)
)
{
OpenAPI_pp_data_t *pp_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_data_t));
if (!pp_data_local_var) {
@ -59,95 +59,95 @@ cJSON *OpenAPI_pp_data_convertToJSON(OpenAPI_pp_data_t *pp_data)
item = cJSON_CreateObject();
if (pp_data->communication_characteristics) {
cJSON *communication_characteristics_local_JSON = OpenAPI_communication_characteristics_convertToJSON(pp_data->communication_characteristics);
if (communication_characteristics_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [communication_characteristics]");
goto end;
}
cJSON_AddItemToObject(item, "communicationCharacteristics", communication_characteristics_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [communication_characteristics]");
goto end;
}
cJSON *communication_characteristics_local_JSON = OpenAPI_communication_characteristics_convertToJSON(pp_data->communication_characteristics);
if (communication_characteristics_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [communication_characteristics]");
goto end;
}
cJSON_AddItemToObject(item, "communicationCharacteristics", communication_characteristics_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [communication_characteristics]");
goto end;
}
}
if (pp_data->supported_features) {
if (cJSON_AddStringToObject(item, "supportedFeatures", pp_data->supported_features) == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [supported_features]");
goto end;
}
if (cJSON_AddStringToObject(item, "supportedFeatures", pp_data->supported_features) == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [supported_features]");
goto end;
}
}
if (pp_data->expected_ue_behaviour_parameters) {
cJSON *expected_ue_behaviour_parameters_local_JSON = OpenAPI_expected_ue_behaviour_convertToJSON(pp_data->expected_ue_behaviour_parameters);
if (expected_ue_behaviour_parameters_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [expected_ue_behaviour_parameters]");
goto end;
}
cJSON_AddItemToObject(item, "expectedUeBehaviourParameters", expected_ue_behaviour_parameters_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [expected_ue_behaviour_parameters]");
goto end;
}
cJSON *expected_ue_behaviour_parameters_local_JSON = OpenAPI_expected_ue_behaviour_convertToJSON(pp_data->expected_ue_behaviour_parameters);
if (expected_ue_behaviour_parameters_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [expected_ue_behaviour_parameters]");
goto end;
}
cJSON_AddItemToObject(item, "expectedUeBehaviourParameters", expected_ue_behaviour_parameters_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [expected_ue_behaviour_parameters]");
goto end;
}
}
if (pp_data->ec_restriction) {
cJSON *ec_restriction_local_JSON = OpenAPI_ec_restriction_convertToJSON(pp_data->ec_restriction);
if (ec_restriction_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [ec_restriction]");
goto end;
}
cJSON_AddItemToObject(item, "ecRestriction", ec_restriction_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [ec_restriction]");
goto end;
}
cJSON *ec_restriction_local_JSON = OpenAPI_ec_restriction_convertToJSON(pp_data->ec_restriction);
if (ec_restriction_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [ec_restriction]");
goto end;
}
cJSON_AddItemToObject(item, "ecRestriction", ec_restriction_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [ec_restriction]");
goto end;
}
}
if (pp_data->acs_info) {
cJSON *acs_info_local_JSON = OpenAPI_acs_info_rm_convertToJSON(pp_data->acs_info);
if (acs_info_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [acs_info]");
goto end;
}
cJSON_AddItemToObject(item, "acsInfo", acs_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [acs_info]");
goto end;
}
cJSON *acs_info_local_JSON = OpenAPI_acs_info_rm_convertToJSON(pp_data->acs_info);
if (acs_info_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [acs_info]");
goto end;
}
cJSON_AddItemToObject(item, "acsInfo", acs_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [acs_info]");
goto end;
}
}
if (pp_data->stn_sr) {
if (cJSON_AddStringToObject(item, "stnSr", pp_data->stn_sr) == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [stn_sr]");
goto end;
}
if (cJSON_AddStringToObject(item, "stnSr", pp_data->stn_sr) == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [stn_sr]");
goto end;
}
}
if (pp_data->lcs_privacy) {
cJSON *lcs_privacy_local_JSON = OpenAPI_lcs_privacy_convertToJSON(pp_data->lcs_privacy);
if (lcs_privacy_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [lcs_privacy]");
goto end;
}
cJSON_AddItemToObject(item, "lcsPrivacy", lcs_privacy_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [lcs_privacy]");
goto end;
}
cJSON *lcs_privacy_local_JSON = OpenAPI_lcs_privacy_convertToJSON(pp_data->lcs_privacy);
if (lcs_privacy_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [lcs_privacy]");
goto end;
}
cJSON_AddItemToObject(item, "lcsPrivacy", lcs_privacy_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [lcs_privacy]");
goto end;
}
}
if (pp_data->sor_info) {
cJSON *sor_info_local_JSON = OpenAPI_sor_info_convertToJSON(pp_data->sor_info);
if (sor_info_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [sor_info]");
goto end;
}
cJSON_AddItemToObject(item, "sorInfo", sor_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [sor_info]");
goto end;
}
cJSON *sor_info_local_JSON = OpenAPI_sor_info_convertToJSON(pp_data->sor_info);
if (sor_info_local_JSON == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [sor_info]");
goto end;
}
cJSON_AddItemToObject(item, "sorInfo", sor_info_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pp_data_convertToJSON() failed [sor_info]");
goto end;
}
}
end:
@ -160,62 +160,62 @@ OpenAPI_pp_data_t *OpenAPI_pp_data_parseFromJSON(cJSON *pp_dataJSON)
cJSON *communication_characteristics = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "communicationCharacteristics");
OpenAPI_communication_characteristics_t *communication_characteristics_local_nonprim = NULL;
if (communication_characteristics) {
communication_characteristics_local_nonprim = OpenAPI_communication_characteristics_parseFromJSON(communication_characteristics);
}
if (communication_characteristics) {
communication_characteristics_local_nonprim = OpenAPI_communication_characteristics_parseFromJSON(communication_characteristics);
}
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "supportedFeatures");
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_pp_data_parseFromJSON() failed [supported_features]");
goto end;
}
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_pp_data_parseFromJSON() failed [supported_features]");
goto end;
}
}
cJSON *expected_ue_behaviour_parameters = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "expectedUeBehaviourParameters");
OpenAPI_expected_ue_behaviour_t *expected_ue_behaviour_parameters_local_nonprim = NULL;
if (expected_ue_behaviour_parameters) {
expected_ue_behaviour_parameters_local_nonprim = OpenAPI_expected_ue_behaviour_parseFromJSON(expected_ue_behaviour_parameters);
}
if (expected_ue_behaviour_parameters) {
expected_ue_behaviour_parameters_local_nonprim = OpenAPI_expected_ue_behaviour_parseFromJSON(expected_ue_behaviour_parameters);
}
cJSON *ec_restriction = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "ecRestriction");
OpenAPI_ec_restriction_t *ec_restriction_local_nonprim = NULL;
if (ec_restriction) {
ec_restriction_local_nonprim = OpenAPI_ec_restriction_parseFromJSON(ec_restriction);
}
if (ec_restriction) {
ec_restriction_local_nonprim = OpenAPI_ec_restriction_parseFromJSON(ec_restriction);
}
cJSON *acs_info = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "acsInfo");
OpenAPI_acs_info_rm_t *acs_info_local_nonprim = NULL;
if (acs_info) {
acs_info_local_nonprim = OpenAPI_acs_info_rm_parseFromJSON(acs_info);
}
if (acs_info) {
acs_info_local_nonprim = OpenAPI_acs_info_rm_parseFromJSON(acs_info);
}
cJSON *stn_sr = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "stnSr");
if (stn_sr) {
if (!cJSON_IsString(stn_sr)) {
ogs_error("OpenAPI_pp_data_parseFromJSON() failed [stn_sr]");
goto end;
}
if (stn_sr) {
if (!cJSON_IsString(stn_sr)) {
ogs_error("OpenAPI_pp_data_parseFromJSON() failed [stn_sr]");
goto end;
}
}
cJSON *lcs_privacy = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "lcsPrivacy");
OpenAPI_lcs_privacy_t *lcs_privacy_local_nonprim = NULL;
if (lcs_privacy) {
lcs_privacy_local_nonprim = OpenAPI_lcs_privacy_parseFromJSON(lcs_privacy);
}
if (lcs_privacy) {
lcs_privacy_local_nonprim = OpenAPI_lcs_privacy_parseFromJSON(lcs_privacy);
}
cJSON *sor_info = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "sorInfo");
OpenAPI_sor_info_t *sor_info_local_nonprim = NULL;
if (sor_info) {
sor_info_local_nonprim = OpenAPI_sor_info_parseFromJSON(sor_info);
}
if (sor_info) {
sor_info_local_nonprim = OpenAPI_sor_info_parseFromJSON(sor_info);
}
pp_data_local_var = OpenAPI_pp_data_create (
communication_characteristics ? communication_characteristics_local_nonprim : NULL,
@ -226,7 +226,7 @@ OpenAPI_pp_data_t *OpenAPI_pp_data_parseFromJSON(cJSON *pp_dataJSON)
stn_sr ? ogs_strdup_or_assert(stn_sr->valuestring) : NULL,
lcs_privacy ? lcs_privacy_local_nonprim : NULL,
sor_info ? sor_info_local_nonprim : NULL
);
);
return pp_data_local_var;
end: