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

@ -10,6 +10,7 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_create(
char *time_stamp,
OpenAPI_auth_type_e auth_type,
char *serving_network_name,
bool is_auth_removal_ind,
int auth_removal_ind
)
{
@ -22,6 +23,7 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_create(
auth_event_local_var->time_stamp = time_stamp;
auth_event_local_var->auth_type = auth_type;
auth_event_local_var->serving_network_name = serving_network_name;
auth_event_local_var->is_auth_removal_ind = is_auth_removal_ind;
auth_event_local_var->auth_removal_ind = auth_removal_ind;
return auth_event_local_var;
@ -74,7 +76,7 @@ cJSON *OpenAPI_auth_event_convertToJSON(OpenAPI_auth_event_t *auth_event)
goto end;
}
if (auth_event->auth_removal_ind) {
if (auth_event->is_auth_removal_ind) {
if (cJSON_AddBoolToObject(item, "authRemovalInd", auth_event->auth_removal_ind) == NULL) {
ogs_error("OpenAPI_auth_event_convertToJSON() failed [auth_removal_ind]");
goto end;
@ -94,7 +96,6 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
goto end;
}
if (!cJSON_IsString(nf_instance_id)) {
ogs_error("OpenAPI_auth_event_parseFromJSON() failed [nf_instance_id]");
goto end;
@ -106,7 +107,6 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
goto end;
}
if (!cJSON_IsBool(success)) {
ogs_error("OpenAPI_auth_event_parseFromJSON() failed [success]");
goto end;
@ -118,7 +118,6 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
goto end;
}
if (!cJSON_IsString(time_stamp)) {
ogs_error("OpenAPI_auth_event_parseFromJSON() failed [time_stamp]");
goto end;
@ -131,7 +130,6 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
}
OpenAPI_auth_type_e auth_typeVariable;
if (!cJSON_IsString(auth_type)) {
ogs_error("OpenAPI_auth_event_parseFromJSON() failed [auth_type]");
goto end;
@ -144,7 +142,6 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
goto end;
}
if (!cJSON_IsString(serving_network_name)) {
ogs_error("OpenAPI_auth_event_parseFromJSON() failed [serving_network_name]");
goto end;
@ -152,7 +149,7 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
cJSON *auth_removal_ind = cJSON_GetObjectItemCaseSensitive(auth_eventJSON, "authRemovalInd");
if (auth_removal_ind) {
if (auth_removal_ind) {
if (!cJSON_IsBool(auth_removal_ind)) {
ogs_error("OpenAPI_auth_event_parseFromJSON() failed [auth_removal_ind]");
goto end;
@ -161,10 +158,12 @@ OpenAPI_auth_event_t *OpenAPI_auth_event_parseFromJSON(cJSON *auth_eventJSON)
auth_event_local_var = OpenAPI_auth_event_create (
ogs_strdup_or_assert(nf_instance_id->valuestring),
success->valueint,
ogs_strdup_or_assert(time_stamp->valuestring),
auth_typeVariable,
ogs_strdup_or_assert(serving_network_name->valuestring),
auth_removal_ind ? true : false,
auth_removal_ind ? auth_removal_ind->valueint : 0
);