IndividualPDUSessionHSMFApi.h 2.58 KB
Newer Older
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
1
/**
2
3
4
5
6
7
8
9
10
11
 * Nsmf_PDUSession
 * SMF PDU Session 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.
 */
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * IndividualPDUSessionHSMFApi.h
 *
 * 
 */

#ifndef IndividualPDUSessionHSMFApi_H_
#define IndividualPDUSessionHSMFApi_H_

#include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h>
#include <pistache/optional.h>

#include "HsmfUpdateData.h"
#include "HsmfUpdateError.h"
#include "HsmfUpdatedData.h"
#include "ProblemDetails.h"
#include "ReleaseData.h"
#include <string>

namespace oai {
34
namespace smf_server {
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
35
36
namespace api {

37
using namespace oai::smf_server::model;
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
38

39
40
41
42
43
44
45
class IndividualPDUSessionHSMFApi {
 public:
  IndividualPDUSessionHSMFApi(std::shared_ptr<Pistache::Rest::Router>);
  virtual ~IndividualPDUSessionHSMFApi() {
  }
  void init();

46
  const std::string base = "/nsmf-pdusession/v2";
47
48
49
50

 private:
  void setupRoutes();

Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
51
52
53
54
55
56
57
  void release_pdu_session_handler(const Pistache::Rest::Request &request,
                                   Pistache::Http::ResponseWriter response);
  void update_pdu_session_handler(const Pistache::Rest::Request &request,
                                  Pistache::Http::ResponseWriter response);
  void individual_pdu_session_hsmf_api_default_handler(
      const Pistache::Rest::Request &request,
      Pistache::Http::ResponseWriter response);
58
59
60
61
62
63
64
65
66
67
68

  std::shared_ptr<Pistache::Rest::Router> router;

  /// <summary>
  /// Release
  /// </summary>
  /// <remarks>
  ///
  /// </remarks>
  /// <param name="pduSessionRef">PDU session reference</param>
  /// <param name="releaseData">representation of the data to be sent to H-SMF when releasing the PDU session (optional)</param>
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
69
70
71
  virtual void release_pdu_session(
      const std::string &pduSessionRef, const ReleaseData &releaseData,
      Pistache::Http::ResponseWriter &response) = 0;
72
73
74
75
76
77
78
79
80

  /// <summary>
  /// Update (initiated by V-SMF)
  /// </summary>
  /// <remarks>
  ///
  /// </remarks>
  /// <param name="pduSessionRef">PDU session reference</param>
  /// <param name="hsmfUpdateData">representation of the updates to apply to the PDU session</param>
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
81
82
83
  virtual void update_pdu_session(const std::string &pduSessionRef,
                                  const HsmfUpdateData &hsmfUpdateData,
                                  Pistache::Http::ResponseWriter &response) = 0;
Tien-Thinh Nguyen's avatar
Tien-Thinh Nguyen committed
84
85
86
87
88
89
90
91
92

};

}
}
}

#endif /* IndividualPDUSessionHSMFApi_H_ */