Commit 4218871a authored by Keliang's avatar Keliang

clang-format with eurecom style

parent 5720c168
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthenticationResultDeletionApi.h"
#include "Helpers.h"
......@@ -21,71 +22,86 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AuthenticationResultDeletionApi::AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AuthenticationResultDeletionApi::AuthenticationResultDeletionApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AuthenticationResultDeletionApi::init() {
setupRoutes();
}
void AuthenticationResultDeletionApi::init() { 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, base + "/ue-authentications/:authCtxId/eap-session", Routes::bind(&AuthenticationResultDeletionApi::delete_eap_authentication_result_handler, this));
Routes::Delete(*router,
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
router->addCustomHandler(Routes::bind(&AuthenticationResultDeletionApi::authentication_result_deletion_api_default_handler, this));
// Default handler, called when a route is not found
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) {
// Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>();
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>();
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;
}
void AuthenticationResultDeletionApi::
delete5g_aka_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->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) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
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;
}
}
}
}
}
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AuthenticationResultDeletionApi.h
*
*
*
*/
#ifndef AuthenticationResultDeletionApi_H_
#define AuthenticationResultDeletionApi_H_
#include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h>
#include <pistache/optional.h>
#include <pistache/router.h>
#include "ProblemDetails.h"
#include <string>
......@@ -35,47 +34,55 @@ namespace api {
using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApi {
class AuthenticationResultDeletionApi {
public:
AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationResultDeletionApi() {}
void init();
AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationResultDeletionApi() {}
void init();
const std::string base = "/nausf-auth/v1";
const std::string base = "/nausf-auth/v1";
private:
void setupRoutes();
void delete5g_aka_authentication_result_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void delete_eap_authentication_result_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void authentication_result_deletion_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
/// Deletes the authentication result in the UDM
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
virtual void delete5g_aka_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;
void setupRoutes();
void delete5g_aka_authentication_result_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void delete_eap_authentication_result_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void authentication_result_deletion_api_default_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
/// Deletes the authentication result in the UDM
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
virtual void delete5g_aka_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_ */
This diff is collapsed.
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* DefaultApi.h
*
*
*
*/
#ifndef DefaultApi_H_
#define DefaultApi_H_
#include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h>
#include <pistache/optional.h>
#include <pistache/router.h>
#include "AuthenticationInfo.h"
#include "ConfirmationData.h"
......@@ -43,79 +42,95 @@ namespace api {
using namespace org::openapitools::server::model;
class DefaultApi {
class DefaultApi {
public:
DefaultApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~DefaultApi() {}
void init();
DefaultApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~DefaultApi() {}
void init();
const std::string base = "/nausf-auth/v1";
const std::string base = "/nausf-auth/v1";
private:
void setupRoutes();
void eap_auth_method_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void rg_authentications_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void ue_authentications_deregister_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void ue_authentications_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void default_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
/// <param name="eapSession"> (optional)</param>
virtual void eap_auth_method(const std::string &authCtxId, const EapSession &eapSession, Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="rgAuthenticationInfo"></param>
virtual void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
/// <param name="confirmationData"> (optional)</param>
virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put(const std::string &authCtxId, const ConfirmationData &confirmationData, Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </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;
void setupRoutes();
void eap_auth_method_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void rg_authentications_post_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void ue_authentications_post_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void default_api_default_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
/// <param name="eapSession"> (optional)</param>
virtual void eap_auth_method(const std::string &authCtxId,
const EapSession &eapSession,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="rgAuthenticationInfo"></param>
virtual void
rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="authCtxId"></param>
/// <param name="confirmationData"> (optional)</param>
virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
const std::string &authCtxId, const ConfirmationData &confirmationData,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
///
/// </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_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthenticationResultDeletionApiImpl.h"
......@@ -19,19 +20,20 @@ namespace api {
using namespace org::openapitools::server::model;
AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr)
: AuthenticationResultDeletionApi(rtr)
{ }
AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(
std::shared_ptr<Pistache::Rest::Router> rtr)
: AuthenticationResultDeletionApi(rtr) {}
void AuthenticationResultDeletionApiImpl::delete5g_aka_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");
}
}
}
void AuthenticationResultDeletionApiImpl::delete5g_aka_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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (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_
#define AUTHENTICATION_RESULT_DELETION_API_IMPL_H_
#include <memory>
#include <pistache/endpoint.h>
#include <pistache/http.h>
#include <pistache/router.h>
#include <memory>
#include <AuthenticationResultDeletionApi.h>
......@@ -39,21 +39,23 @@ namespace api {
using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApiImpl : public org::openapitools::server::api::AuthenticationResultDeletionApi {
class AuthenticationResultDeletionApiImpl
: public org::openapitools::server::api::AuthenticationResultDeletionApi {
public:
AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router>);
~AuthenticationResultDeletionApiImpl() {}
void 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);
AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router>);
~AuthenticationResultDeletionApiImpl() {}
void
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
\ No newline at end of file
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "DefaultApiImpl.h"
......@@ -20,27 +21,35 @@ namespace api {
using namespace org::openapitools::server::model;
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) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void DefaultApiImpl::rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, 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, 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_post(const AuthenticationInfo &authenticationInfo, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
}
}
}
void DefaultApiImpl::eap_auth_method(const std::string &authCtxId,
const EapSession &eapSession,
Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void DefaultApiImpl::rg_authentications_post(
const RgAuthenticationInfo &rgAuthenticationInfo,
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,
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_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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* DefaultApiImpl.h
*
*
*/
* DefaultApiImpl.h
*
*
*/
#ifndef DEFAULT_API_IMPL_H_
#define DEFAULT_API_IMPL_H_
#include <memory>
#include <pistache/endpoint.h>
#include <pistache/http.h>
#include <pistache/router.h>
#include <memory>
#include <DefaultApi.h>
......@@ -49,22 +49,27 @@ using namespace org::openapitools::server::model;
class DefaultApiImpl : public org::openapitools::server::api::DefaultApi {
public:
DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router>);
~DefaultApiImpl() {}
void eap_auth_method(const std::string &authCtxId, const EapSession &eapSession, Pistache::Http::ResponseWriter &response);
void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, 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);
DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router>);
~DefaultApiImpl() {}
void eap_auth_method(const std::string &authCtxId,
const EapSession &eapSession,
Pistache::Http::ResponseWriter &response);
void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo,
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
\ No newline at end of file
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "pistache/endpoint.h"
#include "pistache/http.h"
#include "pistache/router.h"
#ifdef __linux__
#include <vector>
#include <signal.h>
#include <unistd.h>
#include <vector>
#endif
#include "AuthenticationResultDeletionApiImpl.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_RESPONSE_SIZE 32768
static Pistache::Http::Endpoint *httpEndpoint;
#ifdef __linux__
static void sigHandler [[noreturn]] (int sig){
switch(sig){
case SIGINT:
case SIGQUIT:
case SIGTERM:
case SIGHUP:
default:
httpEndpoint->shutdown();
break;
}
exit(0);
static void sigHandler [[noreturn]] (int sig) {
switch (sig) {
case SIGINT:
case SIGQUIT:
case SIGTERM:
case SIGHUP:
default:
httpEndpoint->shutdown();
break;
}
exit(0);
}
static void setUpUnixSignals(std::vector<int> quitSignals) {
sigset_t blocking_mask;
sigemptyset(&blocking_mask);
for (auto sig : quitSignals)
sigaddset(&blocking_mask, sig);
struct sigaction sa;
sa.sa_handler = sigHandler;
sa.sa_mask = blocking_mask;
sa.sa_flags = 0;
for (auto sig : quitSignals)
sigaction(sig, &sa, nullptr);
sigset_t blocking_mask;
sigemptyset(&blocking_mask);
for (auto sig : quitSignals)
sigaddset(&blocking_mask, sig);
struct sigaction sa;
sa.sa_handler = sigHandler;
sa.sa_mask = blocking_mask;
sa.sa_flags = 0;
for (auto sig : quitSignals)
sigaction(sig, &sa, nullptr);
}
#endif
......@@ -62,31 +62,29 @@ using namespace org::openapitools::server::api;
int main() {
#ifdef __linux__
std::vector<int> sigs{SIGQUIT, SIGINT, SIGTERM, SIGHUP};
setUpUnixSignals(sigs);
std::vector<int> sigs{SIGQUIT, SIGINT, SIGTERM, SIGHUP};
setUpUnixSignals(sigs);
#endif
Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(8080));
httpEndpoint = new Pistache::Http::Endpoint((addr));
auto router = std::make_shared<Pistache::Rest::Router>();
Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(8080));
auto opts = Pistache::Http::Endpoint::options()
.threads(PISTACHE_SERVER_THREADS);
opts.flags(Pistache::Tcp::Options::ReuseAddr);
opts.maxRequestSize(PISTACHE_SERVER_MAX_REQUEST_SIZE);
opts.maxResponseSize(PISTACHE_SERVER_MAX_RESPONSE_SIZE);
httpEndpoint->init(opts);
httpEndpoint = new Pistache::Http::Endpoint((addr));
auto router = std::make_shared<Pistache::Rest::Router>();
AuthenticationResultDeletionApiImpl AuthenticationResultDeletionApiserver(router);
AuthenticationResultDeletionApiserver.init();
DefaultApiImpl DefaultApiserver(router);
DefaultApiserver.init();
auto opts =
Pistache::Http::Endpoint::options().threads(PISTACHE_SERVER_THREADS);
opts.flags(Pistache::Tcp::Options::ReuseAddr);
opts.maxRequestSize(PISTACHE_SERVER_MAX_REQUEST_SIZE);
opts.maxResponseSize(PISTACHE_SERVER_MAX_RESPONSE_SIZE);
httpEndpoint->init(opts);
httpEndpoint->setHandler(router->handler());
httpEndpoint->serve();
AuthenticationResultDeletionApiImpl AuthenticationResultDeletionApiserver(
router);
AuthenticationResultDeletionApiserver.init();
DefaultApiImpl DefaultApiserver(router);
DefaultApiserver.init();
httpEndpoint->shutdown();
httpEndpoint->setHandler(router->handler());
httpEndpoint->serve();
httpEndpoint->shutdown();
}
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthResult.h"
......@@ -18,32 +18,19 @@ namespace openapitools {
namespace server {
namespace model {
AuthResult::AuthResult()
{
}
AuthResult::~AuthResult()
{
}
AuthResult::AuthResult() {}
void AuthResult::validate()
{
// TODO: implement validation
}
AuthResult::~AuthResult() {}
void to_json(nlohmann::json& j, const AuthResult& o)
{
j = nlohmann::json();
void AuthResult::validate() {
// TODO: implement validation
}
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AuthResult.h
*
*
*
*/
#ifndef AuthResult_H_
#define AuthResult_H_
#include <nlohmann/json.hpp>
namespace org {
......@@ -27,28 +27,27 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class AuthResult
{
class AuthResult {
public:
AuthResult();
virtual ~AuthResult();
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:
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* AuthResult_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthType.h"
......@@ -18,32 +18,19 @@ namespace openapitools {
namespace server {
namespace model {
AuthType::AuthType()
{
}
AuthType::~AuthType()
{
}
AuthType::AuthType() {}
void AuthType::validate()
{
// TODO: implement validation
}
AuthType::~AuthType() {}
void to_json(nlohmann::json& j, const AuthType& o)
{
j = nlohmann::json();
void AuthType::validate() {
// TODO: implement validation
}
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AuthType.h
*
*
*
*/
#ifndef AuthType_H_
#define AuthType_H_
#include <nlohmann/json.hpp>
namespace org {
......@@ -27,28 +27,27 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class AuthType
{
class AuthType {
public:
AuthType();
virtual ~AuthType();
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:
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* AuthType_H_ */
This diff is collapsed.
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AuthenticationInfo.h
*
*
*
*/
#ifndef AuthenticationInfo_H_
#define AuthenticationInfo_H_
#include <string>
#include "ResynchronizationInfo.h"
#include "TraceData.h"
#include <vector>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org {
namespace openapitools {
......@@ -31,105 +31,105 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class AuthenticationInfo
{
class AuthenticationInfo {
public:
AuthenticationInfo();
virtual ~AuthenticationInfo();
AuthenticationInfo();
virtual ~AuthenticationInfo();
void validate();
void validate();
/////////////////////////////////////////////
/// AuthenticationInfo members
/////////////////////////////////////////////
/// AuthenticationInfo members
/// <summary>
///
/// </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>
///
/// </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);
friend void to_json(nlohmann::json& j, const AuthenticationInfo& o);
friend void from_json(const nlohmann::json& j, AuthenticationInfo& o);
protected:
std::string m_SupiOrSuci;
std::string m_SupiOrSuci;
std::string m_ServingNetworkName;
std::string m_ServingNetworkName;
ResynchronizationInfo m_ResynchronizationInfo;
bool m_ResynchronizationInfoIsSet;
std::string m_Pei;
bool m_PeiIsSet;
TraceData m_TraceData;
bool m_TraceDataIsSet;
std::string m_UdmGroupId;
bool m_UdmGroupIdIsSet;
std::string m_RoutingIndicator;
bool m_RoutingIndicatorIsSet;
std::vector<std::string> m_CellCagInfo;
bool m_CellCagInfoIsSet;
bool m_N5gcInd;
bool m_N5gcIndIsSet;
ResynchronizationInfo m_ResynchronizationInfo;
bool m_ResynchronizationInfoIsSet;
std::string m_Pei;
bool m_PeiIsSet;
TraceData m_TraceData;
bool m_TraceDataIsSet;
std::string m_UdmGroupId;
bool m_UdmGroupIdIsSet;
std::string m_RoutingIndicator;
bool m_RoutingIndicatorIsSet;
std::vector<std::string> m_CellCagInfo;
bool m_CellCagInfoIsSet;
bool m_N5gcInd;
bool m_N5gcIndIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* AuthenticationInfo_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Av5gAka.h"
......@@ -18,65 +18,39 @@ namespace openapitools {
namespace server {
namespace model {
Av5gAka::Av5gAka()
{
m_Rand = "";
m_HxresStar = "";
m_Autn = "";
Av5gAka::Av5gAka() {
m_Rand = "";
m_HxresStar = "";
m_Autn = "";
}
Av5gAka::~Av5gAka()
{
}
Av5gAka::~Av5gAka() {}
void Av5gAka::validate()
{
// TODO: implement validation
void Av5gAka::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const Av5gAka& o)
{
j = nlohmann::json();
j["rand"] = o.m_Rand;
j["hxresStar"] = o.m_HxresStar;
j["autn"] = o.m_Autn;
void to_json(nlohmann::json &j, const Av5gAka &o) {
j = nlohmann::json();
j["rand"] = o.m_Rand;
j["hxresStar"] = o.m_HxresStar;
j["autn"] = o.m_Autn;
}
void from_json(const nlohmann::json& j, Av5gAka& o)
{
j.at("rand").get_to(o.m_Rand);
j.at("hxresStar").get_to(o.m_HxresStar);
j.at("autn").get_to(o.m_Autn);
void from_json(const nlohmann::json &j, Av5gAka &o) {
j.at("rand").get_to(o.m_Rand);
j.at("hxresStar").get_to(o.m_HxresStar);
j.at("autn").get_to(o.m_Autn);
}
std::string Av5gAka::getRand() const
{
return m_Rand;
}
void Av5gAka::setRand(std::string const& value)
{
m_Rand = value;
}
std::string Av5gAka::getHxresStar() const
{
return m_HxresStar;
}
void Av5gAka::setHxresStar(std::string const& value)
{
m_HxresStar = value;
}
std::string Av5gAka::getAutn() const
{
return m_Autn;
}
void Av5gAka::setAutn(std::string const& value)
{
m_Autn = value;
}
}
}
}
}
std::string Av5gAka::getRand() const { return m_Rand; }
void Av5gAka::setRand(std::string const &value) { m_Rand = value; }
std::string Av5gAka::getHxresStar() const { return m_HxresStar; }
void Av5gAka::setHxresStar(std::string const &value) { 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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* Av5gAka.h
*
*
*
*/
#ifndef Av5gAka_H_
#define Av5gAka_H_
#include <string>
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -28,49 +28,48 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class Av5gAka
{
class Av5gAka {
public:
Av5gAka();
virtual ~Av5gAka();
Av5gAka();
virtual ~Av5gAka();
void validate();
void validate();
/////////////////////////////////////////////
/// Av5gAka members
/////////////////////////////////////////////
/// Av5gAka members
/// <summary>
///
/// </summary>
std::string getRand() const;
void setRand(std::string const& value);
/// <summary>
///
/// </summary>
std::string getHxresStar() const;
void setHxresStar(std::string const& value);
/// <summary>
///
/// </summary>
std::string getAutn() const;
void setAutn(std::string const& value);
/// <summary>
///
/// </summary>
std::string getRand() const;
void setRand(std::string const &value);
/// <summary>
///
/// </summary>
std::string getHxresStar() const;
void setHxresStar(std::string const &value);
/// <summary>
///
/// </summary>
std::string getAutn() const;
void setAutn(std::string const &value);
friend void to_json(nlohmann::json& j, const Av5gAka& o);
friend void from_json(const nlohmann::json& j, Av5gAka& o);
protected:
std::string m_Rand;
friend void to_json(nlohmann::json &j, const Av5gAka &o);
friend void from_json(const nlohmann::json &j, Av5gAka &o);
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_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "ConfirmationData.h"
......@@ -18,43 +18,29 @@ namespace openapitools {
namespace server {
namespace model {
ConfirmationData::ConfirmationData()
{
m_ResStar = "";
}
ConfirmationData::ConfirmationData() { m_ResStar = ""; }
ConfirmationData::~ConfirmationData()
{
}
ConfirmationData::~ConfirmationData() {}
void ConfirmationData::validate()
{
// TODO: implement validation
void ConfirmationData::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ConfirmationData& o)
{
j = nlohmann::json();
j["resStar"] = o.m_ResStar;
void to_json(nlohmann::json &j, const ConfirmationData &o) {
j = nlohmann::json();
j["resStar"] = o.m_ResStar;
}
void from_json(const nlohmann::json& j, ConfirmationData& o)
{
j.at("resStar").get_to(o.m_ResStar);
void from_json(const nlohmann::json &j, ConfirmationData &o) {
j.at("resStar").get_to(o.m_ResStar);
}
std::string ConfirmationData::getResStar() const
{
return m_ResStar;
}
void ConfirmationData::setResStar(std::string const& value)
{
m_ResStar = value;
}
}
}
}
std::string ConfirmationData::getResStar() const { return m_ResStar; }
void ConfirmationData::setResStar(std::string const &value) {
m_ResStar = value;
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* ConfirmationData.h
*
*
*
*/
#ifndef ConfirmationData_H_
#define ConfirmationData_H_
#include <string>
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -28,35 +28,34 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class ConfirmationData
{
class ConfirmationData {
public:
ConfirmationData();
virtual ~ConfirmationData();
ConfirmationData();
virtual ~ConfirmationData();
void validate();
void validate();
/////////////////////////////////////////////
/// ConfirmationData members
/////////////////////////////////////////////
/// ConfirmationData members
/// <summary>
///
/// </summary>
std::string getResStar() const;
void setResStar(std::string const& value);
/// <summary>
///
/// </summary>
std::string getResStar() const;
void setResStar(std::string const &value);
friend void to_json(nlohmann::json& j, const ConfirmationData& o);
friend void from_json(const nlohmann::json& j, ConfirmationData& o);
protected:
std::string m_ResStar;
friend void to_json(nlohmann::json &j, const ConfirmationData &o);
friend void from_json(const nlohmann::json &j, ConfirmationData &o);
protected:
std::string m_ResStar;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* ConfirmationData_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "ConfirmationDataResponse.h"
......@@ -18,94 +18,62 @@ namespace openapitools {
namespace server {
namespace model {
ConfirmationDataResponse::ConfirmationDataResponse()
{
m_Supi = "";
m_SupiIsSet = false;
m_Kseaf = "";
m_KseafIsSet = false;
ConfirmationDataResponse::ConfirmationDataResponse() {
m_Supi = "";
m_SupiIsSet = false;
m_Kseaf = "";
m_KseafIsSet = false;
}
ConfirmationDataResponse::~ConfirmationDataResponse()
{
}
ConfirmationDataResponse::~ConfirmationDataResponse() {}
void ConfirmationDataResponse::validate()
{
// TODO: implement validation
void ConfirmationDataResponse::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ConfirmationDataResponse& o)
{
j = nlohmann::json();
j["authResult"] = o.m_AuthResult;
if(o.supiIsSet())
j["supi"] = o.m_Supi;
if(o.kseafIsSet())
j["kseaf"] = o.m_Kseaf;
void to_json(nlohmann::json &j, const ConfirmationDataResponse &o) {
j = nlohmann::json();
j["authResult"] = o.m_AuthResult;
if (o.supiIsSet())
j["supi"] = o.m_Supi;
if (o.kseafIsSet())
j["kseaf"] = o.m_Kseaf;
}
void from_json(const nlohmann::json& j, ConfirmationDataResponse& o)
{
j.at("authResult").get_to(o.m_AuthResult);
if(j.find("supi") != j.end())
{
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);
o.m_KseafIsSet = true;
}
void from_json(const nlohmann::json &j, ConfirmationDataResponse &o) {
j.at("authResult").get_to(o.m_AuthResult);
if (j.find("supi") != j.end()) {
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);
o.m_KseafIsSet = true;
}
}
AuthResult ConfirmationDataResponse::getAuthResult() const
{
return m_AuthResult;
}
void ConfirmationDataResponse::setAuthResult(AuthResult const& value)
{
m_AuthResult = value;
}
std::string ConfirmationDataResponse::getSupi() const
{
return m_Supi;
}
void ConfirmationDataResponse::setSupi(std::string const& value)
{
m_Supi = value;
m_SupiIsSet = true;
}
bool ConfirmationDataResponse::supiIsSet() const
{
return m_SupiIsSet;
}
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;
}
}
}
}
}
AuthResult ConfirmationDataResponse::getAuthResult() const {
return m_AuthResult;
}
void ConfirmationDataResponse::setAuthResult(AuthResult const &value) {
m_AuthResult = value;
}
std::string ConfirmationDataResponse::getSupi() const { return m_Supi; }
void ConfirmationDataResponse::setSupi(std::string const &value) {
m_Supi = value;
m_SupiIsSet = true;
}
bool ConfirmationDataResponse::supiIsSet() const { return m_SupiIsSet; }
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* ConfirmationDataResponse.h
*
*
*
*/
#ifndef ConfirmationDataResponse_H_
#define ConfirmationDataResponse_H_
#include <string>
#include "AuthResult.h"
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -29,53 +29,53 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class ConfirmationDataResponse
{
class ConfirmationDataResponse {
public:
ConfirmationDataResponse();
virtual ~ConfirmationDataResponse();
ConfirmationDataResponse();
virtual ~ConfirmationDataResponse();
void validate();
void validate();
/////////////////////////////////////////////
/// ConfirmationDataResponse members
/////////////////////////////////////////////
/// ConfirmationDataResponse members
/// <summary>
///
/// </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>
///
/// </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);
friend void to_json(nlohmann::json& j, const ConfirmationDataResponse& o);
friend void from_json(const nlohmann::json& j, ConfirmationDataResponse& o);
protected:
AuthResult m_AuthResult;
AuthResult m_AuthResult;
std::string m_Supi;
bool m_SupiIsSet;
std::string m_Kseaf;
bool m_KseafIsSet;
std::string m_Supi;
bool m_SupiIsSet;
std::string m_Kseaf;
bool m_KseafIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* ConfirmationDataResponse_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "DeregistrationInfo.h"
......@@ -18,43 +18,27 @@ namespace openapitools {
namespace server {
namespace model {
DeregistrationInfo::DeregistrationInfo()
{
m_Supi = "";
}
DeregistrationInfo::DeregistrationInfo() { m_Supi = ""; }
DeregistrationInfo::~DeregistrationInfo()
{
}
void DeregistrationInfo::validate()
{
// TODO: implement validation
}
DeregistrationInfo::~DeregistrationInfo() {}
void to_json(nlohmann::json& j, const DeregistrationInfo& o)
{
j = nlohmann::json();
j["supi"] = o.m_Supi;
void DeregistrationInfo::validate() {
// TODO: implement validation
}
void from_json(const nlohmann::json& j, DeregistrationInfo& o)
{
j.at("supi").get_to(o.m_Supi);
void to_json(nlohmann::json &j, const DeregistrationInfo &o) {
j = nlohmann::json();
j["supi"] = o.m_Supi;
}
std::string DeregistrationInfo::getSupi() const
{
return m_Supi;
}
void DeregistrationInfo::setSupi(std::string const& value)
{
m_Supi = value;
void from_json(const nlohmann::json &j, DeregistrationInfo &o) {
j.at("supi").get_to(o.m_Supi);
}
}
}
}
}
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* DeregistrationInfo.h
*
*
*
*/
#ifndef DeregistrationInfo_H_
#define DeregistrationInfo_H_
#include <string>
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -28,35 +28,34 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class DeregistrationInfo
{
class DeregistrationInfo {
public:
DeregistrationInfo();
virtual ~DeregistrationInfo();
DeregistrationInfo();
virtual ~DeregistrationInfo();
void validate();
void validate();
/////////////////////////////////////////////
/// DeregistrationInfo members
/////////////////////////////////////////////
/// DeregistrationInfo members
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const& value);
/// <summary>
///
/// </summary>
std::string getSupi() const;
void setSupi(std::string const &value);
friend void to_json(nlohmann::json& j, const DeregistrationInfo& o);
friend void from_json(const nlohmann::json& j, DeregistrationInfo& o);
protected:
std::string m_Supi;
friend void to_json(nlohmann::json &j, const DeregistrationInfo &o);
friend void from_json(const nlohmann::json &j, DeregistrationInfo &o);
protected:
std::string m_Supi;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* DeregistrationInfo_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "EapSession.h"
......@@ -18,145 +18,92 @@ namespace openapitools {
namespace server {
namespace model {
EapSession::EapSession()
{
m_EapPayload = "";
m_KSeaf = "";
m_KSeafIsSet = false;
m__linksIsSet = false;
m_AuthResultIsSet = false;
m_Supi = "";
m_SupiIsSet = false;
EapSession::EapSession() {
m_EapPayload = "";
m_KSeaf = "";
m_KSeafIsSet = false;
m__linksIsSet = false;
m_AuthResultIsSet = false;
m_Supi = "";
m_SupiIsSet = false;
}
EapSession::~EapSession()
{
}
EapSession::~EapSession() {}
void EapSession::validate()
{
// TODO: implement validation
void EapSession::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const EapSession& o)
{
j = nlohmann::json();
j["eapPayload"] = o.m_EapPayload;
if(o.kSeafIsSet())
j["kSeaf"] = o.m_KSeaf;
if(o.linksIsSet() || !o.m__links.empty())
j["_links"] = o.m__links;
if(o.authResultIsSet())
j["authResult"] = o.m_AuthResult;
if(o.supiIsSet())
j["supi"] = o.m_Supi;
void to_json(nlohmann::json &j, const EapSession &o) {
j = nlohmann::json();
j["eapPayload"] = o.m_EapPayload;
if (o.kSeafIsSet())
j["kSeaf"] = o.m_KSeaf;
if (o.linksIsSet() || !o.m__links.empty())
j["_links"] = o.m__links;
if (o.authResultIsSet())
j["authResult"] = o.m_AuthResult;
if (o.supiIsSet())
j["supi"] = o.m_Supi;
}
void from_json(const nlohmann::json& j, EapSession& o)
{
j.at("eapPayload").get_to(o.m_EapPayload);
if(j.find("kSeaf") != j.end())
{
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);
o.m__linksIsSet = true;
}
if(j.find("authResult") != j.end())
{
j.at("authResult").get_to(o.m_AuthResult);
o.m_AuthResultIsSet = true;
}
if(j.find("supi") != j.end())
{
j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true;
}
void from_json(const nlohmann::json &j, EapSession &o) {
j.at("eapPayload").get_to(o.m_EapPayload);
if (j.find("kSeaf") != j.end()) {
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);
o.m__linksIsSet = true;
}
if (j.find("authResult") != j.end()) {
j.at("authResult").get_to(o.m_AuthResult);
o.m_AuthResultIsSet = true;
}
if (j.find("supi") != j.end()) {
j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true;
}
}
std::string EapSession::getEapPayload() const
{
return m_EapPayload;
}
void EapSession::setEapPayload(std::string const& value)
{
m_EapPayload = value;
}
std::string EapSession::getKSeaf() const
{
return m_KSeaf;
}
void EapSession::setKSeaf(std::string const& value)
{
m_KSeaf = value;
m_KSeafIsSet = true;
}
bool EapSession::kSeafIsSet() const
{
return m_KSeafIsSet;
}
void EapSession::unsetKSeaf()
{
m_KSeafIsSet = false;
}
std::map<std::string, LinksValueSchema>& EapSession::getLinks()
{
return m__links;
}
void EapSession::setLinks(std::map<std::string, LinksValueSchema> const& value)
{
m__links = value;
m__linksIsSet = true;
}
bool EapSession::linksIsSet() const
{
return m__linksIsSet;
}
void EapSession::unset_links()
{
m__linksIsSet = false;
}
AuthResult EapSession::getAuthResult() const
{
return m_AuthResult;
}
void EapSession::setAuthResult(AuthResult const& value)
{
m_AuthResult = value;
m_AuthResultIsSet = true;
}
bool EapSession::authResultIsSet() const
{
return m_AuthResultIsSet;
}
void EapSession::unsetAuthResult()
{
m_AuthResultIsSet = false;
}
std::string EapSession::getSupi() const
{
return m_Supi;
}
void EapSession::setSupi(std::string const& value)
{
m_Supi = value;
m_SupiIsSet = true;
}
bool EapSession::supiIsSet() const
{
return m_SupiIsSet;
}
void EapSession::unsetSupi()
{
m_SupiIsSet = false;
}
}
}
}
}
std::string EapSession::getEapPayload() const { return m_EapPayload; }
void EapSession::setEapPayload(std::string const &value) {
m_EapPayload = value;
}
std::string EapSession::getKSeaf() const { return m_KSeaf; }
void EapSession::setKSeaf(std::string const &value) {
m_KSeaf = value;
m_KSeafIsSet = true;
}
bool EapSession::kSeafIsSet() const { return m_KSeafIsSet; }
void EapSession::unsetKSeaf() { m_KSeafIsSet = false; }
std::map<std::string, LinksValueSchema> &EapSession::getLinks() {
return m__links;
}
void EapSession::setLinks(
std::map<std::string, LinksValueSchema> const &value) {
m__links = value;
m__linksIsSet = true;
}
bool EapSession::linksIsSet() const { return m__linksIsSet; }
void EapSession::unset_links() { m__linksIsSet = false; }
AuthResult EapSession::getAuthResult() const { return m_AuthResult; }
void EapSession::setAuthResult(AuthResult const &value) {
m_AuthResult = value;
m_AuthResultIsSet = true;
}
bool EapSession::authResultIsSet() const { return m_AuthResultIsSet; }
void EapSession::unsetAuthResult() { m_AuthResultIsSet = false; }
std::string EapSession::getSupi() const { return m_Supi; }
void EapSession::setSupi(std::string const &value) {
m_Supi = value;
m_SupiIsSet = true;
}
bool EapSession::supiIsSet() const { return m_SupiIsSet; }
void EapSession::unsetSupi() { m_SupiIsSet = false; }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* EapSession.h
*
*
*
*/
#ifndef EapSession_H_
#define EapSession_H_
#include "AuthResult.h"
#include "LinksValueSchema.h"
#include <string>
#include <map>
#include "AuthResult.h"
#include <vector>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org {
namespace openapitools {
......@@ -32,71 +32,71 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class EapSession
{
class EapSession {
public:
EapSession();
virtual ~EapSession();
EapSession();
virtual ~EapSession();
void validate();
void validate();
/////////////////////////////////////////////
/// EapSession members
/////////////////////////////////////////////
/// EapSession members
/// <summary>
/// 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>
/// 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();
friend void to_json(nlohmann::json &j, const EapSession &o);
friend void from_json(const nlohmann::json &j, EapSession &o);
friend void to_json(nlohmann::json& j, const EapSession& o);
friend void from_json(const nlohmann::json& j, EapSession& o);
protected:
std::string m_EapPayload;
std::string m_EapPayload;
std::string m_KSeaf;
bool m_KSeafIsSet;
std::map<std::string, LinksValueSchema> m__links;
bool m__linksIsSet;
AuthResult m_AuthResult;
bool m_AuthResultIsSet;
std::string m_Supi;
bool m_SupiIsSet;
std::string m_KSeaf;
bool m_KSeafIsSet;
std::map<std::string, LinksValueSchema> m__links;
bool m__linksIsSet;
AuthResult m_AuthResult;
bool m_AuthResultIsSet;
std::string m_Supi;
bool m_SupiIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* EapSession_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Helpers.h"
namespace org {
......@@ -16,83 +17,75 @@ namespace openapitools {
namespace server {
namespace helpers {
std::string toStringValue(const std::string &value){
return std::string(value);
std::string toStringValue(const std::string &value) {
return std::string(value);
}
std::string toStringValue(const int32_t &value){
return std::to_string(value);
std::string toStringValue(const int32_t &value) {
return std::to_string(value);
}
std::string toStringValue(const int64_t &value){
return std::to_string(value);
std::string toStringValue(const int64_t &value) {
return std::to_string(value);
}
std::string toStringValue(const bool &value){
return value?std::string("true"):std::string("false");
std::string toStringValue(const bool &value) {
return value ? std::string("true") : std::string("false");
}
std::string toStringValue(const float &value){
return std::to_string(value);
}
std::string toStringValue(const float &value) { return std::to_string(value); }
std::string toStringValue(const double &value){
return std::to_string(value);
}
std::string toStringValue(const double &value) { return std::to_string(value); }
bool fromStringValue(const std::string &inStr, std::string &value){
value = std::string(inStr);
return true;
bool fromStringValue(const std::string &inStr, std::string &value) {
value = std::string(inStr);
return true;
}
bool fromStringValue(const std::string &inStr, int32_t &value){
try {
value = std::stoi( inStr );
}
catch (const std::invalid_argument&) {
return false;
}
return true;
bool fromStringValue(const std::string &inStr, int32_t &value) {
try {
value = std::stoi(inStr);
} catch (const std::invalid_argument &) {
return false;
}
return true;
}
bool fromStringValue(const std::string &inStr, int64_t &value){
try {
value = std::stol( inStr );
}
catch (const std::invalid_argument&) {
return false;
}
return true;
bool fromStringValue(const std::string &inStr, int64_t &value) {
try {
value = std::stol(inStr);
} catch (const std::invalid_argument &) {
return false;
}
return true;
}
bool fromStringValue(const std::string &inStr, bool &value){
bool result = true;
inStr == "true"?value = true: inStr == "false"?value = false: result = false;
return result;
bool fromStringValue(const std::string &inStr, bool &value) {
bool result = true;
inStr == "true" ? value = true
: inStr == "false" ? value = false : result = false;
return result;
}
bool fromStringValue(const std::string &inStr, float &value){
try {
value = std::stof( inStr );
}
catch (const std::invalid_argument&) {
return false;
}
return true;
bool fromStringValue(const std::string &inStr, float &value) {
try {
value = std::stof(inStr);
} catch (const std::invalid_argument &) {
return false;
}
return true;
}
bool fromStringValue(const std::string &inStr, double &value){
try {
value = std::stod( inStr );
}
catch (const std::invalid_argument&) {
return false;
}
return true;
bool fromStringValue(const std::string &inStr, double &value) {
try {
value = std::stod(inStr);
} catch (const std::invalid_argument &) {
return false;
}
return true;
}
}
}
}
}
} // namespace helpers
} // namespace server
} // namespace openapitools
} // namespace org
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* Helpers.h
*
......@@ -19,58 +20,59 @@
#define Helpers_H_
#include <ctime>
#include <string>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include <map>
namespace org {
namespace openapitools {
namespace server {
namespace helpers {
std::string toStringValue(const std::string &value);
std::string toStringValue(const int32_t &value);
std::string toStringValue(const int64_t &value);
std::string toStringValue(const bool &value);
std::string toStringValue(const float &value);
std::string toStringValue(const double &value);
std::string toStringValue(const std::string &value);
std::string toStringValue(const int32_t &value);
std::string toStringValue(const int64_t &value);
std::string toStringValue(const bool &value);
std::string toStringValue(const float &value);
std::string toStringValue(const double &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, int64_t &value);
bool fromStringValue(const std::string &inStr, bool &value);
bool fromStringValue(const std::string &inStr, float &value);
bool fromStringValue(const std::string &inStr, double &value);
template<typename T>
bool fromStringValue(const std::vector<std::string> &inStr, std::vector<T> &value){
try{
for(auto & item : inStr){
T 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);
bool fromStringValue(const std::string &inStr, std::string &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, bool &value);
bool fromStringValue(const std::string &inStr, float &value);
bool fromStringValue(const std::string &inStr, double &value);
template <typename T>
bool fromStringValue(const std::vector<std::string> &inStr,
std::vector<T> &value) {
try {
for (auto &item : inStr) {
T 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);
}
} // namespace helpers
} // namespace server
} // namespace openapitools
} // namespace org
#endif // Helpers_H_
\ No newline at end of file
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "InvalidParam.h"
......@@ -18,69 +18,44 @@ namespace openapitools {
namespace server {
namespace model {
InvalidParam::InvalidParam()
{
m_Param = "";
m_Reason = "";
m_ReasonIsSet = false;
}
InvalidParam::~InvalidParam()
{
InvalidParam::InvalidParam() {
m_Param = "";
m_Reason = "";
m_ReasonIsSet = false;
}
void InvalidParam::validate()
{
// TODO: implement validation
}
InvalidParam::~InvalidParam() {}
void to_json(nlohmann::json& j, const InvalidParam& o)
{
j = nlohmann::json();
j["param"] = o.m_Param;
if(o.reasonIsSet())
j["reason"] = o.m_Reason;
void InvalidParam::validate() {
// TODO: implement validation
}
void from_json(const nlohmann::json& j, InvalidParam& o)
{
j.at("param").get_to(o.m_Param);
if(j.find("reason") != j.end())
{
j.at("reason").get_to(o.m_Reason);
o.m_ReasonIsSet = true;
}
void to_json(nlohmann::json &j, const InvalidParam &o) {
j = nlohmann::json();
j["param"] = o.m_Param;
if (o.reasonIsSet())
j["reason"] = o.m_Reason;
}
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;
void from_json(const nlohmann::json &j, InvalidParam &o) {
j.at("param").get_to(o.m_Param);
if (j.find("reason") != j.end()) {
j.at("reason").get_to(o.m_Reason);
o.m_ReasonIsSet = true;
}
}
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* InvalidParam.h
*
*
*
*/
#ifndef InvalidParam_H_
#define InvalidParam_H_
#include <string>
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -28,44 +28,44 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class InvalidParam
{
class InvalidParam {
public:
InvalidParam();
virtual ~InvalidParam();
InvalidParam();
virtual ~InvalidParam();
void validate();
void validate();
/////////////////////////////////////////////
/// InvalidParam members
/////////////////////////////////////////////
/// InvalidParam members
/// <summary>
///
/// </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>
///
/// </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);
friend void to_json(nlohmann::json& j, const InvalidParam& o);
friend void from_json(const nlohmann::json& j, InvalidParam& o);
protected:
std::string m_Param;
std::string m_Param;
std::string m_Reason;
bool m_ReasonIsSet;
std::string m_Reason;
bool m_ReasonIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* InvalidParam_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Ipv6Addr.h"
......@@ -18,32 +18,19 @@ namespace openapitools {
namespace server {
namespace model {
Ipv6Addr::Ipv6Addr()
{
}
Ipv6Addr::~Ipv6Addr()
{
}
Ipv6Addr::Ipv6Addr() {}
void Ipv6Addr::validate()
{
// TODO: implement validation
}
Ipv6Addr::~Ipv6Addr() {}
void to_json(nlohmann::json& j, const Ipv6Addr& o)
{
j = nlohmann::json();
void Ipv6Addr::validate() {
// TODO: implement validation
}
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 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* Ipv6Addr.h
*
*
*
*/
#ifndef Ipv6Addr_H_
#define Ipv6Addr_H_
#include <nlohmann/json.hpp>
namespace org {
......@@ -27,28 +27,27 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class Ipv6Addr
{
class Ipv6Addr {
public:
Ipv6Addr();
virtual ~Ipv6Addr();
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:
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* Ipv6Addr_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Link.h"
......@@ -18,58 +18,39 @@ namespace openapitools {
namespace server {
namespace model {
Link::Link()
{
m_Href = "";
m_HrefIsSet = false;
Link::Link() {
m_Href = "";
m_HrefIsSet = false;
}
Link::~Link()
{
}
Link::~Link() {}
void Link::validate()
{
// TODO: implement validation
void Link::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const Link& o)
{
j = nlohmann::json();
if(o.hrefIsSet())
j["href"] = o.m_Href;
void to_json(nlohmann::json &j, const Link &o) {
j = nlohmann::json();
if (o.hrefIsSet())
j["href"] = o.m_Href;
}
void from_json(const nlohmann::json& j, Link& o)
{
if(j.find("href") != j.end())
{
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;
void from_json(const nlohmann::json &j, Link &o) {
if (j.find("href") != j.end()) {
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; }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* Link.h
*
*
*
*/
#ifndef Link_H_
#define Link_H_
#include <string>
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -28,37 +28,37 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class Link
{
class Link {
public:
Link();
virtual ~Link();
Link();
virtual ~Link();
void validate();
void validate();
/////////////////////////////////////////////
/// Link members
/////////////////////////////////////////////
/// Link members
/// <summary>
///
/// </summary>
std::string getHref() const;
void setHref(std::string const &value);
bool hrefIsSet() const;
void unsetHref();
/// <summary>
///
/// </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);
friend void to_json(nlohmann::json& j, const Link& o);
friend void from_json(const nlohmann::json& j, Link& o);
protected:
std::string m_Href;
bool m_HrefIsSet;
std::string m_Href;
bool m_HrefIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* Link_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "LinksValueSchema.h"
......@@ -18,58 +18,39 @@ namespace openapitools {
namespace server {
namespace model {
LinksValueSchema::LinksValueSchema()
{
m_Href = "";
m_HrefIsSet = false;
LinksValueSchema::LinksValueSchema() {
m_Href = "";
m_HrefIsSet = false;
}
LinksValueSchema::~LinksValueSchema()
{
}
LinksValueSchema::~LinksValueSchema() {}
void LinksValueSchema::validate()
{
// TODO: implement validation
void LinksValueSchema::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const LinksValueSchema& o)
{
j = nlohmann::json();
if(o.hrefIsSet())
j["href"] = o.m_Href;
void to_json(nlohmann::json &j, const LinksValueSchema &o) {
j = nlohmann::json();
if (o.hrefIsSet())
j["href"] = o.m_Href;
}
void from_json(const nlohmann::json& j, LinksValueSchema& o)
{
if(j.find("href") != j.end())
{
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;
void from_json(const nlohmann::json &j, LinksValueSchema &o) {
if (j.find("href") != j.end()) {
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; }
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* LinksValueSchema.h
*
*
*
*/
#ifndef LinksValueSchema_H_
#define LinksValueSchema_H_
#include <string>
#include "Link.h"
#include <nlohmann/json.hpp>
#include <string>
namespace org {
namespace openapitools {
......@@ -29,37 +29,37 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class LinksValueSchema
{
class LinksValueSchema {
public:
LinksValueSchema();
virtual ~LinksValueSchema();
LinksValueSchema();
virtual ~LinksValueSchema();
void validate();
void validate();
/////////////////////////////////////////////
/// LinksValueSchema members
/////////////////////////////////////////////
/// LinksValueSchema members
/// <summary>
///
/// </summary>
std::string getHref() const;
void setHref(std::string const &value);
bool hrefIsSet() const;
void unsetHref();
/// <summary>
///
/// </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);
friend void to_json(nlohmann::json& j, const LinksValueSchema& o);
friend void from_json(const nlohmann::json& j, LinksValueSchema& o);
protected:
std::string m_Href;
bool m_HrefIsSet;
std::string m_Href;
bool m_HrefIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* LinksValueSchema_H_ */
This diff is collapsed.
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* ProblemDetails.h
*
*
*
*/
#ifndef ProblemDetails_H_
#define ProblemDetails_H_
#include <string>
#include "InvalidParam.h"
#include <vector>
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
namespace org {
namespace openapitools {
......@@ -30,109 +30,109 @@ namespace server {
namespace model {
/// <summary>
///
///
/// </summary>
class ProblemDetails
{
class ProblemDetails {
public:
ProblemDetails();
virtual ~ProblemDetails();
ProblemDetails();
virtual ~ProblemDetails();
void validate();
void validate();
/////////////////////////////////////////////
/// ProblemDetails members
/////////////////////////////////////////////
/// ProblemDetails members
/// <summary>
///
/// </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>
///
/// </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);
friend void to_json(nlohmann::json& j, const ProblemDetails& o);
friend void from_json(const nlohmann::json& j, ProblemDetails& o);
protected:
std::string m_Type;
bool m_TypeIsSet;
std::string m_Title;
bool m_TitleIsSet;
int32_t m_Status;
bool m_StatusIsSet;
std::string m_Detail;
bool m_DetailIsSet;
std::string m_Instance;
bool m_InstanceIsSet;
std::string m_Cause;
bool m_CauseIsSet;
std::vector<InvalidParam> m_InvalidParams;
bool m_InvalidParamsIsSet;
std::string m_SupportedFeatures;
bool m_SupportedFeaturesIsSet;
std::string m_TargetScp;
bool m_TargetScpIsSet;
std::string m_Type;
bool m_TypeIsSet;
std::string m_Title;
bool m_TitleIsSet;
int32_t m_Status;
bool m_StatusIsSet;
std::string m_Detail;
bool m_DetailIsSet;
std::string m_Instance;
bool m_InstanceIsSet;
std::string m_Cause;
bool m_CauseIsSet;
std::vector<InvalidParam> m_InvalidParams;
bool m_InvalidParamsIsSet;
std::string m_SupportedFeatures;
bool m_SupportedFeaturesIsSet;
std::string m_TargetScp;
bool m_TargetScpIsSet;
};
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
#endif /* ProblemDetails_H_ */
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "ResynchronizationInfo.h"
......@@ -18,54 +18,38 @@ namespace openapitools {
namespace server {
namespace model {
ResynchronizationInfo::ResynchronizationInfo()
{
m_Rand = "";
m_Auts = "";
ResynchronizationInfo::ResynchronizationInfo() {
m_Rand = "";
m_Auts = "";
}
ResynchronizationInfo::~ResynchronizationInfo()
{
}
ResynchronizationInfo::~ResynchronizationInfo() {}
void ResynchronizationInfo::validate()
{
// TODO: implement validation
void ResynchronizationInfo::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ResynchronizationInfo& o)
{
j = nlohmann::json();
j["rand"] = o.m_Rand;
j["auts"] = o.m_Auts;
void to_json(nlohmann::json &j, const ResynchronizationInfo &o) {
j = nlohmann::json();
j["rand"] = o.m_Rand;
j["auts"] = o.m_Auts;
}
void from_json(const nlohmann::json& j, ResynchronizationInfo& o)
{
j.at("rand").get_to(o.m_Rand);
j.at("auts").get_to(o.m_Auts);
void from_json(const nlohmann::json &j, ResynchronizationInfo &o) {
j.at("rand").get_to(o.m_Rand);
j.at("auts").get_to(o.m_Auts);
}
std::string ResynchronizationInfo::getRand() const
{
return m_Rand;
}
void ResynchronizationInfo::setRand(std::string const& value)
{
m_Rand = value;
}
std::string ResynchronizationInfo::getAuts() const
{
return m_Auts;
}
void ResynchronizationInfo::setAuts(std::string const& value)
{
m_Auts = value;
}
}
}
std::string ResynchronizationInfo::getRand() const { return m_Rand; }
void ResynchronizationInfo::setRand(std::string const &value) {
m_Rand = value;
}
std::string ResynchronizationInfo::getAuts() const { return m_Auts; }
void ResynchronizationInfo::setAuts(std::string const &value) {
m_Auts = value;
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment