Commit c7b5363d authored by Raphael Defosseux's avatar Raphael Defosseux

[CLANG-FORMAT] format all

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 3082727e
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessTokenRequestApi.h"
#include "Helpers.h"
......@@ -23,46 +24,52 @@ namespace api {
using namespace oai::nrf::helpers;
using namespace oai::nrf::model;
AccessTokenRequestApi::AccessTokenRequestApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AccessTokenRequestApi::AccessTokenRequestApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AccessTokenRequestApi::init() {
setupRoutes();
setupRoutes();
}
void AccessTokenRequestApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Post(*router, base + "/oauth2/token", Routes::bind(&AccessTokenRequestApi::access_token_request_handler, this));
Routes::Post(
*router, base + "/oauth2/token",
Routes::bind(&AccessTokenRequestApi::access_token_request_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AccessTokenRequestApi::access_token_request_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&AccessTokenRequestApi::access_token_request_api_default_handler, this));
}
void AccessTokenRequestApi::access_token_request_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
try {
this->access_token_request(request, 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 AccessTokenRequestApi::access_token_request_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
void AccessTokenRequestApi::access_token_request_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
try {
this->access_token_request(request, 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 AccessTokenRequestApi::access_token_request_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 nrf
} // namespace oai
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AccessTokenRequestApi.h
*
*
*
*/
#ifndef AccessTokenRequestApi_H_
#define AccessTokenRequestApi_H_
#include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h>
#include <pistache/optional.h>
#include "AccessTokenErr.h"
#include "AccessTokenRsp.h"
#include "NFType.h"
......@@ -38,35 +37,39 @@ namespace api {
using namespace oai::nrf::model;
class AccessTokenRequestApi {
public:
AccessTokenRequestApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AccessTokenRequestApi() {}
void init();
const std::string base = "";
private:
void setupRoutes();
void access_token_request_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
void access_token_request_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
/// Access Token Request
/// </summary>
/// <remarks>
///
/// </remarks>
virtual void access_token_request(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter &response) = 0;
class AccessTokenRequestApi {
public:
AccessTokenRequestApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AccessTokenRequestApi() {}
void init();
const std::string base = "";
private:
void setupRoutes();
void access_token_request_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void access_token_request_api_default_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
/// Access Token Request
/// </summary>
/// <remarks>
///
/// </remarks>
virtual void access_token_request(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* AccessTokenRequestApi_H_ */
/**
* NRF NFDiscovery Service
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "CompleteStoredSearchDocumentApi.h"
......@@ -36,49 +37,48 @@ void CompleteStoredSearchDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Get(
*router,
base + nrf_cfg.sbi_api_version + "/searches/:searchId/complete",
*router, base + nrf_cfg.sbi_api_version + "/searches/:searchId/complete",
Routes::bind(
&CompleteStoredSearchDocumentApi::retrieve_complete_search_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(
&CompleteStoredSearchDocumentApi::complete_stored_search_document_api_default_handler,
this));
router->addCustomHandler(Routes::bind(
&CompleteStoredSearchDocumentApi::
complete_stored_search_document_api_default_handler,
this));
}
void CompleteStoredSearchDocumentApi::retrieve_complete_search_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto searchId = request.param(":searchId").as<std::string>();
try {
this->retrieve_complete_search(searchId, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void CompleteStoredSearchDocumentApi::complete_stored_search_document_api_default_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
}
}
void CompleteStoredSearchDocumentApi::
complete_stored_search_document_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 nrf
} // namespace oai
/**
* NRF NFDiscovery Service
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* CompleteStoredSearchDocumentApi.h
*
*
*
*/
#ifndef CompleteStoredSearchDocumentApi_H_
......@@ -34,9 +35,8 @@ using namespace oai::nrf::model;
class CompleteStoredSearchDocumentApi {
public:
CompleteStoredSearchDocumentApi (std::shared_ptr<Pistache::Rest::Router>);
virtual ~CompleteStoredSearchDocumentApi() {
}
CompleteStoredSearchDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~CompleteStoredSearchDocumentApi() {}
void init();
const std::string base = "/nnrf-disc/";
......@@ -45,30 +45,28 @@ class CompleteStoredSearchDocumentApi {
void setupRoutes();
void retrieve_complete_search_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void complete_stored_search_document_api_default_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
///
///
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="searchId">Id of a stored search</param>
virtual void retrieve_complete_search(
const std::string &searchId,
Pistache::Http::ResponseWriter &response) = 0;
const std::string& searchId,
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* CompleteStoredSearchDocumentApi_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "NFInstanceIDDocumentApi.h"
......@@ -37,75 +38,70 @@ void NFInstanceIDDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Delete(
*router,
base + nrf_cfg.sbi_api_version + "/nf-instances/:nfInstanceID",
Routes::bind(&NFInstanceIDDocumentApi::deregister_nf_instance_handler,
this));
*router, base + nrf_cfg.sbi_api_version + "/nf-instances/:nfInstanceID",
Routes::bind(
&NFInstanceIDDocumentApi::deregister_nf_instance_handler, this));
Routes::Get(
*router, base + nrf_cfg.sbi_api_version + "/nf-instances/:nfInstanceID",
Routes::bind(&NFInstanceIDDocumentApi::get_nf_instance_handler, this));
Routes::Put(
*router,
base + nrf_cfg.sbi_api_version + "/nf-instances/:nfInstanceID",
Routes::bind(&NFInstanceIDDocumentApi::register_nf_instance_handler,
this));
*router, base + nrf_cfg.sbi_api_version + "/nf-instances/:nfInstanceID",
Routes::bind(
&NFInstanceIDDocumentApi::register_nf_instance_handler, this));
Routes::Patch(
*router, base + nrf_cfg.sbi_api_version + "/nf-instances/:nfInstanceID",
Routes::bind(&NFInstanceIDDocumentApi::update_nf_instance_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(
&NFInstanceIDDocumentApi::nf_instance_id_document_api_default_handler,
this));
router->addCustomHandler(Routes::bind(
&NFInstanceIDDocumentApi::nf_instance_id_document_api_default_handler,
this));
}
void NFInstanceIDDocumentApi::deregister_nf_instance_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto nfInstanceID = request.param(":nfInstanceID").as<std::string>();
try {
this->deregister_nf_instance(nfInstanceID, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void NFInstanceIDDocumentApi::get_nf_instance_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto nfInstanceID = request.param(":nfInstanceID").as<std::string>();
try {
this->get_nf_instance(nfInstanceID, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void NFInstanceIDDocumentApi::register_nf_instance_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto nfInstanceID = request.param(":nfInstanceID").as<std::string>();
......@@ -119,24 +115,23 @@ void NFInstanceIDDocumentApi::register_nf_instance_handler(
try {
nlohmann::json::parse(request.body()).get_to(nFProfile);
this->register_nf_instance(nfInstanceID, nFProfile, contentEncoding,
response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
this->register_nf_instance(
nfInstanceID, nFProfile, contentEncoding, 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) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void NFInstanceIDDocumentApi::update_nf_instance_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto nfInstanceID = request.param(":nfInstanceID").as<std::string>();
......@@ -147,28 +142,26 @@ void NFInstanceIDDocumentApi::update_nf_instance_handler(
try {
nlohmann::json::parse(request.body()).get_to(patchItem);
this->update_nf_instance(nfInstanceID, patchItem, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void NFInstanceIDDocumentApi::nf_instance_id_document_api_default_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
}
}
response.send(
Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
} // namespace api
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* NFInstanceIDDocumentApi.h
*
*
*
*/
#ifndef NFInstanceIDDocumentApi_H_
......@@ -37,9 +38,8 @@ using namespace oai::nrf::model;
class NFInstanceIDDocumentApi {
public:
NFInstanceIDDocumentApi (std::shared_ptr<Pistache::Rest::Router>);
virtual ~NFInstanceIDDocumentApi() {
}
NFInstanceIDDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~NFInstanceIDDocumentApi() {}
void init();
const std::string base = "/nnrf-nfm/";
......@@ -47,16 +47,20 @@ class NFInstanceIDDocumentApi {
private:
void setupRoutes();
void deregister_nf_instance_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void get_nf_instance_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void register_nf_instance_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void update_nf_instance_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void deregister_nf_instance_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void get_nf_instance_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void register_nf_instance_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void update_nf_instance_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void nf_instance_id_document_api_default_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
......@@ -65,54 +69,55 @@ class NFInstanceIDDocumentApi {
/// Deregisters a given NF Instance
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="nfInstanceID">Unique ID of the NF Instance to deregister</param>
/// <param name="nfInstanceID">Unique ID of the NF Instance to
/// deregister</param>
virtual void deregister_nf_instance(
const std::string &nfInstanceID,
Pistache::Http::ResponseWriter &response) = 0;
const std::string& nfInstanceID,
Pistache::Http::ResponseWriter& response) = 0;
/// <summary>
/// Read the profile of a given NF Instance
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="nfInstanceID">Unique ID of the NF Instance</param>
virtual void get_nf_instance(const std::string &nfInstanceID,
Pistache::Http::ResponseWriter &response) = 0;
virtual void get_nf_instance(
const std::string& nfInstanceID,
Pistache::Http::ResponseWriter& response) = 0;
/// <summary>
/// Register a new NF Instance
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="nfInstanceID">Unique ID of the NF Instance to register</param>
/// <param name="nFProfile"></param>
/// <param name="contentEncoding">Content-Encoding, described in IETF RFC 7231 (optional, default to &quot;&quot;)</param>
/// <param name="nfInstanceID">Unique ID of the NF Instance to
/// register</param> <param name="nFProfile"></param> <param
/// name="contentEncoding">Content-Encoding, described in IETF RFC 7231
/// (optional, default to &quot;&quot;)</param>
virtual void register_nf_instance(
const std::string &nfInstanceID, const NFProfile &nFProfile,
const Pistache::Optional<Pistache::Http::Header::Raw> &contentEncoding,
Pistache::Http::ResponseWriter &response) = 0;
const std::string& nfInstanceID, const NFProfile& nFProfile,
const Pistache::Optional<Pistache::Http::Header::Raw>& contentEncoding,
Pistache::Http::ResponseWriter& response) = 0;
/// <summary>
/// Update NF Instance profile
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="nfInstanceID">Unique ID of the NF Instance to update</param>
/// <param name="patchItem"></param>
virtual void update_nf_instance(const std::string &nfInstanceID,
const std::vector<PatchItem> &patchItem,
Pistache::Http::ResponseWriter &response) = 0;
virtual void update_nf_instance(
const std::string& nfInstanceID, const std::vector<PatchItem>& patchItem,
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* NFInstanceIDDocumentApi_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "NFInstancesStoreApi.h"
......@@ -44,18 +45,16 @@ void NFInstancesStoreApi::setupRoutes() {
Routes::bind(&NFInstancesStoreApi::options_nf_instances_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&NFInstancesStoreApi::nf_instances_store_api_default_handler,
this));
router->addCustomHandler(Routes::bind(
&NFInstancesStoreApi::nf_instances_store_api_default_handler, this));
}
void NFInstancesStoreApi::get_nf_instances_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the query params
auto nfTypeQuery = request.query().get("nf-type");
Pistache::Optional < std::string > nfType;
Pistache::Optional<std::string> nfType;
if (!nfTypeQuery.isEmpty()) {
std::string valueQuery_instance;
if (helpers::fromStringValue(nfTypeQuery.get(), valueQuery_instance)) {
......@@ -63,7 +62,7 @@ void NFInstancesStoreApi::get_nf_instances_handler(
}
}
auto limitQuery = request.query().get("limit");
Pistache::Optional < int32_t > limit;
Pistache::Optional<int32_t> limit;
if (!limitQuery.isEmpty()) {
int32_t valueQuery_instance;
if (helpers::fromStringValue(limitQuery.get(), valueQuery_instance)) {
......@@ -73,47 +72,43 @@ void NFInstancesStoreApi::get_nf_instances_handler(
try {
this->get_nf_instances(nfType, limit, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void NFInstancesStoreApi::options_nf_instances_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
try {
this->options_nf_instances(response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void NFInstancesStoreApi::nf_instances_store_api_default_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
}
}
response.send(
Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
} // namespace api
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* NFInstancesStoreApi.h
*
*
*
*/
#ifndef NFInstancesStoreApi_H_
......@@ -51,9 +52,8 @@ using namespace oai::nrf::model;
class NFInstancesStoreApi {
public:
NFInstancesStoreApi (std::shared_ptr<Pistache::Rest::Router>);
virtual ~NFInstancesStoreApi() {
}
NFInstancesStoreApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~NFInstancesStoreApi() {}
void init();
const std::string base = "/nnrf-nfm/";
......@@ -61,12 +61,14 @@ class NFInstancesStoreApi {
private:
void setupRoutes();
void get_nf_instances_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void options_nf_instances_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void get_nf_instances_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void options_nf_instances_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void nf_instances_store_api_default_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
......@@ -75,28 +77,28 @@ class NFInstancesStoreApi {
/// Retrieves a collection of NF Instances
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="nfType">Type of NF (optional, default to NFType())</param>
/// <param name="limit">How many items to return at one time (optional, default to 0)</param>
virtual void get_nf_instances(const Pistache::Optional<std::string> &nfType,
const Pistache::Optional<int32_t> &limit,
Pistache::Http::ResponseWriter &response) = 0;
/// <param name="limit">How many items to return at one time (optional,
/// default to 0)</param>
virtual void get_nf_instances(
const Pistache::Optional<std::string>& nfType,
const Pistache::Optional<int32_t>& limit,
Pistache::Http::ResponseWriter& response) = 0;
/// <summary>
/// Discover communication options supported by NRF for NF Instances
/// </summary>
/// <remarks>
///
///
/// </remarks>
virtual void options_nf_instances(
Pistache::Http::ResponseWriter &response) = 0;
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* NFInstancesStoreApi_H_ */
/**
* NRF NFDiscovery Service
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "StoredSearchDocumentApi.h"
......@@ -36,48 +37,44 @@ void StoredSearchDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Get(
*router,
base + nrf_cfg.sbi_api_version + "/searches/:searchId",
Routes::bind(&StoredSearchDocumentApi::retrieve_stored_search_handler,
this));
*router, base + nrf_cfg.sbi_api_version + "/searches/:searchId",
Routes::bind(
&StoredSearchDocumentApi::retrieve_stored_search_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(
&StoredSearchDocumentApi::stored_search_document_api_default_handler,
this));
router->addCustomHandler(Routes::bind(
&StoredSearchDocumentApi::stored_search_document_api_default_handler,
this));
}
void StoredSearchDocumentApi::retrieve_stored_search_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto searchId = request.param(":searchId").as<std::string>();
try {
this->retrieve_stored_search(searchId, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void StoredSearchDocumentApi::stored_search_document_api_default_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
}
}
response.send(
Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
} // namespace api
} // namespace nrf
} // namespace oai
/**
* NRF NFDiscovery Service
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* StoredSearchDocumentApi.h
*
*
*
*/
#ifndef StoredSearchDocumentApi_H_
......@@ -34,9 +35,8 @@ using namespace oai::nrf::model;
class StoredSearchDocumentApi {
public:
StoredSearchDocumentApi (std::shared_ptr<Pistache::Rest::Router>);
virtual ~StoredSearchDocumentApi() {
}
StoredSearchDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~StoredSearchDocumentApi() {}
void init();
const std::string base = "/nnrf-disc/";
......@@ -44,30 +44,29 @@ class StoredSearchDocumentApi {
private:
void setupRoutes();
void retrieve_stored_search_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void retrieve_stored_search_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void stored_search_document_api_default_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
/// <summary>
///
///
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="searchId">Id of a stored search</param>
virtual void retrieve_stored_search(
const std::string &searchId,
Pistache::Http::ResponseWriter &response) = 0;
const std::string& searchId,
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* StoredSearchDocumentApi_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "SubscriptionIDDocumentApi.h"
......@@ -38,45 +39,43 @@ void SubscriptionIDDocumentApi::setupRoutes() {
Routes::Delete(
*router,
base + nrf_cfg.sbi_api_version + "/subscriptions/:subscriptionID",
Routes::bind(&SubscriptionIDDocumentApi::remove_subscription_handler,
this));
Routes::bind(
&SubscriptionIDDocumentApi::remove_subscription_handler, this));
Routes::Patch(
*router,
base + nrf_cfg.sbi_api_version + "/subscriptions/:subscriptionID",
Routes::bind(&SubscriptionIDDocumentApi::update_subscription_handler,
this));
Routes::bind(
&SubscriptionIDDocumentApi::update_subscription_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(
&SubscriptionIDDocumentApi::subscription_id_document_api_default_handler,
this));
router->addCustomHandler(Routes::bind(
&SubscriptionIDDocumentApi::subscription_id_document_api_default_handler,
this));
}
void SubscriptionIDDocumentApi::remove_subscription_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto subscriptionID = request.param(":subscriptionID").as<std::string>();
try {
this->remove_subscription(subscriptionID, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void SubscriptionIDDocumentApi::update_subscription_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto subscriptionID = request.param(":subscriptionID").as<std::string>();
......@@ -87,28 +86,26 @@ void SubscriptionIDDocumentApi::update_subscription_handler(
try {
nlohmann::json::parse(request.body()).get_to(patchItem);
this->update_subscription(subscriptionID, patchItem, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void SubscriptionIDDocumentApi::subscription_id_document_api_default_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
}
}
response.send(
Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
} // namespace api
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* SubscriptionIDDocumentApi.h
*
*
*
*/
#ifndef SubscriptionIDDocumentApi_H_
......@@ -37,9 +38,8 @@ using namespace oai::nrf::model;
class SubscriptionIDDocumentApi {
public:
SubscriptionIDDocumentApi (std::shared_ptr<Pistache::Rest::Router>);
virtual ~SubscriptionIDDocumentApi() {
}
SubscriptionIDDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~SubscriptionIDDocumentApi() {}
void init();
const std::string base = "/nnrf-nfm/";
......@@ -47,12 +47,14 @@ class SubscriptionIDDocumentApi {
private:
void setupRoutes();
void remove_subscription_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void update_subscription_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void remove_subscription_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void update_subscription_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void subscription_id_document_api_default_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
......@@ -61,31 +63,30 @@ class SubscriptionIDDocumentApi {
/// Deletes a subscription
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="subscriptionID">Unique ID of the subscription to remove</param>
/// <param name="subscriptionID">Unique ID of the subscription to
/// remove</param>
virtual void remove_subscription(
const std::string &subscriptionID,
Pistache::Http::ResponseWriter &response) = 0;
const std::string& subscriptionID,
Pistache::Http::ResponseWriter& response) = 0;
/// <summary>
/// Updates a subscription
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="subscriptionID">Unique ID of the subscription to update</param>
/// <param name="patchItem"></param>
/// <param name="subscriptionID">Unique ID of the subscription to
/// update</param> <param name="patchItem"></param>
virtual void update_subscription(
const std::string &subscriptionID,
const std::vector<PatchItem> &patchItem,
Pistache::Http::ResponseWriter &response) = 0;
const std::string& subscriptionID,
const std::vector<PatchItem>& patchItem,
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* SubscriptionIDDocumentApi_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "SubscriptionsCollectionApi.h"
......@@ -36,22 +37,19 @@ void SubscriptionsCollectionApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Post(
*router,
base + nrf_cfg.sbi_api_version + "/subscriptions",
Routes::bind(&SubscriptionsCollectionApi::create_subscription_handler,
this));
*router, base + nrf_cfg.sbi_api_version + "/subscriptions",
Routes::bind(
&SubscriptionsCollectionApi::create_subscription_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(
&SubscriptionsCollectionApi::subscriptions_collection_api_default_handler,
this));
router->addCustomHandler(Routes::bind(
&SubscriptionsCollectionApi::subscriptions_collection_api_default_handler,
this));
}
void SubscriptionsCollectionApi::create_subscription_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// Getting the body param
SubscriptionData subscriptionData;
......@@ -59,28 +57,26 @@ void SubscriptionsCollectionApi::create_subscription_handler(
try {
nlohmann::json::parse(request.body()).get_to(subscriptionData);
this->create_subscription(subscriptionData, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
} catch (nlohmann::detail::exception& e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
} 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
} catch (std::exception& e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void SubscriptionsCollectionApi::subscriptions_collection_api_default_handler(
const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
}
}
response.send(
Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
} // namespace api
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* SubscriptionsCollectionApi.h
*
*
*
*/
#ifndef SubscriptionsCollectionApi_H_
......@@ -34,9 +35,8 @@ using namespace oai::nrf::model;
class SubscriptionsCollectionApi {
public:
SubscriptionsCollectionApi (std::shared_ptr<Pistache::Rest::Router>);
virtual ~SubscriptionsCollectionApi() {
}
SubscriptionsCollectionApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~SubscriptionsCollectionApi() {}
void init();
const std::string base = "/nnrf-nfm/";
......@@ -44,10 +44,11 @@ class SubscriptionsCollectionApi {
private:
void setupRoutes();
void create_subscription_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void create_subscription_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
void subscriptions_collection_api_default_handler(
const Pistache::Rest::Request &request,
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router;
......@@ -56,18 +57,16 @@ class SubscriptionsCollectionApi {
/// Create a new subscription
/// </summary>
/// <remarks>
///
///
/// </remarks>
/// <param name="subscriptionData"></param>
virtual void create_subscription(
const SubscriptionData &subscriptionData,
Pistache::Http::ResponseWriter &response) = 0;
const SubscriptionData& subscriptionData,
Pistache::Http::ResponseWriter& response) = 0;
};
}
}
}
} // namespace api
} // namespace nrf
} // namespace oai
#endif /* SubscriptionsCollectionApi_H_ */
......@@ -16,9 +16,9 @@
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
* the OAI Public License, Version 1.1 (the "License"); you may not use this
*file except in compliance with the License. You may obtain a copy of the
*License at
*
* http://www.openairinterface.org/?page_id=698
*
......@@ -32,7 +32,6 @@
* contact@openairinterface.org
*/
#include "AccessTokenRequestApiImpl.h"
#include "3gpp_29.500.h"
#include "AccessTokenRsp.h"
......
......@@ -16,9 +16,9 @@
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
* the OAI Public License, Version 1.1 (the "License"); you may not use this
*file except in compliance with the License. You may obtain a copy of the
*License at
*
* http://www.openairinterface.org/?page_id=698
*
......
......@@ -16,9 +16,9 @@
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
* the OAI Public License, Version 1.1 (the "License"); you may not use this
*file except in compliance with the License. You may obtain a copy of the
*License at
*
* http://www.openairinterface.org/?page_id=698
*
......@@ -32,7 +32,6 @@
* contact@openairinterface.org
*/
#include "CompleteStoredSearchDocumentApiImpl.h"
#include "3gpp_29.500.h"
......
......@@ -16,9 +16,9 @@
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
* the OAI Public License, Version 1.1 (the "License"); you may not use this
*file except in compliance with the License. You may obtain a copy of the
*License at
*
* http://www.openairinterface.org/?page_id=698
*
......
......@@ -16,9 +16,9 @@
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
* the OAI Public License, Version 1.1 (the "License"); you may not use this
*file except in compliance with the License. You may obtain a copy of the
*License at
*
* http://www.openairinterface.org/?page_id=698
*
......
......@@ -16,9 +16,9 @@
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
* the OAI Public License, Version 1.1 (the "License"); you may not use this
*file except in compliance with the License. You may obtain a copy of the
*License at
*
* http://www.openairinterface.org/?page_id=698
*
......@@ -32,7 +32,6 @@
* contact@openairinterface.org
*/
/*
* NFInstancesStoreApiImpl.h
*
......
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessTokenClaims.h"
......@@ -17,135 +17,105 @@ namespace oai {
namespace nrf {
namespace model {
AccessTokenClaims::AccessTokenClaims()
{
m_Iss = "";
m_Sub = "";
m_Scope = "";
m_Exp = 0;
m_ConsumerPlmnIdIsSet = false;
m_ProducerPlmnIdIsSet = false;
AccessTokenClaims::AccessTokenClaims() {
m_Iss = "";
m_Sub = "";
m_Scope = "";
m_Exp = 0;
m_ConsumerPlmnIdIsSet = false;
m_ProducerPlmnIdIsSet = false;
}
AccessTokenClaims::~AccessTokenClaims()
{
}
AccessTokenClaims::~AccessTokenClaims() {}
void AccessTokenClaims::validate()
{
// TODO: implement validation
void AccessTokenClaims::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AccessTokenClaims& o)
{
j = nlohmann::json();
j["iss"] = o.m_Iss;
j["sub"] = o.m_Sub;
j["aud"] = o.m_Aud;
j["scope"] = o.m_Scope;
j["exp"] = o.m_Exp;
if(o.consumerPlmnIdIsSet())
j["consumerPlmnId"] = o.m_ConsumerPlmnId;
if(o.producerPlmnIdIsSet())
j["producerPlmnId"] = o.m_ProducerPlmnId;
void to_json(nlohmann::json& j, const AccessTokenClaims& o) {
j = nlohmann::json();
j["iss"] = o.m_Iss;
j["sub"] = o.m_Sub;
j["aud"] = o.m_Aud;
j["scope"] = o.m_Scope;
j["exp"] = o.m_Exp;
if (o.consumerPlmnIdIsSet()) j["consumerPlmnId"] = o.m_ConsumerPlmnId;
if (o.producerPlmnIdIsSet()) j["producerPlmnId"] = o.m_ProducerPlmnId;
}
void from_json(const nlohmann::json& j, AccessTokenClaims& o)
{
j.at("iss").get_to(o.m_Iss);
j.at("sub").get_to(o.m_Sub);
j.at("aud").get_to(o.m_Aud);
j.at("scope").get_to(o.m_Scope);
j.at("exp").get_to(o.m_Exp);
if(j.find("consumerPlmnId") != j.end())
{
j.at("consumerPlmnId").get_to(o.m_ConsumerPlmnId);
o.m_ConsumerPlmnIdIsSet = true;
}
if(j.find("producerPlmnId") != j.end())
{
j.at("producerPlmnId").get_to(o.m_ProducerPlmnId);
o.m_ProducerPlmnIdIsSet = true;
}
void from_json(const nlohmann::json& j, AccessTokenClaims& o) {
j.at("iss").get_to(o.m_Iss);
j.at("sub").get_to(o.m_Sub);
j.at("aud").get_to(o.m_Aud);
j.at("scope").get_to(o.m_Scope);
j.at("exp").get_to(o.m_Exp);
if (j.find("consumerPlmnId") != j.end()) {
j.at("consumerPlmnId").get_to(o.m_ConsumerPlmnId);
o.m_ConsumerPlmnIdIsSet = true;
}
if (j.find("producerPlmnId") != j.end()) {
j.at("producerPlmnId").get_to(o.m_ProducerPlmnId);
o.m_ProducerPlmnIdIsSet = true;
}
}
std::string AccessTokenClaims::getIss() const
{
return m_Iss;
}
void AccessTokenClaims::setIss(std::string const& value)
{
m_Iss = value;
std::string AccessTokenClaims::getIss() const {
return m_Iss;
}
std::string AccessTokenClaims::getSub() const
{
return m_Sub;
void AccessTokenClaims::setIss(std::string const& value) {
m_Iss = value;
}
void AccessTokenClaims::setSub(std::string const& value)
{
m_Sub = value;
std::string AccessTokenClaims::getSub() const {
return m_Sub;
}
audience_t AccessTokenClaims::getAud() const
{
return m_Aud;
void AccessTokenClaims::setSub(std::string const& value) {
m_Sub = value;
}
void AccessTokenClaims::setAud(audience_t const& value)
{
m_Aud = value;
audience_t AccessTokenClaims::getAud() const {
return m_Aud;
}
std::string AccessTokenClaims::getScope() const
{
return m_Scope;
void AccessTokenClaims::setAud(audience_t const& value) {
m_Aud = value;
}
void AccessTokenClaims::setScope(std::string const& value)
{
m_Scope = value;
std::string AccessTokenClaims::getScope() const {
return m_Scope;
}
int32_t AccessTokenClaims::getExp() const
{
return m_Exp;
void AccessTokenClaims::setScope(std::string const& value) {
m_Scope = value;
}
void AccessTokenClaims::setExp(int32_t const value)
{
m_Exp = value;
int32_t AccessTokenClaims::getExp() const {
return m_Exp;
}
PlmnId AccessTokenClaims::getConsumerPlmnId() const
{
return m_ConsumerPlmnId;
void AccessTokenClaims::setExp(int32_t const value) {
m_Exp = value;
}
void AccessTokenClaims::setConsumerPlmnId(PlmnId const& value)
{
m_ConsumerPlmnId = value;
m_ConsumerPlmnIdIsSet = true;
PlmnId AccessTokenClaims::getConsumerPlmnId() const {
return m_ConsumerPlmnId;
}
bool AccessTokenClaims::consumerPlmnIdIsSet() const
{
return m_ConsumerPlmnIdIsSet;
void AccessTokenClaims::setConsumerPlmnId(PlmnId const& value) {
m_ConsumerPlmnId = value;
m_ConsumerPlmnIdIsSet = true;
}
void AccessTokenClaims::unsetConsumerPlmnId()
{
m_ConsumerPlmnIdIsSet = false;
bool AccessTokenClaims::consumerPlmnIdIsSet() const {
return m_ConsumerPlmnIdIsSet;
}
PlmnId AccessTokenClaims::getProducerPlmnId() const
{
return m_ProducerPlmnId;
void AccessTokenClaims::unsetConsumerPlmnId() {
m_ConsumerPlmnIdIsSet = false;
}
void AccessTokenClaims::setProducerPlmnId(PlmnId const& value)
{
m_ProducerPlmnId = value;
m_ProducerPlmnIdIsSet = true;
PlmnId AccessTokenClaims::getProducerPlmnId() const {
return m_ProducerPlmnId;
}
bool AccessTokenClaims::producerPlmnIdIsSet() const
{
return m_ProducerPlmnIdIsSet;
}
void AccessTokenClaims::unsetProducerPlmnId()
{
m_ProducerPlmnIdIsSet = false;
}
void AccessTokenClaims::setProducerPlmnId(PlmnId const& value) {
m_ProducerPlmnId = value;
m_ProducerPlmnIdIsSet = true;
}
bool AccessTokenClaims::producerPlmnIdIsSet() const {
return m_ProducerPlmnIdIsSet;
}
void AccessTokenClaims::unsetProducerPlmnId() {
m_ProducerPlmnIdIsSet = false;
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AccessTokenClaims.h
*
*
*
*/
#ifndef AccessTokenClaims_H_
......@@ -28,7 +29,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
typedef struct audience_s {
......@@ -38,22 +39,11 @@ typedef struct audience_s {
std::vector<std::string> nf_instances;
};
audience_s()
:
type(0) {
nf_type = 0;
}
audience_s() : type(0) { nf_type = 0; }
audience_s(uint8_t t)
:
type(t) {
nf_type = 0;
}
;
audience_s(uint8_t t) : type(t) { nf_type = 0; };
audience_s(const audience_s &a)
:
audience_s() {
audience_s(const audience_s& a) : audience_s() {
type = a.type;
switch (a.type) {
case 0:
......@@ -67,18 +57,16 @@ typedef struct audience_s {
}
}
audience_s& operator=(const audience_s &a) {
audience_s& operator=(const audience_s& a) {
type = a.type;
switch (a.type) {
case 0: {
nf_type = a.nf_type;
}
break;
} break;
case 1: {
nf_instances = a.nf_instances;
}
break;
} break;
default: {
// TODO:
}
......@@ -86,31 +74,26 @@ typedef struct audience_s {
// TODO:
}
virtual ~audience_s() {
}
;
virtual ~audience_s(){};
friend void to_json(nlohmann::json &j, const audience_s &a) {
friend void to_json(nlohmann::json& j, const audience_s& a) {
switch (a.type) {
case 0: {
j["nf_type"] = a.nf_type;
}
break;
} break;
case 1: {
j["nf_instances"] = nlohmann::json::array();
for (auto i : a.nf_instances) {
j["nf_instances"].push_back(i);
}
}
break;
} break;
default: {
}
}
}
friend void from_json(const nlohmann::json &j, audience_s &a) {
friend void from_json(const nlohmann::json& j, audience_s& a) {
if (j.find("nf_type") != j.end()) {
j.at("nf_type").get_to(a.nf_type);
a.type = 0;
......@@ -120,7 +103,6 @@ typedef struct audience_s {
j.at("nf_instances").get_to(a.nf_instances);
a.type = 1;
}
}
} audience_t;
......@@ -139,22 +121,22 @@ class AccessTokenClaims {
///
/// </summary>
std::string getIss() const;
void setIss(std::string const &value);
void setIss(std::string const& value);
/// <summary>
///
/// </summary>
std::string getSub() const;
void setSub(std::string const &value);
void setSub(std::string const& value);
/// <summary>
///
/// </summary>
audience_t getAud() const;
void setAud(audience_t const &value);
void setAud(audience_t const& value);
/// <summary>
///
/// </summary>
std::string getScope() const;
void setScope(std::string const &value);
void setScope(std::string const& value);
/// <summary>
///
/// </summary>
......@@ -164,19 +146,20 @@ class AccessTokenClaims {
///
/// </summary>
PlmnId getConsumerPlmnId() const;
void setConsumerPlmnId(PlmnId const &value);
void setConsumerPlmnId(PlmnId const& value);
bool consumerPlmnIdIsSet() const;
void unsetConsumerPlmnId();
/// <summary>
///
/// </summary>
PlmnId getProducerPlmnId() const;
void setProducerPlmnId(PlmnId const &value);
void setProducerPlmnId(PlmnId const& value);
bool producerPlmnIdIsSet() const;
void unsetProducerPlmnId();
friend void to_json(nlohmann::json &j, const AccessTokenClaims &o);
friend void from_json(const nlohmann::json &j, AccessTokenClaims &o);
friend void to_json(nlohmann::json& j, const AccessTokenClaims& o);
friend void from_json(const nlohmann::json& j, AccessTokenClaims& o);
protected:
std::string m_Iss;
......@@ -194,8 +177,8 @@ class AccessTokenClaims {
bool m_ProducerPlmnIdIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AccessTokenClaims_H_ */
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessTokenErr.h"
......@@ -17,94 +17,72 @@ namespace oai {
namespace nrf {
namespace model {
AccessTokenErr::AccessTokenErr()
{
m_Error = "";
m_Error_description = "";
m_Error_descriptionIsSet = false;
m_Error_uri = "";
m_Error_uriIsSet = false;
AccessTokenErr::AccessTokenErr() {
m_Error = "";
m_Error_description = "";
m_Error_descriptionIsSet = false;
m_Error_uri = "";
m_Error_uriIsSet = false;
}
AccessTokenErr::~AccessTokenErr()
{
}
AccessTokenErr::~AccessTokenErr() {}
void AccessTokenErr::validate()
{
// TODO: implement validation
void AccessTokenErr::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AccessTokenErr& o)
{
j = nlohmann::json();
j["error"] = o.m_Error;
if(o.errorDescriptionIsSet())
j["error_description"] = o.m_Error_description;
if(o.errorUriIsSet())
j["error_uri"] = o.m_Error_uri;
void to_json(nlohmann::json& j, const AccessTokenErr& o) {
j = nlohmann::json();
j["error"] = o.m_Error;
if (o.errorDescriptionIsSet()) j["error_description"] = o.m_Error_description;
if (o.errorUriIsSet()) j["error_uri"] = o.m_Error_uri;
}
void from_json(const nlohmann::json& j, AccessTokenErr& o)
{
j.at("error").get_to(o.m_Error);
if(j.find("error_description") != j.end())
{
j.at("error_description").get_to(o.m_Error_description);
o.m_Error_descriptionIsSet = true;
}
if(j.find("error_uri") != j.end())
{
j.at("error_uri").get_to(o.m_Error_uri);
o.m_Error_uriIsSet = true;
}
void from_json(const nlohmann::json& j, AccessTokenErr& o) {
j.at("error").get_to(o.m_Error);
if (j.find("error_description") != j.end()) {
j.at("error_description").get_to(o.m_Error_description);
o.m_Error_descriptionIsSet = true;
}
if (j.find("error_uri") != j.end()) {
j.at("error_uri").get_to(o.m_Error_uri);
o.m_Error_uriIsSet = true;
}
}
std::string AccessTokenErr::getError() const
{
return m_Error;
}
void AccessTokenErr::setError(std::string const& value)
{
m_Error = value;
std::string AccessTokenErr::getError() const {
return m_Error;
}
std::string AccessTokenErr::getErrorDescription() const
{
return m_Error_description;
void AccessTokenErr::setError(std::string const& value) {
m_Error = value;
}
void AccessTokenErr::setErrorDescription(std::string const& value)
{
m_Error_description = value;
m_Error_descriptionIsSet = true;
std::string AccessTokenErr::getErrorDescription() const {
return m_Error_description;
}
bool AccessTokenErr::errorDescriptionIsSet() const
{
return m_Error_descriptionIsSet;
void AccessTokenErr::setErrorDescription(std::string const& value) {
m_Error_description = value;
m_Error_descriptionIsSet = true;
}
void AccessTokenErr::unsetError_description()
{
m_Error_descriptionIsSet = false;
bool AccessTokenErr::errorDescriptionIsSet() const {
return m_Error_descriptionIsSet;
}
std::string AccessTokenErr::getErrorUri() const
{
return m_Error_uri;
void AccessTokenErr::unsetError_description() {
m_Error_descriptionIsSet = false;
}
void AccessTokenErr::setErrorUri(std::string const& value)
{
m_Error_uri = value;
m_Error_uriIsSet = true;
std::string AccessTokenErr::getErrorUri() const {
return m_Error_uri;
}
bool AccessTokenErr::errorUriIsSet() const
{
return m_Error_uriIsSet;
}
void AccessTokenErr::unsetError_uri()
{
m_Error_uriIsSet = false;
}
void AccessTokenErr::setErrorUri(std::string const& value) {
m_Error_uri = value;
m_Error_uriIsSet = true;
}
bool AccessTokenErr::errorUriIsSet() const {
return m_Error_uriIsSet;
}
void AccessTokenErr::unsetError_uri() {
m_Error_uriIsSet = false;
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AccessTokenErr.h
*
*
*
*/
#ifndef AccessTokenErr_H_
#define AccessTokenErr_H_
#include <string>
#include <nlohmann/json.hpp>
......@@ -27,52 +27,52 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AccessTokenErr
{
public:
AccessTokenErr();
virtual ~AccessTokenErr();
class AccessTokenErr {
public:
AccessTokenErr();
virtual ~AccessTokenErr();
void validate();
void validate();
/////////////////////////////////////////////
/// AccessTokenErr members
/////////////////////////////////////////////
/// AccessTokenErr members
/// <summary>
///
/// </summary>
std::string getError() const;
void setError(std::string const& value);
/// <summary>
///
/// </summary>
std::string getErrorDescription() const;
void setErrorDescription(std::string const& value);
bool errorDescriptionIsSet() const;
void unsetError_description();
/// <summary>
///
/// </summary>
std::string getErrorUri() const;
void setErrorUri(std::string const& value);
bool errorUriIsSet() const;
void unsetError_uri();
/// <summary>
///
/// </summary>
std::string getError() const;
void setError(std::string const& value);
/// <summary>
///
/// </summary>
std::string getErrorDescription() const;
void setErrorDescription(std::string const& value);
bool errorDescriptionIsSet() const;
void unsetError_description();
/// <summary>
///
/// </summary>
std::string getErrorUri() const;
void setErrorUri(std::string const& value);
bool errorUriIsSet() const;
void unsetError_uri();
friend void to_json(nlohmann::json& j, const AccessTokenErr& o);
friend void from_json(const nlohmann::json& j, AccessTokenErr& o);
friend void to_json(nlohmann::json& j, const AccessTokenErr& o);
friend void from_json(const nlohmann::json& j, AccessTokenErr& o);
protected:
std::string m_Error;
protected:
std::string m_Error;
std::string m_Error_description;
bool m_Error_descriptionIsSet;
std::string m_Error_uri;
bool m_Error_uriIsSet;
std::string m_Error_description;
bool m_Error_descriptionIsSet;
std::string m_Error_uri;
bool m_Error_uriIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AccessTokenErr_H_ */
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessTokenReq.h"
......@@ -17,190 +17,147 @@ namespace oai {
namespace nrf {
namespace model {
AccessTokenReq::AccessTokenReq()
{
m_Grant_type = "";
m_NfInstanceId = "";
m_NfTypeIsSet = false;
m_TargetNfTypeIsSet = false;
m_Scope = "";
m_TargetNfInstanceId = "";
m_TargetNfInstanceIdIsSet = false;
m_RequesterPlmnIsSet = false;
m_TargetPlmnIsSet = false;
AccessTokenReq::AccessTokenReq() {
m_Grant_type = "";
m_NfInstanceId = "";
m_NfTypeIsSet = false;
m_TargetNfTypeIsSet = false;
m_Scope = "";
m_TargetNfInstanceId = "";
m_TargetNfInstanceIdIsSet = false;
m_RequesterPlmnIsSet = false;
m_TargetPlmnIsSet = false;
}
AccessTokenReq::~AccessTokenReq()
{
}
AccessTokenReq::~AccessTokenReq() {}
void AccessTokenReq::validate()
{
// TODO: implement validation
void AccessTokenReq::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AccessTokenReq& o)
{
j = nlohmann::json();
j["grant_type"] = o.m_Grant_type;
j["nfInstanceId"] = o.m_NfInstanceId;
if(o.nfTypeIsSet())
j["nfType"] = o.m_NfType;
if(o.targetNfTypeIsSet())
j["targetNfType"] = o.m_TargetNfType;
j["scope"] = o.m_Scope;
if(o.targetNfInstanceIdIsSet())
j["targetNfInstanceId"] = o.m_TargetNfInstanceId;
if(o.requesterPlmnIsSet())
j["requesterPlmn"] = o.m_RequesterPlmn;
if(o.targetPlmnIsSet())
j["targetPlmn"] = o.m_TargetPlmn;
void to_json(nlohmann::json& j, const AccessTokenReq& o) {
j = nlohmann::json();
j["grant_type"] = o.m_Grant_type;
j["nfInstanceId"] = o.m_NfInstanceId;
if (o.nfTypeIsSet()) j["nfType"] = o.m_NfType;
if (o.targetNfTypeIsSet()) j["targetNfType"] = o.m_TargetNfType;
j["scope"] = o.m_Scope;
if (o.targetNfInstanceIdIsSet())
j["targetNfInstanceId"] = o.m_TargetNfInstanceId;
if (o.requesterPlmnIsSet()) j["requesterPlmn"] = o.m_RequesterPlmn;
if (o.targetPlmnIsSet()) j["targetPlmn"] = o.m_TargetPlmn;
}
void from_json(const nlohmann::json& j, AccessTokenReq& o)
{
j.at("grant_type").get_to(o.m_Grant_type);
j.at("nfInstanceId").get_to(o.m_NfInstanceId);
if(j.find("nfType") != j.end())
{
j.at("nfType").get_to(o.m_NfType);
o.m_NfTypeIsSet = true;
}
if(j.find("targetNfType") != j.end())
{
j.at("targetNfType").get_to(o.m_TargetNfType);
o.m_TargetNfTypeIsSet = true;
}
j.at("scope").get_to(o.m_Scope);
if(j.find("targetNfInstanceId") != j.end())
{
j.at("targetNfInstanceId").get_to(o.m_TargetNfInstanceId);
o.m_TargetNfInstanceIdIsSet = true;
}
if(j.find("requesterPlmn") != j.end())
{
j.at("requesterPlmn").get_to(o.m_RequesterPlmn);
o.m_RequesterPlmnIsSet = true;
}
if(j.find("targetPlmn") != j.end())
{
j.at("targetPlmn").get_to(o.m_TargetPlmn);
o.m_TargetPlmnIsSet = true;
}
void from_json(const nlohmann::json& j, AccessTokenReq& o) {
j.at("grant_type").get_to(o.m_Grant_type);
j.at("nfInstanceId").get_to(o.m_NfInstanceId);
if (j.find("nfType") != j.end()) {
j.at("nfType").get_to(o.m_NfType);
o.m_NfTypeIsSet = true;
}
if (j.find("targetNfType") != j.end()) {
j.at("targetNfType").get_to(o.m_TargetNfType);
o.m_TargetNfTypeIsSet = true;
}
j.at("scope").get_to(o.m_Scope);
if (j.find("targetNfInstanceId") != j.end()) {
j.at("targetNfInstanceId").get_to(o.m_TargetNfInstanceId);
o.m_TargetNfInstanceIdIsSet = true;
}
if (j.find("requesterPlmn") != j.end()) {
j.at("requesterPlmn").get_to(o.m_RequesterPlmn);
o.m_RequesterPlmnIsSet = true;
}
if (j.find("targetPlmn") != j.end()) {
j.at("targetPlmn").get_to(o.m_TargetPlmn);
o.m_TargetPlmnIsSet = true;
}
}
std::string AccessTokenReq::getGrantType() const
{
return m_Grant_type;
}
void AccessTokenReq::setGrantType(std::string const& value)
{
m_Grant_type = value;
}
std::string AccessTokenReq::getNfInstanceId() const
{
return m_NfInstanceId;
}
void AccessTokenReq::setNfInstanceId(std::string const& value)
{
m_NfInstanceId = value;
}
NFType AccessTokenReq::getNfType() const
{
return m_NfType;
}
void AccessTokenReq::setNfType(NFType const& value)
{
m_NfType = value;
m_NfTypeIsSet = true;
}
bool AccessTokenReq::nfTypeIsSet() const
{
return m_NfTypeIsSet;
}
void AccessTokenReq::unsetNfType()
{
m_NfTypeIsSet = false;
}
NFType AccessTokenReq::getTargetNfType() const
{
return m_TargetNfType;
}
void AccessTokenReq::setTargetNfType(NFType const& value)
{
m_TargetNfType = value;
m_TargetNfTypeIsSet = true;
}
bool AccessTokenReq::targetNfTypeIsSet() const
{
return m_TargetNfTypeIsSet;
}
void AccessTokenReq::unsetTargetNfType()
{
m_TargetNfTypeIsSet = false;
}
std::string AccessTokenReq::getScope() const
{
return m_Scope;
}
void AccessTokenReq::setScope(std::string const& value)
{
m_Scope = value;
}
std::string AccessTokenReq::getTargetNfInstanceId() const
{
return m_TargetNfInstanceId;
}
void AccessTokenReq::setTargetNfInstanceId(std::string const& value)
{
m_TargetNfInstanceId = value;
m_TargetNfInstanceIdIsSet = true;
}
bool AccessTokenReq::targetNfInstanceIdIsSet() const
{
return m_TargetNfInstanceIdIsSet;
}
void AccessTokenReq::unsetTargetNfInstanceId()
{
m_TargetNfInstanceIdIsSet = false;
}
PlmnId AccessTokenReq::getRequesterPlmn() const
{
return m_RequesterPlmn;
}
void AccessTokenReq::setRequesterPlmn(PlmnId const& value)
{
m_RequesterPlmn = value;
m_RequesterPlmnIsSet = true;
}
bool AccessTokenReq::requesterPlmnIsSet() const
{
return m_RequesterPlmnIsSet;
}
void AccessTokenReq::unsetRequesterPlmn()
{
m_RequesterPlmnIsSet = false;
}
PlmnId AccessTokenReq::getTargetPlmn() const
{
return m_TargetPlmn;
}
void AccessTokenReq::setTargetPlmn(PlmnId const& value)
{
m_TargetPlmn = value;
m_TargetPlmnIsSet = true;
}
bool AccessTokenReq::targetPlmnIsSet() const
{
return m_TargetPlmnIsSet;
}
void AccessTokenReq::unsetTargetPlmn()
{
m_TargetPlmnIsSet = false;
std::string AccessTokenReq::getGrantType() const {
return m_Grant_type;
}
void AccessTokenReq::setGrantType(std::string const& value) {
m_Grant_type = value;
}
std::string AccessTokenReq::getNfInstanceId() const {
return m_NfInstanceId;
}
void AccessTokenReq::setNfInstanceId(std::string const& value) {
m_NfInstanceId = value;
}
NFType AccessTokenReq::getNfType() const {
return m_NfType;
}
void AccessTokenReq::setNfType(NFType const& value) {
m_NfType = value;
m_NfTypeIsSet = true;
}
bool AccessTokenReq::nfTypeIsSet() const {
return m_NfTypeIsSet;
}
void AccessTokenReq::unsetNfType() {
m_NfTypeIsSet = false;
}
NFType AccessTokenReq::getTargetNfType() const {
return m_TargetNfType;
}
void AccessTokenReq::setTargetNfType(NFType const& value) {
m_TargetNfType = value;
m_TargetNfTypeIsSet = true;
}
bool AccessTokenReq::targetNfTypeIsSet() const {
return m_TargetNfTypeIsSet;
}
void AccessTokenReq::unsetTargetNfType() {
m_TargetNfTypeIsSet = false;
}
std::string AccessTokenReq::getScope() const {
return m_Scope;
}
void AccessTokenReq::setScope(std::string const& value) {
m_Scope = value;
}
std::string AccessTokenReq::getTargetNfInstanceId() const {
return m_TargetNfInstanceId;
}
void AccessTokenReq::setTargetNfInstanceId(std::string const& value) {
m_TargetNfInstanceId = value;
m_TargetNfInstanceIdIsSet = true;
}
bool AccessTokenReq::targetNfInstanceIdIsSet() const {
return m_TargetNfInstanceIdIsSet;
}
void AccessTokenReq::unsetTargetNfInstanceId() {
m_TargetNfInstanceIdIsSet = false;
}
PlmnId AccessTokenReq::getRequesterPlmn() const {
return m_RequesterPlmn;
}
void AccessTokenReq::setRequesterPlmn(PlmnId const& value) {
m_RequesterPlmn = value;
m_RequesterPlmnIsSet = true;
}
bool AccessTokenReq::requesterPlmnIsSet() const {
return m_RequesterPlmnIsSet;
}
void AccessTokenReq::unsetRequesterPlmn() {
m_RequesterPlmnIsSet = false;
}
PlmnId AccessTokenReq::getTargetPlmn() const {
return m_TargetPlmn;
}
void AccessTokenReq::setTargetPlmn(PlmnId const& value) {
m_TargetPlmn = value;
m_TargetPlmnIsSet = true;
}
bool AccessTokenReq::targetPlmnIsSet() const {
return m_TargetPlmnIsSet;
}
void AccessTokenReq::unsetTargetPlmn() {
m_TargetPlmnIsSet = false;
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AccessTokenReq.h
*
*
*
*/
#ifndef AccessTokenReq_H_
#define AccessTokenReq_H_
#include "NFType.h"
#include <string>
#include "PlmnId.h"
......@@ -29,93 +29,93 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AccessTokenReq
{
public:
AccessTokenReq();
virtual ~AccessTokenReq();
class AccessTokenReq {
public:
AccessTokenReq();
virtual ~AccessTokenReq();
void validate();
void validate();
/////////////////////////////////////////////
/// AccessTokenReq members
/////////////////////////////////////////////
/// AccessTokenReq members
/// <summary>
///
/// </summary>
std::string getGrantType() const;
void setGrantType(std::string const& value);
/// <summary>
///
/// </summary>
std::string getNfInstanceId() const;
void setNfInstanceId(std::string const& value);
/// <summary>
///
/// </summary>
NFType getNfType() const;
void setNfType(NFType const& value);
bool nfTypeIsSet() const;
void unsetNfType();
/// <summary>
///
/// </summary>
NFType getTargetNfType() const;
void setTargetNfType(NFType const& value);
bool targetNfTypeIsSet() const;
void unsetTargetNfType();
/// <summary>
///
/// </summary>
std::string getScope() const;
void setScope(std::string const& value);
/// <summary>
///
/// </summary>
std::string getTargetNfInstanceId() const;
void setTargetNfInstanceId(std::string const& value);
bool targetNfInstanceIdIsSet() const;
void unsetTargetNfInstanceId();
/// <summary>
///
/// </summary>
PlmnId getRequesterPlmn() const;
void setRequesterPlmn(PlmnId const& value);
bool requesterPlmnIsSet() const;
void unsetRequesterPlmn();
/// <summary>
///
/// </summary>
PlmnId getTargetPlmn() const;
void setTargetPlmn(PlmnId const& value);
bool targetPlmnIsSet() const;
void unsetTargetPlmn();
/// <summary>
///
/// </summary>
std::string getGrantType() const;
void setGrantType(std::string const& value);
/// <summary>
///
/// </summary>
std::string getNfInstanceId() const;
void setNfInstanceId(std::string const& value);
/// <summary>
///
/// </summary>
NFType getNfType() const;
void setNfType(NFType const& value);
bool nfTypeIsSet() const;
void unsetNfType();
/// <summary>
///
/// </summary>
NFType getTargetNfType() const;
void setTargetNfType(NFType const& value);
bool targetNfTypeIsSet() const;
void unsetTargetNfType();
/// <summary>
///
/// </summary>
std::string getScope() const;
void setScope(std::string const& value);
/// <summary>
///
/// </summary>
std::string getTargetNfInstanceId() const;
void setTargetNfInstanceId(std::string const& value);
bool targetNfInstanceIdIsSet() const;
void unsetTargetNfInstanceId();
/// <summary>
///
/// </summary>
PlmnId getRequesterPlmn() const;
void setRequesterPlmn(PlmnId const& value);
bool requesterPlmnIsSet() const;
void unsetRequesterPlmn();
/// <summary>
///
/// </summary>
PlmnId getTargetPlmn() const;
void setTargetPlmn(PlmnId const& value);
bool targetPlmnIsSet() const;
void unsetTargetPlmn();
friend void to_json(nlohmann::json& j, const AccessTokenReq& o);
friend void from_json(const nlohmann::json& j, AccessTokenReq& o);
friend void to_json(nlohmann::json& j, const AccessTokenReq& o);
friend void from_json(const nlohmann::json& j, AccessTokenReq& o);
protected:
std::string m_Grant_type;
protected:
std::string m_Grant_type;
std::string m_NfInstanceId;
std::string m_NfInstanceId;
NFType m_NfType;
bool m_NfTypeIsSet;
NFType m_TargetNfType;
bool m_TargetNfTypeIsSet;
std::string m_Scope;
NFType m_NfType;
bool m_NfTypeIsSet;
NFType m_TargetNfType;
bool m_TargetNfTypeIsSet;
std::string m_Scope;
std::string m_TargetNfInstanceId;
bool m_TargetNfInstanceIdIsSet;
PlmnId m_RequesterPlmn;
bool m_RequesterPlmnIsSet;
PlmnId m_TargetPlmn;
bool m_TargetPlmnIsSet;
std::string m_TargetNfInstanceId;
bool m_TargetNfInstanceIdIsSet;
PlmnId m_RequesterPlmn;
bool m_RequesterPlmnIsSet;
PlmnId m_TargetPlmn;
bool m_TargetPlmnIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AccessTokenReq_H_ */
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessTokenRsp.h"
......@@ -17,105 +17,81 @@ namespace oai {
namespace nrf {
namespace model {
AccessTokenRsp::AccessTokenRsp()
{
m_Access_token = "";
m_Token_type = "";
m_Expires_in = 0;
m_Expires_inIsSet = false;
m_Scope = "";
m_ScopeIsSet = false;
AccessTokenRsp::AccessTokenRsp() {
m_Access_token = "";
m_Token_type = "";
m_Expires_in = 0;
m_Expires_inIsSet = false;
m_Scope = "";
m_ScopeIsSet = false;
}
AccessTokenRsp::~AccessTokenRsp()
{
}
AccessTokenRsp::~AccessTokenRsp() {}
void AccessTokenRsp::validate()
{
// TODO: implement validation
void AccessTokenRsp::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json& j, const AccessTokenRsp& o)
{
j = nlohmann::json();
j["access_token"] = o.m_Access_token;
j["token_type"] = o.m_Token_type;
if(o.expiresInIsSet())
j["expires_in"] = o.m_Expires_in;
if(o.scopeIsSet())
j["scope"] = o.m_Scope;
void to_json(nlohmann::json& j, const AccessTokenRsp& o) {
j = nlohmann::json();
j["access_token"] = o.m_Access_token;
j["token_type"] = o.m_Token_type;
if (o.expiresInIsSet()) j["expires_in"] = o.m_Expires_in;
if (o.scopeIsSet()) j["scope"] = o.m_Scope;
}
void from_json(const nlohmann::json& j, AccessTokenRsp& o)
{
j.at("access_token").get_to(o.m_Access_token);
j.at("token_type").get_to(o.m_Token_type);
if(j.find("expires_in") != j.end())
{
j.at("expires_in").get_to(o.m_Expires_in);
o.m_Expires_inIsSet = true;
}
if(j.find("scope") != j.end())
{
j.at("scope").get_to(o.m_Scope);
o.m_ScopeIsSet = true;
}
void from_json(const nlohmann::json& j, AccessTokenRsp& o) {
j.at("access_token").get_to(o.m_Access_token);
j.at("token_type").get_to(o.m_Token_type);
if (j.find("expires_in") != j.end()) {
j.at("expires_in").get_to(o.m_Expires_in);
o.m_Expires_inIsSet = true;
}
if (j.find("scope") != j.end()) {
j.at("scope").get_to(o.m_Scope);
o.m_ScopeIsSet = true;
}
}
std::string AccessTokenRsp::getAccessToken() const
{
return m_Access_token;
}
void AccessTokenRsp::setAccessToken(std::string const& value)
{
m_Access_token = value;
std::string AccessTokenRsp::getAccessToken() const {
return m_Access_token;
}
std::string AccessTokenRsp::getTokenType() const
{
return m_Token_type;
void AccessTokenRsp::setAccessToken(std::string const& value) {
m_Access_token = value;
}
void AccessTokenRsp::setTokenType(std::string const& value)
{
m_Token_type = value;
std::string AccessTokenRsp::getTokenType() const {
return m_Token_type;
}
int32_t AccessTokenRsp::getExpiresIn() const
{
return m_Expires_in;
void AccessTokenRsp::setTokenType(std::string const& value) {
m_Token_type = value;
}
void AccessTokenRsp::setExpiresIn(int32_t const value)
{
m_Expires_in = value;
m_Expires_inIsSet = true;
int32_t AccessTokenRsp::getExpiresIn() const {
return m_Expires_in;
}
bool AccessTokenRsp::expiresInIsSet() const
{
return m_Expires_inIsSet;
void AccessTokenRsp::setExpiresIn(int32_t const value) {
m_Expires_in = value;
m_Expires_inIsSet = true;
}
void AccessTokenRsp::unsetExpires_in()
{
m_Expires_inIsSet = false;
bool AccessTokenRsp::expiresInIsSet() const {
return m_Expires_inIsSet;
}
std::string AccessTokenRsp::getScope() const
{
return m_Scope;
void AccessTokenRsp::unsetExpires_in() {
m_Expires_inIsSet = false;
}
void AccessTokenRsp::setScope(std::string const& value)
{
m_Scope = value;
m_ScopeIsSet = true;
std::string AccessTokenRsp::getScope() const {
return m_Scope;
}
bool AccessTokenRsp::scopeIsSet() const
{
return m_ScopeIsSet;
}
void AccessTokenRsp::unsetScope()
{
m_ScopeIsSet = false;
}
void AccessTokenRsp::setScope(std::string const& value) {
m_Scope = value;
m_ScopeIsSet = true;
}
bool AccessTokenRsp::scopeIsSet() const {
return m_ScopeIsSet;
}
void AccessTokenRsp::unsetScope() {
m_ScopeIsSet = false;
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* NRF OAuth2
* NRF OAuth2 Authorization. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AccessTokenRsp.h
*
*
*
*/
#ifndef AccessTokenRsp_H_
#define AccessTokenRsp_H_
#include <string>
#include <nlohmann/json.hpp>
......@@ -27,59 +27,60 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AccessTokenRsp
{
public:
AccessTokenRsp();
virtual ~AccessTokenRsp();
class AccessTokenRsp {
public:
AccessTokenRsp();
virtual ~AccessTokenRsp();
void validate();
void validate();
/////////////////////////////////////////////
/// AccessTokenRsp members
/////////////////////////////////////////////
/// AccessTokenRsp members
/// <summary>
/// JWS Compact Serialized representation of JWS signed JSON object
/// (AccessTokenClaims)
/// </summary>
std::string getAccessToken() const;
void setAccessToken(std::string const& value);
/// <summary>
///
/// </summary>
std::string getTokenType() const;
void setTokenType(std::string const& value);
/// <summary>
///
/// </summary>
int32_t getExpiresIn() const;
void setExpiresIn(int32_t const value);
bool expiresInIsSet() const;
void unsetExpires_in();
/// <summary>
///
/// </summary>
std::string getScope() const;
void setScope(std::string const& value);
bool scopeIsSet() const;
void unsetScope();
/// <summary>
/// JWS Compact Serialized representation of JWS signed JSON object (AccessTokenClaims)
/// </summary>
std::string getAccessToken() const;
void setAccessToken(std::string const& value);
/// <summary>
///
/// </summary>
std::string getTokenType() const;
void setTokenType(std::string const& value);
/// <summary>
///
/// </summary>
int32_t getExpiresIn() const;
void setExpiresIn(int32_t const value);
bool expiresInIsSet() const;
void unsetExpires_in();
/// <summary>
///
/// </summary>
std::string getScope() const;
void setScope(std::string const& value);
bool scopeIsSet() const;
void unsetScope();
friend void to_json(nlohmann::json& j, const AccessTokenRsp& o);
friend void from_json(const nlohmann::json& j, AccessTokenRsp& o);
friend void to_json(nlohmann::json& j, const AccessTokenRsp& o);
friend void from_json(const nlohmann::json& j, AccessTokenRsp& o);
protected:
std::string m_Access_token;
protected:
std::string m_Access_token;
std::string m_Token_type;
std::string m_Token_type;
int32_t m_Expires_in;
bool m_Expires_inIsSet;
std::string m_Scope;
bool m_ScopeIsSet;
int32_t m_Expires_in;
bool m_Expires_inIsSet;
std::string m_Scope;
bool m_ScopeIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AccessTokenRsp_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessType.h"
......@@ -16,25 +17,20 @@ namespace oai {
namespace nrf {
namespace model {
AccessType::AccessType() {
AccessType::AccessType() {}
}
AccessType::~AccessType() {
}
AccessType::~AccessType() {}
void AccessType::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const AccessType &o) {
void to_json(nlohmann::json& j, const AccessType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, AccessType &o) {
}
}
}
}
void from_json(const nlohmann::json& j, AccessType& o) {}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AccessType.h
*
*
*
*/
#ifndef AccessType_H_
......@@ -25,7 +26,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AccessType {
public:
......@@ -37,13 +38,14 @@ class AccessType {
/////////////////////////////////////////////
/// AccessType members
friend void to_json(nlohmann::json &j, const AccessType &o);
friend void from_json(const nlohmann::json &j, AccessType &o);
friend void to_json(nlohmann::json& j, const AccessType& o);
friend void from_json(const nlohmann::json& j, AccessType& o);
protected:
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AccessType_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AmfCond.h"
......@@ -17,29 +18,25 @@ namespace nrf {
namespace model {
AmfCond::AmfCond() {
m_AmfSetId = "";
m_AmfSetIdIsSet = false;
m_AmfRegionId = "";
m_AmfSetId = "";
m_AmfSetIdIsSet = false;
m_AmfRegionId = "";
m_AmfRegionIdIsSet = false;
}
AmfCond::~AmfCond() {
}
AmfCond::~AmfCond() {}
void AmfCond::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const AmfCond &o) {
void to_json(nlohmann::json& j, const AmfCond& o) {
j = nlohmann::json();
if (o.amfSetIdIsSet())
j["amfSetId"] = o.m_AmfSetId;
if (o.amfRegionIdIsSet())
j["amfRegionId"] = o.m_AmfRegionId;
if (o.amfSetIdIsSet()) j["amfSetId"] = o.m_AmfSetId;
if (o.amfRegionIdIsSet()) j["amfRegionId"] = o.m_AmfRegionId;
}
void from_json(const nlohmann::json &j, AmfCond &o) {
void from_json(const nlohmann::json& j, AmfCond& o) {
if (j.find("amfSetId") != j.end()) {
j.at("amfSetId").get_to(o.m_AmfSetId);
o.m_AmfSetIdIsSet = true;
......@@ -53,8 +50,8 @@ void from_json(const nlohmann::json &j, AmfCond &o) {
std::string AmfCond::getAmfSetId() const {
return m_AmfSetId;
}
void AmfCond::setAmfSetId(std::string const &value) {
m_AmfSetId = value;
void AmfCond::setAmfSetId(std::string const& value) {
m_AmfSetId = value;
m_AmfSetIdIsSet = true;
}
bool AmfCond::amfSetIdIsSet() const {
......@@ -66,8 +63,8 @@ void AmfCond::unsetAmfSetId() {
std::string AmfCond::getAmfRegionId() const {
return m_AmfRegionId;
}
void AmfCond::setAmfRegionId(std::string const &value) {
m_AmfRegionId = value;
void AmfCond::setAmfRegionId(std::string const& value) {
m_AmfRegionId = value;
m_AmfRegionIdIsSet = true;
}
bool AmfCond::amfRegionIdIsSet() const {
......@@ -77,7 +74,6 @@ void AmfCond::unsetAmfRegionId() {
m_AmfRegionIdIsSet = false;
}
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AmfCond.h
*
*
*
*/
#ifndef AmfCond_H_
......@@ -26,7 +27,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AmfCond {
public:
......@@ -39,22 +40,23 @@ class AmfCond {
/// AmfCond members
/// <summary>
///
///
/// </summary>
std::string getAmfSetId() const;
void setAmfSetId(std::string const &value);
void setAmfSetId(std::string const& value);
bool amfSetIdIsSet() const;
void unsetAmfSetId();
/// <summary>
///
///
/// </summary>
std::string getAmfRegionId() const;
void setAmfRegionId(std::string const &value);
void setAmfRegionId(std::string const& value);
bool amfRegionIdIsSet() const;
void unsetAmfRegionId();
friend void to_json(nlohmann::json &j, const AmfCond &o);
friend void from_json(const nlohmann::json &j, AmfCond &o);
friend void to_json(nlohmann::json& j, const AmfCond& o);
friend void from_json(const nlohmann::json& j, AmfCond& o);
protected:
std::string m_AmfSetId;
bool m_AmfSetIdIsSet;
......@@ -62,8 +64,8 @@ class AmfCond {
bool m_AmfRegionIdIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AmfCond_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AmfInfo.h"
......@@ -17,30 +18,27 @@ namespace nrf {
namespace model {
AmfInfo::AmfInfo() {
m_AmfSetId = "";
m_AmfRegionId = "";
m_TaiListIsSet = false;
m_TaiRangeListIsSet = false;
m_AmfSetId = "";
m_AmfRegionId = "";
m_TaiListIsSet = false;
m_TaiRangeListIsSet = false;
m_BackupInfoAmfFailureIsSet = false;
m_BackupInfoAmfRemovalIsSet = false;
m_N2InterfaceAmfInfoIsSet = false;
m_N2InterfaceAmfInfoIsSet = false;
}
AmfInfo::~AmfInfo() {
}
AmfInfo::~AmfInfo() {}
void AmfInfo::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const AmfInfo &o) {
j = nlohmann::json();
j["amfSetId"] = o.m_AmfSetId;
void to_json(nlohmann::json& j, const AmfInfo& o) {
j = nlohmann::json();
j["amfSetId"] = o.m_AmfSetId;
j["amfRegionId"] = o.m_AmfRegionId;
j["guamiList"] = o.m_GuamiList;
if (o.taiListIsSet() || !o.m_TaiList.empty())
j["taiList"] = o.m_TaiList;
j["guamiList"] = o.m_GuamiList;
if (o.taiListIsSet() || !o.m_TaiList.empty()) j["taiList"] = o.m_TaiList;
if (o.taiRangeListIsSet() || !o.m_TaiRangeList.empty())
j["taiRangeList"] = o.m_TaiRangeList;
if (o.backupInfoAmfFailureIsSet() || !o.m_BackupInfoAmfFailure.empty())
......@@ -51,7 +49,7 @@ void to_json(nlohmann::json &j, const AmfInfo &o) {
j["n2InterfaceAmfInfo"] = o.m_N2InterfaceAmfInfo;
}
void from_json(const nlohmann::json &j, AmfInfo &o) {
void from_json(const nlohmann::json& j, AmfInfo& o) {
j.at("amfSetId").get_to(o.m_AmfSetId);
j.at("amfRegionId").get_to(o.m_AmfRegionId);
j.at("guamiList").get_to(o.m_GuamiList);
......@@ -80,26 +78,26 @@ void from_json(const nlohmann::json &j, AmfInfo &o) {
std::string AmfInfo::getAmfSetId() const {
return m_AmfSetId;
}
void AmfInfo::setAmfSetId(std::string const &value) {
void AmfInfo::setAmfSetId(std::string const& value) {
m_AmfSetId = value;
}
std::string AmfInfo::getAmfRegionId() const {
return m_AmfRegionId;
}
void AmfInfo::setAmfRegionId(std::string const &value) {
void AmfInfo::setAmfRegionId(std::string const& value) {
m_AmfRegionId = value;
}
std::vector<Guami>& AmfInfo::getGuamiList() {
return m_GuamiList;
}
void AmfInfo::setGuamiList(std::vector<Guami> const &value) {
void AmfInfo::setGuamiList(std::vector<Guami> const& value) {
m_GuamiList = value;
}
std::vector<Tai>& AmfInfo::getTaiList() {
return m_TaiList;
}
void AmfInfo::setTaiList(std::vector<Tai> const &value) {
m_TaiList = value;
void AmfInfo::setTaiList(std::vector<Tai> const& value) {
m_TaiList = value;
m_TaiListIsSet = true;
}
bool AmfInfo::taiListIsSet() const {
......@@ -111,8 +109,8 @@ void AmfInfo::unsetTaiList() {
std::vector<TaiRange>& AmfInfo::getTaiRangeList() {
return m_TaiRangeList;
}
void AmfInfo::setTaiRangeList(std::vector<TaiRange> const &value) {
m_TaiRangeList = value;
void AmfInfo::setTaiRangeList(std::vector<TaiRange> const& value) {
m_TaiRangeList = value;
m_TaiRangeListIsSet = true;
}
bool AmfInfo::taiRangeListIsSet() const {
......@@ -124,8 +122,8 @@ void AmfInfo::unsetTaiRangeList() {
std::vector<Guami>& AmfInfo::getBackupInfoAmfFailure() {
return m_BackupInfoAmfFailure;
}
void AmfInfo::setBackupInfoAmfFailure(std::vector<Guami> const &value) {
m_BackupInfoAmfFailure = value;
void AmfInfo::setBackupInfoAmfFailure(std::vector<Guami> const& value) {
m_BackupInfoAmfFailure = value;
m_BackupInfoAmfFailureIsSet = true;
}
bool AmfInfo::backupInfoAmfFailureIsSet() const {
......@@ -137,8 +135,8 @@ void AmfInfo::unsetBackupInfoAmfFailure() {
std::vector<Guami>& AmfInfo::getBackupInfoAmfRemoval() {
return m_BackupInfoAmfRemoval;
}
void AmfInfo::setBackupInfoAmfRemoval(std::vector<Guami> const &value) {
m_BackupInfoAmfRemoval = value;
void AmfInfo::setBackupInfoAmfRemoval(std::vector<Guami> const& value) {
m_BackupInfoAmfRemoval = value;
m_BackupInfoAmfRemovalIsSet = true;
}
bool AmfInfo::backupInfoAmfRemovalIsSet() const {
......@@ -150,8 +148,8 @@ void AmfInfo::unsetBackupInfoAmfRemoval() {
N2InterfaceAmfInfo AmfInfo::getN2InterfaceAmfInfo() const {
return m_N2InterfaceAmfInfo;
}
void AmfInfo::setN2InterfaceAmfInfo(N2InterfaceAmfInfo const &value) {
m_N2InterfaceAmfInfo = value;
void AmfInfo::setN2InterfaceAmfInfo(N2InterfaceAmfInfo const& value) {
m_N2InterfaceAmfInfo = value;
m_N2InterfaceAmfInfoIsSet = true;
}
bool AmfInfo::n2InterfaceAmfInfoIsSet() const {
......@@ -161,7 +159,6 @@ void AmfInfo::unsetN2InterfaceAmfInfo() {
m_N2InterfaceAmfInfoIsSet = false;
}
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AmfInfo.h
*
*
*
*/
#ifndef AmfInfo_H_
......@@ -31,7 +32,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AmfInfo {
public:
......@@ -44,58 +45,59 @@ class AmfInfo {
/// AmfInfo members
/// <summary>
///
///
/// </summary>
std::string getAmfSetId() const;
void setAmfSetId(std::string const &value);
void setAmfSetId(std::string const& value);
/// <summary>
///
///
/// </summary>
std::string getAmfRegionId() const;
void setAmfRegionId(std::string const &value);
void setAmfRegionId(std::string const& value);
/// <summary>
///
///
/// </summary>
std::vector<Guami>& getGuamiList();
void setGuamiList(std::vector<Guami> const &value);
void setGuamiList(std::vector<Guami> const& value);
/// <summary>
///
///
/// </summary>
std::vector<Tai>& getTaiList();
void setTaiList(std::vector<Tai> const &value);
void setTaiList(std::vector<Tai> const& value);
bool taiListIsSet() const;
void unsetTaiList();
/// <summary>
///
///
/// </summary>
std::vector<TaiRange>& getTaiRangeList();
void setTaiRangeList(std::vector<TaiRange> const &value);
void setTaiRangeList(std::vector<TaiRange> const& value);
bool taiRangeListIsSet() const;
void unsetTaiRangeList();
/// <summary>
///
///
/// </summary>
std::vector<Guami>& getBackupInfoAmfFailure();
void setBackupInfoAmfFailure(std::vector<Guami> const &value);
void setBackupInfoAmfFailure(std::vector<Guami> const& value);
bool backupInfoAmfFailureIsSet() const;
void unsetBackupInfoAmfFailure();
/// <summary>
///
///
/// </summary>
std::vector<Guami>& getBackupInfoAmfRemoval();
void setBackupInfoAmfRemoval(std::vector<Guami> const &value);
void setBackupInfoAmfRemoval(std::vector<Guami> const& value);
bool backupInfoAmfRemovalIsSet() const;
void unsetBackupInfoAmfRemoval();
/// <summary>
///
///
/// </summary>
N2InterfaceAmfInfo getN2InterfaceAmfInfo() const;
void setN2InterfaceAmfInfo(N2InterfaceAmfInfo const &value);
void setN2InterfaceAmfInfo(N2InterfaceAmfInfo const& value);
bool n2InterfaceAmfInfoIsSet() const;
void unsetN2InterfaceAmfInfo();
friend void to_json(nlohmann::json &j, const AmfInfo &o);
friend void from_json(const nlohmann::json &j, AmfInfo &o);
friend void to_json(nlohmann::json& j, const AmfInfo& o);
friend void from_json(const nlohmann::json& j, AmfInfo& o);
protected:
std::string m_AmfSetId;
......@@ -115,8 +117,8 @@ class AmfInfo {
bool m_N2InterfaceAmfInfoIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AmfInfo_H_ */
/**
* NRF NFDiscovery Service
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Atom.h"
......@@ -17,28 +18,25 @@ namespace nrf {
namespace model {
Atom::Atom() {
m_Attr = "";
m_Negative = false;
m_Attr = "";
m_Negative = false;
m_NegativeIsSet = false;
}
Atom::~Atom() {
}
Atom::~Atom() {}
void Atom::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const Atom &o) {
j = nlohmann::json();
j["attr"] = o.m_Attr;
void to_json(nlohmann::json& j, const Atom& o) {
j = nlohmann::json();
j["attr"] = o.m_Attr;
j["value"] = o.m_Value;
if (o.negativeIsSet())
j["negative"] = o.m_Negative;
if (o.negativeIsSet()) j["negative"] = o.m_Negative;
}
void from_json(const nlohmann::json &j, Atom &o) {
void from_json(const nlohmann::json& j, Atom& o) {
j.at("attr").get_to(o.m_Attr);
j.at("value").get_to(o.m_Value);
if (j.find("negative") != j.end()) {
......@@ -50,20 +48,20 @@ void from_json(const nlohmann::json &j, Atom &o) {
std::string Atom::getAttr() const {
return m_Attr;
}
void Atom::setAttr(std::string const &value) {
void Atom::setAttr(std::string const& value) {
m_Attr = value;
}
std::string Atom::getValue() const {
return m_Value;
}
void Atom::setValue(std::string const &value) {
void Atom::setValue(std::string const& value) {
m_Value = value;
}
bool Atom::isNegative() const {
return m_Negative;
}
void Atom::setNegative(bool const value) {
m_Negative = value;
m_Negative = value;
m_NegativeIsSet = true;
}
bool Atom::negativeIsSet() const {
......@@ -73,7 +71,6 @@ void Atom::unsetNegative() {
m_NegativeIsSet = false;
}
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF NFDiscovery Service
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFDiscovery Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* Atom.h
*
*
*
*/
#ifndef Atom_H_
......@@ -27,7 +28,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class Atom {
public:
......@@ -40,25 +41,26 @@ class Atom {
/// Atom members
/// <summary>
///
///
/// </summary>
std::string getAttr() const;
void setAttr(std::string const &value);
void setAttr(std::string const& value);
/// <summary>
///
///
/// </summary>
std::string getValue() const;
void setValue(std::string const &value);
void setValue(std::string const& value);
/// <summary>
///
///
/// </summary>
bool isNegative() const;
void setNegative(bool const value);
bool negativeIsSet() const;
void unsetNegative();
friend void to_json(nlohmann::json &j, const Atom &o);
friend void from_json(const nlohmann::json &j, Atom &o);
friend void to_json(nlohmann::json& j, const Atom& o);
friend void from_json(const nlohmann::json& j, Atom& o);
protected:
std::string m_Attr;
......@@ -68,8 +70,8 @@ class Atom {
bool m_NegativeIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* Atom_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AtsssCapability.h"
......@@ -17,29 +18,25 @@ namespace nrf {
namespace model {
AtsssCapability::AtsssCapability() {
m_AtsssLL = false;
m_AtsssLL = false;
m_AtsssLLIsSet = false;
m_Mptcp = false;
m_MptcpIsSet = false;
m_Mptcp = false;
m_MptcpIsSet = false;
}
AtsssCapability::~AtsssCapability() {
}
AtsssCapability::~AtsssCapability() {}
void AtsssCapability::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const AtsssCapability &o) {
void to_json(nlohmann::json& j, const AtsssCapability& o) {
j = nlohmann::json();
if (o.atsssLLIsSet())
j["atsssLL"] = o.m_AtsssLL;
if (o.mptcpIsSet())
j["mptcp"] = o.m_Mptcp;
if (o.atsssLLIsSet()) j["atsssLL"] = o.m_AtsssLL;
if (o.mptcpIsSet()) j["mptcp"] = o.m_Mptcp;
}
void from_json(const nlohmann::json &j, AtsssCapability &o) {
void from_json(const nlohmann::json& j, AtsssCapability& o) {
if (j.find("atsssLL") != j.end()) {
j.at("atsssLL").get_to(o.m_AtsssLL);
o.m_AtsssLLIsSet = true;
......@@ -54,7 +51,7 @@ bool AtsssCapability::isAtsssLL() const {
return m_AtsssLL;
}
void AtsssCapability::setAtsssLL(bool const value) {
m_AtsssLL = value;
m_AtsssLL = value;
m_AtsssLLIsSet = true;
}
bool AtsssCapability::atsssLLIsSet() const {
......@@ -67,7 +64,7 @@ bool AtsssCapability::isMptcp() const {
return m_Mptcp;
}
void AtsssCapability::setMptcp(bool const value) {
m_Mptcp = value;
m_Mptcp = value;
m_MptcpIsSet = true;
}
bool AtsssCapability::mptcpIsSet() const {
......@@ -77,7 +74,6 @@ void AtsssCapability::unsetMptcp() {
m_MptcpIsSet = false;
}
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AtsssCapability.h
*
*
*
*/
#ifndef AtsssCapability_H_
......@@ -25,7 +26,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AtsssCapability {
public:
......@@ -38,22 +39,23 @@ class AtsssCapability {
/// AtsssCapability members
/// <summary>
///
///
/// </summary>
bool isAtsssLL() const;
void setAtsssLL(bool const value);
bool atsssLLIsSet() const;
void unsetAtsssLL();
/// <summary>
///
///
/// </summary>
bool isMptcp() const;
void setMptcp(bool const value);
bool mptcpIsSet() const;
void unsetMptcp();
friend void to_json(nlohmann::json &j, const AtsssCapability &o);
friend void from_json(const nlohmann::json &j, AtsssCapability &o);
friend void to_json(nlohmann::json& j, const AtsssCapability& o);
friend void from_json(const nlohmann::json& j, AtsssCapability& o);
protected:
bool m_AtsssLL;
bool m_AtsssLLIsSet;
......@@ -61,8 +63,8 @@ class AtsssCapability {
bool m_MptcpIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AtsssCapability_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AusfInfo.h"
......@@ -17,31 +18,28 @@ namespace nrf {
namespace model {
AusfInfo::AusfInfo() {
m_GroupId = "";
m_GroupIdIsSet = false;
m_SupiRangesIsSet = false;
m_GroupId = "";
m_GroupIdIsSet = false;
m_SupiRangesIsSet = false;
m_RoutingIndicatorsIsSet = false;
}
AusfInfo::~AusfInfo() {
}
AusfInfo::~AusfInfo() {}
void AusfInfo::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const AusfInfo &o) {
void to_json(nlohmann::json& j, const AusfInfo& o) {
j = nlohmann::json();
if (o.groupIdIsSet())
j["groupId"] = o.m_GroupId;
if (o.groupIdIsSet()) j["groupId"] = o.m_GroupId;
if (o.supiRangesIsSet() || !o.m_SupiRanges.empty())
j["supiRanges"] = o.m_SupiRanges;
if (o.routingIndicatorsIsSet() || !o.m_RoutingIndicators.empty())
j["routingIndicators"] = o.m_RoutingIndicators;
}
void from_json(const nlohmann::json &j, AusfInfo &o) {
void from_json(const nlohmann::json& j, AusfInfo& o) {
if (j.find("groupId") != j.end()) {
j.at("groupId").get_to(o.m_GroupId);
o.m_GroupIdIsSet = true;
......@@ -59,8 +57,8 @@ void from_json(const nlohmann::json &j, AusfInfo &o) {
std::string AusfInfo::getGroupId() const {
return m_GroupId;
}
void AusfInfo::setGroupId(std::string const &value) {
m_GroupId = value;
void AusfInfo::setGroupId(std::string const& value) {
m_GroupId = value;
m_GroupIdIsSet = true;
}
bool AusfInfo::groupIdIsSet() const {
......@@ -72,8 +70,8 @@ void AusfInfo::unsetGroupId() {
std::vector<SupiRange>& AusfInfo::getSupiRanges() {
return m_SupiRanges;
}
void AusfInfo::setSupiRanges(std::vector<SupiRange> const &value) {
m_SupiRanges = value;
void AusfInfo::setSupiRanges(std::vector<SupiRange> const& value) {
m_SupiRanges = value;
m_SupiRangesIsSet = true;
}
bool AusfInfo::supiRangesIsSet() const {
......@@ -85,8 +83,8 @@ void AusfInfo::unsetSupiRanges() {
std::vector<std::string>& AusfInfo::getRoutingIndicators() {
return m_RoutingIndicators;
}
void AusfInfo::setRoutingIndicators(std::vector<std::string> const &value) {
m_RoutingIndicators = value;
void AusfInfo::setRoutingIndicators(std::vector<std::string> const& value) {
m_RoutingIndicators = value;
m_RoutingIndicatorsIsSet = true;
}
bool AusfInfo::routingIndicatorsIsSet() const {
......@@ -96,7 +94,6 @@ void AusfInfo::unsetRoutingIndicators() {
m_RoutingIndicatorsIsSet = false;
}
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
/*
* AusfInfo.h
*
*
*
*/
#ifndef AusfInfo_H_
......@@ -28,7 +29,7 @@ namespace nrf {
namespace model {
/// <summary>
///
///
/// </summary>
class AusfInfo {
public:
......@@ -41,29 +42,30 @@ class AusfInfo {
/// AusfInfo members
/// <summary>
///
///
/// </summary>
std::string getGroupId() const;
void setGroupId(std::string const &value);
void setGroupId(std::string const& value);
bool groupIdIsSet() const;
void unsetGroupId();
/// <summary>
///
///
/// </summary>
std::vector<SupiRange>& getSupiRanges();
void setSupiRanges(std::vector<SupiRange> const &value);
void setSupiRanges(std::vector<SupiRange> const& value);
bool supiRangesIsSet() const;
void unsetSupiRanges();
/// <summary>
///
///
/// </summary>
std::vector<std::string>& getRoutingIndicators();
void setRoutingIndicators(std::vector<std::string> const &value);
void setRoutingIndicators(std::vector<std::string> const& value);
bool routingIndicatorsIsSet() const;
void unsetRoutingIndicators();
friend void to_json(nlohmann::json &j, const AusfInfo &o);
friend void from_json(const nlohmann::json &j, AusfInfo &o);
friend void to_json(nlohmann::json& j, const AusfInfo& o);
friend void from_json(const nlohmann::json& j, AusfInfo& o);
protected:
std::string m_GroupId;
bool m_GroupIdIsSet;
......@@ -73,8 +75,8 @@ class AusfInfo {
bool m_RoutingIndicatorsIsSet;
};
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
#endif /* AusfInfo_H_ */
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
* CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "BsfInfo.h"
......@@ -17,24 +18,21 @@ namespace nrf {
namespace model {
BsfInfo::BsfInfo() {
m_DnnListIsSet = false;
m_IpDomainListIsSet = false;
m_DnnListIsSet = false;
m_IpDomainListIsSet = false;
m_Ipv4AddressRangesIsSet = false;
m_Ipv6PrefixRangesIsSet = false;
m_Ipv6PrefixRangesIsSet = false;
}
BsfInfo::~BsfInfo() {
}
BsfInfo::~BsfInfo() {}
void BsfInfo::validate() {
// TODO: implement validation
}
void to_json(nlohmann::json &j, const BsfInfo &o) {
void to_json(nlohmann::json& j, const BsfInfo& o) {
j = nlohmann::json();
if (o.dnnListIsSet() || !o.m_DnnList.empty())
j["dnnList"] = o.m_DnnList;
if (o.dnnListIsSet() || !o.m_DnnList.empty()) j["dnnList"] = o.m_DnnList;
if (o.ipDomainListIsSet() || !o.m_IpDomainList.empty())
j["ipDomainList"] = o.m_IpDomainList;
if (o.ipv4AddressRangesIsSet() || !o.m_Ipv4AddressRanges.empty())
......@@ -43,7 +41,7 @@ void to_json(nlohmann::json &j, const BsfInfo &o) {
j["ipv6PrefixRanges"] = o.m_Ipv6PrefixRanges;
}
void from_json(const nlohmann::json &j, BsfInfo &o) {
void from_json(const nlohmann::json& j, BsfInfo& o) {
if (j.find("dnnList") != j.end()) {
j.at("dnnList").get_to(o.m_DnnList);
o.m_DnnListIsSet = true;
......@@ -65,8 +63,8 @@ void from_json(const nlohmann::json &j, BsfInfo &o) {
std::vector<std::string>& BsfInfo::getDnnList() {
return m_DnnList;
}
void BsfInfo::setDnnList(std::vector<std::string> const &value) {
m_DnnList = value;
void BsfInfo::setDnnList(std::vector<std::string> const& value) {
m_DnnList = value;
m_DnnListIsSet = true;
}
bool BsfInfo::dnnListIsSet() const {
......@@ -78,8 +76,8 @@ void BsfInfo::unsetDnnList() {
std::vector<std::string>& BsfInfo::getIpDomainList() {
return m_IpDomainList;
}
void BsfInfo::setIpDomainList(std::vector<std::string> const &value) {
m_IpDomainList = value;
void BsfInfo::setIpDomainList(std::vector<std::string> const& value) {
m_IpDomainList = value;
m_IpDomainListIsSet = true;
}
bool BsfInfo::ipDomainListIsSet() const {
......@@ -91,8 +89,8 @@ void BsfInfo::unsetIpDomainList() {
std::vector<Ipv4AddressRange>& BsfInfo::getIpv4AddressRanges() {
return m_Ipv4AddressRanges;
}
void BsfInfo::setIpv4AddressRanges(std::vector<Ipv4AddressRange> const &value) {
m_Ipv4AddressRanges = value;
void BsfInfo::setIpv4AddressRanges(std::vector<Ipv4AddressRange> const& value) {
m_Ipv4AddressRanges = value;
m_Ipv4AddressRangesIsSet = true;
}
bool BsfInfo::ipv4AddressRangesIsSet() const {
......@@ -104,8 +102,8 @@ void BsfInfo::unsetIpv4AddressRanges() {
std::vector<Ipv6PrefixRange>& BsfInfo::getIpv6PrefixRanges() {
return m_Ipv6PrefixRanges;
}
void BsfInfo::setIpv6PrefixRanges(std::vector<Ipv6PrefixRange> const &value) {
m_Ipv6PrefixRanges = value;
void BsfInfo::setIpv6PrefixRanges(std::vector<Ipv6PrefixRange> const& value) {
m_Ipv6PrefixRanges = value;
m_Ipv6PrefixRangesIsSet = true;
}
bool BsfInfo::ipv6PrefixRangesIsSet() const {
......@@ -115,7 +113,6 @@ void BsfInfo::unsetIpv6PrefixRanges() {
m_Ipv6PrefixRangesIsSet = false;
}
}
}
}
} // namespace model
} // namespace nrf
} // namespace oai
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment