BwManagementAPI_Templates.ttcn 5.19 KB
Newer Older
YannGarcia's avatar
YannGarcia committed
1
2
3
4
5
6
7
8
9
10
module BwManagementAPI_Templates {
  
  // JSON
  import from JSON all;
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;

  // LibMec/BwManagementAPI
  import from BwManagementAPI_TypesAndValues all;
YannGarcia's avatar
YannGarcia committed
11
  import from BwManagementAPI_Pixits all;
YannGarcia's avatar
YannGarcia committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

  template (value) ProblemDetails m_problem_details(
                                                    in JSON.String p_type,
                                                    in JSON.String p_title,
                                                    in UInt32 p_status,
                                                    in JSON.String p_detail,
                                                    in JSON.String p_instance
  ) := {
    type_    := p_type,
    title    := p_title,
    status   := p_status,
    detail   := p_detail,
    instance := p_instance
  } // End of template m_problem_details

  template (present) ProblemDetails mw_problem_details(
                                                       template (present) JSON.String p_type := ?,
                                                       template (present) JSON.String p_title := ?,
                                                       template (present) UInt32 p_status := ?,
                                                       template (present) JSON.String p_detail := ?,
                                                       template (present) JSON.String p_instance := ?
  ) := {
    type_    := p_type,
    title    := p_title,
    status   := p_status,
    detail   := p_detail,
    instance := p_instance
  } // End of template mw_problem_details

  template (value) BwInfo m_bw_info(
YannGarcia's avatar
YannGarcia committed
42
                                    in AppInsId p_appInsId := PX_APP_INSTANCE_ID,
YannGarcia's avatar
YannGarcia committed
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
                                    in RequestType p_requestType,
                                    in FixedBWPriority p_fixedBWPriority,
                                    in FixedAllocation p_fixedAllocation,
                                    in AllocationDirection p_allocationDirection
                                    ) := {
    timeStamp           := omit,
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := omit,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template m_bw_info

  template (present) BwInfo mw_bw_info(
                                       template (present) AppInsId p_appInsId := ?,
                                       template (present) RequestType p_requestType := ?,
                                       template (present) FixedBWPriority p_fixedBWPriority := ?,
                                       template (present) FixedAllocation p_fixedAllocation := ?,
                                       template (present) AllocationDirection p_allocationDirection := ?
                                       ) := {
    timeStamp           := *,
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := *,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template mw_bw_info

  template (value) BwInfoDeltas m_bw_info_delta(
YannGarcia's avatar
YannGarcia committed
74
                                                in AppInsId p_appInsId := PX_APP_INSTANCE_ID,
YannGarcia's avatar
YannGarcia committed
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
105
                                                in RequestType p_requestType,
                                                in template (value) SessionFilter p_sessionFilter,
                                                in FixedBWPriority p_fixedBWPriority,
                                                in FixedAllocation p_fixedAllocation,
                                                in AllocationDirection p_allocationDirection
                                                ) := {
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template m_bw_info_delta

  template (present) BwInfoDeltas mw_bw_info_delta(
                                                   template (present) AppInsId p_appInsId := ?,
                                                   template (present) RequestType p_requestType := ?,
                                                   template (present) SessionFilter p_sessionFilter := ?,
                                                   template (present) FixedBWPriority p_fixedBWPriority := ?,
                                                   template (present) FixedAllocation p_fixedAllocation := ?,
                                                   template (present) AllocationDirection p_allocationDirection := ?
                                                   ) := {
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template mw_bw_info_delta

} // End of module BwManagementAPI_Templates