OneM2M_Types.ttcn 203 KB
Newer Older
1
2
3
4
5
6
7
/**
 *  Copyright Notification
 *  No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
 *  The copyright and the foregoing restriction extend to reproduction in all media.
 *  © 2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC).
 *  All rights reserved.
 *  
8
 *  @author     oneM2M
9
 *  @version    $URL: https://forge.etsi.org/svn/oneM2M/trunk/ttcn/LibOneM2M/OneM2M_Types.ttcn $
10
 *              $Id: OneM2M_Types.ttcn 234 2017-03-20 16:37:29Z reinaortega $
11
 *  @desc       OneM2M data types module 
12
13
14
15
16
 *
 */
module OneM2M_Types {


17
import from XSD all;
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
/* ******************************************
 * 		oneM2M Abstract Service Primitives 
 * ******************************************
*/
	/**
	 * @desc Type for the oneM2M primitives exchange
	 * @member primitive oneM2M primitive
	 * @member host IP Address of the destination
	 * @member xmlNamespace XML Namespace to be used
	 * @member protocolBinding Protocol binding to be used
	 * @member serialization Serialization to be used
	 * @member forcedFields Attributes that need to be processed differently by the test adapter:
	 * 			- empty fields (for instance, for attribute deletion), i.e. <labels></labels> -> value_ to be omitted
	 * 			- invalid values, i.e. <maxNrOfInstances>-1</maxNrOfInstances>
	 */
	type record MsgOut {
		union {
			RequestPrimitive requestPrimitive,
			ResponsePrimitive responsePrimitive
		} primitive, 
		charstring host optional,
		charstring xmlNamespace optional, 
		charstring protocolBinding optional,
		charstring serialization optional,
		AttributeAux_list forcedFields optional
43
	}
44
45
46
47
48
49
50
51
52
53
	
	/**
	 * @desc Type for the oneM2M primitives exchange
	 * @member primitive oneM2M primitive
	 */
	type record MsgIn {
		union {
			RequestPrimitive requestPrimitive,
			ResponsePrimitive responsePrimitive
		} primitive
54
	}
55
56
57
58
	
	type record AcRequestPrimitive {
		charstring event,
		anytype data
59
60
	}
	with {
61
		encode "adapter";
62
	}
63
64
65
66
	
	type record AcResponsePrimitive {
		charstring event,
		anytype data
67
68
	}
	with {
69
		encode "adapter";
70
	}
71
72
73
74
	
	type record AttributeAux {
		XSD.NCName name,
		charstring value_ optional
75
	};
76
77
	
	type record of AttributeAux AttributeAux_list;
78

79
80
81
82
/* **********************************
* 		oneM2M Resource primitives
* ***********************************	
*/
83
84
85

type record AccessControlPolicy
{
86
	ResourceName resourceName,
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
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	Timestamp expirationTime,
	ListOfURIs announceTo optional,
	record length(1 .. infinity) of XSD.NCName announcedAttribute,
	SetOfAcrs privileges,
	SetOfAcrs selfPrivileges,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (announcedAttribute) "list";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};


type record AccessControlPolicyAnnc
{
118
	ResourceName resourceName,
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
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	Timestamp expirationTime,
	XSD.AnyURI link,
	SetOfAcrs privileges,
	SetOfAcrs selfPrivileges,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};








type record ActiveCmdhPolicy
{
154
	ResourceName resourceName,
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
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	record length(1 .. infinity) of XSD.NCName announcedAttribute,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.ID activeCmdhPolicyLink
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (announcedAttribute) "list";
};


type record AE
{
182
	ResourceName resourceName,
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
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	record length(1 .. infinity) of XSD.NCName announcedAttribute,
	XSD.String appName optional,
	XSD.String app_ID,
	XSD.ID aE_ID,
	PoaList pointOfAccess optional,
	XSD.AnyURI ontologyRef optional,
	XSD.AnyURI nodeLink optional,
	XSD.Boolean requestReachability,
	Serializations contentSerialization optional,
	E2eSecInfo e2eSecInfo optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of union {
			Container container,
			Group group_,
			AccessControlPolicy accessControlPolicy,
			Subscription subscription,
			PollingChannel pollingChannel,
			Schedule schedule,
			SemanticDescriptor semanticDescriptor,
			TimeSeries timeSeries,
			TrafficPattern trafficPattern,
			Sg_flexContainerResource_group sg_flexContainerResource
		} choice_list
	} choice optional
}
with {
  variant "element";
  variant (resourceName) "attribute";
  variant (announcedAttribute) "list";
  variant (app_ID) "name as 'App-ID'";
  variant (aE_ID) "name as 'AE-ID'";
  //variant (requestReachability) "text 'true' as '1'";
  //variant (requestReachability) "text 'false' as '0'";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
  variant (choice.choice_list[-].group_) "name as 'group'";
};


type record AEAnnc
{
238
	ResourceName resourceName,
239
240
241
242
243
244
245
246
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime,
247
	XSD.AnyURI link,
248
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
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
	XSD.String appName optional,
	XSD.String app_ID optional,
	XSD.ID aE_ID optional,
	PoaList pointOfAccess optional,
	XSD.AnyURI ontologyRef optional,
	XSD.AnyURI nodeLink optional,
	XSD.Boolean requestReachability optional,
	Serializations contentSerialization optional,
	E2eSecInfo e2eSecInfo optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of union {
			Container container,
			ContainerAnnc containerAnnc,
			Group group_,
			GroupAnnc groupAnnc,
			AccessControlPolicy accessControlPolicy,
			AccessControlPolicyAnnc accessControlPolicyAnnc,
			Subscription subscription,
			ScheduleAnnc scheduleAnnc,
			SemanticDescriptor semanticDescriptor,
			TimeSeries timeSeries,
			TimeSeriesAnnc timeSeriesAnnc,
			TrafficPatternAnnc trafficPatternAnnc,
			Sg_flexContainerResource_group sg_flexContainerResource,
			Sg_announcedFlexContainerResource_group sg_announcedFlexContainerResource
		} choice_list
	} choice optional
}
with {
  variant "element";
  variant (resourceName) "attribute";
  variant (app_ID) "name as 'App-ID'";
  variant (aE_ID) "name as 'AE-ID'";
  //variant (requestReachability) "text 'true' as '1'";
  //variant (requestReachability) "text 'false' as '0'";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
  variant (choice.choice_list[-].group_) "name as 'group'";
};


type record AllJoynApp
{
296
	ResourceName resourceName,
297
298
299
300
301
302
303
304
305
306
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
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime optional,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	ListOfNCNames announcedAttribute optional,
	XSD.NonNegativeInteger stateTag,
	XSD.ID creator optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	AllJoynDirection direction,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			Subscription subscription,
			AllJoynSvcObject allJoynSvcObject
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynAppAnnc
{
336
	ResourceName resourceName,
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime optional,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	XSD.NonNegativeInteger stateTag optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	AllJoynDirection direction,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			SemanticDescriptorAnnc semanticDescriptorAnnc,
			Subscription subscription,
			AllJoynSvcObject allJoynSvcObject,
			AllJoynSvcObjectAnnc allJoynSvcObjectAnnc
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynInterface
{
376
	ResourceName resourceName,
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime optional,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	ListOfNCNames announcedAttribute optional,
	XSD.NonNegativeInteger stateTag,
	XSD.ID creator optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	XSD.AnyURI interfaceIntrospectXmlRef,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			Subscription subscription,
			AllJoynMethod allJoynMethod,
			AllJoynProperty allJoynProperty,
			Container container
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynInterfaceAnnc
{
418
	ResourceName resourceName,
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime optional,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	XSD.NonNegativeInteger stateTag optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	XSD.AnyURI interfaceIntrospectXmlRef optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			SemanticDescriptorAnnc semanticDescriptorAnnc,
			Subscription subscription,
			AllJoynMethod allJoynMethod,
			AllJoynMethodAnnc allJoynMethodAnnc,
			AllJoynProperty allJoynProperty,
			AllJoynPropertyAnnc allJoynPropertyAnnc,
			Container container,
			ContainerAnnc containerAnnc
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynMethodCall
{
462
	ResourceName resourceName,
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime optional,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	ListOfNCNames announcedAttribute optional,
	XSD.NonNegativeInteger stateTag,
	XSD.ID creator optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	XSD.String input optional,
	XSD.String callStatus optional,
	XSD.String output optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			Subscription subscription
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynMethodCallAnnc
{
503
	ResourceName resourceName,
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime optional,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	XSD.NonNegativeInteger stateTag optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			SemanticDescriptorAnnc semanticDescriptorAnnc,
			Subscription subscription
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynMethod
{
540
	ResourceName resourceName,
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime optional,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	ListOfNCNames announcedAttribute optional,
	XSD.NonNegativeInteger stateTag,
	XSD.ID creator optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			Subscription subscription,
			AllJoynMethodCall allJoynMethodCall
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynMethodAnnc
{
579
	ResourceName resourceName,
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime optional,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	XSD.NonNegativeInteger stateTag optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			SemanticDescriptorAnnc semanticDescriptorAnnc,
			Subscription subscription,
			AllJoynMethodCall allJoynMethodCall,
			AllJoynMethodCallAnnc allJoynMethodCallAnnc
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynProperty
{
618
	ResourceName resourceName,
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime optional,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	ListOfNCNames announcedAttribute optional,
	XSD.NonNegativeInteger stateTag,
	XSD.ID creator optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	XSD.String currentValue,
	XSD.String requestedValue optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			Subscription subscription
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynPropertyAnnc
{
658
	ResourceName resourceName,
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime optional,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	XSD.NonNegativeInteger stateTag optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			SemanticDescriptorAnnc semanticDescriptorAnnc,
			Subscription subscription
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynSvcObject
{
695
	ResourceName resourceName,
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime optional,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	ListOfNCNames announcedAttribute optional,
	XSD.NonNegativeInteger stateTag,
	XSD.ID creator optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	XSD.String objectPath,
	XSD.Boolean enable,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			Subscription subscription,
			AllJoynInterface allJoynInterface
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  //variant (enable) "text 'true' as '1'";
  //variant (enable) "text 'false' as '0'";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AllJoynSvcObjectAnnc
{
738
	ResourceName resourceName,
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime optional,
	Timestamp lastModifiedTime optional,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime optional,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	XSD.NonNegativeInteger stateTag optional,
	XSD.AnyURI containerDefinition,
	XSD.AnyURI ontologyRef optional,
	XSD.String objectPath,
	XSD.Boolean enable optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record of union {
			SemanticDescriptor semanticDescriptor,
			SemanticDescriptorAnnc semanticDescriptorAnnc,
			Subscription subscription,
			AllJoynInterface allJoynInterface,
			AllJoynInterfaceAnnc allJoynInterfaceAnnc
		} choice_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  //variant (enable) "text 'true' as '1'";
  //variant (enable) "text 'false' as '0'";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.choice_list) "untagged";
  variant (choice.choice_list[-]) "untagged";
};


type record AreaNwkDeviceInfo
{
781
	ResourceName resourceName,
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	record length(1 .. infinity) of XSD.NCName announcedAttribute,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.String devID,
	XSD.String devType,
	XSD.AnyURI areaNwkId,
	XSD.NonNegativeInteger sleepInterval optional,
	XSD.NonNegativeInteger sleepDuration optional,
	XSD.String devStatus optional,
	ListOfURIs listOfNeighbors,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (announcedAttribute) "list";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};


type record AreaNwkDeviceInfoAnnc
{
824
	ResourceName resourceName,
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.String devID optional,
	XSD.String devType optional,
	XSD.AnyURI areaNwkId optional,
	XSD.NonNegativeInteger sleepInterval optional,
	XSD.NonNegativeInteger sleepDuration optional,
	XSD.String devStatus optional,
	ListOfURIs listOfNeighbors optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};


type record AreaNwkInfo
{
865
	ResourceName resourceName,
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	record length(1 .. infinity) of XSD.NCName announcedAttribute,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.String areaNwkType,
	ListOfURIs listOfDevices,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (announcedAttribute) "list";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};


type record AreaNwkInfoAnnc
{
903
	ResourceName resourceName,
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.String areaNwkType optional,
	ListOfURIs listOfDevices optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};


type record Battery
{
939
	ResourceName resourceName,
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs optional,
	Timestamp expirationTime,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	ListOfURIs announceTo optional,
	record length(1 .. infinity) of XSD.NCName announcedAttribute,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.UnsignedInt batteryLevel,
	BatteryStatus batteryStatus,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
  variant "element";
  variant (resourceName) "attribute";
  variant (announcedAttribute) "list";
  variant (choice) "untagged";
  variant (choice.childResource_list) "untagged";
  variant (choice.childResource_list[-]) "name as 'childResource'";
  variant (choice.subscription_list) "untagged";
  variant (choice.subscription_list[-]) "name as 'subscription'";
};


type record BatteryAnnc
{
977
	ResourceName resourceName,
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
	ResourceType resourceType,
	XSD.ID resourceID,
	NhURI parentID,
	Timestamp creationTime,
	Timestamp lastModifiedTime,
	Labels labels optional,
	AcpType accessControlPolicyIDs,
	Timestamp expirationTime,
	XSD.AnyURI link,
	ListOfURIs dynamicAuthorizationConsultationIDs optional,
	MgmtDefinition mgmtDefinition,
	ListOfURIs objectIDs optional,
	ListOfURIs objectPaths optional,
	XSD.String description optional,
	XSD.UnsignedInt batteryLevel optional,
	BatteryStatus batteryStatus optional,
	union {
		record length(1 .. infinity) of ChildResourceRef childResource_list,
		record length(1 .. infinity) of Subscription subscription_list
	} choice optional
}
with {
  variant "name as uncapitalized";
For faster browsing, not all history is shown. View entire blame