Newer
Older
1
2
3
4
5
6
7
8
9
10
11
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
42
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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
module MeoPkgm_TypesAndValues {
// JSON
import from JSON all;
// LibCommon
import from LibCommon_BasicTypesAndValues all;
type record AppPkg {
JSON.String appPkgName,
JSON.String appPkgVersion,
JSON.String checksum,
JSON.String appPkgPath
}
type record AppPkgWithError {
JSON.String appPkgVersion,
JSON.String checksum,
JSON.String appPkgPath
}
type record of OnboardedAppPkgInfo OnboardedAppPkgInfoList;
type record OnboardedAppPkgInfo {
JSON.String appPkgId,
JSON.String appName,
JSON.String appDVersion,
JSON.String checksum,
OperationalState operationalState,
UsageState usageState
}
type enumerated AppPkgOperation {
DISABLE,
ENABLE,
ABORT
}
type enumerated OperationalState {
ENABLED,
DISABLED,
DELETION_PENDING
}
type enumerated UsageState {
IN_USE,
NOT_IN_USE
}
type enumerated SubscriptionType {
ON_BOARDING,
OP_CHANGE
}
type enumerated SubscriptionTypeWithError {
ONBOARDING,
OP_CHANGE
}
type record of AppPkgSubscriptionInfo AppPkgSubscriptionInfoList;
type record AppPkgSubscriptionInfo {
JSON.String subscriptionId,
SubscriptionType subscriptionType,
JSON.AnyURI callbackUri
}
type record AppPkgSubscription {
JSON.AnyURI callbackUri,
SubscriptionType subscriptionType
}
type record AppPkgSubscriptionWithError {
JSON.AnyURI callbackUri,
SubscriptionTypeWithError subscriptionType
}
type enumerated NotificationType {
ON_BOARDING,
OP_CHANGE
}
type record AppPkgNotification {
NotificationType notificationType,
JSON.String subscriptionId,
//@TODO: links should be named _links but getting error.
//@TODO: links shuld be a record, but cannot contain self cause self is a key for ttnc
JSON.AnyURI links
}
//
//
//type record of AppMobilityServiceInfo AppMobilityServiceInfos;
//type record AppMobilityServiceInfo {
// RegistrationInfos registeredAppMobilityService ,
// String appMobilityServiceId
//}
//
//type record of RegistrationInfo RegistrationInfos;
//type record RegistrationInfo {
// ServiceConsumerId serviceConsumerId,
// DeviceInformations deviceInformation optional,
// UInt32 expiryTime optional
//}
//
//
//
//
//
//type record of ServiceConsumerId ServiceConsumerIds;
//type record ServiceConsumerId {
// String appInstanceId optional,
// String mepId optional
//}
//
//// Erroneous parameter: appInstance should be appInstanceId
//type record of ServiceConsumer ServiceConsumers;
//type record ServiceConsumer {
// String appInstance optional,
// String mepId optional
//}
//
//type record of DeviceInformation DeviceInformations;
//type record DeviceInformation {
// String associateId
//}
//
//
//type JSON.AnyURI links;
//
//type enumerated SubscriptionType {
// MobilityProcedureSubscription,
// AdjacentAppInfoSubscription
//}
//
//type record Subscription {
// JSON.AnyURI href,
// SubscriptionType subscriptionType
//}
//
//
//type record of AmsSubscriptionLinkList AmsSubscriptionLinkLists;
//type record AmsSubscriptionLinkList {
// JSON.AnyURI links,
// Subscription subscription
//}
//
//
//type record MobilityProcedureSubscriptionError {
// SubscriptionType subscriptionType,
// JSON.AnyURI callbackReference,
// JSON.AnyURI links optional,
// FilterCriteria filterCriteria,
// TimeStamp expiryDeadline optional
//}
//
//
//
//
//type record of MobilityProcedureSubscription MobilityProcedureSubscriptions;
//type record MobilityProcedureSubscription {
// SubscriptionType subscriptionType,
// JSON.AnyURI callbackReference,
// JSON.AnyURI links optional,
// FilterCriteria filterCriteria,
// TimeStamp expiryDeadline optional
//}
//
//type enumerated MobilityStatusType {
// INTERHOST_MOVEOUT_TRIGGERED,
// TARGET_APPINST_CONFIRMED,
// TARGET_TRAFFIC_RULE_ACTIVATED,
// INTERHOST_MOVEOUT_COMPLETED,
// INTERHOST_MOVEOUT_FAILED
//}
//
//type record AssociateIdList {
// String associateId
//}
//
//type record of FilterCriteria FilterCriterias;
//type record FilterCriteria {
// String appInstanceId optional,
// AssociateIdList associateId optional,
// MobilityStatusType mobilityStatus
//}
//
//
//
//type record AdjacentFilterCriteria {
// String appInstanceId optional
//}
//
//
//type record of ExpiryNotification ExpiryNotifications;
//type record ExpiryNotification {
// TimeStamp timeStamp,
// JSON.AnyURI links optional,
// TimeStamp expiryDeadline
//}
//
//type record of AdjacentAppInfoSubscription AdjacentAppInfoSubscriptions;
//type record AdjacentAppInfoSubscription {
// SubscriptionType subscriptionType,
// JSON.AnyURI callbackReference,
// JSON.AnyURI links optional,
// AdjacentFilterCriteria filterCriteria,
// TimeStamp expiryDeadline optional
//}
/**
* @desc
* @member seconds The seconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC
* @member nanoSeconds The nanoseconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC
*/
type record TimeStamp {
Seconds seconds,
NanoSeconds nanoSeconds
}
/**
* @desc The seconds part of the Time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC
*/
type UInt32 Seconds;
/**
* @desc The nanoseconds part of the Time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC
*/
type UInt32 NanoSeconds;
/**
* @desc Problem Details for HTTP APIs
* @member type_ A URI reference according to IETF RFC 3986 that identifies the problem type
* @member title A short, human-readable summary of the problem type
* @member status The HTTP status code for this occurrence of the problem
* @member detail A human-readable explanation specific to this occurrence of the problem
* @member instance A URI reference that identifies the specific occurrence of the problem
* @see IETF RFC 7807 Clause 3. The Problem Details JSON Object
*/
type record ProblemDetails {
JSON.String type_,
JSON.String title,
UInt32 status,
JSON.String detail,
JSON.String instance
} with {
variant (type_) "name as 'type'";
}
} with {
encode "JSON"
}