Commit fa479528 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Apply Clang-format

parent 748683f4
...@@ -30,66 +30,71 @@ AuthenticationResultDeletionApi::AuthenticationResultDeletionApi( ...@@ -30,66 +30,71 @@ AuthenticationResultDeletionApi::AuthenticationResultDeletionApi(
router = rtr; router = rtr;
} }
void AuthenticationResultDeletionApi::init() { setupRoutes(); } void AuthenticationResultDeletionApi::init() {
setupRoutes();
}
void AuthenticationResultDeletionApi::setupRoutes() { void AuthenticationResultDeletionApi::setupRoutes() {
using namespace Pistache::Rest; using namespace Pistache::Rest;
Routes::Delete(*router, Routes::Delete(
base + "/ue-authentications/:authCtxId/5g-aka-confirmation", *router, base + "/ue-authentications/:authCtxId/5g-aka-confirmation",
Routes::bind(&AuthenticationResultDeletionApi:: Routes::bind(
delete5g_aka_authentication_result_handler, &AuthenticationResultDeletionApi::
this)); delete5g_aka_authentication_result_handler,
Routes::Delete(*router, base + "/ue-authentications/:authCtxId/eap-session", this));
Routes::bind(&AuthenticationResultDeletionApi:: Routes::Delete(
delete_eap_authentication_result_handler, *router, base + "/ue-authentications/:authCtxId/eap-session",
this)); Routes::bind(
&AuthenticationResultDeletionApi::
delete_eap_authentication_result_handler,
this));
// Default handler, called when a route is not found // Default handler, called when a route is not found
router->addCustomHandler( router->addCustomHandler(Routes::bind(
Routes::bind(&AuthenticationResultDeletionApi:: &AuthenticationResultDeletionApi::
authentication_result_deletion_api_default_handler, authentication_result_deletion_api_default_handler,
this)); this));
} }
void AuthenticationResultDeletionApi:: void AuthenticationResultDeletionApi::
delete5g_aka_authentication_result_handler( delete5g_aka_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
try { try {
this->delete5g_aka_authentication_result(authCtxId, response); this->delete5g_aka_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
} }
} }
void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler( void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
try { try {
this->delete_eap_authentication_result(authCtxId, response); this->delete_eap_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
...@@ -98,16 +103,17 @@ void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler( ...@@ -98,16 +103,17 @@ void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler(
void AuthenticationResultDeletionApi:: void AuthenticationResultDeletionApi::
authentication_result_deletion_api_default_handler( authentication_result_deletion_api_default_handler(
const Pistache::Rest::Request &, const Pistache::Rest::Request&,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
cout << "----------authentication_result_deletion_api_default_handler--------" cout << "----------authentication_result_deletion_api_default_handler--------"
"----" "----"
<< endl; << endl;
response.send(Pistache::Http::Code::Not_Found, response.send(
"The requested method does not exist-resDel"); Pistache::Http::Code::Not_Found,
"The requested method does not exist-resDel");
} }
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
\ No newline at end of file \ No newline at end of file
...@@ -35,24 +35,24 @@ namespace api { ...@@ -35,24 +35,24 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApi { class AuthenticationResultDeletionApi {
public: public:
AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router>); AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationResultDeletionApi() {} virtual ~AuthenticationResultDeletionApi() {}
void init(); void init();
const std::string base = "/nausf-auth/v1"; const std::string base = "/nausf-auth/v1";
private: private:
void setupRoutes(); void setupRoutes();
void delete5g_aka_authentication_result_handler( void delete5g_aka_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void delete_eap_authentication_result_handler( void delete_eap_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void authentication_result_deletion_api_default_handler( void authentication_result_deletion_api_default_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router; std::shared_ptr<Pistache::Rest::Router> router;
...@@ -65,8 +65,8 @@ private: ...@@ -65,8 +65,8 @@ private:
/// </remarks> /// </remarks>
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
virtual void delete5g_aka_authentication_result( virtual void delete5g_aka_authentication_result(
const std::string &authCtxId, const std::string& authCtxId,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// Deletes the authentication result in the UDM /// Deletes the authentication result in the UDM
...@@ -76,13 +76,13 @@ private: ...@@ -76,13 +76,13 @@ private:
/// </remarks> /// </remarks>
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
virtual void delete_eap_authentication_result( virtual void delete_eap_authentication_result(
const std::string &authCtxId, const std::string& authCtxId,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
}; };
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* AuthenticationResultDeletionApi_H_ */ #endif /* AuthenticationResultDeletionApi_H_ */
...@@ -30,13 +30,16 @@ DefaultApi::DefaultApi(std::shared_ptr<Pistache::Rest::Router> rtr) { ...@@ -30,13 +30,16 @@ DefaultApi::DefaultApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr; router = rtr;
} }
void DefaultApi::init() { setupRoutes(); } void DefaultApi::init() {
setupRoutes();
}
void DefaultApi::setupRoutes() { void DefaultApi::setupRoutes() {
using namespace Pistache::Rest; using namespace Pistache::Rest;
Routes::Post(*router, base + "/ue-authentications/:authCtxId/eap-session", Routes::Post(
Routes::bind(&DefaultApi::eap_auth_method_handler, this)); *router, base + "/ue-authentications/:authCtxId/eap-session",
Routes::bind(&DefaultApi::eap_auth_method_handler, this));
Routes::Post( Routes::Post(
*router, base + "/rg-authentications", *router, base + "/rg-authentications",
Routes::bind(&DefaultApi::rg_authentications_post_handler, this)); Routes::bind(&DefaultApi::rg_authentications_post_handler, this));
...@@ -48,8 +51,8 @@ void DefaultApi::setupRoutes() { ...@@ -48,8 +51,8 @@ void DefaultApi::setupRoutes() {
this)); this));
Routes::Post( Routes::Post(
*router, base + "/ue-authentications/deregister", *router, base + "/ue-authentications/deregister",
Routes::bind(&DefaultApi::ue_authentications_deregister_post_handler, Routes::bind(
this)); &DefaultApi::ue_authentications_deregister_post_handler, this));
Routes::Post( Routes::Post(
*router, base + "/ue-authentications", *router, base + "/ue-authentications",
Routes::bind(&DefaultApi::ue_authentications_post_handler, this)); Routes::bind(&DefaultApi::ue_authentications_post_handler, this));
...@@ -60,7 +63,7 @@ void DefaultApi::setupRoutes() { ...@@ -60,7 +63,7 @@ void DefaultApi::setupRoutes() {
} }
void DefaultApi::eap_auth_method_handler( void DefaultApi::eap_auth_method_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
...@@ -72,26 +75,23 @@ void DefaultApi::eap_auth_method_handler( ...@@ -72,26 +75,23 @@ void DefaultApi::eap_auth_method_handler(
try { try {
nlohmann::json::parse(request.body()).get_to(eapSession); nlohmann::json::parse(request.body()).get_to(eapSession);
this->eap_auth_method(authCtxId, eapSession, response); this->eap_auth_method(authCtxId, eapSession, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
} }
} }
void DefaultApi::rg_authentications_post_handler( void DefaultApi::rg_authentications_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the body param // Getting the body param
RgAuthenticationInfo rgAuthenticationInfo; RgAuthenticationInfo rgAuthenticationInfo;
...@@ -99,14 +99,14 @@ void DefaultApi::rg_authentications_post_handler( ...@@ -99,14 +99,14 @@ void DefaultApi::rg_authentications_post_handler(
try { try {
nlohmann::json::parse(request.body()).get_to(rgAuthenticationInfo); nlohmann::json::parse(request.body()).get_to(rgAuthenticationInfo);
this->rg_authentications_post(rgAuthenticationInfo, response); this->rg_authentications_post(rgAuthenticationInfo, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
...@@ -114,12 +114,13 @@ void DefaultApi::rg_authentications_post_handler( ...@@ -114,12 +114,13 @@ void DefaultApi::rg_authentications_post_handler(
} }
void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
Logger::ausf_server().info("--Received 5g_aka_confirmation put Request"); Logger::ausf_server().info("--Received 5g_aka_confirmation put Request");
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
Logger::ausf_server().info("5gaka confirmation received with authctxID %s",authCtxId.c_str()); Logger::ausf_server().info(
"5gaka confirmation received with authctxID %s", authCtxId.c_str());
// Getting the body param // Getting the body param
...@@ -130,15 +131,15 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( ...@@ -130,15 +131,15 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
Logger::ausf_server().debug("json parsed"); Logger::ausf_server().debug("json parsed");
this->ue_authentications_auth_ctx_id5g_aka_confirmation_put( this->ue_authentications_auth_ctx_id5g_aka_confirmation_put(
authCtxId, confirmationData, response); authCtxId, confirmationData, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
Logger::ausf_server().error("**400 error"); Logger::ausf_server().error("**400 error");
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
Logger::ausf_server().error("**500 error"); Logger::ausf_server().error("**500 error");
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
...@@ -147,9 +148,8 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( ...@@ -147,9 +148,8 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
} }
void DefaultApi::ue_authentications_deregister_post_handler( void DefaultApi::ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the body param // Getting the body param
DeregistrationInfo deregistrationInfo; DeregistrationInfo deregistrationInfo;
...@@ -157,14 +157,14 @@ void DefaultApi::ue_authentications_deregister_post_handler( ...@@ -157,14 +157,14 @@ void DefaultApi::ue_authentications_deregister_post_handler(
try { try {
nlohmann::json::parse(request.body()).get_to(deregistrationInfo); nlohmann::json::parse(request.body()).get_to(deregistrationInfo);
this->ue_authentications_deregister_post(deregistrationInfo, response); this->ue_authentications_deregister_post(deregistrationInfo, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
...@@ -172,9 +172,9 @@ void DefaultApi::ue_authentications_deregister_post_handler( ...@@ -172,9 +172,9 @@ void DefaultApi::ue_authentications_deregister_post_handler(
} }
void DefaultApi::ue_authentications_post_handler( void DefaultApi::ue_authentications_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// cout << "------------ue authentications post handler---------" << endl; // cout << "------------ue authentications post handler---------" << endl;
Logger::ausf_server().info("--Received ue-authentications post Request"); Logger::ausf_server().info("--Received ue-authentications post Request");
// Getting the body param // Getting the body param
...@@ -185,15 +185,15 @@ void DefaultApi::ue_authentications_post_handler( ...@@ -185,15 +185,15 @@ void DefaultApi::ue_authentications_post_handler(
nlohmann::json::parse(request.body()).get_to(authenticationInfo); nlohmann::json::parse(request.body()).get_to(authenticationInfo);
Logger::ausf_server().debug("json parsed"); Logger::ausf_server().debug("json parsed");
this->ue_authentications_post(authenticationInfo, response); this->ue_authentications_post(authenticationInfo, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
Logger::ausf_server().error("**400 error"); Logger::ausf_server().error("**400 error");
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
Logger::ausf_server().error("**500 error"); Logger::ausf_server().error("**500 error");
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
...@@ -202,14 +202,14 @@ void DefaultApi::ue_authentications_post_handler( ...@@ -202,14 +202,14 @@ void DefaultApi::ue_authentications_post_handler(
} }
void DefaultApi::default_api_default_handler( void DefaultApi::default_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) { const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
Logger::ausf_server().info("--in default api handler--"); Logger::ausf_server().info("--in default api handler--");
response.send(Pistache::Http::Code::Not_Found, response.send(
"The requested method does not exist-default"); Pistache::Http::Code::Not_Found,
"The requested method does not exist-default");
} }
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
...@@ -43,30 +43,34 @@ namespace api { ...@@ -43,30 +43,34 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class DefaultApi { class DefaultApi {
public: public:
DefaultApi(std::shared_ptr<Pistache::Rest::Router>); DefaultApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~DefaultApi() {} virtual ~DefaultApi() {}
void init(); void init();
const std::string base = "/nausf-auth/v1"; const std::string base = "/nausf-auth/v1";
private: private:
void setupRoutes(); void setupRoutes();
void eap_auth_method_handler(const Pistache::Rest::Request &request, void eap_auth_method_handler(
Pistache::Http::ResponseWriter response); const Pistache::Rest::Request& request,
void rg_authentications_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
Pistache::Http::ResponseWriter response); void rg_authentications_post_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void ue_authentications_deregister_post_handler( void ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void ue_authentications_post_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void default_api_default_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void ue_authentications_post_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void default_api_default_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router; std::shared_ptr<Pistache::Rest::Router> router;
...@@ -78,9 +82,9 @@ private: ...@@ -78,9 +82,9 @@ private:
/// </remarks> /// </remarks>
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
/// <param name="eapSession"> (optional)</param> /// <param name="eapSession"> (optional)</param>
virtual void eap_auth_method(const std::string &authCtxId, virtual void eap_auth_method(
const EapSession &eapSession, const std::string& authCtxId, const EapSession& eapSession,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -89,9 +93,9 @@ private: ...@@ -89,9 +93,9 @@ private:
/// ///
/// </remarks> /// </remarks>
/// <param name="rgAuthenticationInfo"></param> /// <param name="rgAuthenticationInfo"></param>
virtual void virtual void rg_authentications_post(
rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, const RgAuthenticationInfo& rgAuthenticationInfo,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -102,8 +106,8 @@ private: ...@@ -102,8 +106,8 @@ private:
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
/// <param name="confirmationData"> (optional)</param> /// <param name="confirmationData"> (optional)</param>
virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put( virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
const std::string &authCtxId, const ConfirmationData &confirmationData, const std::string& authCtxId, const ConfirmationData& confirmationData,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -113,8 +117,8 @@ private: ...@@ -113,8 +117,8 @@ private:
/// </remarks> /// </remarks>
/// <param name="deregistrationInfo"></param> /// <param name="deregistrationInfo"></param>
virtual void ue_authentications_deregister_post( virtual void ue_authentications_deregister_post(
const DeregistrationInfo &deregistrationInfo, const DeregistrationInfo& deregistrationInfo,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -123,14 +127,14 @@ private: ...@@ -123,14 +127,14 @@ private:
/// ///
/// </remarks> /// </remarks>
/// <param name="authenticationInfo"></param> /// <param name="authenticationInfo"></param>
virtual void virtual void ue_authentications_post(
ue_authentications_post(const AuthenticationInfo &authenticationInfo, const AuthenticationInfo& authenticationInfo,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
}; };
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* DefaultApi_H_ */ #endif /* DefaultApi_H_ */
...@@ -71,7 +71,7 @@ void setUpUnixSignals(std::vector<int> quitSignals) { ...@@ -71,7 +71,7 @@ void setUpUnixSignals(std::vector<int> quitSignals) {
#endif #endif
using namespace org::openapitools::server::api; using namespace org::openapitools::server::api;
//using namespace oai::ausf::api; // using namespace oai::ausf::api;
using namespace oai::ausf::app; using namespace oai::ausf::app;
void AUSFApiServer::init(size_t thr) { void AUSFApiServer::init(size_t thr) {
...@@ -82,7 +82,6 @@ void AUSFApiServer::init(size_t thr) { ...@@ -82,7 +82,6 @@ void AUSFApiServer::init(size_t thr) {
m_authenticationResultDeletionApiImpl->init(); m_authenticationResultDeletionApiImpl->init();
m_defaultApiImpl->init(); m_defaultApiImpl->init();
} }
void AUSFApiServer::start() { void AUSFApiServer::start() {
Logger::ausf_server().info("HTTP1 server started"); Logger::ausf_server().info("HTTP1 server started");
......
...@@ -48,22 +48,20 @@ ...@@ -48,22 +48,20 @@
#include "ausf_app.hpp" #include "ausf_app.hpp"
using namespace org::openapitools::server::api; using namespace org::openapitools::server::api;
//using namespace oai::ausf::api; // using namespace oai::ausf::api;
using namespace oai::ausf::app; using namespace oai::ausf::app;
class AUSFApiServer { class AUSFApiServer {
public: public:
AUSFApiServer(Pistache::Address address, ausf_app* ausf_app_inst) AUSFApiServer(Pistache::Address address, ausf_app* ausf_app_inst)
: m_httpEndpoint(std::make_shared<Pistache::Http::Endpoint>(address)) { : m_httpEndpoint(std::make_shared<Pistache::Http::Endpoint>(address)) {
m_router = std::make_shared<Pistache::Rest::Router>(); m_router = std::make_shared<Pistache::Rest::Router>();
m_address = address.host() + ":" + (address.port()).toString(); m_address = address.host() + ":" + (address.port()).toString();
m_defaultApiImpl = m_defaultApiImpl =
std::make_shared<DefaultApiImpl>( std::make_shared<DefaultApiImpl>(m_router, ausf_app_inst, m_address);
m_router, ausf_app_inst, m_address);
m_authenticationResultDeletionApiImpl = m_authenticationResultDeletionApiImpl =
std::make_shared<AuthenticationResultDeletionApiImpl>( std::make_shared<AuthenticationResultDeletionApiImpl>(
m_router, ausf_app_inst, m_address); m_router, ausf_app_inst, m_address);
} }
void init(size_t thr = 1); void init(size_t thr = 1);
void start(); void start();
...@@ -72,8 +70,7 @@ class AUSFApiServer { ...@@ -72,8 +70,7 @@ class AUSFApiServer {
private: private:
std::shared_ptr<Pistache::Http::Endpoint> m_httpEndpoint; std::shared_ptr<Pistache::Http::Endpoint> m_httpEndpoint;
std::shared_ptr<Pistache::Rest::Router> m_router; std::shared_ptr<Pistache::Rest::Router> m_router;
std::shared_ptr<DefaultApiImpl> std::shared_ptr<DefaultApiImpl> m_defaultApiImpl;
m_defaultApiImpl;
std::shared_ptr<AuthenticationResultDeletionApiImpl> std::shared_ptr<AuthenticationResultDeletionApiImpl>
m_authenticationResultDeletionApiImpl; m_authenticationResultDeletionApiImpl;
std::string m_address; std::string m_address;
......
...@@ -23,18 +23,20 @@ using namespace org::openapitools::server::model; ...@@ -23,18 +23,20 @@ using namespace org::openapitools::server::model;
AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl( AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(
std::shared_ptr<Pistache::Rest::Router> rtr, ausf_app* ausf_app_inst, std::shared_ptr<Pistache::Rest::Router> rtr, ausf_app* ausf_app_inst,
std::string address) std::string address)
: AuthenticationResultDeletionApi(rtr), m_ausf_app(ausf_app_inst), m_address(address) {} : AuthenticationResultDeletionApi(rtr),
m_ausf_app(ausf_app_inst),
m_address(address) {}
void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result( void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result(
const std::string &authCtxId, Pistache::Http::ResponseWriter &response) { const std::string& authCtxId, Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); response.send(Pistache::Http::Code::Ok, "Do some magic\n");
} }
void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result( void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result(
const std::string &authCtxId, Pistache::Http::ResponseWriter &response) { const std::string& authCtxId, Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); response.send(Pistache::Http::Code::Ok, "Do some magic\n");
} }
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
...@@ -33,37 +33,35 @@ ...@@ -33,37 +33,35 @@
#include "ausf_app.hpp" #include "ausf_app.hpp"
#include <string> #include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
namespace server { namespace server {
namespace api { namespace api {
using namespace oai::ausf::app; using namespace oai::ausf::app;
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApiImpl class AuthenticationResultDeletionApiImpl
: public org::openapitools::server::api::AuthenticationResultDeletionApi { : public org::openapitools::server::api::AuthenticationResultDeletionApi {
public: public:
AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst, AuthenticationResultDeletionApiImpl(
std::string address); std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst,
std::string address);
~AuthenticationResultDeletionApiImpl() {} ~AuthenticationResultDeletionApiImpl() {}
void void delete5g_aka_authentication_result(
delete5g_aka_authentication_result(const std::string &authCtxId, const std::string& authCtxId, Pistache::Http::ResponseWriter& response);
Pistache::Http::ResponseWriter &response); void delete_eap_authentication_result(
void const std::string& authCtxId, Pistache::Http::ResponseWriter& response);
delete_eap_authentication_result(const std::string &authCtxId,
Pistache::Http::ResponseWriter &response); private:
private: ausf_app* m_ausf_app;
ausf_app* m_ausf_app; std::string m_address;
std::string m_address;
}; };
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif #endif
This diff is collapsed.
...@@ -49,32 +49,36 @@ using namespace oai::ausf::app; ...@@ -49,32 +49,36 @@ using namespace oai::ausf::app;
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class DefaultApiImpl : public org::openapitools::server::api::DefaultApi { class DefaultApiImpl : public org::openapitools::server::api::DefaultApi {
public: public:
DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst, DefaultApiImpl(
std::string address); std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst,
std::string address);
~DefaultApiImpl() {} ~DefaultApiImpl() {}
void eap_auth_method(const std::string &authCtxId, void eap_auth_method(
const EapSession &eapSession, const std::string& authCtxId, const EapSession& eapSession,
Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter& response);
void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, void rg_authentications_post(
Pistache::Http::ResponseWriter &response); const RgAuthenticationInfo& rgAuthenticationInfo,
Pistache::Http::ResponseWriter& response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put( void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
const std::string &authCtxId, const ConfirmationData &confirmationData, const std::string& authCtxId, const ConfirmationData& confirmationData,
Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter& response);
void ue_authentications_deregister_post( void ue_authentications_deregister_post(
const DeregistrationInfo &deregistrationInfo, const DeregistrationInfo& deregistrationInfo,
Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter& response);
void ue_authentications_post(const AuthenticationInfo &authenticationInfo, void ue_authentications_post(
Pistache::Http::ResponseWriter &response); const AuthenticationInfo& authenticationInfo,
private: Pistache::Http::ResponseWriter& response);
ausf_app* m_ausf_app;
std::string m_address; private:
ausf_app* m_ausf_app;
std::string m_address;
}; };
} // namespace api } // namespace api
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif #endif
...@@ -26,11 +26,13 @@ void AuthResult::validate() { ...@@ -26,11 +26,13 @@ void AuthResult::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const AuthResult &o) { j = nlohmann::json(); } void to_json(nlohmann::json& j, const AuthResult& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, AuthResult &o) {} void from_json(const nlohmann::json& j, AuthResult& o) {}
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* AuthResult.h * AuthResult.h
* *
* *
*/ */
#ifndef AuthResult_H_ #ifndef AuthResult_H_
#define AuthResult_H_ #define AuthResult_H_
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace org { namespace org {
...@@ -27,28 +27,27 @@ namespace server { ...@@ -27,28 +27,27 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class AuthResult class AuthResult {
{ public:
public: AuthResult();
AuthResult(); virtual ~AuthResult();
virtual ~AuthResult();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// AuthResult members /// AuthResult members
friend void to_json(nlohmann::json& j, const AuthResult& o);
friend void from_json(const nlohmann::json& j, AuthResult& o);
friend void to_json(nlohmann::json& j, const AuthResult& o); protected:
friend void from_json(const nlohmann::json& j, AuthResult& o);
protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthResult_H_ */ #endif /* AuthResult_H_ */
...@@ -26,11 +26,13 @@ void AuthType::validate() { ...@@ -26,11 +26,13 @@ void AuthType::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const AuthType &o) { j = nlohmann::json(); } void to_json(nlohmann::json& j, const AuthType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, AuthType &o) {} void from_json(const nlohmann::json& j, AuthType& o) {}
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* AuthType.h * AuthType.h
* *
* *
*/ */
#ifndef AuthType_H_ #ifndef AuthType_H_
#define AuthType_H_ #define AuthType_H_
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace org { namespace org {
...@@ -27,28 +27,27 @@ namespace server { ...@@ -27,28 +27,27 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class AuthType class AuthType {
{ public:
public: AuthType();
AuthType(); virtual ~AuthType();
virtual ~AuthType();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// AuthType members /// AuthType members
friend void to_json(nlohmann::json& j, const AuthType& o);
friend void from_json(const nlohmann::json& j, AuthType& o);
friend void to_json(nlohmann::json& j, const AuthType& o); protected:
friend void from_json(const nlohmann::json& j, AuthType& o);
protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthType_H_ */ #endif /* AuthType_H_ */
This diff is collapsed.
...@@ -34,7 +34,7 @@ namespace model { ...@@ -34,7 +34,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class AuthenticationInfo { class AuthenticationInfo {
public: public:
AuthenticationInfo(); AuthenticationInfo();
virtual ~AuthenticationInfo(); virtual ~AuthenticationInfo();
...@@ -47,52 +47,52 @@ public: ...@@ -47,52 +47,52 @@ public:
/// ///
/// </summary> /// </summary>
std::string getSupiOrSuci() const; std::string getSupiOrSuci() const;
void setSupiOrSuci(std::string const &value); void setSupiOrSuci(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getServingNetworkName() const; std::string getServingNetworkName() const;
void setServingNetworkName(std::string const &value); void setServingNetworkName(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
ResynchronizationInfo getResynchronizationInfo() const; ResynchronizationInfo getResynchronizationInfo() const;
void setResynchronizationInfo(ResynchronizationInfo const &value); void setResynchronizationInfo(ResynchronizationInfo const& value);
bool resynchronizationInfoIsSet() const; bool resynchronizationInfoIsSet() const;
void unsetResynchronizationInfo(); void unsetResynchronizationInfo();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getPei() const; std::string getPei() const;
void setPei(std::string const &value); void setPei(std::string const& value);
bool peiIsSet() const; bool peiIsSet() const;
void unsetPei(); void unsetPei();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
TraceData getTraceData() const; TraceData getTraceData() const;
void setTraceData(TraceData const &value); void setTraceData(TraceData const& value);
bool traceDataIsSet() const; bool traceDataIsSet() const;
void unsetTraceData(); void unsetTraceData();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getUdmGroupId() const; std::string getUdmGroupId() const;
void setUdmGroupId(std::string const &value); void setUdmGroupId(std::string const& value);
bool udmGroupIdIsSet() const; bool udmGroupIdIsSet() const;
void unsetUdmGroupId(); void unsetUdmGroupId();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getRoutingIndicator() const; std::string getRoutingIndicator() const;
void setRoutingIndicator(std::string const &value); void setRoutingIndicator(std::string const& value);
bool routingIndicatorIsSet() const; bool routingIndicatorIsSet() const;
void unsetRoutingIndicator(); void unsetRoutingIndicator();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::vector<std::string> &getCellCagInfo(); std::vector<std::string>& getCellCagInfo();
void setCellCagInfo(std::vector<std::string> const &value); void setCellCagInfo(std::vector<std::string> const& value);
bool cellCagInfoIsSet() const; bool cellCagInfoIsSet() const;
void unsetCellCagInfo(); void unsetCellCagInfo();
/// <summary> /// <summary>
...@@ -103,10 +103,10 @@ public: ...@@ -103,10 +103,10 @@ public:
bool n5gcIndIsSet() const; bool n5gcIndIsSet() const;
void unsetN5gcInd(); void unsetN5gcInd();
friend void to_json(nlohmann::json &j, const AuthenticationInfo &o); friend void to_json(nlohmann::json& j, const AuthenticationInfo& o);
friend void from_json(const nlohmann::json &j, AuthenticationInfo &o); friend void from_json(const nlohmann::json& j, AuthenticationInfo& o);
protected: protected:
std::string m_SupiOrSuci; std::string m_SupiOrSuci;
std::string m_ServingNetworkName; std::string m_ServingNetworkName;
...@@ -127,9 +127,9 @@ protected: ...@@ -127,9 +127,9 @@ protected:
bool m_N5gcIndIsSet; bool m_N5gcIndIsSet;
}; };
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* AuthenticationInfo_H_ */ #endif /* AuthenticationInfo_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "Av5gAka.h" #include "Av5gAka.h"
...@@ -18,65 +18,51 @@ namespace openapitools { ...@@ -18,65 +18,51 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
Av5gAka::Av5gAka() Av5gAka::Av5gAka() {
{ m_Rand = "";
m_Rand = ""; m_HxresStar = "";
m_HxresStar = ""; m_Autn = "";
m_Autn = "";
} }
Av5gAka::~Av5gAka() Av5gAka::~Av5gAka() {}
{
}
void Av5gAka::validate() void Av5gAka::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const Av5gAka& o) void to_json(nlohmann::json& j, const Av5gAka& o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["rand"] = o.m_Rand;
j["rand"] = o.m_Rand; j["hxresStar"] = o.m_HxresStar;
j["hxresStar"] = o.m_HxresStar; j["autn"] = o.m_Autn;
j["autn"] = o.m_Autn;
} }
void from_json(const nlohmann::json& j, Av5gAka& o) void from_json(const nlohmann::json& j, Av5gAka& o) {
{ j.at("rand").get_to(o.m_Rand);
j.at("rand").get_to(o.m_Rand); j.at("hxresStar").get_to(o.m_HxresStar);
j.at("hxresStar").get_to(o.m_HxresStar); j.at("autn").get_to(o.m_Autn);
j.at("autn").get_to(o.m_Autn);
} }
std::string Av5gAka::getRand() const std::string Av5gAka::getRand() const {
{ return m_Rand;
return m_Rand;
}
void Av5gAka::setRand(std::string const& value)
{
m_Rand = value;
}
std::string Av5gAka::getHxresStar() const
{
return m_HxresStar;
} }
void Av5gAka::setHxresStar(std::string const& value) void Av5gAka::setRand(std::string const& value) {
{ m_Rand = value;
m_HxresStar = value;
} }
std::string Av5gAka::getAutn() const std::string Av5gAka::getHxresStar() const {
{ return m_HxresStar;
return m_Autn;
}
void Av5gAka::setAutn(std::string const& value)
{
m_Autn = value;
}
} }
void Av5gAka::setHxresStar(std::string const& value) {
m_HxresStar = value;
} }
std::string Av5gAka::getAutn() const {
return m_Autn;
} }
void Av5gAka::setAutn(std::string const& value) {
m_Autn = value;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Av5gAka.h * Av5gAka.h
* *
* *
*/ */
#ifndef Av5gAka_H_ #ifndef Av5gAka_H_
#define Av5gAka_H_ #define Av5gAka_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -28,49 +28,48 @@ namespace server { ...@@ -28,49 +28,48 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class Av5gAka class Av5gAka {
{ public:
public: Av5gAka();
Av5gAka(); virtual ~Av5gAka();
virtual ~Av5gAka();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// Av5gAka members /// Av5gAka members
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getRand() const; std::string getRand() const;
void setRand(std::string const& value); void setRand(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getHxresStar() const; std::string getHxresStar() const;
void setHxresStar(std::string const& value); void setHxresStar(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getAutn() const; std::string getAutn() const;
void setAutn(std::string const& value); void setAutn(std::string const& value);
friend void to_json(nlohmann::json& j, const Av5gAka& o); friend void to_json(nlohmann::json& j, const Av5gAka& o);
friend void from_json(const nlohmann::json& j, Av5gAka& o); friend void from_json(const nlohmann::json& j, Av5gAka& o);
protected:
std::string m_Rand;
std::string m_HxresStar; protected:
std::string m_Rand;
std::string m_Autn; std::string m_HxresStar;
std::string m_Autn;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Av5gAka_H_ */ #endif /* Av5gAka_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ConfirmationData.h" #include "ConfirmationData.h"
...@@ -18,43 +18,33 @@ namespace openapitools { ...@@ -18,43 +18,33 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ConfirmationData::ConfirmationData() ConfirmationData::ConfirmationData() {
{ m_ResStar = "";
m_ResStar = "";
} }
ConfirmationData::~ConfirmationData() ConfirmationData::~ConfirmationData() {}
{
}
void ConfirmationData::validate() void ConfirmationData::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const ConfirmationData& o) void to_json(nlohmann::json& j, const ConfirmationData& o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["resStar"] = o.m_ResStar;
j["resStar"] = o.m_ResStar;
} }
void from_json(const nlohmann::json& j, ConfirmationData& o) void from_json(const nlohmann::json& j, ConfirmationData& o) {
{ j.at("resStar").get_to(o.m_ResStar);
j.at("resStar").get_to(o.m_ResStar);
} }
std::string ConfirmationData::getResStar() const std::string ConfirmationData::getResStar() const {
{ return m_ResStar;
return m_ResStar;
}
void ConfirmationData::setResStar(std::string const& value)
{
m_ResStar = value;
}
}
}
} }
void ConfirmationData::setResStar(std::string const& value) {
m_ResStar = value;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* ConfirmationData.h * ConfirmationData.h
* *
* *
*/ */
#ifndef ConfirmationData_H_ #ifndef ConfirmationData_H_
#define ConfirmationData_H_ #define ConfirmationData_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -28,35 +28,34 @@ namespace server { ...@@ -28,35 +28,34 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class ConfirmationData class ConfirmationData {
{ public:
public: ConfirmationData();
ConfirmationData(); virtual ~ConfirmationData();
virtual ~ConfirmationData();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// ConfirmationData members /// ConfirmationData members
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getResStar() const; std::string getResStar() const;
void setResStar(std::string const& value); void setResStar(std::string const& value);
friend void to_json(nlohmann::json& j, const ConfirmationData& o); friend void to_json(nlohmann::json& j, const ConfirmationData& o);
friend void from_json(const nlohmann::json& j, ConfirmationData& o); friend void from_json(const nlohmann::json& j, ConfirmationData& o);
protected:
std::string m_ResStar;
protected:
std::string m_ResStar;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* ConfirmationData_H_ */ #endif /* ConfirmationData_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ConfirmationDataResponse.h" #include "ConfirmationDataResponse.h"
...@@ -18,47 +18,36 @@ namespace openapitools { ...@@ -18,47 +18,36 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ConfirmationDataResponse::ConfirmationDataResponse() ConfirmationDataResponse::ConfirmationDataResponse() {
{ m_Supi = "";
m_Supi = ""; m_SupiIsSet = false;
m_SupiIsSet = false; m_Kseaf = "";
m_Kseaf = ""; m_KseafIsSet = false;
m_KseafIsSet = false;
} }
ConfirmationDataResponse::~ConfirmationDataResponse() ConfirmationDataResponse::~ConfirmationDataResponse() {}
{
}
void ConfirmationDataResponse::validate() void ConfirmationDataResponse::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const ConfirmationDataResponse& o) void to_json(nlohmann::json& j, const ConfirmationDataResponse& o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["authResult"] = o.m_AuthResult;
j["authResult"] = o.m_AuthResult; if (o.supiIsSet()) j["supi"] = o.m_Supi;
if(o.supiIsSet()) if (o.kseafIsSet()) j["kseaf"] = o.m_Kseaf;
j["supi"] = o.m_Supi;
if(o.kseafIsSet())
j["kseaf"] = o.m_Kseaf;
} }
void from_json(const nlohmann::json& j, ConfirmationDataResponse& o) void from_json(const nlohmann::json& j, ConfirmationDataResponse& o) {
{ j.at("authResult").get_to(o.m_AuthResult);
j.at("authResult").get_to(o.m_AuthResult); if (j.find("supi") != j.end()) {
if(j.find("supi") != j.end()) j.at("supi").get_to(o.m_Supi);
{ o.m_SupiIsSet = true;
j.at("supi").get_to(o.m_Supi); }
o.m_SupiIsSet = true; if (j.find("kseaf") != j.end()) {
} j.at("kseaf").get_to(o.m_Kseaf);
if(j.find("kseaf") != j.end()) o.m_KseafIsSet = true;
{ }
j.at("kseaf").get_to(o.m_Kseaf);
o.m_KseafIsSet = true;
}
} }
// AuthResult ConfirmationDataResponse::getAuthResult() const // AuthResult ConfirmationDataResponse::getAuthResult() const
...@@ -69,51 +58,40 @@ void from_json(const nlohmann::json& j, ConfirmationDataResponse& o) ...@@ -69,51 +58,40 @@ void from_json(const nlohmann::json& j, ConfirmationDataResponse& o)
// { // {
// m_AuthResult = value; // m_AuthResult = value;
// } // }
bool ConfirmationDataResponse::getAuthResult() const bool ConfirmationDataResponse::getAuthResult() const {
{ return m_AuthResult;
return m_AuthResult;
}
void ConfirmationDataResponse::setAuthResult(bool const& value)
{
m_AuthResult = value;
}
std::string ConfirmationDataResponse::getSupi() const
{
return m_Supi;
} }
void ConfirmationDataResponse::setSupi(std::string const& value) void ConfirmationDataResponse::setAuthResult(bool const& value) {
{ m_AuthResult = value;
m_Supi = value;
m_SupiIsSet = true;
} }
bool ConfirmationDataResponse::supiIsSet() const std::string ConfirmationDataResponse::getSupi() const {
{ return m_Supi;
return m_SupiIsSet;
} }
void ConfirmationDataResponse::unsetSupi() void ConfirmationDataResponse::setSupi(std::string const& value) {
{ m_Supi = value;
m_SupiIsSet = false; m_SupiIsSet = true;
} }
std::string ConfirmationDataResponse::getKseaf() const bool ConfirmationDataResponse::supiIsSet() const {
{ return m_SupiIsSet;
return m_Kseaf;
} }
void ConfirmationDataResponse::setKseaf(std::string const& value) void ConfirmationDataResponse::unsetSupi() {
{ m_SupiIsSet = false;
m_Kseaf = value;
m_KseafIsSet = true;
} }
bool ConfirmationDataResponse::kseafIsSet() const std::string ConfirmationDataResponse::getKseaf() const {
{ return m_Kseaf;
return m_KseafIsSet;
}
void ConfirmationDataResponse::unsetKseaf()
{
m_KseafIsSet = false;
}
} }
void ConfirmationDataResponse::setKseaf(std::string const& value) {
m_Kseaf = value;
m_KseafIsSet = true;
} }
bool ConfirmationDataResponse::kseafIsSet() const {
return m_KseafIsSet;
} }
void ConfirmationDataResponse::unsetKseaf() {
m_KseafIsSet = false;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
...@@ -32,7 +32,7 @@ namespace model { ...@@ -32,7 +32,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class ConfirmationDataResponse { class ConfirmationDataResponse {
public: public:
ConfirmationDataResponse(); ConfirmationDataResponse();
virtual ~ConfirmationDataResponse(); virtual ~ConfirmationDataResponse();
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
/// ///
/// </summary> /// </summary>
bool getAuthResult() const; bool getAuthResult() const;
void setAuthResult(bool const &value); void setAuthResult(bool const& value);
// AuthResult getAuthResult() const; // AuthResult getAuthResult() const;
// void setAuthResult(AuthResult const &value); // void setAuthResult(AuthResult const &value);
...@@ -54,21 +54,21 @@ public: ...@@ -54,21 +54,21 @@ public:
/// ///
/// </summary> /// </summary>
std::string getSupi() const; std::string getSupi() const;
void setSupi(std::string const &value); void setSupi(std::string const& value);
bool supiIsSet() const; bool supiIsSet() const;
void unsetSupi(); void unsetSupi();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getKseaf() const; std::string getKseaf() const;
void setKseaf(std::string const &value); void setKseaf(std::string const& value);
bool kseafIsSet() const; bool kseafIsSet() const;
void unsetKseaf(); void unsetKseaf();
friend void to_json(nlohmann::json &j, const ConfirmationDataResponse &o); friend void to_json(nlohmann::json& j, const ConfirmationDataResponse& o);
friend void from_json(const nlohmann::json &j, ConfirmationDataResponse &o); friend void from_json(const nlohmann::json& j, ConfirmationDataResponse& o);
protected: protected:
bool m_AuthResult; bool m_AuthResult;
// AuthResult m_AuthResult; //AuthResult not defined // AuthResult m_AuthResult; //AuthResult not defined
...@@ -78,9 +78,9 @@ protected: ...@@ -78,9 +78,9 @@ protected:
bool m_KseafIsSet; bool m_KseafIsSet;
}; };
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* ConfirmationDataResponse_H_ */ #endif /* ConfirmationDataResponse_H_ */
...@@ -18,7 +18,9 @@ namespace openapitools { ...@@ -18,7 +18,9 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
DeregistrationInfo::DeregistrationInfo() { m_Supi = ""; } DeregistrationInfo::DeregistrationInfo() {
m_Supi = "";
}
DeregistrationInfo::~DeregistrationInfo() {} DeregistrationInfo::~DeregistrationInfo() {}
...@@ -26,19 +28,23 @@ void DeregistrationInfo::validate() { ...@@ -26,19 +28,23 @@ void DeregistrationInfo::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const DeregistrationInfo &o) { void to_json(nlohmann::json& j, const DeregistrationInfo& o) {
j = nlohmann::json(); j = nlohmann::json();
j["supi"] = o.m_Supi; j["supi"] = o.m_Supi;
} }
void from_json(const nlohmann::json &j, DeregistrationInfo &o) { void from_json(const nlohmann::json& j, DeregistrationInfo& o) {
j.at("supi").get_to(o.m_Supi); j.at("supi").get_to(o.m_Supi);
} }
std::string DeregistrationInfo::getSupi() const { return m_Supi; } std::string DeregistrationInfo::getSupi() const {
void DeregistrationInfo::setSupi(std::string const &value) { m_Supi = value; } return m_Supi;
}
void DeregistrationInfo::setSupi(std::string const& value) {
m_Supi = value;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
...@@ -31,7 +31,7 @@ namespace model { ...@@ -31,7 +31,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class DeregistrationInfo { class DeregistrationInfo {
public: public:
DeregistrationInfo(); DeregistrationInfo();
virtual ~DeregistrationInfo(); virtual ~DeregistrationInfo();
...@@ -44,18 +44,18 @@ public: ...@@ -44,18 +44,18 @@ public:
/// ///
/// </summary> /// </summary>
std::string getSupi() const; std::string getSupi() const;
void setSupi(std::string const &value); void setSupi(std::string const& value);
friend void to_json(nlohmann::json &j, const DeregistrationInfo &o); friend void to_json(nlohmann::json& j, const DeregistrationInfo& o);
friend void from_json(const nlohmann::json &j, DeregistrationInfo &o); friend void from_json(const nlohmann::json& j, DeregistrationInfo& o);
protected: protected:
std::string m_Supi; std::string m_Supi;
}; };
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* DeregistrationInfo_H_ */ #endif /* DeregistrationInfo_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "EapSession.h" #include "EapSession.h"
...@@ -18,145 +18,112 @@ namespace openapitools { ...@@ -18,145 +18,112 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
EapSession::EapSession() EapSession::EapSession() {
{ m_EapPayload = "";
m_EapPayload = ""; m_KSeaf = "";
m_KSeaf = ""; m_KSeafIsSet = false;
m_KSeafIsSet = false; m__linksIsSet = false;
m__linksIsSet = false; m_AuthResultIsSet = false;
m_AuthResultIsSet = false; m_Supi = "";
m_Supi = ""; m_SupiIsSet = false;
m_SupiIsSet = false;
} }
EapSession::~EapSession() EapSession::~EapSession() {}
{
}
void EapSession::validate() void EapSession::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const EapSession& o) void to_json(nlohmann::json& j, const EapSession& o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["eapPayload"] = o.m_EapPayload;
j["eapPayload"] = o.m_EapPayload; if (o.kSeafIsSet()) j["kSeaf"] = o.m_KSeaf;
if(o.kSeafIsSet()) if (o.linksIsSet() || !o.m__links.empty()) j["_links"] = o.m__links;
j["kSeaf"] = o.m_KSeaf; if (o.authResultIsSet()) j["authResult"] = o.m_AuthResult;
if(o.linksIsSet() || !o.m__links.empty()) if (o.supiIsSet()) j["supi"] = o.m_Supi;
j["_links"] = o.m__links;
if(o.authResultIsSet())
j["authResult"] = o.m_AuthResult;
if(o.supiIsSet())
j["supi"] = o.m_Supi;
} }
void from_json(const nlohmann::json& j, EapSession& o) void from_json(const nlohmann::json& j, EapSession& o) {
{ j.at("eapPayload").get_to(o.m_EapPayload);
j.at("eapPayload").get_to(o.m_EapPayload); if (j.find("kSeaf") != j.end()) {
if(j.find("kSeaf") != j.end()) j.at("kSeaf").get_to(o.m_KSeaf);
{ o.m_KSeafIsSet = true;
j.at("kSeaf").get_to(o.m_KSeaf); }
o.m_KSeafIsSet = true; if (j.find("_links") != j.end()) {
} j.at("_links").get_to(o.m__links);
if(j.find("_links") != j.end()) o.m__linksIsSet = true;
{ }
j.at("_links").get_to(o.m__links); if (j.find("authResult") != j.end()) {
o.m__linksIsSet = true; j.at("authResult").get_to(o.m_AuthResult);
} o.m_AuthResultIsSet = true;
if(j.find("authResult") != j.end()) }
{ if (j.find("supi") != j.end()) {
j.at("authResult").get_to(o.m_AuthResult); j.at("supi").get_to(o.m_Supi);
o.m_AuthResultIsSet = true; o.m_SupiIsSet = true;
} }
if(j.find("supi") != j.end())
{
j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true;
}
} }
std::string EapSession::getEapPayload() const std::string EapSession::getEapPayload() const {
{ return m_EapPayload;
return m_EapPayload;
}
void EapSession::setEapPayload(std::string const& value)
{
m_EapPayload = value;
}
std::string EapSession::getKSeaf() const
{
return m_KSeaf;
}
void EapSession::setKSeaf(std::string const& value)
{
m_KSeaf = value;
m_KSeafIsSet = true;
}
bool EapSession::kSeafIsSet() const
{
return m_KSeafIsSet;
}
void EapSession::unsetKSeaf()
{
m_KSeafIsSet = false;
}
std::map<std::string, LinksValueSchema>& EapSession::getLinks()
{
return m__links;
}
void EapSession::setLinks(std::map<std::string, LinksValueSchema> const& value)
{
m__links = value;
m__linksIsSet = true;
}
bool EapSession::linksIsSet() const
{
return m__linksIsSet;
}
void EapSession::unset_links()
{
m__linksIsSet = false;
}
AuthResult EapSession::getAuthResult() const
{
return m_AuthResult;
}
void EapSession::setAuthResult(AuthResult const& value)
{
m_AuthResult = value;
m_AuthResultIsSet = true;
}
bool EapSession::authResultIsSet() const
{
return m_AuthResultIsSet;
}
void EapSession::unsetAuthResult()
{
m_AuthResultIsSet = false;
}
std::string EapSession::getSupi() const
{
return m_Supi;
}
void EapSession::setSupi(std::string const& value)
{
m_Supi = value;
m_SupiIsSet = true;
}
bool EapSession::supiIsSet() const
{
return m_SupiIsSet;
}
void EapSession::unsetSupi()
{
m_SupiIsSet = false;
} }
void EapSession::setEapPayload(std::string const& value) {
m_EapPayload = value;
}
std::string EapSession::getKSeaf() const {
return m_KSeaf;
}
void EapSession::setKSeaf(std::string const& value) {
m_KSeaf = value;
m_KSeafIsSet = true;
}
bool EapSession::kSeafIsSet() const {
return m_KSeafIsSet;
}
void EapSession::unsetKSeaf() {
m_KSeafIsSet = false;
}
std::map<std::string, LinksValueSchema>& EapSession::getLinks() {
return m__links;
}
void EapSession::setLinks(
std::map<std::string, LinksValueSchema> const& value) {
m__links = value;
m__linksIsSet = true;
}
bool EapSession::linksIsSet() const {
return m__linksIsSet;
}
void EapSession::unset_links() {
m__linksIsSet = false;
}
AuthResult EapSession::getAuthResult() const {
return m_AuthResult;
}
void EapSession::setAuthResult(AuthResult const& value) {
m_AuthResult = value;
m_AuthResultIsSet = true;
}
bool EapSession::authResultIsSet() const {
return m_AuthResultIsSet;
}
void EapSession::unsetAuthResult() {
m_AuthResultIsSet = false;
}
std::string EapSession::getSupi() const {
return m_Supi;
} }
void EapSession::setSupi(std::string const& value) {
m_Supi = value;
m_SupiIsSet = true;
} }
bool EapSession::supiIsSet() const {
return m_SupiIsSet;
} }
void EapSession::unsetSupi() {
m_SupiIsSet = false;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
...@@ -35,7 +35,7 @@ namespace model { ...@@ -35,7 +35,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class EapSession { class EapSession {
public: public:
EapSession(); EapSession();
virtual ~EapSession(); virtual ~EapSession();
...@@ -48,40 +48,40 @@ public: ...@@ -48,40 +48,40 @@ public:
/// contains an EAP packet /// contains an EAP packet
/// </summary> /// </summary>
std::string getEapPayload() const; std::string getEapPayload() const;
void setEapPayload(std::string const &value); void setEapPayload(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getKSeaf() const; std::string getKSeaf() const;
void setKSeaf(std::string const &value); void setKSeaf(std::string const& value);
bool kSeafIsSet() const; bool kSeafIsSet() const;
void unsetKSeaf(); void unsetKSeaf();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::map<std::string, LinksValueSchema> &getLinks(); std::map<std::string, LinksValueSchema>& getLinks();
void setLinks(std::map<std::string, LinksValueSchema> const &value); void setLinks(std::map<std::string, LinksValueSchema> const& value);
bool linksIsSet() const; bool linksIsSet() const;
void unset_links(); void unset_links();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
AuthResult getAuthResult() const; AuthResult getAuthResult() const;
void setAuthResult(AuthResult const &value); void setAuthResult(AuthResult const& value);
bool authResultIsSet() const; bool authResultIsSet() const;
void unsetAuthResult(); void unsetAuthResult();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getSupi() const; std::string getSupi() const;
void setSupi(std::string const &value); void setSupi(std::string const& value);
bool supiIsSet() const; bool supiIsSet() const;
void unsetSupi(); void unsetSupi();
friend void to_json(nlohmann::json &j, const EapSession &o); friend void to_json(nlohmann::json& j, const EapSession& o);
friend void from_json(const nlohmann::json &j, EapSession &o); friend void from_json(const nlohmann::json& j, EapSession& o);
protected: protected:
std::string m_EapPayload; std::string m_EapPayload;
std::string m_KSeaf; std::string m_KSeaf;
...@@ -94,9 +94,9 @@ protected: ...@@ -94,9 +94,9 @@ protected:
bool m_SupiIsSet; bool m_SupiIsSet;
}; };
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* EapSession_H_ */ #endif /* EapSession_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "Helpers.h" #include "Helpers.h"
namespace org { namespace org {
...@@ -16,83 +17,79 @@ namespace openapitools { ...@@ -16,83 +17,79 @@ namespace openapitools {
namespace server { namespace server {
namespace helpers { namespace helpers {
std::string toStringValue(const std::string& value) {
std::string toStringValue(const std::string &value){ return std::string(value);
return std::string(value);
} }
std::string toStringValue(const int32_t &value){ std::string toStringValue(const int32_t& value) {
return std::to_string(value); return std::to_string(value);
} }
std::string toStringValue(const int64_t &value){ std::string toStringValue(const int64_t& value) {
return std::to_string(value); return std::to_string(value);
} }
std::string toStringValue(const bool &value){ std::string toStringValue(const bool& value) {
return value?std::string("true"):std::string("false"); return value ? std::string("true") : std::string("false");
} }
std::string toStringValue(const float &value){ std::string toStringValue(const float& value) {
return std::to_string(value); return std::to_string(value);
} }
std::string toStringValue(const double &value){ std::string toStringValue(const double& value) {
return std::to_string(value); return std::to_string(value);
} }
bool fromStringValue(const std::string &inStr, std::string &value){ bool fromStringValue(const std::string& inStr, std::string& value) {
value = std::string(inStr); value = std::string(inStr);
return true; return true;
} }
bool fromStringValue(const std::string &inStr, int32_t &value){ bool fromStringValue(const std::string& inStr, int32_t& value) {
try { try {
value = std::stoi( inStr ); value = std::stoi(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) { return false;
return false; }
} return true;
return true;
} }
bool fromStringValue(const std::string &inStr, int64_t &value){ bool fromStringValue(const std::string& inStr, int64_t& value) {
try { try {
value = std::stol( inStr ); value = std::stol(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) { return false;
return false; }
} return true;
return true;
} }
bool fromStringValue(const std::string &inStr, bool &value){ bool fromStringValue(const std::string& inStr, bool& value) {
bool result = true; bool result = true;
inStr == "true"?value = true: inStr == "false"?value = false: result = false; inStr == "true" ? value = true :
return result; inStr == "false" ? value = false : result = false;
return result;
} }
bool fromStringValue(const std::string &inStr, float &value){ bool fromStringValue(const std::string& inStr, float& value) {
try { try {
value = std::stof( inStr ); value = std::stof(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) { return false;
return false; }
} return true;
return true;
} }
bool fromStringValue(const std::string &inStr, double &value){ bool fromStringValue(const std::string& inStr, double& value) {
try { try {
value = std::stod( inStr ); value = std::stod(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) { return false;
return false; }
} return true;
return true;
} }
} } // namespace helpers
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Helpers.h * Helpers.h
* *
...@@ -29,48 +30,49 @@ namespace openapitools { ...@@ -29,48 +30,49 @@ namespace openapitools {
namespace server { namespace server {
namespace helpers { namespace helpers {
std::string toStringValue(const std::string &value); std::string toStringValue(const std::string& value);
std::string toStringValue(const int32_t &value); std::string toStringValue(const int32_t& value);
std::string toStringValue(const int64_t &value); std::string toStringValue(const int64_t& value);
std::string toStringValue(const bool &value); std::string toStringValue(const bool& value);
std::string toStringValue(const float &value); std::string toStringValue(const float& value);
std::string toStringValue(const double &value); std::string toStringValue(const double& value);
bool fromStringValue(const std::string &inStr, std::string &value); bool fromStringValue(const std::string& inStr, std::string& value);
bool fromStringValue(const std::string &inStr, int32_t &value); bool fromStringValue(const std::string& inStr, int32_t& value);
bool fromStringValue(const std::string &inStr, int64_t &value); bool fromStringValue(const std::string& inStr, int64_t& value);
bool fromStringValue(const std::string &inStr, bool &value); bool fromStringValue(const std::string& inStr, bool& value);
bool fromStringValue(const std::string &inStr, float &value); bool fromStringValue(const std::string& inStr, float& value);
bool fromStringValue(const std::string &inStr, double &value); bool fromStringValue(const std::string& inStr, double& value);
template<typename T> template<typename T>
bool fromStringValue(const std::vector<std::string> &inStr, std::vector<T> &value){ bool fromStringValue(
try{ const std::vector<std::string>& inStr, std::vector<T>& value) {
for(auto & item : inStr){ try {
T itemValue; for (auto& item : inStr) {
if(fromStringValue(item, itemValue)){ T itemValue;
value.push_back(itemValue); if (fromStringValue(item, itemValue)) {
} value.push_back(itemValue);
} }
}
catch(...){
return false;
}
return value.size() > 0;
}
template<typename T>
bool fromStringValue(const std::string &inStr, std::vector<T> &value, char separator = ','){
std::vector<std::string> inStrings;
std::istringstream f(inStr);
std::string s;
while (std::getline(f, s, separator)) {
inStrings.push_back(s);
}
return fromStringValue(inStrings, value);
} }
} catch (...) {
} return false;
} }
return value.size() > 0;
} }
template<typename T>
bool fromStringValue(
const std::string& inStr, std::vector<T>& value, char separator = ',') {
std::vector<std::string> inStrings;
std::istringstream f(inStr);
std::string s;
while (std::getline(f, s, separator)) {
inStrings.push_back(s);
}
return fromStringValue(inStrings, value);
} }
#endif // Helpers_H_ } // namespace helpers
\ No newline at end of file } // namespace server
} // namespace openapitools
} // namespace org
#endif // Helpers_H_
\ No newline at end of file
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "InvalidParam.h" #include "InvalidParam.h"
...@@ -18,69 +18,53 @@ namespace openapitools { ...@@ -18,69 +18,53 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
InvalidParam::InvalidParam() InvalidParam::InvalidParam() {
{ m_Param = "";
m_Param = ""; m_Reason = "";
m_Reason = ""; m_ReasonIsSet = false;
m_ReasonIsSet = false;
} }
InvalidParam::~InvalidParam() InvalidParam::~InvalidParam() {}
{
}
void InvalidParam::validate() void InvalidParam::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const InvalidParam& o) void to_json(nlohmann::json& j, const InvalidParam& o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["param"] = o.m_Param;
j["param"] = o.m_Param; if (o.reasonIsSet()) j["reason"] = o.m_Reason;
if(o.reasonIsSet())
j["reason"] = o.m_Reason;
} }
void from_json(const nlohmann::json& j, InvalidParam& o) void from_json(const nlohmann::json& j, InvalidParam& o) {
{ j.at("param").get_to(o.m_Param);
j.at("param").get_to(o.m_Param); if (j.find("reason") != j.end()) {
if(j.find("reason") != j.end()) j.at("reason").get_to(o.m_Reason);
{ o.m_ReasonIsSet = true;
j.at("reason").get_to(o.m_Reason); }
o.m_ReasonIsSet = true;
}
} }
std::string InvalidParam::getParam() const std::string InvalidParam::getParam() const {
{ return m_Param;
return m_Param;
}
void InvalidParam::setParam(std::string const& value)
{
m_Param = value;
}
std::string InvalidParam::getReason() const
{
return m_Reason;
} }
void InvalidParam::setReason(std::string const& value) void InvalidParam::setParam(std::string const& value) {
{ m_Param = value;
m_Reason = value;
m_ReasonIsSet = true;
} }
bool InvalidParam::reasonIsSet() const std::string InvalidParam::getReason() const {
{ return m_Reason;
return m_ReasonIsSet;
}
void InvalidParam::unsetReason()
{
m_ReasonIsSet = false;
}
} }
void InvalidParam::setReason(std::string const& value) {
m_Reason = value;
m_ReasonIsSet = true;
} }
bool InvalidParam::reasonIsSet() const {
return m_ReasonIsSet;
} }
void InvalidParam::unsetReason() {
m_ReasonIsSet = false;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* InvalidParam.h * InvalidParam.h
* *
* *
*/ */
#ifndef InvalidParam_H_ #ifndef InvalidParam_H_
#define InvalidParam_H_ #define InvalidParam_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -28,44 +28,44 @@ namespace server { ...@@ -28,44 +28,44 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class InvalidParam class InvalidParam {
{ public:
public: InvalidParam();
InvalidParam(); virtual ~InvalidParam();
virtual ~InvalidParam();
void validate();
void validate(); /////////////////////////////////////////////
/// InvalidParam members
///////////////////////////////////////////// /// <summary>
/// InvalidParam members ///
/// </summary>
std::string getParam() const;
void setParam(std::string const& value);
/// <summary>
///
/// </summary>
std::string getReason() const;
void setReason(std::string const& value);
bool reasonIsSet() const;
void unsetReason();
/// <summary> friend void to_json(nlohmann::json& j, const InvalidParam& o);
/// friend void from_json(const nlohmann::json& j, InvalidParam& o);
/// </summary>
std::string getParam() const;
void setParam(std::string const& value);
/// <summary>
///
/// </summary>
std::string getReason() const;
void setReason(std::string const& value);
bool reasonIsSet() const;
void unsetReason();
friend void to_json(nlohmann::json& j, const InvalidParam& o); protected:
friend void from_json(const nlohmann::json& j, InvalidParam& o); std::string m_Param;
protected:
std::string m_Param;
std::string m_Reason; std::string m_Reason;
bool m_ReasonIsSet; bool m_ReasonIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* InvalidParam_H_ */ #endif /* InvalidParam_H_ */
...@@ -26,11 +26,13 @@ void Ipv6Addr::validate() { ...@@ -26,11 +26,13 @@ void Ipv6Addr::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const Ipv6Addr &o) { j = nlohmann::json(); } void to_json(nlohmann::json& j, const Ipv6Addr& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, Ipv6Addr &o) {} void from_json(const nlohmann::json& j, Ipv6Addr& o) {}
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Ipv6Addr.h * Ipv6Addr.h
* *
* *
*/ */
#ifndef Ipv6Addr_H_ #ifndef Ipv6Addr_H_
#define Ipv6Addr_H_ #define Ipv6Addr_H_
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace org { namespace org {
...@@ -27,28 +27,27 @@ namespace server { ...@@ -27,28 +27,27 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class Ipv6Addr class Ipv6Addr {
{ public:
public: Ipv6Addr();
Ipv6Addr(); virtual ~Ipv6Addr();
virtual ~Ipv6Addr();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// Ipv6Addr members /// Ipv6Addr members
friend void to_json(nlohmann::json& j, const Ipv6Addr& o);
friend void from_json(const nlohmann::json& j, Ipv6Addr& o);
friend void to_json(nlohmann::json& j, const Ipv6Addr& o); protected:
friend void from_json(const nlohmann::json& j, Ipv6Addr& o);
protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Ipv6Addr_H_ */ #endif /* Ipv6Addr_H_ */
...@@ -19,7 +19,7 @@ namespace server { ...@@ -19,7 +19,7 @@ namespace server {
namespace model { namespace model {
Link::Link() { Link::Link() {
m_Href = ""; m_Href = "";
m_HrefIsSet = false; m_HrefIsSet = false;
} }
...@@ -29,28 +29,33 @@ void Link::validate() { ...@@ -29,28 +29,33 @@ void Link::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const Link &o) { void to_json(nlohmann::json& j, const Link& o) {
j = nlohmann::json(); j = nlohmann::json();
if (o.hrefIsSet()) if (o.hrefIsSet()) j["href"] = o.m_Href;
j["href"] = o.m_Href;
} }
void from_json(const nlohmann::json &j, Link &o) { void from_json(const nlohmann::json& j, Link& o) {
if (j.find("href") != j.end()) { if (j.find("href") != j.end()) {
j.at("href").get_to(o.m_Href); j.at("href").get_to(o.m_Href);
o.m_HrefIsSet = true; o.m_HrefIsSet = true;
} }
} }
std::string Link::getHref() const { return m_Href; } std::string Link::getHref() const {
void Link::setHref(std::string const &value) { return m_Href;
m_Href = value; }
void Link::setHref(std::string const& value) {
m_Href = value;
m_HrefIsSet = true; m_HrefIsSet = true;
} }
bool Link::hrefIsSet() const { return m_HrefIsSet; } bool Link::hrefIsSet() const {
void Link::unsetHref() { m_HrefIsSet = false; } return m_HrefIsSet;
}
void Link::unsetHref() {
m_HrefIsSet = false;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Link.h * Link.h
* *
* *
*/ */
#ifndef Link_H_ #ifndef Link_H_
#define Link_H_ #define Link_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -28,37 +28,37 @@ namespace server { ...@@ -28,37 +28,37 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class Link class Link {
{ public:
public: Link();
Link(); virtual ~Link();
virtual ~Link();
void validate();
void validate(); /////////////////////////////////////////////
/// Link members
///////////////////////////////////////////// /// <summary>
/// Link members ///
/// </summary>
std::string getHref() const;
void setHref(std::string const& value);
bool hrefIsSet() const;
void unsetHref();
/// <summary> friend void to_json(nlohmann::json& j, const Link& o);
/// friend void from_json(const nlohmann::json& j, Link& o);
/// </summary>
std::string getHref() const;
void setHref(std::string const& value);
bool hrefIsSet() const;
void unsetHref();
friend void to_json(nlohmann::json& j, const Link& o); protected:
friend void from_json(const nlohmann::json& j, Link& o); std::string m_Href;
protected: bool m_HrefIsSet;
std::string m_Href;
bool m_HrefIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Link_H_ */ #endif /* Link_H_ */
...@@ -19,7 +19,7 @@ namespace server { ...@@ -19,7 +19,7 @@ namespace server {
namespace model { namespace model {
LinksValueSchema::LinksValueSchema() { LinksValueSchema::LinksValueSchema() {
m_Href = ""; m_Href = "";
m_HrefIsSet = false; m_HrefIsSet = false;
} }
...@@ -29,28 +29,33 @@ void LinksValueSchema::validate() { ...@@ -29,28 +29,33 @@ void LinksValueSchema::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const LinksValueSchema &o) { void to_json(nlohmann::json& j, const LinksValueSchema& o) {
j = nlohmann::json(); j = nlohmann::json();
if (o.hrefIsSet()) if (o.hrefIsSet()) j["href"] = o.m_Href;
j["href"] = o.m_Href;
} }
void from_json(const nlohmann::json &j, LinksValueSchema &o) { void from_json(const nlohmann::json& j, LinksValueSchema& o) {
if (j.find("href") != j.end()) { if (j.find("href") != j.end()) {
j.at("href").get_to(o.m_Href); j.at("href").get_to(o.m_Href);
o.m_HrefIsSet = true; o.m_HrefIsSet = true;
} }
} }
std::string LinksValueSchema::getHref() const { return m_Href; } std::string LinksValueSchema::getHref() const {
void LinksValueSchema::setHref(std::string const &value) { return m_Href;
m_Href = value; }
void LinksValueSchema::setHref(std::string const& value) {
m_Href = value;
m_HrefIsSet = true; m_HrefIsSet = true;
} }
bool LinksValueSchema::hrefIsSet() const { return m_HrefIsSet; } bool LinksValueSchema::hrefIsSet() const {
void LinksValueSchema::unsetHref() { m_HrefIsSet = false; } return m_HrefIsSet;
}
void LinksValueSchema::unsetHref() {
m_HrefIsSet = false;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* LinksValueSchema.h * LinksValueSchema.h
* *
* *
*/ */
#ifndef LinksValueSchema_H_ #ifndef LinksValueSchema_H_
#define LinksValueSchema_H_ #define LinksValueSchema_H_
#include <string> #include <string>
#include "Link.h" #include "Link.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -29,37 +29,37 @@ namespace server { ...@@ -29,37 +29,37 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class LinksValueSchema class LinksValueSchema {
{ public:
public: LinksValueSchema();
LinksValueSchema(); virtual ~LinksValueSchema();
virtual ~LinksValueSchema();
void validate();
void validate(); /////////////////////////////////////////////
/// LinksValueSchema members
///////////////////////////////////////////// /// <summary>
/// LinksValueSchema members ///
/// </summary>
std::string getHref() const;
void setHref(std::string const& value);
bool hrefIsSet() const;
void unsetHref();
/// <summary> friend void to_json(nlohmann::json& j, const LinksValueSchema& o);
/// friend void from_json(const nlohmann::json& j, LinksValueSchema& o);
/// </summary>
std::string getHref() const;
void setHref(std::string const& value);
bool hrefIsSet() const;
void unsetHref();
friend void to_json(nlohmann::json& j, const LinksValueSchema& o); protected:
friend void from_json(const nlohmann::json& j, LinksValueSchema& o); std::string m_Href;
protected: bool m_HrefIsSet;
std::string m_Href;
bool m_HrefIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* LinksValueSchema_H_ */ #endif /* LinksValueSchema_H_ */
This diff is collapsed.
...@@ -33,7 +33,7 @@ namespace model { ...@@ -33,7 +33,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class ProblemDetails { class ProblemDetails {
public: public:
ProblemDetails(); ProblemDetails();
virtual ~ProblemDetails(); virtual ~ProblemDetails();
...@@ -46,14 +46,14 @@ public: ...@@ -46,14 +46,14 @@ public:
/// ///
/// </summary> /// </summary>
std::string getType() const; std::string getType() const;
void setType(std::string const &value); void setType(std::string const& value);
bool typeIsSet() const; bool typeIsSet() const;
void unsetType(); void unsetType();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getTitle() const; std::string getTitle() const;
void setTitle(std::string const &value); void setTitle(std::string const& value);
bool titleIsSet() const; bool titleIsSet() const;
void unsetTitle(); void unsetTitle();
/// <summary> /// <summary>
...@@ -67,49 +67,49 @@ public: ...@@ -67,49 +67,49 @@ public:
/// ///
/// </summary> /// </summary>
std::string getDetail() const; std::string getDetail() const;
void setDetail(std::string const &value); void setDetail(std::string const& value);
bool detailIsSet() const; bool detailIsSet() const;
void unsetDetail(); void unsetDetail();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getInstance() const; std::string getInstance() const;
void setInstance(std::string const &value); void setInstance(std::string const& value);
bool instanceIsSet() const; bool instanceIsSet() const;
void unsetInstance(); void unsetInstance();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getCause() const; std::string getCause() const;
void setCause(std::string const &value); void setCause(std::string const& value);
bool causeIsSet() const; bool causeIsSet() const;
void unsetCause(); void unsetCause();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::vector<InvalidParam> &getInvalidParams(); std::vector<InvalidParam>& getInvalidParams();
void setInvalidParams(std::vector<InvalidParam> const &value); void setInvalidParams(std::vector<InvalidParam> const& value);
bool invalidParamsIsSet() const; bool invalidParamsIsSet() const;
void unsetInvalidParams(); void unsetInvalidParams();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getSupportedFeatures() const; std::string getSupportedFeatures() const;
void setSupportedFeatures(std::string const &value); void setSupportedFeatures(std::string const& value);
bool supportedFeaturesIsSet() const; bool supportedFeaturesIsSet() const;
void unsetSupportedFeatures(); void unsetSupportedFeatures();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getTargetScp() const; std::string getTargetScp() const;
void setTargetScp(std::string const &value); void setTargetScp(std::string const& value);
bool targetScpIsSet() const; bool targetScpIsSet() const;
void unsetTargetScp(); void unsetTargetScp();
friend void to_json(nlohmann::json &j, const ProblemDetails &o); friend void to_json(nlohmann::json& j, const ProblemDetails& o);
friend void from_json(const nlohmann::json &j, ProblemDetails &o); friend void from_json(const nlohmann::json& j, ProblemDetails& o);
protected: protected:
std::string m_Type; std::string m_Type;
bool m_TypeIsSet; bool m_TypeIsSet;
std::string m_Title; std::string m_Title;
...@@ -130,9 +130,9 @@ protected: ...@@ -130,9 +130,9 @@ protected:
bool m_TargetScpIsSet; bool m_TargetScpIsSet;
}; };
} // namespace model } // namespace model
} // namespace server } // namespace server
} // namespace openapitools } // namespace openapitools
} // namespace org } // namespace org
#endif /* ProblemDetails_H_ */ #endif /* ProblemDetails_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ResynchronizationInfo.h" #include "ResynchronizationInfo.h"
...@@ -18,54 +18,42 @@ namespace openapitools { ...@@ -18,54 +18,42 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ResynchronizationInfo::ResynchronizationInfo() ResynchronizationInfo::ResynchronizationInfo() {
{ m_Rand = "";
m_Rand = ""; m_Auts = "";
m_Auts = "";
}
ResynchronizationInfo::~ResynchronizationInfo()
{
} }
void ResynchronizationInfo::validate() ResynchronizationInfo::~ResynchronizationInfo() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ResynchronizationInfo& o) void ResynchronizationInfo::validate() {
{ // TODO: implement validation
j = nlohmann::json();
j["rand"] = o.m_Rand;
j["auts"] = o.m_Auts;
} }
void from_json(const nlohmann::json& j, ResynchronizationInfo& o) void to_json(nlohmann::json& j, const ResynchronizationInfo& o) {
{ j = nlohmann::json();
j.at("rand").get_to(o.m_Rand); j["rand"] = o.m_Rand;
j.at("auts").get_to(o.m_Auts); j["auts"] = o.m_Auts;
} }
std::string ResynchronizationInfo::getRand() const void from_json(const nlohmann::json& j, ResynchronizationInfo& o) {
{ j.at("rand").get_to(o.m_Rand);
return m_Rand; j.at("auts").get_to(o.m_Auts);
}
void ResynchronizationInfo::setRand(std::string const& value)
{
m_Rand = value;
}
std::string ResynchronizationInfo::getAuts() const
{
return m_Auts;
}
void ResynchronizationInfo::setAuts(std::string const& value)
{
m_Auts = value;
} }
std::string ResynchronizationInfo::getRand() const {
return m_Rand;
} }
void ResynchronizationInfo::setRand(std::string const& value) {
m_Rand = value;
} }
std::string ResynchronizationInfo::getAuts() const {
return m_Auts;
} }
void ResynchronizationInfo::setAuts(std::string const& value) {
m_Auts = value;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* ResynchronizationInfo.h * ResynchronizationInfo.h
* *
* *
*/ */
#ifndef ResynchronizationInfo_H_ #ifndef ResynchronizationInfo_H_
#define ResynchronizationInfo_H_ #define ResynchronizationInfo_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -28,42 +28,41 @@ namespace server { ...@@ -28,42 +28,41 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class ResynchronizationInfo class ResynchronizationInfo {
{ public:
public: ResynchronizationInfo();
ResynchronizationInfo(); virtual ~ResynchronizationInfo();
virtual ~ResynchronizationInfo();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// ResynchronizationInfo members /// ResynchronizationInfo members
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getRand() const; std::string getRand() const;
void setRand(std::string const& value); void setRand(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getAuts() const; std::string getAuts() const;
void setAuts(std::string const& value); void setAuts(std::string const& value);
friend void to_json(nlohmann::json& j, const ResynchronizationInfo& o); friend void to_json(nlohmann::json& j, const ResynchronizationInfo& o);
friend void from_json(const nlohmann::json& j, ResynchronizationInfo& o); friend void from_json(const nlohmann::json& j, ResynchronizationInfo& o);
protected:
std::string m_Rand;
std::string m_Auts; protected:
std::string m_Rand;
std::string m_Auts;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* ResynchronizationInfo_H_ */ #endif /* ResynchronizationInfo_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "RgAuthCtx.h" #include "RgAuthCtx.h"
...@@ -18,94 +18,72 @@ namespace openapitools { ...@@ -18,94 +18,72 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
RgAuthCtx::RgAuthCtx() RgAuthCtx::RgAuthCtx() {
{ m_Supi = "";
m_Supi = ""; m_SupiIsSet = false;
m_SupiIsSet = false; m_AuthInd = false;
m_AuthInd = false; m_AuthIndIsSet = false;
m_AuthIndIsSet = false;
} }
RgAuthCtx::~RgAuthCtx() RgAuthCtx::~RgAuthCtx() {}
{
}
void RgAuthCtx::validate() void RgAuthCtx::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const RgAuthCtx& o) void to_json(nlohmann::json& j, const RgAuthCtx& o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["authResult"] = o.m_AuthResult;
j["authResult"] = o.m_AuthResult; if (o.supiIsSet()) j["supi"] = o.m_Supi;
if(o.supiIsSet()) if (o.authIndIsSet()) j["authInd"] = o.m_AuthInd;
j["supi"] = o.m_Supi;
if(o.authIndIsSet())
j["authInd"] = o.m_AuthInd;
} }
void from_json(const nlohmann::json& j, RgAuthCtx& o) void from_json(const nlohmann::json& j, RgAuthCtx& o) {
{ j.at("authResult").get_to(o.m_AuthResult);
j.at("authResult").get_to(o.m_AuthResult); if (j.find("supi") != j.end()) {
if(j.find("supi") != j.end()) j.at("supi").get_to(o.m_Supi);
{ o.m_SupiIsSet = true;
j.at("supi").get_to(o.m_Supi); }
o.m_SupiIsSet = true; if (j.find("authInd") != j.end()) {
} j.at("authInd").get_to(o.m_AuthInd);
if(j.find("authInd") != j.end()) o.m_AuthIndIsSet = true;
{ }
j.at("authInd").get_to(o.m_AuthInd);
o.m_AuthIndIsSet = true;
}
} }
AuthResult RgAuthCtx::getAuthResult() const AuthResult RgAuthCtx::getAuthResult() const {
{ return m_AuthResult;
return m_AuthResult;
}
void RgAuthCtx::setAuthResult(AuthResult const& value)
{
m_AuthResult = value;
}
std::string RgAuthCtx::getSupi() const
{
return m_Supi;
} }
void RgAuthCtx::setSupi(std::string const& value) void RgAuthCtx::setAuthResult(AuthResult const& value) {
{ m_AuthResult = value;
m_Supi = value;
m_SupiIsSet = true;
} }
bool RgAuthCtx::supiIsSet() const std::string RgAuthCtx::getSupi() const {
{ return m_Supi;
return m_SupiIsSet;
} }
void RgAuthCtx::unsetSupi() void RgAuthCtx::setSupi(std::string const& value) {
{ m_Supi = value;
m_SupiIsSet = false; m_SupiIsSet = true;
} }
bool RgAuthCtx::isAuthInd() const bool RgAuthCtx::supiIsSet() const {
{ return m_SupiIsSet;
return m_AuthInd;
} }
void RgAuthCtx::setAuthInd(bool const value) void RgAuthCtx::unsetSupi() {
{ m_SupiIsSet = false;
m_AuthInd = value;
m_AuthIndIsSet = true;
} }
bool RgAuthCtx::authIndIsSet() const bool RgAuthCtx::isAuthInd() const {
{ return m_AuthInd;
return m_AuthIndIsSet;
}
void RgAuthCtx::unsetAuthInd()
{
m_AuthIndIsSet = false;
}
} }
void RgAuthCtx::setAuthInd(bool const value) {
m_AuthInd = value;
m_AuthIndIsSet = true;
} }
bool RgAuthCtx::authIndIsSet() const {
return m_AuthIndIsSet;
} }
void RgAuthCtx::unsetAuthInd() {
m_AuthIndIsSet = false;
} }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -36,7 +36,7 @@ namespace oai { ...@@ -36,7 +36,7 @@ namespace oai {
namespace ausf { namespace ausf {
namespace app { namespace app {
//class ausf_config; // class ausf_config;
class ausf_app { class ausf_app {
public: public:
explicit ausf_app(const std::string& config_file); explicit ausf_app(const std::string& config_file);
...@@ -45,9 +45,7 @@ class ausf_app { ...@@ -45,9 +45,7 @@ class ausf_app {
virtual ~ausf_app(); virtual ~ausf_app();
private: private:
}; };
} // namespace app } // namespace app
} // namespace ausf } // namespace ausf
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -12,7 +12,7 @@ extern "C" { ...@@ -12,7 +12,7 @@ extern "C" {
#endif #endif
typedef struct BIT_STRING_s { typedef struct BIT_STRING_s {
uint8_t *buf; /* BIT STRING body */ uint8_t* buf; /* BIT STRING body */
size_t size; /* Size of the above buffer */ size_t size; /* Size of the above buffer */
int bits_unused; /* Unused trailing bits in the last octet (0..7) */ int bits_unused; /* Unused trailing bits in the last octet (0..7) */
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment