mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -17,7 +17,7 @@ OpenAPI_authentication_subscription_t *OpenAPI_authentication_subscription_creat
|
|||
OpenAPI_auth_method_e n5gc_auth_method,
|
||||
int rg_authentication_ind,
|
||||
char *supi
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_authentication_subscription_t *authentication_subscription_local_var = OpenAPI_malloc(sizeof(OpenAPI_authentication_subscription_t));
|
||||
if (!authentication_subscription_local_var) {
|
||||
|
|
@ -72,86 +72,86 @@ cJSON *OpenAPI_authentication_subscription_convertToJSON(OpenAPI_authentication_
|
|||
}
|
||||
|
||||
if (authentication_subscription->enc_permanent_key) {
|
||||
if (cJSON_AddStringToObject(item, "encPermanentKey", authentication_subscription->enc_permanent_key) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [enc_permanent_key]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "encPermanentKey", authentication_subscription->enc_permanent_key) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [enc_permanent_key]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->protection_parameter_id) {
|
||||
if (cJSON_AddStringToObject(item, "protectionParameterId", authentication_subscription->protection_parameter_id) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [protection_parameter_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "protectionParameterId", authentication_subscription->protection_parameter_id) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [protection_parameter_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->sequence_number) {
|
||||
cJSON *sequence_number_local_JSON = OpenAPI_sequence_number_convertToJSON(authentication_subscription->sequence_number);
|
||||
if (sequence_number_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [sequence_number]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sequenceNumber", sequence_number_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [sequence_number]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *sequence_number_local_JSON = OpenAPI_sequence_number_convertToJSON(authentication_subscription->sequence_number);
|
||||
if (sequence_number_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [sequence_number]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sequenceNumber", sequence_number_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [sequence_number]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->authentication_management_field) {
|
||||
if (cJSON_AddStringToObject(item, "authenticationManagementField", authentication_subscription->authentication_management_field) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [authentication_management_field]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "authenticationManagementField", authentication_subscription->authentication_management_field) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [authentication_management_field]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->algorithm_id) {
|
||||
if (cJSON_AddStringToObject(item, "algorithmId", authentication_subscription->algorithm_id) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [algorithm_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "algorithmId", authentication_subscription->algorithm_id) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [algorithm_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->enc_opc_key) {
|
||||
if (cJSON_AddStringToObject(item, "encOpcKey", authentication_subscription->enc_opc_key) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [enc_opc_key]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "encOpcKey", authentication_subscription->enc_opc_key) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [enc_opc_key]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->enc_topc_key) {
|
||||
if (cJSON_AddStringToObject(item, "encTopcKey", authentication_subscription->enc_topc_key) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [enc_topc_key]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "encTopcKey", authentication_subscription->enc_topc_key) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [enc_topc_key]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->vector_generation_in_hss) {
|
||||
if (cJSON_AddBoolToObject(item, "vectorGenerationInHss", authentication_subscription->vector_generation_in_hss) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [vector_generation_in_hss]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "vectorGenerationInHss", authentication_subscription->vector_generation_in_hss) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [vector_generation_in_hss]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->n5gc_auth_method) {
|
||||
if (cJSON_AddStringToObject(item, "n5gcAuthMethod", OpenAPI_auth_method_ToString(authentication_subscription->n5gc_auth_method)) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [n5gc_auth_method]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "n5gcAuthMethod", OpenAPI_auth_method_ToString(authentication_subscription->n5gc_auth_method)) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [n5gc_auth_method]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->rg_authentication_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "rgAuthenticationInd", authentication_subscription->rg_authentication_ind) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [rg_authentication_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "rgAuthenticationInd", authentication_subscription->rg_authentication_ind) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [rg_authentication_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_subscription->supi) {
|
||||
if (cJSON_AddStringToObject(item, "supi", authentication_subscription->supi) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "supi", authentication_subscription->supi) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_subscription_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -168,7 +168,7 @@ OpenAPI_authentication_subscription_t *OpenAPI_authentication_subscription_parse
|
|||
}
|
||||
|
||||
OpenAPI_auth_method_e authentication_methodVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(authentication_method)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [authentication_method]");
|
||||
goto end;
|
||||
|
|
@ -177,102 +177,102 @@ OpenAPI_authentication_subscription_t *OpenAPI_authentication_subscription_parse
|
|||
|
||||
cJSON *enc_permanent_key = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "encPermanentKey");
|
||||
|
||||
if (enc_permanent_key) {
|
||||
if (!cJSON_IsString(enc_permanent_key)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [enc_permanent_key]");
|
||||
goto end;
|
||||
}
|
||||
if (enc_permanent_key) {
|
||||
if (!cJSON_IsString(enc_permanent_key)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [enc_permanent_key]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *protection_parameter_id = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "protectionParameterId");
|
||||
|
||||
if (protection_parameter_id) {
|
||||
if (!cJSON_IsString(protection_parameter_id)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [protection_parameter_id]");
|
||||
goto end;
|
||||
}
|
||||
if (protection_parameter_id) {
|
||||
if (!cJSON_IsString(protection_parameter_id)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [protection_parameter_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *sequence_number = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "sequenceNumber");
|
||||
|
||||
OpenAPI_sequence_number_t *sequence_number_local_nonprim = NULL;
|
||||
if (sequence_number) {
|
||||
sequence_number_local_nonprim = OpenAPI_sequence_number_parseFromJSON(sequence_number);
|
||||
}
|
||||
if (sequence_number) {
|
||||
sequence_number_local_nonprim = OpenAPI_sequence_number_parseFromJSON(sequence_number);
|
||||
}
|
||||
|
||||
cJSON *authentication_management_field = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "authenticationManagementField");
|
||||
|
||||
if (authentication_management_field) {
|
||||
if (!cJSON_IsString(authentication_management_field)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [authentication_management_field]");
|
||||
goto end;
|
||||
}
|
||||
if (authentication_management_field) {
|
||||
if (!cJSON_IsString(authentication_management_field)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [authentication_management_field]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *algorithm_id = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "algorithmId");
|
||||
|
||||
if (algorithm_id) {
|
||||
if (!cJSON_IsString(algorithm_id)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [algorithm_id]");
|
||||
goto end;
|
||||
}
|
||||
if (algorithm_id) {
|
||||
if (!cJSON_IsString(algorithm_id)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [algorithm_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *enc_opc_key = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "encOpcKey");
|
||||
|
||||
if (enc_opc_key) {
|
||||
if (!cJSON_IsString(enc_opc_key)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [enc_opc_key]");
|
||||
goto end;
|
||||
}
|
||||
if (enc_opc_key) {
|
||||
if (!cJSON_IsString(enc_opc_key)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [enc_opc_key]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *enc_topc_key = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "encTopcKey");
|
||||
|
||||
if (enc_topc_key) {
|
||||
if (!cJSON_IsString(enc_topc_key)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [enc_topc_key]");
|
||||
goto end;
|
||||
}
|
||||
if (enc_topc_key) {
|
||||
if (!cJSON_IsString(enc_topc_key)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [enc_topc_key]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *vector_generation_in_hss = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "vectorGenerationInHss");
|
||||
|
||||
if (vector_generation_in_hss) {
|
||||
if (!cJSON_IsBool(vector_generation_in_hss)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [vector_generation_in_hss]");
|
||||
goto end;
|
||||
}
|
||||
if (vector_generation_in_hss) {
|
||||
if (!cJSON_IsBool(vector_generation_in_hss)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [vector_generation_in_hss]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *n5gc_auth_method = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "n5gcAuthMethod");
|
||||
|
||||
OpenAPI_auth_method_e n5gc_auth_methodVariable;
|
||||
if (n5gc_auth_method) {
|
||||
if (!cJSON_IsString(n5gc_auth_method)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [n5gc_auth_method]");
|
||||
goto end;
|
||||
}
|
||||
n5gc_auth_methodVariable = OpenAPI_auth_method_FromString(n5gc_auth_method->valuestring);
|
||||
if (n5gc_auth_method) {
|
||||
if (!cJSON_IsString(n5gc_auth_method)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [n5gc_auth_method]");
|
||||
goto end;
|
||||
}
|
||||
n5gc_auth_methodVariable = OpenAPI_auth_method_FromString(n5gc_auth_method->valuestring);
|
||||
}
|
||||
|
||||
cJSON *rg_authentication_ind = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "rgAuthenticationInd");
|
||||
|
||||
if (rg_authentication_ind) {
|
||||
if (!cJSON_IsBool(rg_authentication_ind)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [rg_authentication_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (rg_authentication_ind) {
|
||||
if (!cJSON_IsBool(rg_authentication_ind)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [rg_authentication_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(authentication_subscriptionJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_authentication_subscription_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
authentication_subscription_local_var = OpenAPI_authentication_subscription_create (
|
||||
authentication_methodVariable,
|
||||
|
|
@ -287,7 +287,7 @@ OpenAPI_authentication_subscription_t *OpenAPI_authentication_subscription_parse
|
|||
n5gc_auth_method ? n5gc_auth_methodVariable : 0,
|
||||
rg_authentication_ind ? rg_authentication_ind->valueint : 0,
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return authentication_subscription_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue