Commit 4218871a authored by Keliang's avatar Keliang

clang-format with eurecom style

parent 5720c168
/** /**
* 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 "AuthenticationResultDeletionApi.h" #include "AuthenticationResultDeletionApi.h"
#include "Helpers.h" #include "Helpers.h"
...@@ -21,71 +22,86 @@ namespace api { ...@@ -21,71 +22,86 @@ namespace api {
using namespace org::openapitools::server::helpers; using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
AuthenticationResultDeletionApi::AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router> rtr) { AuthenticationResultDeletionApi::AuthenticationResultDeletionApi(
router = rtr; std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
} }
void AuthenticationResultDeletionApi::init() { void AuthenticationResultDeletionApi::init() { setupRoutes(); }
setupRoutes();
}
void AuthenticationResultDeletionApi::setupRoutes() { void AuthenticationResultDeletionApi::setupRoutes() {
using namespace Pistache::Rest; using namespace Pistache::Rest;
Routes::Delete(*router, base + "/ue-authentications/:authCtxId/5g-aka-confirmation", Routes::bind(&AuthenticationResultDeletionApi::delete5g_aka_authentication_result_handler, this)); Routes::Delete(*router,
Routes::Delete(*router, base + "/ue-authentications/:authCtxId/eap-session", Routes::bind(&AuthenticationResultDeletionApi::delete_eap_authentication_result_handler, this)); base + "/ue-authentications/:authCtxId/5g-aka-confirmation",
Routes::bind(&AuthenticationResultDeletionApi::
delete5g_aka_authentication_result_handler,
this));
Routes::Delete(*router, base + "/ue-authentications/:authCtxId/eap-session",
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(Routes::bind(&AuthenticationResultDeletionApi::authentication_result_deletion_api_default_handler, this)); router->addCustomHandler(
Routes::bind(&AuthenticationResultDeletionApi::
authentication_result_deletion_api_default_handler,
this));
} }
void AuthenticationResultDeletionApi::delete5g_aka_authentication_result_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { void AuthenticationResultDeletionApi::
// Getting the path params delete5g_aka_authentication_result_handler(
auto authCtxId = request.param(":authCtxId").as<std::string>(); const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
try { // Getting the path params
this->delete5g_aka_authentication_result(authCtxId, response); auto authCtxId = request.param(":authCtxId").as<std::string>();
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>();
try {
this->delete_eap_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
try {
this->delete5g_aka_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
} }
void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>();
void AuthenticationResultDeletionApi::authentication_result_deletion_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) { try {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist"); this->delete_eap_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
} }
} void AuthenticationResultDeletionApi::
} authentication_result_deletion_api_default_handler(
} const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
} }
} // namespace api
} // 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.
*/
/* /*
* AuthenticationResultDeletionApi.h * AuthenticationResultDeletionApi.h
* *
* *
*/ */
#ifndef AuthenticationResultDeletionApi_H_ #ifndef AuthenticationResultDeletionApi_H_
#define AuthenticationResultDeletionApi_H_ #define AuthenticationResultDeletionApi_H_
#include <pistache/http.h> #include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h> #include <pistache/http_headers.h>
#include <pistache/optional.h> #include <pistache/optional.h>
#include <pistache/router.h>
#include "ProblemDetails.h" #include "ProblemDetails.h"
#include <string> #include <string>
...@@ -35,47 +34,55 @@ namespace api { ...@@ -35,47 +34,55 @@ 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(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); void delete5g_aka_authentication_result_handler(
void delete_eap_authentication_result_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); const Pistache::Rest::Request &request,
void authentication_result_deletion_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void delete_eap_authentication_result_handler(
std::shared_ptr<Pistache::Rest::Router> router; const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
/// <summary> void authentication_result_deletion_api_default_handler(
/// Deletes the authentication result in the UDM const Pistache::Rest::Request &request,
/// </summary> Pistache::Http::ResponseWriter response);
/// <remarks>
/// std::shared_ptr<Pistache::Rest::Router> router;
/// </remarks>
/// <param name="authCtxId"></param> /// <summary>
virtual void delete5g_aka_authentication_result(const std::string &authCtxId, Pistache::Http::ResponseWriter &response) = 0; /// Deletes the authentication result in the UDM
/// </summary>
/// <summary> /// <remarks>
/// Deletes the authentication result in the UDM ///
/// </summary> /// </remarks>
/// <remarks> /// <param name="authCtxId"></param>
/// virtual void delete5g_aka_authentication_result(
/// </remarks> const std::string &authCtxId,
/// <param name="authCtxId"></param> Pistache::Http::ResponseWriter &response) = 0;
virtual void delete_eap_authentication_result(const std::string &authCtxId, Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
/// Deletes the authentication result in the UDM
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
virtual void delete_eap_authentication_result(
const std::string &authCtxId,
Pistache::Http::ResponseWriter &response) = 0;
}; };
} } // namespace api
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthenticationResultDeletionApi_H_ */ #endif /* AuthenticationResultDeletionApi_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 "DefaultApi.h" #include "DefaultApi.h"
#include "Helpers.h" #include "Helpers.h"
...@@ -21,153 +22,172 @@ namespace api { ...@@ -21,153 +22,172 @@ namespace api {
using namespace org::openapitools::server::helpers; using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
DefaultApi::DefaultApi(std::shared_ptr<Pistache::Rest::Router> rtr) { DefaultApi::DefaultApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr; router = rtr;
} }
void DefaultApi::init() { void DefaultApi::init() { setupRoutes(); }
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::bind(&DefaultApi::eap_auth_method_handler, this)); Routes::Post(*router, base + "/ue-authentications/:authCtxId/eap-session",
Routes::Post(*router, base + "/rg-authentications", Routes::bind(&DefaultApi::rg_authentications_post_handler, this)); Routes::bind(&DefaultApi::eap_auth_method_handler, this));
Routes::Put(*router, base + "/ue-authentications/:authCtxId/5g-aka-confirmation", Routes::bind(&DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler, this)); Routes::Post(
Routes::Post(*router, base + "/ue-authentications/deregister", Routes::bind(&DefaultApi::ue_authentications_deregister_post_handler, this)); *router, base + "/rg-authentications",
Routes::Post(*router, base + "/ue-authentications", Routes::bind(&DefaultApi::ue_authentications_post_handler, this)); Routes::bind(&DefaultApi::rg_authentications_post_handler, this));
Routes::Put(
// Default handler, called when a route is not found *router, base + "/ue-authentications/:authCtxId/5g-aka-confirmation",
router->addCustomHandler(Routes::bind(&DefaultApi::default_api_default_handler, this)); Routes::bind(
&DefaultApi::
ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler,
this));
Routes::Post(
*router, base + "/ue-authentications/deregister",
Routes::bind(&DefaultApi::ue_authentications_deregister_post_handler,
this));
Routes::Post(
*router, base + "/ue-authentications",
Routes::bind(&DefaultApi::ue_authentications_post_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&DefaultApi::default_api_default_handler, this));
} }
void DefaultApi::eap_auth_method_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { void DefaultApi::eap_auth_method_handler(
// Getting the path params const Pistache::Rest::Request &request,
auto authCtxId = request.param(":authCtxId").as<std::string>(); Pistache::Http::ResponseWriter response) {
// Getting the path params
// Getting the body param auto authCtxId = request.param(":authCtxId").as<std::string>();
EapSession eapSession; // Getting the body param
try { EapSession eapSession;
nlohmann::json::parse(request.body()).get_to(eapSession);
this->eap_auth_method(authCtxId, eapSession, response); try {
} catch (nlohmann::detail::exception &e) { nlohmann::json::parse(request.body()).get_to(eapSession);
//send a 400 error this->eap_auth_method(authCtxId, eapSession, response);
response.send(Pistache::Http::Code::Bad_Request, e.what()); } catch (nlohmann::detail::exception &e) {
return; // send a 400 error
} catch (Pistache::Http::HttpError &e) { response.send(Pistache::Http::Code::Bad_Request, e.what());
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); return;
return; } catch (Pistache::Http::HttpError &e) {
} catch (std::exception &e) { response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
//send a 500 error return;
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); } catch (std::exception &e) {
return; // send a 500 error
} response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
} }
void DefaultApi::rg_authentications_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { void DefaultApi::rg_authentications_post_handler(
const Pistache::Rest::Request &request,
// Getting the body param Pistache::Http::ResponseWriter response) {
RgAuthenticationInfo rgAuthenticationInfo; // Getting the body param
try { RgAuthenticationInfo rgAuthenticationInfo;
nlohmann::json::parse(request.body()).get_to(rgAuthenticationInfo);
this->rg_authentications_post(rgAuthenticationInfo, response); try {
} catch (nlohmann::detail::exception &e) { nlohmann::json::parse(request.body()).get_to(rgAuthenticationInfo);
//send a 400 error this->rg_authentications_post(rgAuthenticationInfo, response);
response.send(Pistache::Http::Code::Bad_Request, e.what()); } catch (nlohmann::detail::exception &e) {
return; // send a 400 error
} catch (Pistache::Http::HttpError &e) { response.send(Pistache::Http::Code::Bad_Request, e.what());
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); return;
return; } catch (Pistache::Http::HttpError &e) {
} catch (std::exception &e) { response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
//send a 500 error return;
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); } catch (std::exception &e) {
return; // send a 500 error
} response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
} }
void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
// Getting the path params const Pistache::Rest::Request &request,
auto authCtxId = request.param(":authCtxId").as<std::string>(); Pistache::Http::ResponseWriter response) {
// Getting the path params
// Getting the body param auto authCtxId = request.param(":authCtxId").as<std::string>();
ConfirmationData confirmationData; // Getting the body param
try { ConfirmationData confirmationData;
nlohmann::json::parse(request.body()).get_to(confirmationData);
this->ue_authentications_auth_ctx_id5g_aka_confirmation_put(authCtxId, confirmationData, response); try {
} catch (nlohmann::detail::exception &e) { nlohmann::json::parse(request.body()).get_to(confirmationData);
//send a 400 error this->ue_authentications_auth_ctx_id5g_aka_confirmation_put(
response.send(Pistache::Http::Code::Bad_Request, e.what()); authCtxId, confirmationData, response);
return; } catch (nlohmann::detail::exception &e) {
} catch (Pistache::Http::HttpError &e) { // send a 400 error
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (std::exception &e) { } catch (Pistache::Http::HttpError &e) {
//send a 500 error response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); return;
return; } catch (std::exception &e) {
} // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
} }
void DefaultApi::ue_authentications_deregister_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { void DefaultApi::ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request,
// Getting the body param Pistache::Http::ResponseWriter response) {
DeregistrationInfo deregistrationInfo; // Getting the body param
try { DeregistrationInfo deregistrationInfo;
nlohmann::json::parse(request.body()).get_to(deregistrationInfo);
this->ue_authentications_deregister_post(deregistrationInfo, response); try {
} catch (nlohmann::detail::exception &e) { nlohmann::json::parse(request.body()).get_to(deregistrationInfo);
//send a 400 error this->ue_authentications_deregister_post(deregistrationInfo, response);
response.send(Pistache::Http::Code::Bad_Request, e.what()); } catch (nlohmann::detail::exception &e) {
return; // send a 400 error
} catch (Pistache::Http::HttpError &e) { response.send(Pistache::Http::Code::Bad_Request, e.what());
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); return;
return; } catch (Pistache::Http::HttpError &e) {
} catch (std::exception &e) { response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
//send a 500 error return;
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); } catch (std::exception &e) {
return; // send a 500 error
} response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
} }
void DefaultApi::ue_authentications_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { void DefaultApi::ue_authentications_post_handler(
const Pistache::Rest::Request &request,
// Getting the body param Pistache::Http::ResponseWriter response) {
AuthenticationInfo authenticationInfo; // Getting the body param
try { AuthenticationInfo authenticationInfo;
nlohmann::json::parse(request.body()).get_to(authenticationInfo);
this->ue_authentications_post(authenticationInfo, response); try {
} catch (nlohmann::detail::exception &e) { nlohmann::json::parse(request.body()).get_to(authenticationInfo);
//send a 400 error this->ue_authentications_post(authenticationInfo, response);
response.send(Pistache::Http::Code::Bad_Request, e.what()); } catch (nlohmann::detail::exception &e) {
return; // send a 400 error
} catch (Pistache::Http::HttpError &e) { response.send(Pistache::Http::Code::Bad_Request, e.what());
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); return;
return; } catch (Pistache::Http::HttpError &e) {
} catch (std::exception &e) { response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
//send a 500 error return;
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); } catch (std::exception &e) {
return; // send a 500 error
} response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
} }
void DefaultApi::default_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
} }
} void DefaultApi::default_api_default_handler(
} const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
} response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
} }
} // namespace api
} // 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.
*/
/* /*
* DefaultApi.h * DefaultApi.h
* *
* *
*/ */
#ifndef DefaultApi_H_ #ifndef DefaultApi_H_
#define DefaultApi_H_ #define DefaultApi_H_
#include <pistache/http.h> #include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h> #include <pistache/http_headers.h>
#include <pistache/optional.h> #include <pistache/optional.h>
#include <pistache/router.h>
#include "AuthenticationInfo.h" #include "AuthenticationInfo.h"
#include "ConfirmationData.h" #include "ConfirmationData.h"
...@@ -43,79 +42,95 @@ namespace api { ...@@ -43,79 +42,95 @@ 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, Pistache::Http::ResponseWriter response); void eap_auth_method_handler(const Pistache::Rest::Request &request,
void rg_authentications_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); void rg_authentications_post_handler(const Pistache::Rest::Request &request,
void ue_authentications_deregister_post_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 ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
void default_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response); const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router; void ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request,
/// <summary> Pistache::Http::ResponseWriter response);
/// void ue_authentications_post_handler(const Pistache::Rest::Request &request,
/// </summary> Pistache::Http::ResponseWriter response);
/// <remarks> void default_api_default_handler(const Pistache::Rest::Request &request,
/// Pistache::Http::ResponseWriter response);
/// </remarks>
/// <param name="authCtxId"></param> std::shared_ptr<Pistache::Rest::Router> router;
/// <param name="eapSession"> (optional)</param>
virtual void eap_auth_method(const std::string &authCtxId, const EapSession &eapSession, Pistache::Http::ResponseWriter &response) = 0; /// <summary>
///
/// <summary> /// </summary>
/// /// <remarks>
/// </summary> ///
/// <remarks> /// </remarks>
/// /// <param name="authCtxId"></param>
/// </remarks> /// <param name="eapSession"> (optional)</param>
/// <param name="rgAuthenticationInfo"></param> virtual void eap_auth_method(const std::string &authCtxId,
virtual void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, Pistache::Http::ResponseWriter &response) = 0; const EapSession &eapSession,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
/// /// <summary>
/// </summary> ///
/// <remarks> /// </summary>
/// /// <remarks>
/// </remarks> ///
/// <param name="authCtxId"></param> /// </remarks>
/// <param name="confirmationData"> (optional)</param> /// <param name="rgAuthenticationInfo"></param>
virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put(const std::string &authCtxId, const ConfirmationData &confirmationData, Pistache::Http::ResponseWriter &response) = 0; virtual void
rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo,
/// <summary> Pistache::Http::ResponseWriter &response) = 0;
///
/// </summary> /// <summary>
/// <remarks> ///
/// /// </summary>
/// </remarks> /// <remarks>
/// <param name="deregistrationInfo"></param> ///
virtual void ue_authentications_deregister_post(const DeregistrationInfo &deregistrationInfo, Pistache::Http::ResponseWriter &response) = 0; /// </remarks>
/// <param name="authCtxId"></param>
/// <summary> /// <param name="confirmationData"> (optional)</param>
/// virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
/// </summary> const std::string &authCtxId, const ConfirmationData &confirmationData,
/// <remarks> Pistache::Http::ResponseWriter &response) = 0;
///
/// </remarks> /// <summary>
/// <param name="authenticationInfo"></param> ///
virtual void ue_authentications_post(const AuthenticationInfo &authenticationInfo, Pistache::Http::ResponseWriter &response) = 0; /// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="deregistrationInfo"></param>
virtual void ue_authentications_deregister_post(
const DeregistrationInfo &deregistrationInfo,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authenticationInfo"></param>
virtual void
ue_authentications_post(const AuthenticationInfo &authenticationInfo,
Pistache::Http::ResponseWriter &response) = 0;
}; };
} } // namespace api
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* DefaultApi_H_ */ #endif /* DefaultApi_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 "AuthenticationResultDeletionApiImpl.h" #include "AuthenticationResultDeletionApiImpl.h"
...@@ -19,19 +20,20 @@ namespace api { ...@@ -19,19 +20,20 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr) AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(
: AuthenticationResultDeletionApi(rtr) std::shared_ptr<Pistache::Rest::Router> rtr)
{ } : AuthenticationResultDeletionApi(rtr) {}
void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result(const std::string &authCtxId, Pistache::Http::ResponseWriter &response) { void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result(
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); const std::string &authCtxId, Pistache::Http::ResponseWriter &response) {
} response.send(Pistache::Http::Code::Ok, "Do some magic\n");
void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result(const std::string &authCtxId, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
}
}
} }
void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result(
const std::string &authCtxId, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
} }
} // namespace api
} // 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.
*/
/* /*
* AuthenticationResultDeletionApiImpl.h * AuthenticationResultDeletionApiImpl.h
* *
* *
*/ */
#ifndef AUTHENTICATION_RESULT_DELETION_API_IMPL_H_ #ifndef AUTHENTICATION_RESULT_DELETION_API_IMPL_H_
#define AUTHENTICATION_RESULT_DELETION_API_IMPL_H_ #define AUTHENTICATION_RESULT_DELETION_API_IMPL_H_
#include <memory>
#include <pistache/endpoint.h> #include <pistache/endpoint.h>
#include <pistache/http.h> #include <pistache/http.h>
#include <pistache/router.h> #include <pistache/router.h>
#include <memory>
#include <AuthenticationResultDeletionApi.h> #include <AuthenticationResultDeletionApi.h>
...@@ -39,21 +39,23 @@ namespace api { ...@@ -39,21 +39,23 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApiImpl : public org::openapitools::server::api::AuthenticationResultDeletionApi { class AuthenticationResultDeletionApiImpl
: public org::openapitools::server::api::AuthenticationResultDeletionApi {
public: public:
AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router>); AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router>);
~AuthenticationResultDeletionApiImpl() {} ~AuthenticationResultDeletionApiImpl() {}
void delete5g_aka_authentication_result(const std::string &authCtxId, Pistache::Http::ResponseWriter &response); void
void delete_eap_authentication_result(const std::string &authCtxId, Pistache::Http::ResponseWriter &response); delete5g_aka_authentication_result(const std::string &authCtxId,
Pistache::Http::ResponseWriter &response);
void
delete_eap_authentication_result(const std::string &authCtxId,
Pistache::Http::ResponseWriter &response);
}; };
} } // namespace api
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif #endif
\ 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 "DefaultApiImpl.h" #include "DefaultApiImpl.h"
...@@ -20,27 +21,35 @@ namespace api { ...@@ -20,27 +21,35 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
DefaultApiImpl::DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr) DefaultApiImpl::DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr)
: DefaultApi(rtr) : DefaultApi(rtr) {}
{ }
void DefaultApiImpl::eap_auth_method(const std::string &authCtxId, const EapSession &eapSession, Pistache::Http::ResponseWriter &response) { void DefaultApiImpl::eap_auth_method(const std::string &authCtxId,
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); const EapSession &eapSession,
} Pistache::Http::ResponseWriter &response) {
void DefaultApiImpl::rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, 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 DefaultApiImpl::rg_authentications_post(
void DefaultApiImpl::ue_authentications_auth_ctx_id5g_aka_confirmation_put(const std::string &authCtxId, const ConfirmationData &confirmationData, Pistache::Http::ResponseWriter &response) { const RgAuthenticationInfo &rgAuthenticationInfo,
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); Pistache::Http::ResponseWriter &response) {
} response.send(Pistache::Http::Code::Ok, "Do some magic\n");
void DefaultApiImpl::ue_authentications_deregister_post(const DeregistrationInfo &deregistrationInfo, Pistache::Http::ResponseWriter &response) { }
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); void DefaultApiImpl::ue_authentications_auth_ctx_id5g_aka_confirmation_put(
} const std::string &authCtxId, const ConfirmationData &confirmationData,
void DefaultApiImpl::ue_authentications_post(const AuthenticationInfo &authenticationInfo, Pistache::Http::ResponseWriter &response) { 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 DefaultApiImpl::ue_authentications_deregister_post(
} const DeregistrationInfo &deregistrationInfo,
} Pistache::Http::ResponseWriter &response) {
} response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void DefaultApiImpl::ue_authentications_post(
const AuthenticationInfo &authenticationInfo,
Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
} }
} // namespace api
} // 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.
*/
/* /*
* DefaultApiImpl.h * DefaultApiImpl.h
* *
* *
*/ */
#ifndef DEFAULT_API_IMPL_H_ #ifndef DEFAULT_API_IMPL_H_
#define DEFAULT_API_IMPL_H_ #define DEFAULT_API_IMPL_H_
#include <memory>
#include <pistache/endpoint.h> #include <pistache/endpoint.h>
#include <pistache/http.h> #include <pistache/http.h>
#include <pistache/router.h> #include <pistache/router.h>
#include <memory>
#include <DefaultApi.h> #include <DefaultApi.h>
...@@ -49,22 +49,27 @@ using namespace org::openapitools::server::model; ...@@ -49,22 +49,27 @@ 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>); DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router>);
~DefaultApiImpl() {} ~DefaultApiImpl() {}
void eap_auth_method(const std::string &authCtxId, const EapSession &eapSession, Pistache::Http::ResponseWriter &response); void eap_auth_method(const std::string &authCtxId,
void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, Pistache::Http::ResponseWriter &response); const EapSession &eapSession,
void ue_authentications_auth_ctx_id5g_aka_confirmation_put(const std::string &authCtxId, const ConfirmationData &confirmationData, Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter &response);
void ue_authentications_deregister_post(const DeregistrationInfo &deregistrationInfo, Pistache::Http::ResponseWriter &response); void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo,
void ue_authentications_post(const AuthenticationInfo &authenticationInfo, Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter &response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
const std::string &authCtxId, const ConfirmationData &confirmationData,
Pistache::Http::ResponseWriter &response);
void ue_authentications_deregister_post(
const DeregistrationInfo &deregistrationInfo,
Pistache::Http::ResponseWriter &response);
void ue_authentications_post(const AuthenticationInfo &authenticationInfo,
Pistache::Http::ResponseWriter &response);
}; };
} } // namespace api
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif #endif
\ 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 "pistache/endpoint.h" #include "pistache/endpoint.h"
#include "pistache/http.h" #include "pistache/http.h"
#include "pistache/router.h" #include "pistache/router.h"
#ifdef __linux__ #ifdef __linux__
#include <vector>
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
#include <vector>
#endif #endif
#include "AuthenticationResultDeletionApiImpl.h" #include "AuthenticationResultDeletionApiImpl.h"
#include "DefaultApiImpl.h" #include "DefaultApiImpl.h"
#define PISTACHE_SERVER_THREADS 2 #define PISTACHE_SERVER_THREADS 2
#define PISTACHE_SERVER_MAX_REQUEST_SIZE 32768 #define PISTACHE_SERVER_MAX_REQUEST_SIZE 32768
#define PISTACHE_SERVER_MAX_RESPONSE_SIZE 32768 #define PISTACHE_SERVER_MAX_RESPONSE_SIZE 32768
static Pistache::Http::Endpoint *httpEndpoint; static Pistache::Http::Endpoint *httpEndpoint;
#ifdef __linux__ #ifdef __linux__
static void sigHandler [[noreturn]] (int sig){ static void sigHandler [[noreturn]] (int sig) {
switch(sig){ switch (sig) {
case SIGINT: case SIGINT:
case SIGQUIT: case SIGQUIT:
case SIGTERM: case SIGTERM:
case SIGHUP: case SIGHUP:
default: default:
httpEndpoint->shutdown(); httpEndpoint->shutdown();
break; break;
} }
exit(0); exit(0);
} }
static void setUpUnixSignals(std::vector<int> quitSignals) { static void setUpUnixSignals(std::vector<int> quitSignals) {
sigset_t blocking_mask; sigset_t blocking_mask;
sigemptyset(&blocking_mask); sigemptyset(&blocking_mask);
for (auto sig : quitSignals) for (auto sig : quitSignals)
sigaddset(&blocking_mask, sig); sigaddset(&blocking_mask, sig);
struct sigaction sa; struct sigaction sa;
sa.sa_handler = sigHandler; sa.sa_handler = sigHandler;
sa.sa_mask = blocking_mask; sa.sa_mask = blocking_mask;
sa.sa_flags = 0; sa.sa_flags = 0;
for (auto sig : quitSignals) for (auto sig : quitSignals)
sigaction(sig, &sa, nullptr); sigaction(sig, &sa, nullptr);
} }
#endif #endif
...@@ -62,31 +62,29 @@ using namespace org::openapitools::server::api; ...@@ -62,31 +62,29 @@ using namespace org::openapitools::server::api;
int main() { int main() {
#ifdef __linux__ #ifdef __linux__
std::vector<int> sigs{SIGQUIT, SIGINT, SIGTERM, SIGHUP}; std::vector<int> sigs{SIGQUIT, SIGINT, SIGTERM, SIGHUP};
setUpUnixSignals(sigs); setUpUnixSignals(sigs);
#endif #endif
Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(8080)); Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(8080));
httpEndpoint = new Pistache::Http::Endpoint((addr));
auto router = std::make_shared<Pistache::Rest::Router>();
auto opts = Pistache::Http::Endpoint::options() httpEndpoint = new Pistache::Http::Endpoint((addr));
.threads(PISTACHE_SERVER_THREADS); auto router = std::make_shared<Pistache::Rest::Router>();
opts.flags(Pistache::Tcp::Options::ReuseAddr);
opts.maxRequestSize(PISTACHE_SERVER_MAX_REQUEST_SIZE);
opts.maxResponseSize(PISTACHE_SERVER_MAX_RESPONSE_SIZE);
httpEndpoint->init(opts);
auto opts =
AuthenticationResultDeletionApiImpl AuthenticationResultDeletionApiserver(router); Pistache::Http::Endpoint::options().threads(PISTACHE_SERVER_THREADS);
AuthenticationResultDeletionApiserver.init(); opts.flags(Pistache::Tcp::Options::ReuseAddr);
DefaultApiImpl DefaultApiserver(router); opts.maxRequestSize(PISTACHE_SERVER_MAX_REQUEST_SIZE);
DefaultApiserver.init(); opts.maxResponseSize(PISTACHE_SERVER_MAX_RESPONSE_SIZE);
httpEndpoint->init(opts);
httpEndpoint->setHandler(router->handler()); AuthenticationResultDeletionApiImpl AuthenticationResultDeletionApiserver(
httpEndpoint->serve(); router);
AuthenticationResultDeletionApiserver.init();
DefaultApiImpl DefaultApiserver(router);
DefaultApiserver.init();
httpEndpoint->shutdown(); httpEndpoint->setHandler(router->handler());
httpEndpoint->serve();
httpEndpoint->shutdown();
} }
/** /**
* 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 "AuthResult.h" #include "AuthResult.h"
...@@ -18,32 +18,19 @@ namespace openapitools { ...@@ -18,32 +18,19 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
AuthResult::AuthResult() AuthResult::AuthResult() {}
{
}
AuthResult::~AuthResult()
{
}
void AuthResult::validate() AuthResult::~AuthResult() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AuthResult& o) void AuthResult::validate() {
{ // TODO: implement validation
j = nlohmann::json();
} }
void from_json(const nlohmann::json& j, AuthResult& o) void to_json(nlohmann::json &j, const AuthResult &o) { j = nlohmann::json(); }
{
}
void from_json(const nlohmann::json &j, AuthResult &o) {}
} } // 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.
*/
/* /*
* 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);
friend void from_json(const nlohmann::json& j, AuthResult& o);
protected: protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthResult_H_ */ #endif /* AuthResult_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 "AuthType.h" #include "AuthType.h"
...@@ -18,32 +18,19 @@ namespace openapitools { ...@@ -18,32 +18,19 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
AuthType::AuthType() AuthType::AuthType() {}
{
}
AuthType::~AuthType()
{
}
void AuthType::validate() AuthType::~AuthType() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AuthType& o) void AuthType::validate() {
{ // TODO: implement validation
j = nlohmann::json();
} }
void from_json(const nlohmann::json& j, AuthType& o) void to_json(nlohmann::json &j, const AuthType &o) { j = nlohmann::json(); }
{
}
void from_json(const nlohmann::json &j, AuthType &o) {}
} } // 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.
*/
/* /*
* 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);
friend void from_json(const nlohmann::json& j, AuthType& o);
protected: protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthType_H_ */ #endif /* AuthType_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 "AuthenticationInfo.h" #include "AuthenticationInfo.h"
...@@ -18,233 +18,157 @@ namespace openapitools { ...@@ -18,233 +18,157 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
AuthenticationInfo::AuthenticationInfo() AuthenticationInfo::AuthenticationInfo() {
{ m_SupiOrSuci = "";
m_SupiOrSuci = ""; m_ServingNetworkName = "";
m_ServingNetworkName = ""; m_ResynchronizationInfoIsSet = false;
m_ResynchronizationInfoIsSet = false; m_Pei = "";
m_Pei = ""; m_PeiIsSet = false;
m_PeiIsSet = false; m_TraceDataIsSet = false;
m_TraceDataIsSet = false; m_UdmGroupId = "";
m_UdmGroupId = ""; m_UdmGroupIdIsSet = false;
m_UdmGroupIdIsSet = false; m_RoutingIndicator = "";
m_RoutingIndicator = ""; m_RoutingIndicatorIsSet = false;
m_RoutingIndicatorIsSet = false; m_CellCagInfoIsSet = false;
m_CellCagInfoIsSet = false; m_N5gcInd = false;
m_N5gcInd = false; m_N5gcIndIsSet = false;
m_N5gcIndIsSet = false;
}
AuthenticationInfo::~AuthenticationInfo()
{
} }
void AuthenticationInfo::validate() AuthenticationInfo::~AuthenticationInfo() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AuthenticationInfo& o) void AuthenticationInfo::validate() {
{ // TODO: implement validation
j = nlohmann::json();
j["supiOrSuci"] = o.m_SupiOrSuci;
j["servingNetworkName"] = o.m_ServingNetworkName;
if(o.resynchronizationInfoIsSet())
j["resynchronizationInfo"] = o.m_ResynchronizationInfo;
if(o.peiIsSet())
j["pei"] = o.m_Pei;
if(o.traceDataIsSet())
j["traceData"] = o.m_TraceData;
if(o.udmGroupIdIsSet())
j["udmGroupId"] = o.m_UdmGroupId;
if(o.routingIndicatorIsSet())
j["routingIndicator"] = o.m_RoutingIndicator;
if(o.cellCagInfoIsSet() || !o.m_CellCagInfo.empty())
j["cellCagInfo"] = o.m_CellCagInfo;
if(o.n5gcIndIsSet())
j["n5gcInd"] = o.m_N5gcInd;
} }
void from_json(const nlohmann::json& j, AuthenticationInfo& o) void to_json(nlohmann::json &j, const AuthenticationInfo &o) {
{ j = nlohmann::json();
j.at("supiOrSuci").get_to(o.m_SupiOrSuci); j["supiOrSuci"] = o.m_SupiOrSuci;
j.at("servingNetworkName").get_to(o.m_ServingNetworkName); j["servingNetworkName"] = o.m_ServingNetworkName;
if(j.find("resynchronizationInfo") != j.end()) if (o.resynchronizationInfoIsSet())
{ j["resynchronizationInfo"] = o.m_ResynchronizationInfo;
j.at("resynchronizationInfo").get_to(o.m_ResynchronizationInfo); if (o.peiIsSet())
o.m_ResynchronizationInfoIsSet = true; j["pei"] = o.m_Pei;
} if (o.traceDataIsSet())
if(j.find("pei") != j.end()) j["traceData"] = o.m_TraceData;
{ if (o.udmGroupIdIsSet())
j.at("pei").get_to(o.m_Pei); j["udmGroupId"] = o.m_UdmGroupId;
o.m_PeiIsSet = true; if (o.routingIndicatorIsSet())
} j["routingIndicator"] = o.m_RoutingIndicator;
if(j.find("traceData") != j.end()) if (o.cellCagInfoIsSet() || !o.m_CellCagInfo.empty())
{ j["cellCagInfo"] = o.m_CellCagInfo;
j.at("traceData").get_to(o.m_TraceData); if (o.n5gcIndIsSet())
o.m_TraceDataIsSet = true; j["n5gcInd"] = o.m_N5gcInd;
}
if(j.find("udmGroupId") != j.end())
{
j.at("udmGroupId").get_to(o.m_UdmGroupId);
o.m_UdmGroupIdIsSet = true;
}
if(j.find("routingIndicator") != j.end())
{
j.at("routingIndicator").get_to(o.m_RoutingIndicator);
o.m_RoutingIndicatorIsSet = true;
}
if(j.find("cellCagInfo") != j.end())
{
j.at("cellCagInfo").get_to(o.m_CellCagInfo);
o.m_CellCagInfoIsSet = true;
}
if(j.find("n5gcInd") != j.end())
{
j.at("n5gcInd").get_to(o.m_N5gcInd);
o.m_N5gcIndIsSet = true;
}
} }
std::string AuthenticationInfo::getSupiOrSuci() const void from_json(const nlohmann::json &j, AuthenticationInfo &o) {
{ j.at("supiOrSuci").get_to(o.m_SupiOrSuci);
return m_SupiOrSuci; j.at("servingNetworkName").get_to(o.m_ServingNetworkName);
} if (j.find("resynchronizationInfo") != j.end()) {
void AuthenticationInfo::setSupiOrSuci(std::string const& value) j.at("resynchronizationInfo").get_to(o.m_ResynchronizationInfo);
{ o.m_ResynchronizationInfoIsSet = true;
m_SupiOrSuci = value; }
} if (j.find("pei") != j.end()) {
std::string AuthenticationInfo::getServingNetworkName() const j.at("pei").get_to(o.m_Pei);
{ o.m_PeiIsSet = true;
return m_ServingNetworkName; }
} if (j.find("traceData") != j.end()) {
void AuthenticationInfo::setServingNetworkName(std::string const& value) j.at("traceData").get_to(o.m_TraceData);
{ o.m_TraceDataIsSet = true;
m_ServingNetworkName = value; }
} if (j.find("udmGroupId") != j.end()) {
ResynchronizationInfo AuthenticationInfo::getResynchronizationInfo() const j.at("udmGroupId").get_to(o.m_UdmGroupId);
{ o.m_UdmGroupIdIsSet = true;
return m_ResynchronizationInfo; }
} if (j.find("routingIndicator") != j.end()) {
void AuthenticationInfo::setResynchronizationInfo(ResynchronizationInfo const& value) j.at("routingIndicator").get_to(o.m_RoutingIndicator);
{ o.m_RoutingIndicatorIsSet = true;
m_ResynchronizationInfo = value; }
m_ResynchronizationInfoIsSet = true; if (j.find("cellCagInfo") != j.end()) {
} j.at("cellCagInfo").get_to(o.m_CellCagInfo);
bool AuthenticationInfo::resynchronizationInfoIsSet() const o.m_CellCagInfoIsSet = true;
{ }
return m_ResynchronizationInfoIsSet; if (j.find("n5gcInd") != j.end()) {
} j.at("n5gcInd").get_to(o.m_N5gcInd);
void AuthenticationInfo::unsetResynchronizationInfo() o.m_N5gcIndIsSet = true;
{ }
m_ResynchronizationInfoIsSet = false;
}
std::string AuthenticationInfo::getPei() const
{
return m_Pei;
}
void AuthenticationInfo::setPei(std::string const& value)
{
m_Pei = value;
m_PeiIsSet = true;
}
bool AuthenticationInfo::peiIsSet() const
{
return m_PeiIsSet;
}
void AuthenticationInfo::unsetPei()
{
m_PeiIsSet = false;
}
TraceData AuthenticationInfo::getTraceData() const
{
return m_TraceData;
}
void AuthenticationInfo::setTraceData(TraceData const& value)
{
m_TraceData = value;
m_TraceDataIsSet = true;
}
bool AuthenticationInfo::traceDataIsSet() const
{
return m_TraceDataIsSet;
}
void AuthenticationInfo::unsetTraceData()
{
m_TraceDataIsSet = false;
}
std::string AuthenticationInfo::getUdmGroupId() const
{
return m_UdmGroupId;
}
void AuthenticationInfo::setUdmGroupId(std::string const& value)
{
m_UdmGroupId = value;
m_UdmGroupIdIsSet = true;
}
bool AuthenticationInfo::udmGroupIdIsSet() const
{
return m_UdmGroupIdIsSet;
}
void AuthenticationInfo::unsetUdmGroupId()
{
m_UdmGroupIdIsSet = false;
}
std::string AuthenticationInfo::getRoutingIndicator() const
{
return m_RoutingIndicator;
}
void AuthenticationInfo::setRoutingIndicator(std::string const& value)
{
m_RoutingIndicator = value;
m_RoutingIndicatorIsSet = true;
}
bool AuthenticationInfo::routingIndicatorIsSet() const
{
return m_RoutingIndicatorIsSet;
}
void AuthenticationInfo::unsetRoutingIndicator()
{
m_RoutingIndicatorIsSet = false;
}
std::vector<std::string>& AuthenticationInfo::getCellCagInfo()
{
return m_CellCagInfo;
}
void AuthenticationInfo::setCellCagInfo(std::vector<std::string> const& value)
{
m_CellCagInfo = value;
m_CellCagInfoIsSet = true;
}
bool AuthenticationInfo::cellCagInfoIsSet() const
{
return m_CellCagInfoIsSet;
}
void AuthenticationInfo::unsetCellCagInfo()
{
m_CellCagInfoIsSet = false;
}
bool AuthenticationInfo::isN5gcInd() const
{
return m_N5gcInd;
}
void AuthenticationInfo::setN5gcInd(bool const value)
{
m_N5gcInd = value;
m_N5gcIndIsSet = true;
}
bool AuthenticationInfo::n5gcIndIsSet() const
{
return m_N5gcIndIsSet;
}
void AuthenticationInfo::unsetN5gcInd()
{
m_N5gcIndIsSet = false;
} }
} std::string AuthenticationInfo::getSupiOrSuci() const { return m_SupiOrSuci; }
} void AuthenticationInfo::setSupiOrSuci(std::string const &value) {
} m_SupiOrSuci = value;
} }
std::string AuthenticationInfo::getServingNetworkName() const {
return m_ServingNetworkName;
}
void AuthenticationInfo::setServingNetworkName(std::string const &value) {
m_ServingNetworkName = value;
}
ResynchronizationInfo AuthenticationInfo::getResynchronizationInfo() const {
return m_ResynchronizationInfo;
}
void AuthenticationInfo::setResynchronizationInfo(
ResynchronizationInfo const &value) {
m_ResynchronizationInfo = value;
m_ResynchronizationInfoIsSet = true;
}
bool AuthenticationInfo::resynchronizationInfoIsSet() const {
return m_ResynchronizationInfoIsSet;
}
void AuthenticationInfo::unsetResynchronizationInfo() {
m_ResynchronizationInfoIsSet = false;
}
std::string AuthenticationInfo::getPei() const { return m_Pei; }
void AuthenticationInfo::setPei(std::string const &value) {
m_Pei = value;
m_PeiIsSet = true;
}
bool AuthenticationInfo::peiIsSet() const { return m_PeiIsSet; }
void AuthenticationInfo::unsetPei() { m_PeiIsSet = false; }
TraceData AuthenticationInfo::getTraceData() const { return m_TraceData; }
void AuthenticationInfo::setTraceData(TraceData const &value) {
m_TraceData = value;
m_TraceDataIsSet = true;
}
bool AuthenticationInfo::traceDataIsSet() const { return m_TraceDataIsSet; }
void AuthenticationInfo::unsetTraceData() { m_TraceDataIsSet = false; }
std::string AuthenticationInfo::getUdmGroupId() const { return m_UdmGroupId; }
void AuthenticationInfo::setUdmGroupId(std::string const &value) {
m_UdmGroupId = value;
m_UdmGroupIdIsSet = true;
}
bool AuthenticationInfo::udmGroupIdIsSet() const { return m_UdmGroupIdIsSet; }
void AuthenticationInfo::unsetUdmGroupId() { m_UdmGroupIdIsSet = false; }
std::string AuthenticationInfo::getRoutingIndicator() const {
return m_RoutingIndicator;
}
void AuthenticationInfo::setRoutingIndicator(std::string const &value) {
m_RoutingIndicator = value;
m_RoutingIndicatorIsSet = true;
}
bool AuthenticationInfo::routingIndicatorIsSet() const {
return m_RoutingIndicatorIsSet;
}
void AuthenticationInfo::unsetRoutingIndicator() {
m_RoutingIndicatorIsSet = false;
}
std::vector<std::string> &AuthenticationInfo::getCellCagInfo() {
return m_CellCagInfo;
}
void AuthenticationInfo::setCellCagInfo(std::vector<std::string> const &value) {
m_CellCagInfo = value;
m_CellCagInfoIsSet = true;
}
bool AuthenticationInfo::cellCagInfoIsSet() const { return m_CellCagInfoIsSet; }
void AuthenticationInfo::unsetCellCagInfo() { m_CellCagInfoIsSet = false; }
bool AuthenticationInfo::isN5gcInd() const { return m_N5gcInd; }
void AuthenticationInfo::setN5gcInd(bool const value) {
m_N5gcInd = value;
m_N5gcIndIsSet = true;
}
bool AuthenticationInfo::n5gcIndIsSet() const { return m_N5gcIndIsSet; }
void AuthenticationInfo::unsetN5gcInd() { m_N5gcIndIsSet = 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.
*/
/* /*
* AuthenticationInfo.h * AuthenticationInfo.h
* *
* *
*/ */
#ifndef AuthenticationInfo_H_ #ifndef AuthenticationInfo_H_
#define AuthenticationInfo_H_ #define AuthenticationInfo_H_
#include <string>
#include "ResynchronizationInfo.h" #include "ResynchronizationInfo.h"
#include "TraceData.h" #include "TraceData.h"
#include <vector>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -31,105 +31,105 @@ namespace server { ...@@ -31,105 +31,105 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class AuthenticationInfo class AuthenticationInfo {
{
public: public:
AuthenticationInfo(); AuthenticationInfo();
virtual ~AuthenticationInfo(); virtual ~AuthenticationInfo();
void validate();
void validate(); /////////////////////////////////////////////
/// AuthenticationInfo members
///////////////////////////////////////////// /// <summary>
/// AuthenticationInfo members ///
/// </summary>
std::string getSupiOrSuci() const;
void setSupiOrSuci(std::string const &value);
/// <summary>
///
/// </summary>
std::string getServingNetworkName() const;
void setServingNetworkName(std::string const &value);
/// <summary>
///
/// </summary>
ResynchronizationInfo getResynchronizationInfo() const;
void setResynchronizationInfo(ResynchronizationInfo const &value);
bool resynchronizationInfoIsSet() const;
void unsetResynchronizationInfo();
/// <summary>
///
/// </summary>
std::string getPei() const;
void setPei(std::string const &value);
bool peiIsSet() const;
void unsetPei();
/// <summary>
///
/// </summary>
TraceData getTraceData() const;
void setTraceData(TraceData const &value);
bool traceDataIsSet() const;
void unsetTraceData();
/// <summary>
///
/// </summary>
std::string getUdmGroupId() const;
void setUdmGroupId(std::string const &value);
bool udmGroupIdIsSet() const;
void unsetUdmGroupId();
/// <summary>
///
/// </summary>
std::string getRoutingIndicator() const;
void setRoutingIndicator(std::string const &value);
bool routingIndicatorIsSet() const;
void unsetRoutingIndicator();
/// <summary>
///
/// </summary>
std::vector<std::string> &getCellCagInfo();
void setCellCagInfo(std::vector<std::string> const &value);
bool cellCagInfoIsSet() const;
void unsetCellCagInfo();
/// <summary>
///
/// </summary>
bool isN5gcInd() const;
void setN5gcInd(bool const value);
bool n5gcIndIsSet() const;
void unsetN5gcInd();
/// <summary> friend void to_json(nlohmann::json &j, const AuthenticationInfo &o);
/// friend void from_json(const nlohmann::json &j, AuthenticationInfo &o);
/// </summary>
std::string getSupiOrSuci() const;
void setSupiOrSuci(std::string const& value);
/// <summary>
///
/// </summary>
std::string getServingNetworkName() const;
void setServingNetworkName(std::string const& value);
/// <summary>
///
/// </summary>
ResynchronizationInfo getResynchronizationInfo() const;
void setResynchronizationInfo(ResynchronizationInfo const& value);
bool resynchronizationInfoIsSet() const;
void unsetResynchronizationInfo();
/// <summary>
///
/// </summary>
std::string getPei() const;
void setPei(std::string const& value);
bool peiIsSet() const;
void unsetPei();
/// <summary>
///
/// </summary>
TraceData getTraceData() const;
void setTraceData(TraceData const& value);
bool traceDataIsSet() const;
void unsetTraceData();
/// <summary>
///
/// </summary>
std::string getUdmGroupId() const;
void setUdmGroupId(std::string const& value);
bool udmGroupIdIsSet() const;
void unsetUdmGroupId();
/// <summary>
///
/// </summary>
std::string getRoutingIndicator() const;
void setRoutingIndicator(std::string const& value);
bool routingIndicatorIsSet() const;
void unsetRoutingIndicator();
/// <summary>
///
/// </summary>
std::vector<std::string>& getCellCagInfo();
void setCellCagInfo(std::vector<std::string> const& value);
bool cellCagInfoIsSet() const;
void unsetCellCagInfo();
/// <summary>
///
/// </summary>
bool isN5gcInd() const;
void setN5gcInd(bool const value);
bool n5gcIndIsSet() const;
void unsetN5gcInd();
friend void to_json(nlohmann::json& j, const 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;
ResynchronizationInfo m_ResynchronizationInfo; ResynchronizationInfo m_ResynchronizationInfo;
bool m_ResynchronizationInfoIsSet; bool m_ResynchronizationInfoIsSet;
std::string m_Pei; std::string m_Pei;
bool m_PeiIsSet; bool m_PeiIsSet;
TraceData m_TraceData; TraceData m_TraceData;
bool m_TraceDataIsSet; bool m_TraceDataIsSet;
std::string m_UdmGroupId; std::string m_UdmGroupId;
bool m_UdmGroupIdIsSet; bool m_UdmGroupIdIsSet;
std::string m_RoutingIndicator; std::string m_RoutingIndicator;
bool m_RoutingIndicatorIsSet; bool m_RoutingIndicatorIsSet;
std::vector<std::string> m_CellCagInfo; std::vector<std::string> m_CellCagInfo;
bool m_CellCagInfoIsSet; bool m_CellCagInfoIsSet;
bool m_N5gcInd; bool m_N5gcInd;
bool m_N5gcIndIsSet; bool m_N5gcIndIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // 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,39 @@ namespace openapitools { ...@@ -18,65 +18,39 @@ 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; }
{ void Av5gAka::setRand(std::string const &value) { m_Rand = value; }
return m_Rand; std::string Av5gAka::getHxresStar() const { return m_HxresStar; }
} void Av5gAka::setHxresStar(std::string const &value) { m_HxresStar = value; }
void Av5gAka::setRand(std::string const& value) std::string Av5gAka::getAutn() const { return m_Autn; }
{ void Av5gAka::setAutn(std::string const &value) { m_Autn = value; }
m_Rand = value;
}
std::string Av5gAka::getHxresStar() const
{
return m_HxresStar;
}
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 <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -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,29 @@ namespace openapitools { ...@@ -18,43 +18,29 @@ 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; }
{ void ConfirmationData::setResStar(std::string const &value) {
return m_ResStar; 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 <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -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,94 +18,62 @@ namespace openapitools { ...@@ -18,94 +18,62 @@ 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())
if(o.supiIsSet()) j["supi"] = o.m_Supi;
j["supi"] = o.m_Supi; if (o.kseafIsSet())
if(o.kseafIsSet()) j["kseaf"] = o.m_Kseaf;
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 {
{ return m_AuthResult;
return m_AuthResult; }
} void ConfirmationDataResponse::setAuthResult(AuthResult const &value) {
void ConfirmationDataResponse::setAuthResult(AuthResult const& value) m_AuthResult = value;
{ }
m_AuthResult = value; std::string ConfirmationDataResponse::getSupi() const { return m_Supi; }
} void ConfirmationDataResponse::setSupi(std::string const &value) {
std::string ConfirmationDataResponse::getSupi() const m_Supi = value;
{ m_SupiIsSet = true;
return m_Supi; }
} bool ConfirmationDataResponse::supiIsSet() const { return m_SupiIsSet; }
void ConfirmationDataResponse::setSupi(std::string const& value) void ConfirmationDataResponse::unsetSupi() { m_SupiIsSet = false; }
{ std::string ConfirmationDataResponse::getKseaf() const { return m_Kseaf; }
m_Supi = value; void ConfirmationDataResponse::setKseaf(std::string const &value) {
m_SupiIsSet = true; m_Kseaf = value;
} m_KseafIsSet = true;
bool ConfirmationDataResponse::supiIsSet() const }
{ bool ConfirmationDataResponse::kseafIsSet() const { return m_KseafIsSet; }
return m_SupiIsSet; void ConfirmationDataResponse::unsetKseaf() { m_KseafIsSet = false; }
}
void ConfirmationDataResponse::unsetSupi()
{
m_SupiIsSet = false;
}
std::string ConfirmationDataResponse::getKseaf() const
{
return m_Kseaf;
}
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
/** /**
* 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.
*/
/* /*
* ConfirmationDataResponse.h * ConfirmationDataResponse.h
* *
* *
*/ */
#ifndef ConfirmationDataResponse_H_ #ifndef ConfirmationDataResponse_H_
#define ConfirmationDataResponse_H_ #define ConfirmationDataResponse_H_
#include <string>
#include "AuthResult.h" #include "AuthResult.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -29,53 +29,53 @@ namespace server { ...@@ -29,53 +29,53 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class ConfirmationDataResponse class ConfirmationDataResponse {
{
public: public:
ConfirmationDataResponse(); ConfirmationDataResponse();
virtual ~ConfirmationDataResponse(); virtual ~ConfirmationDataResponse();
void validate();
void validate(); /////////////////////////////////////////////
/// ConfirmationDataResponse members
///////////////////////////////////////////// /// <summary>
/// ConfirmationDataResponse members ///
/// </summary>
AuthResult getAuthResult() const;
void setAuthResult(AuthResult const &value);
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const &value);
bool supiIsSet() const;
void unsetSupi();
/// <summary>
///
/// </summary>
std::string getKseaf() const;
void setKseaf(std::string const &value);
bool kseafIsSet() const;
void unsetKseaf();
/// <summary> friend void to_json(nlohmann::json &j, const ConfirmationDataResponse &o);
/// friend void from_json(const nlohmann::json &j, ConfirmationDataResponse &o);
/// </summary>
AuthResult getAuthResult() const;
void setAuthResult(AuthResult const& value);
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const& value);
bool supiIsSet() const;
void unsetSupi();
/// <summary>
///
/// </summary>
std::string getKseaf() const;
void setKseaf(std::string const& value);
bool kseafIsSet() const;
void unsetKseaf();
friend void to_json(nlohmann::json& j, const ConfirmationDataResponse& o);
friend void from_json(const nlohmann::json& j, ConfirmationDataResponse& o);
protected: protected:
AuthResult m_AuthResult; AuthResult m_AuthResult;
std::string m_Supi; std::string m_Supi;
bool m_SupiIsSet; bool m_SupiIsSet;
std::string m_Kseaf; std::string m_Kseaf;
bool m_KseafIsSet; bool m_KseafIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* ConfirmationDataResponse_H_ */ #endif /* ConfirmationDataResponse_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 "DeregistrationInfo.h" #include "DeregistrationInfo.h"
...@@ -18,43 +18,27 @@ namespace openapitools { ...@@ -18,43 +18,27 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
DeregistrationInfo::DeregistrationInfo() DeregistrationInfo::DeregistrationInfo() { m_Supi = ""; }
{
m_Supi = "";
}
DeregistrationInfo::~DeregistrationInfo() DeregistrationInfo::~DeregistrationInfo() {}
{
}
void DeregistrationInfo::validate()
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const DeregistrationInfo& o) void DeregistrationInfo::validate() {
{ // TODO: implement validation
j = nlohmann::json();
j["supi"] = o.m_Supi;
} }
void from_json(const nlohmann::json& j, DeregistrationInfo& o) void to_json(nlohmann::json &j, const DeregistrationInfo &o) {
{ j = nlohmann::json();
j.at("supi").get_to(o.m_Supi); j["supi"] = o.m_Supi;
} }
std::string DeregistrationInfo::getSupi() const void from_json(const nlohmann::json &j, DeregistrationInfo &o) {
{ j.at("supi").get_to(o.m_Supi);
return m_Supi;
}
void DeregistrationInfo::setSupi(std::string const& value)
{
m_Supi = value;
} }
} std::string DeregistrationInfo::getSupi() const { return m_Supi; }
} void DeregistrationInfo::setSupi(std::string const &value) { m_Supi = 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.
*/
/* /*
* DeregistrationInfo.h * DeregistrationInfo.h
* *
* *
*/ */
#ifndef DeregistrationInfo_H_ #ifndef DeregistrationInfo_H_
#define DeregistrationInfo_H_ #define DeregistrationInfo_H_
#include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -28,35 +28,34 @@ namespace server { ...@@ -28,35 +28,34 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class DeregistrationInfo class DeregistrationInfo {
{
public: public:
DeregistrationInfo(); DeregistrationInfo();
virtual ~DeregistrationInfo(); virtual ~DeregistrationInfo();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// DeregistrationInfo members /// DeregistrationInfo members
/// <summary> /// <summary>
/// ///
/// </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:
std::string m_Supi;
protected:
std::string m_Supi;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // 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,92 @@ namespace openapitools { ...@@ -18,145 +18,92 @@ 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())
if(o.kSeafIsSet()) j["kSeaf"] = o.m_KSeaf;
j["kSeaf"] = o.m_KSeaf; if (o.linksIsSet() || !o.m__links.empty())
if(o.linksIsSet() || !o.m__links.empty()) j["_links"] = o.m__links;
j["_links"] = o.m__links; if (o.authResultIsSet())
if(o.authResultIsSet()) j["authResult"] = o.m_AuthResult;
j["authResult"] = o.m_AuthResult; if (o.supiIsSet())
if(o.supiIsSet()) j["supi"] = o.m_Supi;
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; }
{ void EapSession::setEapPayload(std::string const &value) {
return m_EapPayload; m_EapPayload = value;
} }
void EapSession::setEapPayload(std::string const& value) std::string EapSession::getKSeaf() const { return m_KSeaf; }
{ void EapSession::setKSeaf(std::string const &value) {
m_EapPayload = value; m_KSeaf = value;
} m_KSeafIsSet = true;
std::string EapSession::getKSeaf() const }
{ bool EapSession::kSeafIsSet() const { return m_KSeafIsSet; }
return m_KSeaf; void EapSession::unsetKSeaf() { m_KSeafIsSet = false; }
} std::map<std::string, LinksValueSchema> &EapSession::getLinks() {
void EapSession::setKSeaf(std::string const& value) return m__links;
{ }
m_KSeaf = value; void EapSession::setLinks(
m_KSeafIsSet = true; std::map<std::string, LinksValueSchema> const &value) {
} m__links = value;
bool EapSession::kSeafIsSet() const m__linksIsSet = true;
{ }
return m_KSeafIsSet; bool EapSession::linksIsSet() const { return m__linksIsSet; }
} void EapSession::unset_links() { m__linksIsSet = false; }
void EapSession::unsetKSeaf() AuthResult EapSession::getAuthResult() const { return m_AuthResult; }
{ void EapSession::setAuthResult(AuthResult const &value) {
m_KSeafIsSet = false; m_AuthResult = value;
} m_AuthResultIsSet = true;
std::map<std::string, LinksValueSchema>& EapSession::getLinks() }
{ bool EapSession::authResultIsSet() const { return m_AuthResultIsSet; }
return m__links; void EapSession::unsetAuthResult() { m_AuthResultIsSet = false; }
} std::string EapSession::getSupi() const { return m_Supi; }
void EapSession::setLinks(std::map<std::string, LinksValueSchema> const& value) void EapSession::setSupi(std::string const &value) {
{ m_Supi = value;
m__links = value; m_SupiIsSet = true;
m__linksIsSet = true; }
} bool EapSession::supiIsSet() const { return m_SupiIsSet; }
bool EapSession::linksIsSet() const void EapSession::unsetSupi() { m_SupiIsSet = false; }
{
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
/** /**
* 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.
*/
/* /*
* EapSession.h * EapSession.h
* *
* *
*/ */
#ifndef EapSession_H_ #ifndef EapSession_H_
#define EapSession_H_ #define EapSession_H_
#include "AuthResult.h"
#include "LinksValueSchema.h" #include "LinksValueSchema.h"
#include <string>
#include <map> #include <map>
#include "AuthResult.h"
#include <vector>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -32,71 +32,71 @@ namespace server { ...@@ -32,71 +32,71 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class EapSession class EapSession {
{
public: public:
EapSession(); EapSession();
virtual ~EapSession(); virtual ~EapSession();
void validate();
void validate(); /////////////////////////////////////////////
/// EapSession members
///////////////////////////////////////////// /// <summary>
/// EapSession members /// contains an EAP packet
/// </summary>
std::string getEapPayload() const;
void setEapPayload(std::string const &value);
/// <summary>
///
/// </summary>
std::string getKSeaf() const;
void setKSeaf(std::string const &value);
bool kSeafIsSet() const;
void unsetKSeaf();
/// <summary>
///
/// </summary>
std::map<std::string, LinksValueSchema> &getLinks();
void setLinks(std::map<std::string, LinksValueSchema> const &value);
bool linksIsSet() const;
void unset_links();
/// <summary>
///
/// </summary>
AuthResult getAuthResult() const;
void setAuthResult(AuthResult const &value);
bool authResultIsSet() const;
void unsetAuthResult();
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const &value);
bool supiIsSet() const;
void unsetSupi();
/// <summary> friend void to_json(nlohmann::json &j, const EapSession &o);
/// contains an EAP packet friend void from_json(const nlohmann::json &j, EapSession &o);
/// </summary>
std::string getEapPayload() const;
void setEapPayload(std::string const& value);
/// <summary>
///
/// </summary>
std::string getKSeaf() const;
void setKSeaf(std::string const& value);
bool kSeafIsSet() const;
void unsetKSeaf();
/// <summary>
///
/// </summary>
std::map<std::string, LinksValueSchema>& getLinks();
void setLinks(std::map<std::string, LinksValueSchema> const& value);
bool linksIsSet() const;
void unset_links();
/// <summary>
///
/// </summary>
AuthResult getAuthResult() const;
void setAuthResult(AuthResult const& value);
bool authResultIsSet() const;
void unsetAuthResult();
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const& value);
bool supiIsSet() const;
void unsetSupi();
friend void to_json(nlohmann::json& j, const 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;
bool m_KSeafIsSet; bool m_KSeafIsSet;
std::map<std::string, LinksValueSchema> m__links; std::map<std::string, LinksValueSchema> m__links;
bool m__linksIsSet; bool m__linksIsSet;
AuthResult m_AuthResult; AuthResult m_AuthResult;
bool m_AuthResultIsSet; bool m_AuthResultIsSet;
std::string m_Supi; std::string m_Supi;
bool m_SupiIsSet; bool m_SupiIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // 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,75 @@ namespace openapitools { ...@@ -16,83 +17,75 @@ 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
* *
...@@ -19,58 +20,59 @@ ...@@ -19,58 +20,59 @@
#define Helpers_H_ #define Helpers_H_
#include <ctime> #include <ctime>
#include <string> #include <map>
#include <sstream> #include <sstream>
#include <string>
#include <vector> #include <vector>
#include <map>
namespace org { namespace org {
namespace openapitools { 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(const std::vector<std::string> &inStr,
try{ 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);
} }
} // namespace helpers
} // namespace server
} // namespace openapitools
} // namespace org
#endif // Helpers_H_ #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,44 @@ namespace openapitools { ...@@ -18,69 +18,44 @@ 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()
{
} }
void InvalidParam::validate() InvalidParam::~InvalidParam() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const InvalidParam& o) void InvalidParam::validate() {
{ // TODO: implement validation
j = nlohmann::json();
j["param"] = o.m_Param;
if(o.reasonIsSet())
j["reason"] = o.m_Reason;
} }
void from_json(const nlohmann::json& j, InvalidParam& o) void to_json(nlohmann::json &j, const InvalidParam &o) {
{ j = nlohmann::json();
j.at("param").get_to(o.m_Param); j["param"] = o.m_Param;
if(j.find("reason") != j.end()) if (o.reasonIsSet())
{ j["reason"] = o.m_Reason;
j.at("reason").get_to(o.m_Reason);
o.m_ReasonIsSet = true;
}
} }
std::string InvalidParam::getParam() const void from_json(const nlohmann::json &j, InvalidParam &o) {
{ j.at("param").get_to(o.m_Param);
return m_Param; if (j.find("reason") != j.end()) {
} j.at("reason").get_to(o.m_Reason);
void InvalidParam::setParam(std::string const& value) o.m_ReasonIsSet = true;
{ }
m_Param = value;
}
std::string InvalidParam::getReason() const
{
return m_Reason;
}
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;
} }
std::string InvalidParam::getParam() const { 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) {
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 <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -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);
friend void from_json(const nlohmann::json& j, InvalidParam& o);
protected: protected:
std::string m_Param; 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_ */
/** /**
* 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 "Ipv6Addr.h" #include "Ipv6Addr.h"
...@@ -18,32 +18,19 @@ namespace openapitools { ...@@ -18,32 +18,19 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
Ipv6Addr::Ipv6Addr() Ipv6Addr::Ipv6Addr() {}
{
}
Ipv6Addr::~Ipv6Addr()
{
}
void Ipv6Addr::validate() Ipv6Addr::~Ipv6Addr() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const Ipv6Addr& o) void Ipv6Addr::validate() {
{ // TODO: implement validation
j = nlohmann::json();
} }
void from_json(const nlohmann::json& j, Ipv6Addr& o) void to_json(nlohmann::json &j, const Ipv6Addr &o) { j = nlohmann::json(); }
{
}
void from_json(const nlohmann::json &j, Ipv6Addr &o) {}
} } // 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.
*/
/* /*
* 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);
friend void from_json(const nlohmann::json& j, Ipv6Addr& o);
protected: protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Ipv6Addr_H_ */ #endif /* Ipv6Addr_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 "Link.h" #include "Link.h"
...@@ -18,58 +18,39 @@ namespace openapitools { ...@@ -18,58 +18,39 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
Link::Link() Link::Link() {
{ m_Href = "";
m_Href = ""; m_HrefIsSet = false;
m_HrefIsSet = false;
} }
Link::~Link() Link::~Link() {}
{
}
void Link::validate() 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);
{ o.m_HrefIsSet = true;
j.at("href").get_to(o.m_Href); }
o.m_HrefIsSet = true;
}
}
std::string Link::getHref() const
{
return m_Href;
}
void Link::setHref(std::string const& value)
{
m_Href = value;
m_HrefIsSet = true;
}
bool Link::hrefIsSet() const
{
return m_HrefIsSet;
}
void Link::unsetHref()
{
m_HrefIsSet = false;
} }
std::string Link::getHref() const { return m_Href; }
void Link::setHref(std::string const &value) {
m_Href = value;
m_HrefIsSet = true;
} }
} bool Link::hrefIsSet() const { return m_HrefIsSet; }
} void Link::unsetHref() { m_HrefIsSet = 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.
*/
/* /*
* Link.h * Link.h
* *
* *
*/ */
#ifndef Link_H_ #ifndef Link_H_
#define Link_H_ #define Link_H_
#include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -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);
friend void from_json(const nlohmann::json& j, Link& o);
protected: protected:
std::string m_Href; std::string m_Href;
bool m_HrefIsSet; bool m_HrefIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Link_H_ */ #endif /* Link_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 "LinksValueSchema.h" #include "LinksValueSchema.h"
...@@ -18,58 +18,39 @@ namespace openapitools { ...@@ -18,58 +18,39 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
LinksValueSchema::LinksValueSchema() LinksValueSchema::LinksValueSchema() {
{ m_Href = "";
m_Href = ""; m_HrefIsSet = false;
m_HrefIsSet = false;
} }
LinksValueSchema::~LinksValueSchema() LinksValueSchema::~LinksValueSchema() {}
{
}
void LinksValueSchema::validate() 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);
{ o.m_HrefIsSet = true;
j.at("href").get_to(o.m_Href); }
o.m_HrefIsSet = true;
}
}
std::string LinksValueSchema::getHref() const
{
return m_Href;
}
void LinksValueSchema::setHref(std::string const& value)
{
m_Href = value;
m_HrefIsSet = true;
}
bool LinksValueSchema::hrefIsSet() const
{
return m_HrefIsSet;
}
void LinksValueSchema::unsetHref()
{
m_HrefIsSet = false;
} }
std::string LinksValueSchema::getHref() const { return m_Href; }
void LinksValueSchema::setHref(std::string const &value) {
m_Href = value;
m_HrefIsSet = true;
} }
} bool LinksValueSchema::hrefIsSet() const { return m_HrefIsSet; }
} void LinksValueSchema::unsetHref() { m_HrefIsSet = 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.
*/
/* /*
* LinksValueSchema.h * LinksValueSchema.h
* *
* *
*/ */
#ifndef LinksValueSchema_H_ #ifndef LinksValueSchema_H_
#define LinksValueSchema_H_ #define LinksValueSchema_H_
#include <string>
#include "Link.h" #include "Link.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -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);
friend void from_json(const nlohmann::json& j, LinksValueSchema& o);
protected: protected:
std::string m_Href; std::string m_Href;
bool m_HrefIsSet; bool m_HrefIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* LinksValueSchema_H_ */ #endif /* LinksValueSchema_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 "ProblemDetails.h" #include "ProblemDetails.h"
...@@ -18,265 +18,166 @@ namespace openapitools { ...@@ -18,265 +18,166 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ProblemDetails::ProblemDetails() ProblemDetails::ProblemDetails() {
{ m_Type = "";
m_Type = ""; m_TypeIsSet = false;
m_TypeIsSet = false; m_Title = "";
m_Title = ""; m_TitleIsSet = false;
m_TitleIsSet = false; m_Status = 0;
m_Status = 0; m_StatusIsSet = false;
m_StatusIsSet = false; m_Detail = "";
m_Detail = ""; m_DetailIsSet = false;
m_DetailIsSet = false; m_Instance = "";
m_Instance = ""; m_InstanceIsSet = false;
m_InstanceIsSet = false; m_Cause = "";
m_Cause = ""; m_CauseIsSet = false;
m_CauseIsSet = false; m_InvalidParamsIsSet = false;
m_InvalidParamsIsSet = false; m_SupportedFeatures = "";
m_SupportedFeatures = ""; m_SupportedFeaturesIsSet = false;
m_SupportedFeaturesIsSet = false; m_TargetScp = "";
m_TargetScp = ""; m_TargetScpIsSet = false;
m_TargetScpIsSet = false;
} }
ProblemDetails::~ProblemDetails() ProblemDetails::~ProblemDetails() {}
{
}
void ProblemDetails::validate() void ProblemDetails::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const ProblemDetails& o) void to_json(nlohmann::json &j, const ProblemDetails &o) {
{ j = nlohmann::json();
j = nlohmann::json(); if (o.typeIsSet())
if(o.typeIsSet()) j["type"] = o.m_Type;
j["type"] = o.m_Type; if (o.titleIsSet())
if(o.titleIsSet()) j["title"] = o.m_Title;
j["title"] = o.m_Title; if (o.statusIsSet())
if(o.statusIsSet()) j["status"] = o.m_Status;
j["status"] = o.m_Status; if (o.detailIsSet())
if(o.detailIsSet()) j["detail"] = o.m_Detail;
j["detail"] = o.m_Detail; if (o.instanceIsSet())
if(o.instanceIsSet()) j["instance"] = o.m_Instance;
j["instance"] = o.m_Instance; if (o.causeIsSet())
if(o.causeIsSet()) j["cause"] = o.m_Cause;
j["cause"] = o.m_Cause; if (o.invalidParamsIsSet() || !o.m_InvalidParams.empty())
if(o.invalidParamsIsSet() || !o.m_InvalidParams.empty()) j["invalidParams"] = o.m_InvalidParams;
j["invalidParams"] = o.m_InvalidParams; if (o.supportedFeaturesIsSet())
if(o.supportedFeaturesIsSet()) j["supportedFeatures"] = o.m_SupportedFeatures;
j["supportedFeatures"] = o.m_SupportedFeatures; if (o.targetScpIsSet())
if(o.targetScpIsSet()) j["targetScp"] = o.m_TargetScp;
j["targetScp"] = o.m_TargetScp;
} }
void from_json(const nlohmann::json& j, ProblemDetails& o) void from_json(const nlohmann::json &j, ProblemDetails &o) {
{ if (j.find("type") != j.end()) {
if(j.find("type") != j.end()) j.at("type").get_to(o.m_Type);
{ o.m_TypeIsSet = true;
j.at("type").get_to(o.m_Type); }
o.m_TypeIsSet = true; if (j.find("title") != j.end()) {
} j.at("title").get_to(o.m_Title);
if(j.find("title") != j.end()) o.m_TitleIsSet = true;
{ }
j.at("title").get_to(o.m_Title); if (j.find("status") != j.end()) {
o.m_TitleIsSet = true; j.at("status").get_to(o.m_Status);
} o.m_StatusIsSet = true;
if(j.find("status") != j.end()) }
{ if (j.find("detail") != j.end()) {
j.at("status").get_to(o.m_Status); j.at("detail").get_to(o.m_Detail);
o.m_StatusIsSet = true; o.m_DetailIsSet = true;
} }
if(j.find("detail") != j.end()) if (j.find("instance") != j.end()) {
{ j.at("instance").get_to(o.m_Instance);
j.at("detail").get_to(o.m_Detail); o.m_InstanceIsSet = true;
o.m_DetailIsSet = true; }
} if (j.find("cause") != j.end()) {
if(j.find("instance") != j.end()) j.at("cause").get_to(o.m_Cause);
{ o.m_CauseIsSet = true;
j.at("instance").get_to(o.m_Instance); }
o.m_InstanceIsSet = true; if (j.find("invalidParams") != j.end()) {
} j.at("invalidParams").get_to(o.m_InvalidParams);
if(j.find("cause") != j.end()) o.m_InvalidParamsIsSet = true;
{ }
j.at("cause").get_to(o.m_Cause); if (j.find("supportedFeatures") != j.end()) {
o.m_CauseIsSet = true; j.at("supportedFeatures").get_to(o.m_SupportedFeatures);
} o.m_SupportedFeaturesIsSet = true;
if(j.find("invalidParams") != j.end()) }
{ if (j.find("targetScp") != j.end()) {
j.at("invalidParams").get_to(o.m_InvalidParams); j.at("targetScp").get_to(o.m_TargetScp);
o.m_InvalidParamsIsSet = true; o.m_TargetScpIsSet = true;
} }
if(j.find("supportedFeatures") != j.end())
{
j.at("supportedFeatures").get_to(o.m_SupportedFeatures);
o.m_SupportedFeaturesIsSet = true;
}
if(j.find("targetScp") != j.end())
{
j.at("targetScp").get_to(o.m_TargetScp);
o.m_TargetScpIsSet = true;
}
} }
std::string ProblemDetails::getType() const std::string ProblemDetails::getType() const { return m_Type; }
{ void ProblemDetails::setType(std::string const &value) {
return m_Type; m_Type = value;
} m_TypeIsSet = true;
void ProblemDetails::setType(std::string const& value) }
{ bool ProblemDetails::typeIsSet() const { return m_TypeIsSet; }
m_Type = value; void ProblemDetails::unsetType() { m_TypeIsSet = false; }
m_TypeIsSet = true; std::string ProblemDetails::getTitle() const { return m_Title; }
} void ProblemDetails::setTitle(std::string const &value) {
bool ProblemDetails::typeIsSet() const m_Title = value;
{ m_TitleIsSet = true;
return m_TypeIsSet; }
} bool ProblemDetails::titleIsSet() const { return m_TitleIsSet; }
void ProblemDetails::unsetType() void ProblemDetails::unsetTitle() { m_TitleIsSet = false; }
{ int32_t ProblemDetails::getStatus() const { return m_Status; }
m_TypeIsSet = false; void ProblemDetails::setStatus(int32_t const value) {
} m_Status = value;
std::string ProblemDetails::getTitle() const m_StatusIsSet = true;
{ }
return m_Title; bool ProblemDetails::statusIsSet() const { return m_StatusIsSet; }
} void ProblemDetails::unsetStatus() { m_StatusIsSet = false; }
void ProblemDetails::setTitle(std::string const& value) std::string ProblemDetails::getDetail() const { return m_Detail; }
{ void ProblemDetails::setDetail(std::string const &value) {
m_Title = value; m_Detail = value;
m_TitleIsSet = true; m_DetailIsSet = true;
} }
bool ProblemDetails::titleIsSet() const bool ProblemDetails::detailIsSet() const { return m_DetailIsSet; }
{ void ProblemDetails::unsetDetail() { m_DetailIsSet = false; }
return m_TitleIsSet; std::string ProblemDetails::getInstance() const { return m_Instance; }
} void ProblemDetails::setInstance(std::string const &value) {
void ProblemDetails::unsetTitle() m_Instance = value;
{ m_InstanceIsSet = true;
m_TitleIsSet = false; }
} bool ProblemDetails::instanceIsSet() const { return m_InstanceIsSet; }
int32_t ProblemDetails::getStatus() const void ProblemDetails::unsetInstance() { m_InstanceIsSet = false; }
{ std::string ProblemDetails::getCause() const { return m_Cause; }
return m_Status; void ProblemDetails::setCause(std::string const &value) {
} m_Cause = value;
void ProblemDetails::setStatus(int32_t const value) m_CauseIsSet = true;
{ }
m_Status = value; bool ProblemDetails::causeIsSet() const { return m_CauseIsSet; }
m_StatusIsSet = true; void ProblemDetails::unsetCause() { m_CauseIsSet = false; }
} std::vector<InvalidParam> &ProblemDetails::getInvalidParams() {
bool ProblemDetails::statusIsSet() const return m_InvalidParams;
{ }
return m_StatusIsSet; void ProblemDetails::setInvalidParams(std::vector<InvalidParam> const &value) {
} m_InvalidParams = value;
void ProblemDetails::unsetStatus() m_InvalidParamsIsSet = true;
{ }
m_StatusIsSet = false; bool ProblemDetails::invalidParamsIsSet() const { return m_InvalidParamsIsSet; }
} void ProblemDetails::unsetInvalidParams() { m_InvalidParamsIsSet = false; }
std::string ProblemDetails::getDetail() const std::string ProblemDetails::getSupportedFeatures() const {
{ return m_SupportedFeatures;
return m_Detail; }
} void ProblemDetails::setSupportedFeatures(std::string const &value) {
void ProblemDetails::setDetail(std::string const& value) m_SupportedFeatures = value;
{ m_SupportedFeaturesIsSet = true;
m_Detail = value; }
m_DetailIsSet = true; bool ProblemDetails::supportedFeaturesIsSet() const {
} return m_SupportedFeaturesIsSet;
bool ProblemDetails::detailIsSet() const }
{ void ProblemDetails::unsetSupportedFeatures() {
return m_DetailIsSet; m_SupportedFeaturesIsSet = false;
} }
void ProblemDetails::unsetDetail() std::string ProblemDetails::getTargetScp() const { return m_TargetScp; }
{ void ProblemDetails::setTargetScp(std::string const &value) {
m_DetailIsSet = false; m_TargetScp = value;
} m_TargetScpIsSet = true;
std::string ProblemDetails::getInstance() const }
{ bool ProblemDetails::targetScpIsSet() const { return m_TargetScpIsSet; }
return m_Instance; void ProblemDetails::unsetTargetScp() { m_TargetScpIsSet = false; }
}
void ProblemDetails::setInstance(std::string const& value)
{
m_Instance = value;
m_InstanceIsSet = true;
}
bool ProblemDetails::instanceIsSet() const
{
return m_InstanceIsSet;
}
void ProblemDetails::unsetInstance()
{
m_InstanceIsSet = false;
}
std::string ProblemDetails::getCause() const
{
return m_Cause;
}
void ProblemDetails::setCause(std::string const& value)
{
m_Cause = value;
m_CauseIsSet = true;
}
bool ProblemDetails::causeIsSet() const
{
return m_CauseIsSet;
}
void ProblemDetails::unsetCause()
{
m_CauseIsSet = false;
}
std::vector<InvalidParam>& ProblemDetails::getInvalidParams()
{
return m_InvalidParams;
}
void ProblemDetails::setInvalidParams(std::vector<InvalidParam> const& value)
{
m_InvalidParams = value;
m_InvalidParamsIsSet = true;
}
bool ProblemDetails::invalidParamsIsSet() const
{
return m_InvalidParamsIsSet;
}
void ProblemDetails::unsetInvalidParams()
{
m_InvalidParamsIsSet = false;
}
std::string ProblemDetails::getSupportedFeatures() const
{
return m_SupportedFeatures;
}
void ProblemDetails::setSupportedFeatures(std::string const& value)
{
m_SupportedFeatures = value;
m_SupportedFeaturesIsSet = true;
}
bool ProblemDetails::supportedFeaturesIsSet() const
{
return m_SupportedFeaturesIsSet;
}
void ProblemDetails::unsetSupportedFeatures()
{
m_SupportedFeaturesIsSet = false;
}
std::string ProblemDetails::getTargetScp() const
{
return m_TargetScp;
}
void ProblemDetails::setTargetScp(std::string const& value)
{
m_TargetScp = value;
m_TargetScpIsSet = true;
}
bool ProblemDetails::targetScpIsSet() const
{
return m_TargetScpIsSet;
}
void ProblemDetails::unsetTargetScp()
{
m_TargetScpIsSet = 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.
*/
/* /*
* ProblemDetails.h * ProblemDetails.h
* *
* *
*/ */
#ifndef ProblemDetails_H_ #ifndef ProblemDetails_H_
#define ProblemDetails_H_ #define ProblemDetails_H_
#include <string>
#include "InvalidParam.h" #include "InvalidParam.h"
#include <vector>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -30,109 +30,109 @@ namespace server { ...@@ -30,109 +30,109 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class ProblemDetails class ProblemDetails {
{
public: public:
ProblemDetails(); ProblemDetails();
virtual ~ProblemDetails(); virtual ~ProblemDetails();
void validate();
void validate(); /////////////////////////////////////////////
/// ProblemDetails members
///////////////////////////////////////////// /// <summary>
/// ProblemDetails members ///
/// </summary>
std::string getType() const;
void setType(std::string const &value);
bool typeIsSet() const;
void unsetType();
/// <summary>
///
/// </summary>
std::string getTitle() const;
void setTitle(std::string const &value);
bool titleIsSet() const;
void unsetTitle();
/// <summary>
///
/// </summary>
int32_t getStatus() const;
void setStatus(int32_t const value);
bool statusIsSet() const;
void unsetStatus();
/// <summary>
///
/// </summary>
std::string getDetail() const;
void setDetail(std::string const &value);
bool detailIsSet() const;
void unsetDetail();
/// <summary>
///
/// </summary>
std::string getInstance() const;
void setInstance(std::string const &value);
bool instanceIsSet() const;
void unsetInstance();
/// <summary>
///
/// </summary>
std::string getCause() const;
void setCause(std::string const &value);
bool causeIsSet() const;
void unsetCause();
/// <summary>
///
/// </summary>
std::vector<InvalidParam> &getInvalidParams();
void setInvalidParams(std::vector<InvalidParam> const &value);
bool invalidParamsIsSet() const;
void unsetInvalidParams();
/// <summary>
///
/// </summary>
std::string getSupportedFeatures() const;
void setSupportedFeatures(std::string const &value);
bool supportedFeaturesIsSet() const;
void unsetSupportedFeatures();
/// <summary>
///
/// </summary>
std::string getTargetScp() const;
void setTargetScp(std::string const &value);
bool targetScpIsSet() const;
void unsetTargetScp();
/// <summary> friend void to_json(nlohmann::json &j, const ProblemDetails &o);
/// friend void from_json(const nlohmann::json &j, ProblemDetails &o);
/// </summary>
std::string getType() const;
void setType(std::string const& value);
bool typeIsSet() const;
void unsetType();
/// <summary>
///
/// </summary>
std::string getTitle() const;
void setTitle(std::string const& value);
bool titleIsSet() const;
void unsetTitle();
/// <summary>
///
/// </summary>
int32_t getStatus() const;
void setStatus(int32_t const value);
bool statusIsSet() const;
void unsetStatus();
/// <summary>
///
/// </summary>
std::string getDetail() const;
void setDetail(std::string const& value);
bool detailIsSet() const;
void unsetDetail();
/// <summary>
///
/// </summary>
std::string getInstance() const;
void setInstance(std::string const& value);
bool instanceIsSet() const;
void unsetInstance();
/// <summary>
///
/// </summary>
std::string getCause() const;
void setCause(std::string const& value);
bool causeIsSet() const;
void unsetCause();
/// <summary>
///
/// </summary>
std::vector<InvalidParam>& getInvalidParams();
void setInvalidParams(std::vector<InvalidParam> const& value);
bool invalidParamsIsSet() const;
void unsetInvalidParams();
/// <summary>
///
/// </summary>
std::string getSupportedFeatures() const;
void setSupportedFeatures(std::string const& value);
bool supportedFeaturesIsSet() const;
void unsetSupportedFeatures();
/// <summary>
///
/// </summary>
std::string getTargetScp() const;
void setTargetScp(std::string const& value);
bool targetScpIsSet() const;
void unsetTargetScp();
friend void to_json(nlohmann::json& j, const 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;
bool m_TitleIsSet; bool m_TitleIsSet;
int32_t m_Status; int32_t m_Status;
bool m_StatusIsSet; bool m_StatusIsSet;
std::string m_Detail; std::string m_Detail;
bool m_DetailIsSet; bool m_DetailIsSet;
std::string m_Instance; std::string m_Instance;
bool m_InstanceIsSet; bool m_InstanceIsSet;
std::string m_Cause; std::string m_Cause;
bool m_CauseIsSet; bool m_CauseIsSet;
std::vector<InvalidParam> m_InvalidParams; std::vector<InvalidParam> m_InvalidParams;
bool m_InvalidParamsIsSet; bool m_InvalidParamsIsSet;
std::string m_SupportedFeatures; std::string m_SupportedFeatures;
bool m_SupportedFeaturesIsSet; bool m_SupportedFeaturesIsSet;
std::string m_TargetScp; std::string m_TargetScp;
bool m_TargetScpIsSet; bool m_TargetScpIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // 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,38 @@ namespace openapitools { ...@@ -18,54 +18,38 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ResynchronizationInfo::ResynchronizationInfo() ResynchronizationInfo::ResynchronizationInfo() {
{ m_Rand = "";
m_Rand = ""; m_Auts = "";
m_Auts = "";
} }
ResynchronizationInfo::~ResynchronizationInfo() ResynchronizationInfo::~ResynchronizationInfo() {}
{
}
void ResynchronizationInfo::validate() void ResynchronizationInfo::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const ResynchronizationInfo& o) void to_json(nlohmann::json &j, const ResynchronizationInfo &o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["rand"] = o.m_Rand;
j["rand"] = o.m_Rand; j["auts"] = o.m_Auts;
j["auts"] = o.m_Auts;
} }
void from_json(const nlohmann::json& j, ResynchronizationInfo& o) void from_json(const nlohmann::json &j, ResynchronizationInfo &o) {
{ j.at("rand").get_to(o.m_Rand);
j.at("rand").get_to(o.m_Rand); j.at("auts").get_to(o.m_Auts);
j.at("auts").get_to(o.m_Auts);
} }
std::string ResynchronizationInfo::getRand() const std::string ResynchronizationInfo::getRand() const { return m_Rand; }
{ void ResynchronizationInfo::setRand(std::string const &value) {
return m_Rand; m_Rand = value;
}
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::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 <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -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,58 @@ namespace openapitools { ...@@ -18,94 +18,58 @@ 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())
if(o.supiIsSet()) j["supi"] = o.m_Supi;
j["supi"] = o.m_Supi; if (o.authIndIsSet())
if(o.authIndIsSet()) j["authInd"] = o.m_AuthInd;
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; }
{ void RgAuthCtx::setAuthResult(AuthResult const &value) { m_AuthResult = value; }
return m_AuthResult; std::string RgAuthCtx::getSupi() const { return m_Supi; }
} void RgAuthCtx::setSupi(std::string const &value) {
void RgAuthCtx::setAuthResult(AuthResult const& value) m_Supi = value;
{ m_SupiIsSet = true;
m_AuthResult = value; }
} bool RgAuthCtx::supiIsSet() const { return m_SupiIsSet; }
std::string RgAuthCtx::getSupi() const void RgAuthCtx::unsetSupi() { m_SupiIsSet = false; }
{ bool RgAuthCtx::isAuthInd() const { return m_AuthInd; }
return m_Supi; void RgAuthCtx::setAuthInd(bool const value) {
} m_AuthInd = value;
void RgAuthCtx::setSupi(std::string const& value) m_AuthIndIsSet = true;
{ }
m_Supi = value; bool RgAuthCtx::authIndIsSet() const { return m_AuthIndIsSet; }
m_SupiIsSet = true; void RgAuthCtx::unsetAuthInd() { m_AuthIndIsSet = false; }
}
bool RgAuthCtx::supiIsSet() const
{
return m_SupiIsSet;
}
void RgAuthCtx::unsetSupi()
{
m_SupiIsSet = false;
}
bool RgAuthCtx::isAuthInd() const
{
return m_AuthInd;
}
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
/** /**
* 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.
*/
/* /*
* RgAuthCtx.h * RgAuthCtx.h
* *
* *
*/ */
#ifndef RgAuthCtx_H_ #ifndef RgAuthCtx_H_
#define RgAuthCtx_H_ #define RgAuthCtx_H_
#include <string>
#include "AuthResult.h" #include "AuthResult.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -29,53 +29,53 @@ namespace server { ...@@ -29,53 +29,53 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class RgAuthCtx class RgAuthCtx {
{
public: public:
RgAuthCtx(); RgAuthCtx();
virtual ~RgAuthCtx(); virtual ~RgAuthCtx();
void validate();
void validate(); /////////////////////////////////////////////
/// RgAuthCtx members
///////////////////////////////////////////// /// <summary>
/// RgAuthCtx members ///
/// </summary>
AuthResult getAuthResult() const;
void setAuthResult(AuthResult const &value);
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const &value);
bool supiIsSet() const;
void unsetSupi();
/// <summary>
///
/// </summary>
bool isAuthInd() const;
void setAuthInd(bool const value);
bool authIndIsSet() const;
void unsetAuthInd();
/// <summary> friend void to_json(nlohmann::json &j, const RgAuthCtx &o);
/// friend void from_json(const nlohmann::json &j, RgAuthCtx &o);
/// </summary>
AuthResult getAuthResult() const;
void setAuthResult(AuthResult const& value);
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const& value);
bool supiIsSet() const;
void unsetSupi();
/// <summary>
///
/// </summary>
bool isAuthInd() const;
void setAuthInd(bool const value);
bool authIndIsSet() const;
void unsetAuthInd();
friend void to_json(nlohmann::json& j, const RgAuthCtx& o);
friend void from_json(const nlohmann::json& j, RgAuthCtx& o);
protected: protected:
AuthResult m_AuthResult; AuthResult m_AuthResult;
std::string m_Supi; std::string m_Supi;
bool m_SupiIsSet; bool m_SupiIsSet;
bool m_AuthInd; bool m_AuthInd;
bool m_AuthIndIsSet; bool m_AuthIndIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* RgAuthCtx_H_ */ #endif /* RgAuthCtx_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 "RgAuthenticationInfo.h" #include "RgAuthenticationInfo.h"
...@@ -18,54 +18,38 @@ namespace openapitools { ...@@ -18,54 +18,38 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
RgAuthenticationInfo::RgAuthenticationInfo() RgAuthenticationInfo::RgAuthenticationInfo() {
{ m_Suci = "";
m_Suci = ""; m_AuthenticatedInd = false;
m_AuthenticatedInd = false;
} }
RgAuthenticationInfo::~RgAuthenticationInfo() RgAuthenticationInfo::~RgAuthenticationInfo() {}
{
}
void RgAuthenticationInfo::validate() void RgAuthenticationInfo::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const RgAuthenticationInfo& o) void to_json(nlohmann::json &j, const RgAuthenticationInfo &o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["suci"] = o.m_Suci;
j["suci"] = o.m_Suci; j["authenticatedInd"] = o.m_AuthenticatedInd;
j["authenticatedInd"] = o.m_AuthenticatedInd;
} }
void from_json(const nlohmann::json& j, RgAuthenticationInfo& o) void from_json(const nlohmann::json &j, RgAuthenticationInfo &o) {
{ j.at("suci").get_to(o.m_Suci);
j.at("suci").get_to(o.m_Suci); j.at("authenticatedInd").get_to(o.m_AuthenticatedInd);
j.at("authenticatedInd").get_to(o.m_AuthenticatedInd);
} }
std::string RgAuthenticationInfo::getSuci() const std::string RgAuthenticationInfo::getSuci() const { return m_Suci; }
{ void RgAuthenticationInfo::setSuci(std::string const &value) { m_Suci = value; }
return m_Suci; bool RgAuthenticationInfo::isAuthenticatedInd() const {
} return m_AuthenticatedInd;
void RgAuthenticationInfo::setSuci(std::string const& value)
{
m_Suci = value;
}
bool RgAuthenticationInfo::isAuthenticatedInd() const
{
return m_AuthenticatedInd;
}
void RgAuthenticationInfo::setAuthenticatedInd(bool const value)
{
m_AuthenticatedInd = value;
}
}
}
} }
void RgAuthenticationInfo::setAuthenticatedInd(bool const value) {
m_AuthenticatedInd = 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.
*/
/* /*
* RgAuthenticationInfo.h * RgAuthenticationInfo.h
* *
* *
*/ */
#ifndef RgAuthenticationInfo_H_ #ifndef RgAuthenticationInfo_H_
#define RgAuthenticationInfo_H_ #define RgAuthenticationInfo_H_
#include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -28,42 +28,41 @@ namespace server { ...@@ -28,42 +28,41 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class RgAuthenticationInfo class RgAuthenticationInfo {
{
public: public:
RgAuthenticationInfo(); RgAuthenticationInfo();
virtual ~RgAuthenticationInfo(); virtual ~RgAuthenticationInfo();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// RgAuthenticationInfo members /// RgAuthenticationInfo members
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getSuci() const; std::string getSuci() const;
void setSuci(std::string const& value); void setSuci(std::string const &value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
bool isAuthenticatedInd() const; bool isAuthenticatedInd() const;
void setAuthenticatedInd(bool const value); void setAuthenticatedInd(bool const value);
friend void to_json(nlohmann::json& j, const RgAuthenticationInfo& o); friend void to_json(nlohmann::json &j, const RgAuthenticationInfo &o);
friend void from_json(const nlohmann::json& j, RgAuthenticationInfo& o); friend void from_json(const nlohmann::json &j, RgAuthenticationInfo &o);
protected:
std::string m_Suci;
bool m_AuthenticatedInd; protected:
std::string m_Suci;
bool m_AuthenticatedInd;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* RgAuthenticationInfo_H_ */ #endif /* RgAuthenticationInfo_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 "TraceData.h" #include "TraceData.h"
...@@ -18,152 +18,101 @@ namespace openapitools { ...@@ -18,152 +18,101 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
TraceData::TraceData() TraceData::TraceData() {
{ m_TraceRef = "";
m_TraceRef = ""; m_NeTypeList = "";
m_NeTypeList = ""; m_EventList = "";
m_EventList = ""; m_CollectionEntityIpv4Addr = "";
m_CollectionEntityIpv4Addr = ""; m_CollectionEntityIpv4AddrIsSet = false;
m_CollectionEntityIpv4AddrIsSet = false; m_CollectionEntityIpv6AddrIsSet = false;
m_CollectionEntityIpv6AddrIsSet = false; m_InterfaceList = "";
m_InterfaceList = ""; m_InterfaceListIsSet = false;
m_InterfaceListIsSet = false;
} }
TraceData::~TraceData() TraceData::~TraceData() {}
{
}
void TraceData::validate() void TraceData::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const TraceData& o) void to_json(nlohmann::json &j, const TraceData &o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["traceRef"] = o.m_TraceRef;
j["traceRef"] = o.m_TraceRef; j["traceDepth"] = o.m_TraceDepth;
j["traceDepth"] = o.m_TraceDepth; j["neTypeList"] = o.m_NeTypeList;
j["neTypeList"] = o.m_NeTypeList; j["eventList"] = o.m_EventList;
j["eventList"] = o.m_EventList; if (o.collectionEntityIpv4AddrIsSet())
if(o.collectionEntityIpv4AddrIsSet()) j["collectionEntityIpv4Addr"] = o.m_CollectionEntityIpv4Addr;
j["collectionEntityIpv4Addr"] = o.m_CollectionEntityIpv4Addr; if (o.collectionEntityIpv6AddrIsSet())
if(o.collectionEntityIpv6AddrIsSet()) j["collectionEntityIpv6Addr"] = o.m_CollectionEntityIpv6Addr;
j["collectionEntityIpv6Addr"] = o.m_CollectionEntityIpv6Addr; if (o.interfaceListIsSet())
if(o.interfaceListIsSet()) j["interfaceList"] = o.m_InterfaceList;
j["interfaceList"] = o.m_InterfaceList;
} }
void from_json(const nlohmann::json& j, TraceData& o) void from_json(const nlohmann::json &j, TraceData &o) {
{ j.at("traceRef").get_to(o.m_TraceRef);
j.at("traceRef").get_to(o.m_TraceRef); j.at("traceDepth").get_to(o.m_TraceDepth);
j.at("traceDepth").get_to(o.m_TraceDepth); j.at("neTypeList").get_to(o.m_NeTypeList);
j.at("neTypeList").get_to(o.m_NeTypeList); j.at("eventList").get_to(o.m_EventList);
j.at("eventList").get_to(o.m_EventList); if (j.find("collectionEntityIpv4Addr") != j.end()) {
if(j.find("collectionEntityIpv4Addr") != j.end()) j.at("collectionEntityIpv4Addr").get_to(o.m_CollectionEntityIpv4Addr);
{ o.m_CollectionEntityIpv4AddrIsSet = true;
j.at("collectionEntityIpv4Addr").get_to(o.m_CollectionEntityIpv4Addr); }
o.m_CollectionEntityIpv4AddrIsSet = true; if (j.find("collectionEntityIpv6Addr") != j.end()) {
} j.at("collectionEntityIpv6Addr").get_to(o.m_CollectionEntityIpv6Addr);
if(j.find("collectionEntityIpv6Addr") != j.end()) o.m_CollectionEntityIpv6AddrIsSet = true;
{ }
j.at("collectionEntityIpv6Addr").get_to(o.m_CollectionEntityIpv6Addr); if (j.find("interfaceList") != j.end()) {
o.m_CollectionEntityIpv6AddrIsSet = true; j.at("interfaceList").get_to(o.m_InterfaceList);
} o.m_InterfaceListIsSet = true;
if(j.find("interfaceList") != j.end()) }
{
j.at("interfaceList").get_to(o.m_InterfaceList);
o.m_InterfaceListIsSet = true;
}
} }
std::string TraceData::getTraceRef() const std::string TraceData::getTraceRef() const { return m_TraceRef; }
{ void TraceData::setTraceRef(std::string const &value) { m_TraceRef = value; }
return m_TraceRef; TraceDepth TraceData::getTraceDepth() const { return m_TraceDepth; }
} void TraceData::setTraceDepth(TraceDepth const &value) { m_TraceDepth = value; }
void TraceData::setTraceRef(std::string const& value) std::string TraceData::getNeTypeList() const { return m_NeTypeList; }
{ void TraceData::setNeTypeList(std::string const &value) {
m_TraceRef = value; m_NeTypeList = value;
}
TraceDepth TraceData::getTraceDepth() const
{
return m_TraceDepth;
}
void TraceData::setTraceDepth(TraceDepth const& value)
{
m_TraceDepth = value;
}
std::string TraceData::getNeTypeList() const
{
return m_NeTypeList;
}
void TraceData::setNeTypeList(std::string const& value)
{
m_NeTypeList = value;
}
std::string TraceData::getEventList() const
{
return m_EventList;
}
void TraceData::setEventList(std::string const& value)
{
m_EventList = value;
} }
std::string TraceData::getCollectionEntityIpv4Addr() const std::string TraceData::getEventList() const { return m_EventList; }
{ void TraceData::setEventList(std::string const &value) { m_EventList = value; }
return m_CollectionEntityIpv4Addr; std::string TraceData::getCollectionEntityIpv4Addr() const {
return m_CollectionEntityIpv4Addr;
} }
void TraceData::setCollectionEntityIpv4Addr(std::string const& value) void TraceData::setCollectionEntityIpv4Addr(std::string const &value) {
{ m_CollectionEntityIpv4Addr = value;
m_CollectionEntityIpv4Addr = value; m_CollectionEntityIpv4AddrIsSet = true;
m_CollectionEntityIpv4AddrIsSet = true;
} }
bool TraceData::collectionEntityIpv4AddrIsSet() const bool TraceData::collectionEntityIpv4AddrIsSet() const {
{ return m_CollectionEntityIpv4AddrIsSet;
return m_CollectionEntityIpv4AddrIsSet;
} }
void TraceData::unsetCollectionEntityIpv4Addr() void TraceData::unsetCollectionEntityIpv4Addr() {
{ m_CollectionEntityIpv4AddrIsSet = false;
m_CollectionEntityIpv4AddrIsSet = false;
} }
Ipv6Addr TraceData::getCollectionEntityIpv6Addr() const Ipv6Addr TraceData::getCollectionEntityIpv6Addr() const {
{ return m_CollectionEntityIpv6Addr;
return m_CollectionEntityIpv6Addr;
} }
void TraceData::setCollectionEntityIpv6Addr(Ipv6Addr const& value) void TraceData::setCollectionEntityIpv6Addr(Ipv6Addr const &value) {
{ m_CollectionEntityIpv6Addr = value;
m_CollectionEntityIpv6Addr = value; m_CollectionEntityIpv6AddrIsSet = true;
m_CollectionEntityIpv6AddrIsSet = true;
}
bool TraceData::collectionEntityIpv6AddrIsSet() const
{
return m_CollectionEntityIpv6AddrIsSet;
}
void TraceData::unsetCollectionEntityIpv6Addr()
{
m_CollectionEntityIpv6AddrIsSet = false;
}
std::string TraceData::getInterfaceList() const
{
return m_InterfaceList;
}
void TraceData::setInterfaceList(std::string const& value)
{
m_InterfaceList = value;
m_InterfaceListIsSet = true;
}
bool TraceData::interfaceListIsSet() const
{
return m_InterfaceListIsSet;
}
void TraceData::unsetInterfaceList()
{
m_InterfaceListIsSet = false;
}
} }
bool TraceData::collectionEntityIpv6AddrIsSet() const {
return m_CollectionEntityIpv6AddrIsSet;
} }
void TraceData::unsetCollectionEntityIpv6Addr() {
m_CollectionEntityIpv6AddrIsSet = false;
} }
std::string TraceData::getInterfaceList() const { return m_InterfaceList; }
void TraceData::setInterfaceList(std::string const &value) {
m_InterfaceList = value;
m_InterfaceListIsSet = true;
} }
bool TraceData::interfaceListIsSet() const { return m_InterfaceListIsSet; }
void TraceData::unsetInterfaceList() { m_InterfaceListIsSet = 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.
*/
/* /*
* TraceData.h * TraceData.h
* *
* *
*/ */
#ifndef TraceData_H_ #ifndef TraceData_H_
#define TraceData_H_ #define TraceData_H_
#include "TraceDepth.h"
#include <string>
#include "Ipv6Addr.h" #include "Ipv6Addr.h"
#include "TraceDepth.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -30,83 +30,83 @@ namespace server { ...@@ -30,83 +30,83 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class TraceData class TraceData {
{
public: public:
TraceData(); TraceData();
virtual ~TraceData(); virtual ~TraceData();
void validate();
void validate(); /////////////////////////////////////////////
/// TraceData members
///////////////////////////////////////////// /// <summary>
/// TraceData members ///
/// </summary>
std::string getTraceRef() const;
void setTraceRef(std::string const &value);
/// <summary>
///
/// </summary>
TraceDepth getTraceDepth() const;
void setTraceDepth(TraceDepth const &value);
/// <summary>
///
/// </summary>
std::string getNeTypeList() const;
void setNeTypeList(std::string const &value);
/// <summary>
///
/// </summary>
std::string getEventList() const;
void setEventList(std::string const &value);
/// <summary>
///
/// </summary>
std::string getCollectionEntityIpv4Addr() const;
void setCollectionEntityIpv4Addr(std::string const &value);
bool collectionEntityIpv4AddrIsSet() const;
void unsetCollectionEntityIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Addr getCollectionEntityIpv6Addr() const;
void setCollectionEntityIpv6Addr(Ipv6Addr const &value);
bool collectionEntityIpv6AddrIsSet() const;
void unsetCollectionEntityIpv6Addr();
/// <summary>
///
/// </summary>
std::string getInterfaceList() const;
void setInterfaceList(std::string const &value);
bool interfaceListIsSet() const;
void unsetInterfaceList();
/// <summary> friend void to_json(nlohmann::json &j, const TraceData &o);
/// friend void from_json(const nlohmann::json &j, TraceData &o);
/// </summary>
std::string getTraceRef() const;
void setTraceRef(std::string const& value);
/// <summary>
///
/// </summary>
TraceDepth getTraceDepth() const;
void setTraceDepth(TraceDepth const& value);
/// <summary>
///
/// </summary>
std::string getNeTypeList() const;
void setNeTypeList(std::string const& value);
/// <summary>
///
/// </summary>
std::string getEventList() const;
void setEventList(std::string const& value);
/// <summary>
///
/// </summary>
std::string getCollectionEntityIpv4Addr() const;
void setCollectionEntityIpv4Addr(std::string const& value);
bool collectionEntityIpv4AddrIsSet() const;
void unsetCollectionEntityIpv4Addr();
/// <summary>
///
/// </summary>
Ipv6Addr getCollectionEntityIpv6Addr() const;
void setCollectionEntityIpv6Addr(Ipv6Addr const& value);
bool collectionEntityIpv6AddrIsSet() const;
void unsetCollectionEntityIpv6Addr();
/// <summary>
///
/// </summary>
std::string getInterfaceList() const;
void setInterfaceList(std::string const& value);
bool interfaceListIsSet() const;
void unsetInterfaceList();
friend void to_json(nlohmann::json& j, const TraceData& o);
friend void from_json(const nlohmann::json& j, TraceData& o);
protected: protected:
std::string m_TraceRef; std::string m_TraceRef;
TraceDepth m_TraceDepth; TraceDepth m_TraceDepth;
std::string m_NeTypeList; std::string m_NeTypeList;
std::string m_EventList; std::string m_EventList;
std::string m_CollectionEntityIpv4Addr; std::string m_CollectionEntityIpv4Addr;
bool m_CollectionEntityIpv4AddrIsSet; bool m_CollectionEntityIpv4AddrIsSet;
Ipv6Addr m_CollectionEntityIpv6Addr; Ipv6Addr m_CollectionEntityIpv6Addr;
bool m_CollectionEntityIpv6AddrIsSet; bool m_CollectionEntityIpv6AddrIsSet;
std::string m_InterfaceList; std::string m_InterfaceList;
bool m_InterfaceListIsSet; bool m_InterfaceListIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* TraceData_H_ */ #endif /* TraceData_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 "TraceDepth.h" #include "TraceDepth.h"
...@@ -18,32 +18,19 @@ namespace openapitools { ...@@ -18,32 +18,19 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
TraceDepth::TraceDepth() TraceDepth::TraceDepth() {}
{
}
TraceDepth::~TraceDepth()
{
}
void TraceDepth::validate() TraceDepth::~TraceDepth() {}
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const TraceDepth& o) void TraceDepth::validate() {
{ // TODO: implement validation
j = nlohmann::json();
} }
void from_json(const nlohmann::json& j, TraceDepth& o) void to_json(nlohmann::json &j, const TraceDepth &o) { j = nlohmann::json(); }
{
}
void from_json(const nlohmann::json &j, TraceDepth &o) {}
} } // 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.
*/
/* /*
* TraceDepth.h * TraceDepth.h
* *
* *
*/ */
#ifndef TraceDepth_H_ #ifndef TraceDepth_H_
#define TraceDepth_H_ #define TraceDepth_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 TraceDepth class TraceDepth {
{
public: public:
TraceDepth(); TraceDepth();
virtual ~TraceDepth(); virtual ~TraceDepth();
void validate(); void validate();
///////////////////////////////////////////// /////////////////////////////////////////////
/// TraceDepth members /// TraceDepth members
friend void to_json(nlohmann::json &j, const TraceDepth &o);
friend void from_json(const nlohmann::json &j, TraceDepth &o);
friend void to_json(nlohmann::json& j, const TraceDepth& o);
friend void from_json(const nlohmann::json& j, TraceDepth& o);
protected: protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* TraceDepth_H_ */ #endif /* TraceDepth_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 "UEAuthenticationCtx.h" #include "UEAuthenticationCtx.h"
...@@ -18,88 +18,68 @@ namespace openapitools { ...@@ -18,88 +18,68 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
UEAuthenticationCtx::UEAuthenticationCtx() UEAuthenticationCtx::UEAuthenticationCtx() {
{ m_ServingNetworkName = "";
m_ServingNetworkName = ""; m_ServingNetworkNameIsSet = false;
m_ServingNetworkNameIsSet = false;
} }
UEAuthenticationCtx::~UEAuthenticationCtx() UEAuthenticationCtx::~UEAuthenticationCtx() {}
{
}
void UEAuthenticationCtx::validate() void UEAuthenticationCtx::validate() {
{ // TODO: implement validation
// TODO: implement validation
} }
void to_json(nlohmann::json& j, const UEAuthenticationCtx& o) void to_json(nlohmann::json &j, const UEAuthenticationCtx &o) {
{ j = nlohmann::json();
j = nlohmann::json(); j["authType"] = o.m_AuthType;
j["authType"] = o.m_AuthType; j["5gAuthData"] = o.m_r_5gAuthData;
j["5gAuthData"] = o.m_r_5gAuthData; j["_links"] = o.m__links;
j["_links"] = o.m__links; if (o.servingNetworkNameIsSet())
if(o.servingNetworkNameIsSet()) j["servingNetworkName"] = o.m_ServingNetworkName;
j["servingNetworkName"] = o.m_ServingNetworkName;
} }
void from_json(const nlohmann::json& j, UEAuthenticationCtx& o) void from_json(const nlohmann::json &j, UEAuthenticationCtx &o) {
{ j.at("authType").get_to(o.m_AuthType);
j.at("authType").get_to(o.m_AuthType); j.at("5gAuthData").get_to(o.m_r_5gAuthData);
j.at("5gAuthData").get_to(o.m_r_5gAuthData); j.at("_links").get_to(o.m__links);
j.at("_links").get_to(o.m__links); if (j.find("servingNetworkName") != j.end()) {
if(j.find("servingNetworkName") != j.end()) j.at("servingNetworkName").get_to(o.m_ServingNetworkName);
{ o.m_ServingNetworkNameIsSet = true;
j.at("servingNetworkName").get_to(o.m_ServingNetworkName); }
o.m_ServingNetworkNameIsSet = true;
}
} }
AuthType UEAuthenticationCtx::getAuthType() const AuthType UEAuthenticationCtx::getAuthType() const { return m_AuthType; }
{ void UEAuthenticationCtx::setAuthType(AuthType const &value) {
return m_AuthType; m_AuthType = value;
}
void UEAuthenticationCtx::setAuthType(AuthType const& value)
{
m_AuthType = value;
}
OneOfAv5gAkastring UEAuthenticationCtx::getR5gAuthData() const
{
return m_r_5gAuthData;
} }
void UEAuthenticationCtx::setR5gAuthData(OneOfAv5gAkastring const& value) OneOfAv5gAkastring UEAuthenticationCtx::getR5gAuthData() const {
{ return m_r_5gAuthData;
m_r_5gAuthData = value;
} }
std::map<std::string, LinksValueSchema>& UEAuthenticationCtx::getLinks() void UEAuthenticationCtx::setR5gAuthData(OneOfAv5gAkastring const &value) {
{ m_r_5gAuthData = value;
return m__links;
} }
void UEAuthenticationCtx::setLinks(std::map<std::string, LinksValueSchema> const& value) std::map<std::string, LinksValueSchema> &UEAuthenticationCtx::getLinks() {
{ return m__links;
m__links = value;
} }
std::string UEAuthenticationCtx::getServingNetworkName() const void UEAuthenticationCtx::setLinks(
{ std::map<std::string, LinksValueSchema> const &value) {
return m_ServingNetworkName; m__links = value;
} }
void UEAuthenticationCtx::setServingNetworkName(std::string const& value) std::string UEAuthenticationCtx::getServingNetworkName() const {
{ return m_ServingNetworkName;
m_ServingNetworkName = value;
m_ServingNetworkNameIsSet = true;
}
bool UEAuthenticationCtx::servingNetworkNameIsSet() const
{
return m_ServingNetworkNameIsSet;
}
void UEAuthenticationCtx::unsetServingNetworkName()
{
m_ServingNetworkNameIsSet = false;
}
} }
void UEAuthenticationCtx::setServingNetworkName(std::string const &value) {
m_ServingNetworkName = value;
m_ServingNetworkNameIsSet = true;
} }
bool UEAuthenticationCtx::servingNetworkNameIsSet() const {
return m_ServingNetworkNameIsSet;
} }
void UEAuthenticationCtx::unsetServingNetworkName() {
m_ServingNetworkNameIsSet = 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.
*/
/* /*
* UEAuthenticationCtx.h * UEAuthenticationCtx.h
* *
* *
*/ */
#ifndef UEAuthenticationCtx_H_ #ifndef UEAuthenticationCtx_H_
#define UEAuthenticationCtx_H_ #define UEAuthenticationCtx_H_
#include "OneOfAv5gAkastring.h"
#include "LinksValueSchema.h"
#include "AuthType.h" #include "AuthType.h"
#include <string> #include "LinksValueSchema.h"
#include "OneOfAv5gAkastring.h"
#include <map> #include <map>
#include <vector>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
...@@ -33,58 +33,58 @@ namespace server { ...@@ -33,58 +33,58 @@ namespace server {
namespace model { namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class UEAuthenticationCtx class UEAuthenticationCtx {
{
public: public:
UEAuthenticationCtx(); UEAuthenticationCtx();
virtual ~UEAuthenticationCtx(); virtual ~UEAuthenticationCtx();
void validate();
void validate(); /////////////////////////////////////////////
/// UEAuthenticationCtx members
///////////////////////////////////////////// /// <summary>
/// UEAuthenticationCtx members ///
/// </summary>
AuthType getAuthType() const;
void setAuthType(AuthType const &value);
/// <summary>
///
/// </summary>
OneOfAv5gAkastring getR5gAuthData() const;
void setR5gAuthData(OneOfAv5gAkastring const &value);
/// <summary>
///
/// </summary>
std::map<std::string, LinksValueSchema> &getLinks();
void setLinks(std::map<std::string, LinksValueSchema> const &value);
/// <summary>
///
/// </summary>
std::string getServingNetworkName() const;
void setServingNetworkName(std::string const &value);
bool servingNetworkNameIsSet() const;
void unsetServingNetworkName();
/// <summary> friend void to_json(nlohmann::json &j, const UEAuthenticationCtx &o);
/// friend void from_json(const nlohmann::json &j, UEAuthenticationCtx &o);
/// </summary>
AuthType getAuthType() const;
void setAuthType(AuthType const& value);
/// <summary>
///
/// </summary>
OneOfAv5gAkastring getR5gAuthData() const;
void setR5gAuthData(OneOfAv5gAkastring const& value);
/// <summary>
///
/// </summary>
std::map<std::string, LinksValueSchema>& getLinks();
void setLinks(std::map<std::string, LinksValueSchema> const& value);
/// <summary>
///
/// </summary>
std::string getServingNetworkName() const;
void setServingNetworkName(std::string const& value);
bool servingNetworkNameIsSet() const;
void unsetServingNetworkName();
friend void to_json(nlohmann::json& j, const UEAuthenticationCtx& o);
friend void from_json(const nlohmann::json& j, UEAuthenticationCtx& o);
protected: protected:
AuthType m_AuthType; AuthType m_AuthType;
OneOfAv5gAkastring m_r_5gAuthData; OneOfAv5gAkastring m_r_5gAuthData;
std::map<std::string, LinksValueSchema> m__links; std::map<std::string, LinksValueSchema> m__links;
std::string m_ServingNetworkName; std::string m_ServingNetworkName;
bool m_ServingNetworkNameIsSet; bool m_ServingNetworkNameIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* UEAuthenticationCtx_H_ */ #endif /* UEAuthenticationCtx_H_ */
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