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

@ -9,7 +9,7 @@ OpenAPI_tunnel_info_t *OpenAPI_tunnel_info_create(
char *ipv6_addr,
char *gtp_teid,
OpenAPI_access_type_e an_type
)
)
{
OpenAPI_tunnel_info_t *tunnel_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_tunnel_info_t));
if (!tunnel_info_local_var) {
@ -46,17 +46,17 @@ cJSON *OpenAPI_tunnel_info_convertToJSON(OpenAPI_tunnel_info_t *tunnel_info)
item = cJSON_CreateObject();
if (tunnel_info->ipv4_addr) {
if (cJSON_AddStringToObject(item, "ipv4Addr", tunnel_info->ipv4_addr) == NULL) {
ogs_error("OpenAPI_tunnel_info_convertToJSON() failed [ipv4_addr]");
goto end;
}
if (cJSON_AddStringToObject(item, "ipv4Addr", tunnel_info->ipv4_addr) == NULL) {
ogs_error("OpenAPI_tunnel_info_convertToJSON() failed [ipv4_addr]");
goto end;
}
}
if (tunnel_info->ipv6_addr) {
if (cJSON_AddStringToObject(item, "ipv6Addr", tunnel_info->ipv6_addr) == NULL) {
ogs_error("OpenAPI_tunnel_info_convertToJSON() failed [ipv6_addr]");
goto end;
}
if (cJSON_AddStringToObject(item, "ipv6Addr", tunnel_info->ipv6_addr) == NULL) {
ogs_error("OpenAPI_tunnel_info_convertToJSON() failed [ipv6_addr]");
goto end;
}
}
if (cJSON_AddStringToObject(item, "gtpTeid", tunnel_info->gtp_teid) == NULL) {
@ -65,10 +65,10 @@ cJSON *OpenAPI_tunnel_info_convertToJSON(OpenAPI_tunnel_info_t *tunnel_info)
}
if (tunnel_info->an_type) {
if (cJSON_AddStringToObject(item, "anType", OpenAPI_access_type_ToString(tunnel_info->an_type)) == NULL) {
ogs_error("OpenAPI_tunnel_info_convertToJSON() failed [an_type]");
goto end;
}
if (cJSON_AddStringToObject(item, "anType", OpenAPI_access_type_ToString(tunnel_info->an_type)) == NULL) {
ogs_error("OpenAPI_tunnel_info_convertToJSON() failed [an_type]");
goto end;
}
}
end:
@ -80,21 +80,21 @@ OpenAPI_tunnel_info_t *OpenAPI_tunnel_info_parseFromJSON(cJSON *tunnel_infoJSON)
OpenAPI_tunnel_info_t *tunnel_info_local_var = NULL;
cJSON *ipv4_addr = cJSON_GetObjectItemCaseSensitive(tunnel_infoJSON, "ipv4Addr");
if (ipv4_addr) {
if (!cJSON_IsString(ipv4_addr)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [ipv4_addr]");
goto end;
}
if (ipv4_addr) {
if (!cJSON_IsString(ipv4_addr)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [ipv4_addr]");
goto end;
}
}
cJSON *ipv6_addr = cJSON_GetObjectItemCaseSensitive(tunnel_infoJSON, "ipv6Addr");
if (ipv6_addr) {
if (!cJSON_IsString(ipv6_addr)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [ipv6_addr]");
goto end;
}
if (ipv6_addr) {
if (!cJSON_IsString(ipv6_addr)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [ipv6_addr]");
goto end;
}
}
cJSON *gtp_teid = cJSON_GetObjectItemCaseSensitive(tunnel_infoJSON, "gtpTeid");
if (!gtp_teid) {
@ -102,7 +102,7 @@ OpenAPI_tunnel_info_t *OpenAPI_tunnel_info_parseFromJSON(cJSON *tunnel_infoJSON)
goto end;
}
if (!cJSON_IsString(gtp_teid)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [gtp_teid]");
goto end;
@ -111,20 +111,20 @@ OpenAPI_tunnel_info_t *OpenAPI_tunnel_info_parseFromJSON(cJSON *tunnel_infoJSON)
cJSON *an_type = cJSON_GetObjectItemCaseSensitive(tunnel_infoJSON, "anType");
OpenAPI_access_type_e an_typeVariable;
if (an_type) {
if (!cJSON_IsString(an_type)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [an_type]");
goto end;
}
an_typeVariable = OpenAPI_access_type_FromString(an_type->valuestring);
if (an_type) {
if (!cJSON_IsString(an_type)) {
ogs_error("OpenAPI_tunnel_info_parseFromJSON() failed [an_type]");
goto end;
}
an_typeVariable = OpenAPI_access_type_FromString(an_type->valuestring);
}
tunnel_info_local_var = OpenAPI_tunnel_info_create (
ipv4_addr ? ogs_strdup_or_assert(ipv4_addr->valuestring) : NULL,
ipv6_addr ? ogs_strdup_or_assert(ipv6_addr->valuestring) : NULL,
ogs_strdup_or_assert(gtp_teid->valuestring),
an_type ? an_typeVariable : 0
);
);
return tunnel_info_local_var;
end: