SBI updated

- openapi-generator version 5.2.0
- add priority/capacity/load in NFProfile/NFService
- add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
Sukchan Lee 2021-07-16 17:02:33 +09:00
parent 1326fc85dc
commit 039b9d0aaa
930 changed files with 7387 additions and 5434 deletions

View file

@ -11,6 +11,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_create(
char *supported_features,
char *subscription_id,
OpenAPI_context_info_t *context_info,
bool is_epc_applied_ind,
int epc_applied_ind,
char *scef_diam_host,
char *scef_diam_realm,
@ -27,6 +28,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_create(
ee_subscription_local_var->supported_features = supported_features;
ee_subscription_local_var->subscription_id = subscription_id;
ee_subscription_local_var->context_info = context_info;
ee_subscription_local_var->is_epc_applied_ind = is_epc_applied_ind;
ee_subscription_local_var->epc_applied_ind = epc_applied_ind;
ee_subscription_local_var->scef_diam_host = scef_diam_host;
ee_subscription_local_var->scef_diam_realm = scef_diam_realm;
@ -132,7 +134,7 @@ cJSON *OpenAPI_ee_subscription_convertToJSON(OpenAPI_ee_subscription_t *ee_subsc
}
}
if (ee_subscription->epc_applied_ind) {
if (ee_subscription->is_epc_applied_ind) {
if (cJSON_AddBoolToObject(item, "epcAppliedInd", ee_subscription->epc_applied_ind) == NULL) {
ogs_error("OpenAPI_ee_subscription_convertToJSON() failed [epc_applied_ind]");
goto end;
@ -173,7 +175,6 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
goto end;
}
if (!cJSON_IsString(callback_reference)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [callback_reference]");
goto end;
@ -186,7 +187,6 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
}
OpenAPI_list_t *monitoring_configurationsList;
cJSON *monitoring_configurations_local_map;
if (!cJSON_IsObject(monitoring_configurations)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [monitoring_configurations]");
@ -208,13 +208,13 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
cJSON *reporting_options = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "reportingOptions");
OpenAPI_reporting_options_t *reporting_options_local_nonprim = NULL;
if (reporting_options) {
if (reporting_options) {
reporting_options_local_nonprim = OpenAPI_reporting_options_parseFromJSON(reporting_options);
}
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "supportedFeatures");
if (supported_features) {
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [supported_features]");
goto end;
@ -223,7 +223,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
cJSON *subscription_id = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "subscriptionId");
if (subscription_id) {
if (subscription_id) {
if (!cJSON_IsString(subscription_id)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [subscription_id]");
goto end;
@ -233,13 +233,13 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
cJSON *context_info = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "contextInfo");
OpenAPI_context_info_t *context_info_local_nonprim = NULL;
if (context_info) {
if (context_info) {
context_info_local_nonprim = OpenAPI_context_info_parseFromJSON(context_info);
}
cJSON *epc_applied_ind = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "epcAppliedInd");
if (epc_applied_ind) {
if (epc_applied_ind) {
if (!cJSON_IsBool(epc_applied_ind)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [epc_applied_ind]");
goto end;
@ -248,7 +248,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
cJSON *scef_diam_host = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "scefDiamHost");
if (scef_diam_host) {
if (scef_diam_host) {
if (!cJSON_IsString(scef_diam_host)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [scef_diam_host]");
goto end;
@ -257,7 +257,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
cJSON *scef_diam_realm = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "scefDiamRealm");
if (scef_diam_realm) {
if (scef_diam_realm) {
if (!cJSON_IsString(scef_diam_realm)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [scef_diam_realm]");
goto end;
@ -266,7 +266,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
cJSON *notify_correlation_id = cJSON_GetObjectItemCaseSensitive(ee_subscriptionJSON, "notifyCorrelationId");
if (notify_correlation_id) {
if (notify_correlation_id) {
if (!cJSON_IsString(notify_correlation_id)) {
ogs_error("OpenAPI_ee_subscription_parseFromJSON() failed [notify_correlation_id]");
goto end;
@ -280,6 +280,7 @@ OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subsc
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
subscription_id ? ogs_strdup_or_assert(subscription_id->valuestring) : NULL,
context_info ? context_info_local_nonprim : NULL,
epc_applied_ind ? true : false,
epc_applied_ind ? epc_applied_ind->valueint : 0,
scef_diam_host ? ogs_strdup_or_assert(scef_diam_host->valuestring) : NULL,
scef_diam_realm ? ogs_strdup_or_assert(scef_diam_realm->valuestring) : NULL,