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

@ -10,10 +10,10 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
char *original_callback_reference,
OpenAPI_list_t *monitored_resource_uris,
char *expiry,
OpenAPI_sdm_subscription_t *sdm_subscription,
OpenAPI_sdm_subscription_1_t *sdm_subscription,
char *subscription_id,
char *supported_features
)
)
{
OpenAPI_subscription_data_subscriptions_t *subscription_data_subscriptions_local_var = OpenAPI_malloc(sizeof(OpenAPI_subscription_data_subscriptions_t));
if (!subscription_data_subscriptions_local_var) {
@ -45,7 +45,7 @@ void OpenAPI_subscription_data_subscriptions_free(OpenAPI_subscription_data_subs
}
OpenAPI_list_free(subscription_data_subscriptions->monitored_resource_uris);
ogs_free(subscription_data_subscriptions->expiry);
OpenAPI_sdm_subscription_free(subscription_data_subscriptions->sdm_subscription);
OpenAPI_sdm_subscription_1_free(subscription_data_subscriptions->sdm_subscription);
ogs_free(subscription_data_subscriptions->subscription_id);
ogs_free(subscription_data_subscriptions->supported_features);
ogs_free(subscription_data_subscriptions);
@ -62,10 +62,10 @@ cJSON *OpenAPI_subscription_data_subscriptions_convertToJSON(OpenAPI_subscriptio
item = cJSON_CreateObject();
if (subscription_data_subscriptions->ue_id) {
if (cJSON_AddStringToObject(item, "ueId", subscription_data_subscriptions->ue_id) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [ue_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "ueId", subscription_data_subscriptions->ue_id) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [ue_id]");
goto end;
}
}
if (cJSON_AddStringToObject(item, "callbackReference", subscription_data_subscriptions->callback_reference) == NULL) {
@ -74,10 +74,10 @@ cJSON *OpenAPI_subscription_data_subscriptions_convertToJSON(OpenAPI_subscriptio
}
if (subscription_data_subscriptions->original_callback_reference) {
if (cJSON_AddStringToObject(item, "originalCallbackReference", subscription_data_subscriptions->original_callback_reference) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [original_callback_reference]");
goto end;
}
if (cJSON_AddStringToObject(item, "originalCallbackReference", subscription_data_subscriptions->original_callback_reference) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [original_callback_reference]");
goto end;
}
}
cJSON *monitored_resource_uris = cJSON_AddArrayToObject(item, "monitoredResourceUris");
@ -88,44 +88,44 @@ cJSON *OpenAPI_subscription_data_subscriptions_convertToJSON(OpenAPI_subscriptio
OpenAPI_lnode_t *monitored_resource_uris_node;
OpenAPI_list_for_each(subscription_data_subscriptions->monitored_resource_uris, monitored_resource_uris_node) {
if (cJSON_AddStringToObject(monitored_resource_uris, "", (char*)monitored_resource_uris_node->data) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [monitored_resource_uris]");
goto end;
}
if (cJSON_AddStringToObject(monitored_resource_uris, "", (char*)monitored_resource_uris_node->data) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [monitored_resource_uris]");
goto end;
}
}
if (subscription_data_subscriptions->expiry) {
if (cJSON_AddStringToObject(item, "expiry", subscription_data_subscriptions->expiry) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [expiry]");
goto end;
}
if (cJSON_AddStringToObject(item, "expiry", subscription_data_subscriptions->expiry) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [expiry]");
goto end;
}
}
if (subscription_data_subscriptions->sdm_subscription) {
cJSON *sdm_subscription_local_JSON = OpenAPI_sdm_subscription_convertToJSON(subscription_data_subscriptions->sdm_subscription);
if (sdm_subscription_local_JSON == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [sdm_subscription]");
goto end;
}
cJSON_AddItemToObject(item, "sdmSubscription", sdm_subscription_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [sdm_subscription]");
goto end;
}
cJSON *sdm_subscription_local_JSON = OpenAPI_sdm_subscription_1_convertToJSON(subscription_data_subscriptions->sdm_subscription);
if (sdm_subscription_local_JSON == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [sdm_subscription]");
goto end;
}
cJSON_AddItemToObject(item, "sdmSubscription", sdm_subscription_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [sdm_subscription]");
goto end;
}
}
if (subscription_data_subscriptions->subscription_id) {
if (cJSON_AddStringToObject(item, "subscriptionId", subscription_data_subscriptions->subscription_id) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [subscription_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "subscriptionId", subscription_data_subscriptions->subscription_id) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [subscription_id]");
goto end;
}
}
if (subscription_data_subscriptions->supported_features) {
if (cJSON_AddStringToObject(item, "supported-features", subscription_data_subscriptions->supported_features) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [supported_features]");
goto end;
}
if (cJSON_AddStringToObject(item, "supported-features", subscription_data_subscriptions->supported_features) == NULL) {
ogs_error("OpenAPI_subscription_data_subscriptions_convertToJSON() failed [supported_features]");
goto end;
}
}
end:
@ -137,12 +137,12 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
OpenAPI_subscription_data_subscriptions_t *subscription_data_subscriptions_local_var = NULL;
cJSON *ue_id = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "ueId");
if (ue_id) {
if (!cJSON_IsString(ue_id)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [ue_id]");
goto end;
}
if (ue_id) {
if (!cJSON_IsString(ue_id)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [ue_id]");
goto end;
}
}
cJSON *callback_reference = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "callbackReference");
if (!callback_reference) {
@ -150,7 +150,7 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
goto end;
}
if (!cJSON_IsString(callback_reference)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [callback_reference]");
goto end;
@ -158,12 +158,12 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
cJSON *original_callback_reference = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "originalCallbackReference");
if (original_callback_reference) {
if (!cJSON_IsString(original_callback_reference)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [original_callback_reference]");
goto end;
}
if (original_callback_reference) {
if (!cJSON_IsString(original_callback_reference)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [original_callback_reference]");
goto end;
}
}
cJSON *monitored_resource_uris = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "monitoredResourceUris");
if (!monitored_resource_uris) {
@ -172,7 +172,7 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
}
OpenAPI_list_t *monitored_resource_urisList;
cJSON *monitored_resource_uris_local;
if (!cJSON_IsArray(monitored_resource_uris)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [monitored_resource_uris]");
@ -181,46 +181,46 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
monitored_resource_urisList = OpenAPI_list_create();
cJSON_ArrayForEach(monitored_resource_uris_local, monitored_resource_uris) {
if (!cJSON_IsString(monitored_resource_uris_local)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [monitored_resource_uris]");
goto end;
}
OpenAPI_list_add(monitored_resource_urisList, ogs_strdup_or_assert(monitored_resource_uris_local->valuestring));
if (!cJSON_IsString(monitored_resource_uris_local)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [monitored_resource_uris]");
goto end;
}
OpenAPI_list_add(monitored_resource_urisList , ogs_strdup_or_assert(monitored_resource_uris_local->valuestring));
}
cJSON *expiry = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "expiry");
if (expiry) {
if (!cJSON_IsString(expiry)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [expiry]");
goto end;
}
if (expiry) {
if (!cJSON_IsString(expiry)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [expiry]");
goto end;
}
}
cJSON *sdm_subscription = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "sdmSubscription");
OpenAPI_sdm_subscription_t *sdm_subscription_local_nonprim = NULL;
if (sdm_subscription) {
sdm_subscription_local_nonprim = OpenAPI_sdm_subscription_parseFromJSON(sdm_subscription);
}
OpenAPI_sdm_subscription_1_t *sdm_subscription_local_nonprim = NULL;
if (sdm_subscription) {
sdm_subscription_local_nonprim = OpenAPI_sdm_subscription_1_parseFromJSON(sdm_subscription);
}
cJSON *subscription_id = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "subscriptionId");
if (subscription_id) {
if (!cJSON_IsString(subscription_id)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [subscription_id]");
goto end;
}
if (subscription_id) {
if (!cJSON_IsString(subscription_id)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [subscription_id]");
goto end;
}
}
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(subscription_data_subscriptionsJSON, "supported-features");
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [supported_features]");
goto end;
}
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_subscription_data_subscriptions_parseFromJSON() failed [supported_features]");
goto end;
}
}
subscription_data_subscriptions_local_var = OpenAPI_subscription_data_subscriptions_create (
ue_id ? ogs_strdup_or_assert(ue_id->valuestring) : NULL,
@ -231,7 +231,7 @@ OpenAPI_subscription_data_subscriptions_t *OpenAPI_subscription_data_subscriptio
sdm_subscription ? sdm_subscription_local_nonprim : NULL,
subscription_id ? ogs_strdup_or_assert(subscription_id->valuestring) : NULL,
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL
);
);
return subscription_data_subscriptions_local_var;
end: