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,10 +11,12 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_create(
int pdu_session_id,
OpenAPI_snssai_t *single_nssai,
char *dnn,
bool is_emergency_services,
int emergency_services,
char *pcscf_restoration_callback_uri,
OpenAPI_plmn_id_t *plmn_id,
char *pgw_fqdn,
bool is_epdg_ind,
int epdg_ind,
char *dereg_callback_uri,
OpenAPI_registration_reason_e registration_reason,
@ -32,10 +34,12 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_create(
smf_registration_local_var->pdu_session_id = pdu_session_id;
smf_registration_local_var->single_nssai = single_nssai;
smf_registration_local_var->dnn = dnn;
smf_registration_local_var->is_emergency_services = is_emergency_services;
smf_registration_local_var->emergency_services = emergency_services;
smf_registration_local_var->pcscf_restoration_callback_uri = pcscf_restoration_callback_uri;
smf_registration_local_var->plmn_id = plmn_id;
smf_registration_local_var->pgw_fqdn = pgw_fqdn;
smf_registration_local_var->is_epdg_ind = is_epdg_ind;
smf_registration_local_var->epdg_ind = epdg_ind;
smf_registration_local_var->dereg_callback_uri = dereg_callback_uri;
smf_registration_local_var->registration_reason = registration_reason;
@ -117,7 +121,7 @@ cJSON *OpenAPI_smf_registration_convertToJSON(OpenAPI_smf_registration_t *smf_re
}
}
if (smf_registration->emergency_services) {
if (smf_registration->is_emergency_services) {
if (cJSON_AddBoolToObject(item, "emergencyServices", smf_registration->emergency_services) == NULL) {
ogs_error("OpenAPI_smf_registration_convertToJSON() failed [emergency_services]");
goto end;
@ -149,7 +153,7 @@ cJSON *OpenAPI_smf_registration_convertToJSON(OpenAPI_smf_registration_t *smf_re
}
}
if (smf_registration->epdg_ind) {
if (smf_registration->is_epdg_ind) {
if (cJSON_AddBoolToObject(item, "epdgInd", smf_registration->epdg_ind) == NULL) {
ogs_error("OpenAPI_smf_registration_convertToJSON() failed [epdg_ind]");
goto end;
@ -203,7 +207,6 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
goto end;
}
if (!cJSON_IsString(smf_instance_id)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [smf_instance_id]");
goto end;
@ -211,7 +214,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *smf_set_id = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "smfSetId");
if (smf_set_id) {
if (smf_set_id) {
if (!cJSON_IsString(smf_set_id)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [smf_set_id]");
goto end;
@ -220,7 +223,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "supportedFeatures");
if (supported_features) {
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [supported_features]");
goto end;
@ -233,7 +236,6 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
goto end;
}
if (!cJSON_IsNumber(pdu_session_id)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [pdu_session_id]");
goto end;
@ -246,12 +248,11 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
}
OpenAPI_snssai_t *single_nssai_local_nonprim = NULL;
single_nssai_local_nonprim = OpenAPI_snssai_parseFromJSON(single_nssai);
cJSON *dnn = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "dnn");
if (dnn) {
if (dnn) {
if (!cJSON_IsString(dnn)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [dnn]");
goto end;
@ -260,7 +261,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *emergency_services = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "emergencyServices");
if (emergency_services) {
if (emergency_services) {
if (!cJSON_IsBool(emergency_services)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [emergency_services]");
goto end;
@ -269,7 +270,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *pcscf_restoration_callback_uri = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "pcscfRestorationCallbackUri");
if (pcscf_restoration_callback_uri) {
if (pcscf_restoration_callback_uri) {
if (!cJSON_IsString(pcscf_restoration_callback_uri)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [pcscf_restoration_callback_uri]");
goto end;
@ -283,12 +284,11 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
}
OpenAPI_plmn_id_t *plmn_id_local_nonprim = NULL;
plmn_id_local_nonprim = OpenAPI_plmn_id_parseFromJSON(plmn_id);
cJSON *pgw_fqdn = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "pgwFqdn");
if (pgw_fqdn) {
if (pgw_fqdn) {
if (!cJSON_IsString(pgw_fqdn)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [pgw_fqdn]");
goto end;
@ -297,7 +297,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *epdg_ind = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "epdgInd");
if (epdg_ind) {
if (epdg_ind) {
if (!cJSON_IsBool(epdg_ind)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [epdg_ind]");
goto end;
@ -306,7 +306,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *dereg_callback_uri = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "deregCallbackUri");
if (dereg_callback_uri) {
if (dereg_callback_uri) {
if (!cJSON_IsString(dereg_callback_uri)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [dereg_callback_uri]");
goto end;
@ -316,7 +316,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *registration_reason = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "registrationReason");
OpenAPI_registration_reason_e registration_reasonVariable;
if (registration_reason) {
if (registration_reason) {
if (!cJSON_IsString(registration_reason)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [registration_reason]");
goto end;
@ -326,7 +326,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *registration_time = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "registrationTime");
if (registration_time) {
if (registration_time) {
if (!cJSON_IsString(registration_time)) {
ogs_error("OpenAPI_smf_registration_parseFromJSON() failed [registration_time]");
goto end;
@ -336,7 +336,7 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
cJSON *context_info = cJSON_GetObjectItemCaseSensitive(smf_registrationJSON, "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);
}
@ -344,13 +344,16 @@ OpenAPI_smf_registration_t *OpenAPI_smf_registration_parseFromJSON(cJSON *smf_re
ogs_strdup_or_assert(smf_instance_id->valuestring),
smf_set_id ? ogs_strdup_or_assert(smf_set_id->valuestring) : NULL,
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
pdu_session_id->valuedouble,
single_nssai_local_nonprim,
dnn ? ogs_strdup_or_assert(dnn->valuestring) : NULL,
emergency_services ? true : false,
emergency_services ? emergency_services->valueint : 0,
pcscf_restoration_callback_uri ? ogs_strdup_or_assert(pcscf_restoration_callback_uri->valuestring) : NULL,
plmn_id_local_nonprim,
pgw_fqdn ? ogs_strdup_or_assert(pgw_fqdn->valuestring) : NULL,
epdg_ind ? true : false,
epdg_ind ? epdg_ind->valueint : 0,
dereg_callback_uri ? ogs_strdup_or_assert(dereg_callback_uri->valuestring) : NULL,
registration_reason ? registration_reasonVariable : 0,