LibItsHttp_JsonTemplates.ttcn 22.8 KB
Newer Older
Yann Garcia's avatar
Yann Garcia committed
1
/**
Elian Kraja's avatar
Elian Kraja committed
2
3
4
5
6
7
8
9
10
*    @author   ETSI / STF569
*    @version  $URL$
*              $ID:$
*    @desc     This module provides the custom templates for ITS HTTP based protocols.
*    @copyright   ETSI Copyright Notification
*                 No part may be reproduced except as authorized by written permission.
*                 The copyright and the foregoing restriction extend to reproduction in all media.
*                 All rights reserved.
*/
Yann Garcia's avatar
Yann Garcia committed
11
module LibItsHttp_JsonTemplates {
Elian Kraja's avatar
Elian Kraja committed
12

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  // LibMec/LocationAPI
  import from LocationAPI_TypesAndValues all;
  import from LocationAPI_Templates all;
  // LibMec/UEidentityAPI
  import from UEidentityAPI_TypesAndValues all;
  import from UEidentityAPI_Templates all;
  // LibMec/RnisAPI
  import from RnisAPI_TypesAndValues all;
  import from RnisAPI_Templates all;
  // LibMec/BwManagementAPI
  import from BwManagementAPI_TypesAndValues all;
  import from BwManagementAPI_Templates all;
  // LibMec/AppEnablementAPI
  import from AppEnablementAPI_TypesAndValues all;
  import from AppEnablementAPI_Templates all;
Elian Kraja's avatar
Elian Kraja committed
28
29
30
// LibMec/Ams
import from Ams_TypesAndValues all;
import from Ams_Templates all;
31
32
33
34
35
36
37
38
39
40
41
42
  
  // TODO Add here your custom RFCs import 
  
  // LibItsHttp
  import from LibItsHttp_JsonMessageBodyTypes all;
  import from LibItsHttp_JSONTypes all;
    
  template (value) JsonBody m_json_body_raw(
                                            in template (value) charstring p_raw
  ) := {
    raw := p_raw
  } // End of template m_json_body_raw
Elian Kraja's avatar
Elian Kraja committed
43

44
45
46
47
48
  template (present) JsonBody mw_json_body_raw(
                                               template (present) charstring p_raw := ?
  ) := {
    raw := p_raw
  } // End of template mw_json_body_raw
Elian Kraja's avatar
Elian Kraja committed
49
50
51
52

group ams_api {

  template (value) JsonBody m_body_json_app_mobility_service_info(
53
                                                                  in template (value) AppMobilityServiceInfo p_app_mobility_service_info
Elian Kraja's avatar
Elian Kraja committed
54
55
56
57
58
  ) := {
    appMobilityServiceInfo := p_app_mobility_service_info
  } // End of template mw_body_json_app_mobility_service_info

  template (present) JsonBody mw_body_json_app_mobility_service_info(
59
                                                                     template (present) AppMobilityServiceInfo p_app_mobility_service_info := ?
Elian Kraja's avatar
Elian Kraja committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
  ) := {
    appMobilityServiceInfo := p_app_mobility_service_info
  } // End of template mw_body_json_app_mobility_service_info


  template (value) JsonBody m_body_json_ams_problem_details(
    in template (value) Ams_TypesAndValues.ProblemDetails p_problemDetails
  ) := {
    problemDetails_ams := p_problemDetails
  } // End of template m_body_json_ue_identity_problem_details

  template (present) JsonBody mw_body_json_ams_problem_details(
    template (present) Ams_TypesAndValues.ProblemDetails p_problemDetails := ?
  ) := {
    problemDetails_ams := p_problemDetails
  } // End of template mw_body_json_ue_identity_problem_details


  template (present) JsonBody mw_body_json_ams_registration_request(
    template (present) Ams_TypesAndValues.RegistrationRequest p_registrationRequest := ?
  ) := {
    registrationRequest_ams := p_registrationRequest
  } // End of template mw_body_json_ue_identity_problem_details

  template (value) JsonBody m_body_json_ams_registration_request(
    in template (value) Ams_TypesAndValues.RegistrationRequest p_registrationRequest
  ) := {
    registrationRequest_ams := p_registrationRequest
  } // End of template m_body_json_ue_identity_problem_details


  template (present) JsonBody mw_body_json_ams_subscriptions(
    template (present) Ams_TypesAndValues.AmsSubscriptionLinkLists p_amsSubscriptionLinkList := ?
  ) := {
    subscriptionLinkList_ams := p_amsSubscriptionLinkList
  } // End of template mw_body_json_ue_identity_problem_details

  template (present) JsonBody m_body_json_ams_subscriptions(
    template (present) Ams_TypesAndValues.AmsSubscriptionLinkLists p_amsSubscriptionLinkList := ?
  ) := {
    subscriptionLinkList_ams := p_amsSubscriptionLinkList
  } // End of template mw_body_json_ue_identity_problem_details

} // end of group ams api

Yann Garcia's avatar
Yann Garcia committed
105
106
107
108
109
110
111
112
113
114
115
116
117
118
  group locarion_api {
    
    template (value) JsonBody m_body_json_user_info(
                                                    in template (value) UserInfo p_user_info
                                                    ) := {
      userInfo := p_user_info
    } // End of template m_body_json_user_info
    
    template (present) JsonBody mw_body_json_user_info(
                                                       template (present) UserInfo p_user_info := ?
                                                       ) := {
      userInfo := p_user_info
    } // End of template mw_body_json_user_info
    
Yann Garcia's avatar
Yann Garcia committed
119
120
121
122
123
124
125
126
127
128
129
130
    template (value) JsonBody m_body_json_user_list(
                                                    in template (value) UserList p_user_list
                                                    ) := {
      userList := p_user_list
    } // End of template m_body_json_user_list
    
    template (present) JsonBody mw_body_json_user_list(
                                                       template (present) UserList p_user_list := ?
                                                       ) := {
      userList := p_user_list
    } // End of template mw_body_json_user_list
    
Yann Garcia's avatar
Yann Garcia committed
131
132
133
134
135
    template (value) JsonBody m_body_json_zone_info(
                                                    in template (value) ZoneInfo p_zone_info
                                                    ) := {
      zoneInfo := p_zone_info
    } // End of template m_body_json_zone_info
Yann Garcia's avatar
Yann Garcia committed
136
  
Yann Garcia's avatar
Yann Garcia committed
137
138
    template (present) JsonBody mw_body_json_zone_info(
                                                       template (present) ZoneInfo p_zone_info := ?
Yann Garcia's avatar
Yann Garcia committed
139
                                                       ) := {
Yann Garcia's avatar
Yann Garcia committed
140
141
142
      zoneInfo := p_zone_info
    } // End of template mw_body_json_zone_info
    
Yann Garcia's avatar
Yann Garcia committed
143
144
145
146
147
148
149
150
151
152
153
154
    template (value) JsonBody m_body_json_access_point_list(
                                                            in template (value) AccessPointList p_access_point_list
                                                            ) := {
      accessPointList := p_access_point_list
    } // End of template m_body_json_access_point_list
    
    template (present) JsonBody mw_body_json_access_point_list(
                                                               template (present) AccessPointList p_access_point_list := ?
                                                               ) := {
      accessPointList := p_access_point_list
    } // End of template mw_body_json_access_point_list
    
YannGarcia's avatar
YannGarcia committed
155
156
157
158
159
160
161
162
163
164
165
166
    template (value) JsonBody m_body_json_user_tracking_subscription(
                                                                     in template (value) UserTrackingSubscription p_user_tracking_subscription
                                                                     ) := {
      userTrackingSubscription := p_user_tracking_subscription
    } // End of template m_body_json_user_tracking_subscription
    
    template (present) JsonBody mw_body_json_user_tracking_subscription(
                                                                        template (present) UserTrackingSubscription p_user_tracking_subscription := ?
                                                                        ) := {
      userTrackingSubscription := p_user_tracking_subscription
    } // End of template mw_body_json_user_rtracking_subscription
    
167
168
169
170
    template (value) JsonBody m_body_json_zonal_traffic_subscription(
                                                                     in template (value) ZonalTrafficSubscription p_zonal_traffic_subscription
                                                                     ) := {
      zonalTrafficSubscription := p_zonal_traffic_subscription
171
  } // End of template m_body_json_zonal_traffic_subscription
172
173
174
175
176
177
178
    
    template (present) JsonBody mw_body_json_zonal_traffic_subscription(
                                                                        template (present) ZonalTrafficSubscription p_zonal_traffic_subscription := ?
                                                                        ) := {
      zonalTrafficSubscription := p_zonal_traffic_subscription
    } // End of template mw_body_json_zonal_traffic_subscription
    
Yann Garcia's avatar
Yann Garcia committed
179
180
181
182
  } // End of group locarion_api

  group ue_identity_api {

Yann Garcia's avatar
Yann Garcia committed
183
184
185
186
    template (value) JsonBody m_body_json_ue_identity_tag_info(
                                                               in template (value) UeIdentityTagInfo p_ueIdentityTagInfo
                                                               ) := {
      ueIdentityTagInfo := p_ueIdentityTagInfo
Yann Garcia's avatar
Yann Garcia committed
187
    } // End of template m_body_json_ue_identity_tag_info
Yann Garcia's avatar
Yann Garcia committed
188
    
Yann Garcia's avatar
Yann Garcia committed
189
190
191
192
    template (present) JsonBody mw_body_json_ue_identity_tag_info(
                                                                  template (present) UeIdentityTagInfo p_ueIdentityTagInfo := ?
                                                                  ) := {
      ueIdentityTagInfo := p_ueIdentityTagInfo
Yann Garcia's avatar
Yann Garcia committed
193
    } // End of template mw_body_json_ue_identity_tag_info
Yann Garcia's avatar
Yann Garcia committed
194
    
195
196
197
    template (value) JsonBody m_body_json_ue_identity_problem_details(
                                                                      in template (value) UEidentityAPI_TypesAndValues.ProblemDetails p_problemDetails
                                                                      ) := {
Yann Garcia's avatar
Yann Garcia committed
198
      problemDetails_ue_identity := p_problemDetails
199
    } // End of template m_body_json_ue_identity_problem_details
Yann Garcia's avatar
Yann Garcia committed
200
    
201
202
203
    template (present) JsonBody mw_body_json_ue_identity_problem_details(
                                                                         template (present) UEidentityAPI_TypesAndValues.ProblemDetails p_problemDetails := ?
                                                                         ) := {
Yann Garcia's avatar
Yann Garcia committed
204
      problemDetails_ue_identity := p_problemDetails
205
    } // End of template mw_body_json_ue_identity_problem_details
Yann Garcia's avatar
Yann Garcia committed
206
207
    
  } // End of group ue_identity_api
Yann Garcia's avatar
Yann Garcia committed
208
209
210

  group rnis_subscriptions {

YannGarcia's avatar
YannGarcia committed
211
212
213
214
215
216
217
218
219
220
221
222
    template (value) JsonBody m_body_json_subscriptions_list(
                                                             in template (value) SubscriptionLinkList p_subscriptionLinkList
                                                             ) := {
      subscriptionLinkList := p_subscriptionLinkList
    } // End of template m_body_json_subscriptions_list
    
    template (present) JsonBody mw_body_json_subscriptions_list(
                                                                template (present) SubscriptionLinkList p_subscriptionLinkList := ?
                                                                ) := {
      subscriptionLinkList := p_subscriptionLinkList
    } // End of template mw_body_json_subscriptions_list
    
Yann Garcia's avatar
Yann Garcia committed
223
224
225
226
227
228
229
230
231
232
233
234
    template (value) JsonBody m_body_json_cell_change_subscription(
                                                                   in template (value) CellChangeSubscription p_cellChangeSubscription
                                                                   ) := {
      cellChangeSubscription := p_cellChangeSubscription
    } // End of template m_body_json_cell_change_subscription
    
    template (present) JsonBody mw_body_json_cell_change_subscription(
                                                                      template (present) CellChangeSubscription p_cellChangeSubscription := ?
                                                                      ) := {
      cellChangeSubscription := p_cellChangeSubscription
    } // End of template mw_body_json_cell_change_subscription
    
YannGarcia's avatar
YannGarcia committed
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
    template (value) JsonBody m_body_json_rab_info(
                                                   in template (value) RabInfo p_rabInfo
                                                   ) := {
      rabInfo := p_rabInfo
    } // End of template m_body_json_rab_info
    
    template (present) JsonBody mw_body_json_rab_info(
                                                      template (present) RabInfo p_rabInfo := ?
                                                      ) := {
      rabInfo := p_rabInfo
    } // End of template mw_body_json_rab_info
    
    template (value) JsonBody m_body_json_plmn_info(
                                                   in template (value) PlmnInfo p_plmnInfo
                                                   ) := {
      plmnInfo := p_plmnInfo
    } // End of template m_body_json_plmn_info
    
    template (present) JsonBody mw_body_json_plmn_info(
                                                      template (present) PlmnInfo p_plmnInfo := ?
                                                      ) := {
      plmnInfo := p_plmnInfo
    } // End of template mw_body_json_plmn_info
    
259
260
261
262
263
264
265
266
267
268
269
270
    template (value) JsonBody m_body_json_s1_bearer_info(
                                                         in template (value) S1BearerInfo p_s1BearerInfo
                                                         ) := {
      s1BearerInfo := p_s1BearerInfo
    } // End of template m_body_json_s1_bearer_info
    
    template (present) JsonBody mw_body_json_s1_bearer_info(
                                                            template (present) S1BearerInfo p_s1BearerInfo := ?
                                                            ) := {
      s1BearerInfo := p_s1BearerInfo
    } // End of template mw_body_json_s1_bearer_info
    
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
    template (value) JsonBody m_body_json_rab_est_subscription(
                                                               in template (value) RabEstSubscription p_rabEstSubscription
                                                               ) := {
      rabEstSubscription := p_rabEstSubscription
    } // End of template m_body_json_rab_est_subscription
    
    template (present) JsonBody mw_body_json_rab_est_subscription(
                                                                  template (present) RabEstSubscription p_rabEstSubscription := ?
                                                                  ) := {
      rabEstSubscription := p_rabEstSubscription
    } // End of template mw_body_json_rab_est_subscription
    
    template (value) JsonBody m_body_json_rab_mod_subscription(
                                                               in template (value) RabModSubscription p_rabModSubscription
                                                               ) := {
      rabModSubscription := p_rabModSubscription
    } // End of template m_body_json_rab_mod_subscription
    
    template (present) JsonBody mw_body_json_rab_mod_subscription(
                                                                  template (present) RabModSubscription p_rabModSubscription := ?
                                                                  ) := {
      rabModSubscription := p_rabModSubscription
    } // End of template mw_body_json_rab_mod_subscription
    
    template (value) JsonBody m_body_json_rab_rel_subscription(
                                                               in template (value) RabRelSubscription p_rabRelSubscription
                                                               ) := {
      rabRelSubscription := p_rabRelSubscription
    } // End of template m_body_json_rab_rel_subscription
    
    template (present) JsonBody mw_body_json_rab_rel_subscription(
                                                                  template (present) RabRelSubscription p_rabRelSubscription := ?
                                                                  ) := {
      rabRelSubscription := p_rabRelSubscription
    } // End of template mw_body_json_rab_rel_subscription
    
YannGarcia's avatar
YannGarcia committed
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
    template (value) JsonBody m_body_json_meas_rep_ue_subscription(
                                                                   in template (value) MeasRepUeSubscription p_measRepUeSubscription
                                                                   ) := {
      measRepUeSubscription := p_measRepUeSubscription
    } // End of template m_body_json_meas_rep_ue_subscription
    
    template (present) JsonBody mw_body_json_meas_rep_ue_subscription(
                                                                      template (present) MeasRepUeSubscription p_measRepUeSubscription := ?
                                                                      ) := {
      measRepUeSubscription := p_measRepUeSubscription
    } // End of template mw_body_json_meas_rep_ue_subscription
    
    template (value) JsonBody m_body_json_meas_ta_subscription(
                                                               in template (value) MeasTaSubscription p_measTaSubscription
                                                               ) := {
      measTaSubscription := p_measTaSubscription
    } // End of template m_body_json_meas_ta_subscription
    
    template (present) JsonBody mw_body_json_meas_ta_subscription(
                                                                  template (present) MeasTaSubscription p_measTaSubscription := ?
                                                                  ) := {
      measTaSubscription := p_measTaSubscription
    } // End of template mw_body_json_meas_ta_subscription
    
    template (value) JsonBody m_body_json_ca_reconf_subscription(
                                                                 in template (value) CaReConfSubscription p_caReconfSubscription
                                                                 ) := {
      caReConfSubscription := p_caReconfSubscription
    } // End of template m_body_json_ca_reconf_subscription
    
    template (present) JsonBody mw_body_json_ca_reconf_subscription(
                                                                    template (present) CaReConfSubscription p_caReconfSubscription := ?
                                                                    ) := {
      caReConfSubscription := p_caReconfSubscription
    } // End of template mw_body_json_ca_reconf_subscription
    
    template (value) JsonBody m_body_json_s1_bearer_subscription(
                                                                 in template (value) S1BearerSubscription p_s1BearerSubscription
                                                                 ) := {
      s1BearerSubscription := p_s1BearerSubscription
    } // End of template m_body_json_s1_bearer_subscription
    
    template (present) JsonBody mw_body_json_s1_bearer_subscription(
                                                                    template (present) S1BearerSubscription p_s1BearerSubscription := ?
                                                                    ) := {
      s1BearerSubscription := p_s1BearerSubscription
    } // End of template mw_body_json_s1_bearer_subscription
    
YannGarcia's avatar
YannGarcia committed
355
356
357
    template (value) JsonBody m_body_json_rni_problem_details(
                                                              in template (value) RnisAPI_TypesAndValues.ProblemDetails p_problemDetails
                                                              ) := {
358
      problemDetails_rnis := p_problemDetails
YannGarcia's avatar
YannGarcia committed
359
360
361
362
363
    } // End of template m_body_json_rni_problem_details
    
    template (present) JsonBody mw_body_json_rni_problem_details(
                                                                 template (present) RnisAPI_TypesAndValues.ProblemDetails p_problemDetails := ?
                                                                 ) := {
364
      problemDetails_rnis := p_problemDetails
YannGarcia's avatar
YannGarcia committed
365
366
    } // End of template mw_body_json_rni_problem_details
    
Yann Garcia's avatar
Yann Garcia committed
367
  } // End of group rnis_subscriptions 
Yann Garcia's avatar
Yann Garcia committed
368
  
YannGarcia's avatar
YannGarcia committed
369
370
371
372
  group rnis_notifications {
    
  } // End of group rnis_notifications
  
YannGarcia's avatar
YannGarcia committed
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
  group bw_management_api {
    
    template (value) JsonBody m_body_json_bw_info(
                                                  in template (value) BwInfo p_bwInfo
                                                  ) := {
      bwInfo := p_bwInfo
    } // End of template m_body_json_bw_info
    
    template (present) JsonBody mw_body_json_bw_info(
                                                     template (present) BwInfo p_bwInfo := ?
                                                     ) := {
      bwInfo := p_bwInfo
    } // End of template mw_body_json_bw_info
    
  } // End of group bw_management_api
  
YannGarcia's avatar
YannGarcia committed
389
390
391
392
393
394
395
396
397
398
399
400
401
402
  group svc_mgmt {
    
    template (value) JsonBody m_body_json_transport_info_list(
                                                              in template (value) TransportInfoList p_transportInfoList
                                                              ) := {
      transportInfoList := p_transportInfoList
    } // End of template m_body_json_transport_info_list
    
    template (present) JsonBody mw_body_json_transport_info_list(
                                                                 template (present) TransportInfoList p_transportInfoList := ?
                                                                 ) := {
      transportInfoList := p_transportInfoList
    } // End of template mw_body_json_transport_info_list
    
YannGarcia's avatar
YannGarcia committed
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
    template (value) JsonBody m_body_json_traffic_rule(
                                                       in template (value) TrafficRule p_trafficRule
                                                             ) := {
      trafficRule := p_trafficRule
    } // End of template m_body_json_traffic_rule
    
    template (present) JsonBody mw_body_json_traffic_rule(
                                                                template (present) TrafficRule p_trafficRule := ?
                                                                ) := {
      trafficRule := p_trafficRule
    } // End of template mw_body_json_traffic_rule
    
    template (value) JsonBody m_body_json_traffic_rules_list(
                                                             in template (value) TrafficRuleList p_trafficRuleList
                                                             ) := {
      trafficRuleList := p_trafficRuleList
    } // End of template m_body_json_traffic_rules_list
    
    template (present) JsonBody mw_body_json_traffic_rules_list(
                                                                template (present) TrafficRuleList p_trafficRuleList := ?
                                                                ) := {
      trafficRuleList := p_trafficRuleList
    } // End of template mw_body_json_traffic_rules_list
    
    template (value) JsonBody m_body_json_app_enablement_problem_details(
                                                                         in template (value) AppEnablementAPI_TypesAndValues.ProblemDetails p_problemDetails
                                                                         ) := {
      problemDetails_svc_mgmt := p_problemDetails
    } // End of template m_body_json_app_enablement_problem_details
    
    template (present) JsonBody mw_body_json_app_enablement_problem_details(
                                                                            template (present) AppEnablementAPI_TypesAndValues.ProblemDetails p_problemDetails := ?
                                                                            ) := {
      problemDetails_svc_mgmt := p_problemDetails
    } // End of template mw_body_json_app_enablement_problem_details
    
YannGarcia's avatar
YannGarcia committed
439
440
  } // End of group svc_mgmt
  
Yann Garcia's avatar
Yann Garcia committed
441
} // End of module LibItsHttp_JsonTemplates