CDT-enumerationTypes-v0_8_0.xsd 32.2 KB
Newer Older
PeterNiblett's avatar
PeterNiblett committed
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
<?xml version="1.0" ?>
<!-- 
Copyright Notification

The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices 
contained in the original materials on any copies of the materials and that you comply strictly with these terms. 
This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of 
any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. 
© 2014, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TTA, TTC). All rights reserved.


Notice of Disclaimer & Limitation of Liability 

The information provided in this document is directed solely to professionals who have the appropriate degree of experience to understand 
and interpret its contents in accordance with generally accepted engineering or other professional standards and applicable regulations. 
No recommendation as to products or vendors is made or should be implied. 

NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, 
GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY 
PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. 
NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, WITH RESPECT TO 
ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. 
oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER.

-->

<xs:schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m2m="http://www.onem2m.org/xml/protocols"
	targetNamespace="http://www.onem2m.org/xml/protocols" elementFormDefault="unqualified">

	<xs:simpleType name="resourceType">
		<xs:annotation>
			<xs:documentation></xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- accessControlPolicy -->
			<xs:enumeration value="1" />
			<!-- AE -->
			<xs:enumeration value="2" />
			<!-- container -->
			<xs:enumeration value="3" />
			<!-- contentInstance -->
			<xs:enumeration value="4" />
			<!-- CSEBase -->
			<xs:enumeration value="5" />
			<!-- delivery -->
			<xs:enumeration value="6" />
			<!-- eventConfig -->
			<xs:enumeration value="7" />
			<!-- execInstance -->
			<xs:enumeration value="8" />
			<!-- group -->
			<xs:enumeration value="9" />
			<!-- locationPolicy -->
			<xs:enumeration value="10" />
			<!-- m2mServiceSubscriptionProfile -->
			<xs:enumeration value="11" />
			<!-- mgmtCmd -->
			<xs:enumeration value="12" />
			<!-- mgmtObj -->
			<xs:enumeration value="13" />
			<!-- node -->
			<xs:enumeration value="14" />
			<!-- pollingChannel -->
			<xs:enumeration value="15" />
			<!-- remoteCSE -->
			<xs:enumeration value="16" />
			<!-- request -->
			<xs:enumeration value="17" />
			<!-- schedule -->
			<xs:enumeration value="18" />
Peter Niblett's avatar
Peter Niblett committed
71 72
			<!-- serviceSubscribedAppRule -->
            <xs:enumeration value="19" />
Peter Niblett's avatar
Peter Niblett committed
73
            <!-- serviceSubscribedNode -->
PeterNiblett's avatar
PeterNiblett committed
74
			<xs:enumeration value="20" />
Peter Niblett's avatar
Peter Niblett committed
75
			<!-- statsCollect -->
PeterNiblett's avatar
PeterNiblett committed
76
			<xs:enumeration value="21" />
Peter Niblett's avatar
Peter Niblett committed
77
			<!-- statsConfig -->
PeterNiblett's avatar
PeterNiblett committed
78
			<xs:enumeration value="22" />
Peter Niblett's avatar
Peter Niblett committed
79 80
			<!-- subscription -->
			<xs:enumeration value="23" />
PeterNiblett's avatar
PeterNiblett committed
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
			<!-- accessControlPolicyAnnc -->
			<xs:enumeration value="10001" />
			<!-- AEAnnc -->
			<xs:enumeration value="10002" />
			<!-- containerAnnc -->
			<xs:enumeration value="10003" />
			<!-- contentInstanceAnnc -->
			<xs:enumeration value="10004" />
			<!-- groupAnnc -->
			<xs:enumeration value="10009" />
			<!-- locationPolicyAnnc -->
			<xs:enumeration value="10010" />
			<!-- mgmtObjAnnc -->
			<xs:enumeration value="10013" />
			<!-- nodeAnnc -->
			<xs:enumeration value="10014" />
			<!-- remoteCSEAnnc -->
			<xs:enumeration value="10016" />
			<!-- scheduleAnnc -->
			<xs:enumeration value="10018" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="cseTypeID">
		<xs:annotation>
			<xs:documentation>Used for cseType attribute of &lt;CSEBase&gt; resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- IN-CSE -->
			<xs:enumeration value="1" />
			<!-- MN-CSE -->
			<xs:enumeration value="2" />
			<!-- ASN-CSE -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="locationSource">
		<xs:annotation>
			<xs:documentation>Used for locationSource attribute of &lt;locationPolicy&gt; resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- Network-based -->
			<xs:enumeration value="1" />
			<!-- Device-based -->
			<xs:enumeration value="2" />
			<!-- Sharing-based -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

Peter Niblett's avatar
Peter Niblett committed
132
	<xs:simpleType name="stdEventCats">
PeterNiblett's avatar
PeterNiblett committed
133 134 135 136 137 138 139
		<xs:annotation>
			<xs:documentation>Used for ec parameter in request and eventCat attribute of &lt;delivery&gt; resource and cmdh
				policy resource types.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- Default -->
			<xs:enumeration value="1" />
Peter Niblett's avatar
Peter Niblett committed
140
			<!-- Immediate -->
PeterNiblett's avatar
PeterNiblett committed
141
			<xs:enumeration value="2" />
Peter Niblett's avatar
Peter Niblett committed
142
			<!-- BestEffort -->
PeterNiblett's avatar
PeterNiblett committed
143 144 145 146 147 148 149 150
			<xs:enumeration value="3" />
			<!-- Latest -->
			<xs:enumeration value="4" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="operation">
		<xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
151
			<xs:documentation>Used for Operation parameter in request and operation attribute in &lt;request&gt; resource as well as resource as well as operationMonitor
PeterNiblett's avatar
PeterNiblett committed
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
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- Create -->
			<xs:enumeration value="1" />
			<!-- Retrieve -->
			<xs:enumeration value="2" />
			<!-- Update -->
			<xs:enumeration value="3" />
			<!-- Delete -->
			<xs:enumeration value="4" />
			<!-- Notify -->
			<xs:enumeration value="5" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="responseType">
		<xs:annotation>
			<xs:documentation>Used for rt parameter in request and operation attribute in &lt;request&gt; resource
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- nonBlockingRequestSynch -->
			<xs:enumeration value="1" />
			<!-- nonBlockingRequestAsynch -->
			<xs:enumeration value="2" />
			<!-- blockingRequest -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="resultContent">
		<xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
185
			<xs:documentation>Used for Result Content parameter in request.</xs:documentation>
PeterNiblett's avatar
PeterNiblett committed
186 187 188 189 190 191
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- Nothing -->
			<xs:enumeration value="0" />
			<!-- Attributes -->
			<xs:enumeration value="1" />
Peter Niblett's avatar
Peter Niblett committed
192 193 194
			<!-- Hierarchical Address -->
            <xs:enumeration value="2" />
            <!-- Hierarchical Address + Attributes -->
Peter Niblett's avatar
Peter Niblett committed
195
            <xs:enumeration value="3" />
Peter Niblett's avatar
Peter Niblett committed
196
			<!-- Attributes + Child Resources -->
PeterNiblett's avatar
PeterNiblett committed
197
			<xs:enumeration value="4" />
Peter Niblett's avatar
Peter Niblett committed
198 199 200 201
			<!-- Attributes + Child Resource References -->
            <xs:enumeration value="5" />
			<!-- Child Resource References -->
			<xs:enumeration value="6" />
Peter Niblett's avatar
Peter Niblett committed
202
			<!-- Original Resource -->
Peter Niblett's avatar
Peter Niblett committed
203
			<xs:enumeration value="7" />
PeterNiblett's avatar
PeterNiblett committed
204 205 206 207 208
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="discResType">
		<xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
209
			<xs:documentation>Used in &lt;request&gt; </xs:documentation>
PeterNiblett's avatar
PeterNiblett committed
210 211 212 213 214 215 216 217 218 219 220
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- hierarchical -->
			<xs:enumeration value="1" />
			<!-- Non-hierarchical -->
			<xs:enumeration value="2" />
			<!-- cseID+resourceID -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

Wolfgang Granzow's avatar
Wolfgang Granzow committed
221
	<!-- TODO: alignment of TS-0004 still needed: m2m:responseStatusCode should replace any remaining occurences of m2m:responseStatus  -->
Peter Niblett's avatar
Peter Niblett committed
222
	<xs:simpleType name="responseStatusCode">
PeterNiblett's avatar
PeterNiblett committed
223 224 225 226
		<xs:annotation>
			<xs:documentation></xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
Peter Niblett's avatar
Peter Niblett committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
		    <!-- ACCEPTED     -->
			<xs:enumeration value="1000" />
			<!-- OK           -->
            <xs:enumeration value="2000" />
            <!-- CREATED      -->
            <xs:enumeration value="2001" />         
            <!-- DELETED      -->
            <xs:enumeration value="2002" />
            <!-- CHANGED      -->
            <xs:enumeration value="2004" />
            <!-- BAD_REQUEST  -->
            <xs:enumeration value="4000" />            
            <!-- NOT_FOUND    -->
            <xs:enumeration value="4004" />            
            <!-- OPERATION_NOT_ALLOWED  -->
            <xs:enumeration value="4005" />            
            <!-- REQUEST_TIMEOUT  -->
            <xs:enumeration value="4008" />            
Wolfgang Granzow's avatar
Wolfgang Granzow committed
245
            <!-- SUBSCRIPTION_CREATOR_HAS_NO_PRIVILEGE -->
Peter Niblett's avatar
Peter Niblett committed
246 247 248 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 296 297 298 299
            <xs:enumeration value="4101" />            
            <!-- CONTENTS_UNACCEPTABLE  -->
            <xs:enumeration value="4102" />              
            <!-- ACCESS_DENIED    -->
            <xs:enumeration value="4103" />              
            <!-- GROUP_REQUEST_IDENTIFIER_EXISTS  -->
            <xs:enumeration value="4104" />              
            <!-- CONFLICT                  -->
            <xs:enumeration value="4105" />              
            <!-- INTERNAL_SERVER_ERROR     -->
            <xs:enumeration value="5000" />              
            <!-- NOT_IMPLEMENTED           -->
            <xs:enumeration value="5001" />
            <!-- TARGET_NOT_REACHABLE      -->
            <xs:enumeration value="5103" />             
            <!-- NO_PRIVILEGE              -->
            <xs:enumeration value="5105" />            
            <!-- ALREADY_EXISTS            -->
            <xs:enumeration value="5106" />            
            <!-- TARGET_NOT_SUBSCRIBABLE   -->
            <xs:enumeration value="5203" />            
            <!-- SUBSCRIPTION_VERIFICATION_INITIATION_FAILED   -->
            <xs:enumeration value="5204" />            
            <!-- SUBSCRIPTION_HOST_HAS_NO_PRIVILEGE     -->
            <xs:enumeration value="5205" />            
            <!-- NON_BLOCKING_REQUEST_NOT_SUPPORTED     -->
            <xs:enumeration value="5206" />            
            <!-- EXTERNAL_OBJECT_NOT_REACHABLE          -->
            <xs:enumeration value="6003" />              
            <!-- EXTERNAL_OBJECT_NOT_FOUND              -->
            <xs:enumeration value="6005" />  
            <!-- TODO: Typo in the table in TS-0004     -->           
            <!-- MAX_NUMBER_OF_MEMBER_EXCEEDED          -->
            <xs:enumeration value="6010" />              
            <!-- MEMBER_TYPE_INCONSISTENT               -->
            <xs:enumeration value="6011" />               
            <!-- MGMT_SESSION_CANNOT_BE_ESTABLISHED     -->
            <xs:enumeration value="6020" />               
            <!-- MGMT_SESSION_ESTABLISHMENT _TIMEOUT    -->
            <xs:enumeration value="6021" />               
            <!-- INVALID_CMDTYPE                        -->
            <xs:enumeration value="6022" />               
            <!-- INVALID_ARGUMENTS                      -->
            <xs:enumeration value="6023" />               
            <!-- INSUFFICIENT_ARGUMENTS                 -->
            <xs:enumeration value="6024" />               
            <!-- MGMT_ CONVERSION_ERROR                 -->
            <xs:enumeration value="6025" />               
            <!-- MGMT_ CANCELATION_FAILURE              -->
            <xs:enumeration value="6026" />               
            <!-- ALREADY_COMPLETE                       -->
            <xs:enumeration value="6028" />               
            <!-- MGMT_COMMAND_NOT_CANCELLABLE           -->
            <xs:enumeration value="6029" />                
PeterNiblett's avatar
PeterNiblett committed
300 301 302 303 304
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="requestStatus">
		<xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
305
			<xs:documentation>Used for request Status in the &lt;request&gt; resource</xs:documentation>
PeterNiblett's avatar
PeterNiblett committed
306
		</xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
307 308 309 310 311 312 313 314 315 316
        <xs:restriction base="xs:integer">
            <!-- COMPLETED -->
            <xs:enumeration value="1" />
            <!-- FAILED -->
            <xs:enumeration value="2" />
            <!-- PENDING -->
            <xs:enumeration value="3" />
            <!-- FORWARDED -->
            <xs:enumeration value="4" />
        </xs:restriction>
PeterNiblett's avatar
PeterNiblett committed
317 318 319 320
	</xs:simpleType>

	<xs:simpleType name="memberType">
		<xs:annotation>
PeterNiblett's avatar
PeterNiblett committed
321
			<xs:documentation>Used for memberType attribute in &lt;group&gt; resource.</xs:documentation>
PeterNiblett's avatar
PeterNiblett committed
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- accessControlPolicy -->
			<xs:enumeration value="1" />
			<!-- AE -->
			<xs:enumeration value="2" />
			<!-- container -->
			<xs:enumeration value="3" />
			<!-- contentInstance -->
			<xs:enumeration value="4" />
			<!-- CSEBase -->
			<xs:enumeration value="5" />
			<!-- delivery -->
			<xs:enumeration value="6" />
			<!-- eventConfig -->
			<xs:enumeration value="7" />
			<!-- execInstance -->
			<xs:enumeration value="8" />
Peter Niblett's avatar
Peter Niblett committed
340
			<!-- group -->
PeterNiblett's avatar
PeterNiblett committed
341
			<xs:enumeration value="9" />
Peter Niblett's avatar
Peter Niblett committed
342
			<!-- locationPolicy --> 
PeterNiblett's avatar
PeterNiblett committed
343 344
			<xs:enumeration value="10" />
			<!-- m2mServiceSubscription -->
Peter Niblett's avatar
Peter Niblett committed
345
			<xs:enumeration value="11" />
PeterNiblett's avatar
PeterNiblett committed
346
			<!-- mgmtCmd -->
Peter Niblett's avatar
Peter Niblett committed
347
			<xs:enumeration value="12" />
PeterNiblett's avatar
PeterNiblett committed
348
			<!-- mgmtObj -->
Peter Niblett's avatar
Peter Niblett committed
349 350
			<xs:enumeration value="13" />
			<!-- node -->
PeterNiblett's avatar
PeterNiblett committed
351
			<xs:enumeration value="14" />
Peter Niblett's avatar
Peter Niblett committed
352
			<!-- pollingChannel -->
PeterNiblett's avatar
PeterNiblett committed
353
			<xs:enumeration value="15" />
Peter Niblett's avatar
Peter Niblett committed
354
			<!-- remoteCSE -->
PeterNiblett's avatar
PeterNiblett committed
355
			<xs:enumeration value="16" />
Peter Niblett's avatar
Peter Niblett committed
356
			<!-- request -->
PeterNiblett's avatar
PeterNiblett committed
357
			<xs:enumeration value="17" />
Peter Niblett's avatar
Peter Niblett committed
358 359 360 361 362 363 364 365 366 367 368 369 370
			<!-- schedule -->
            <xs:enumeration value="18" />
			<!-- serviceSubscribedAppRule -->
            <xs:enumeration value="19" />
			<!-- serviceSubscribedNode -->
            <xs:enumeration value="20" />
            <!-- statsCollect -->
            <xs:enumeration value="21" />
            <!-- statsConfig -->
            <xs:enumeration value="22" />
            <!-- subscription -->
            <xs:enumeration value="23" />
		
PeterNiblett's avatar
PeterNiblett committed
371 372 373 374 375 376 377
			<!-- Mixed -->
			<xs:enumeration value="24" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="consistencyStrategy">
		<xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
378
			<xs:documentation>Used for consistencyStrategy attribute in &lt;group&gt; resource.</xs:documentation>
PeterNiblett's avatar
PeterNiblett committed
379 380
		</xs:annotation>
		<xs:restriction base="xs:integer">
PeterNiblett's avatar
PeterNiblett committed
381
			<!-- ABANDON_MEMBER -->
PeterNiblett's avatar
PeterNiblett committed
382
			<xs:enumeration value="1" />
PeterNiblett's avatar
PeterNiblett committed
383
			<!-- ABANDON_GROUP -->
PeterNiblett's avatar
PeterNiblett committed
384
			<xs:enumeration value="2" />
Peter Niblett's avatar
Peter Niblett committed
385
			<!-- SET_MIXED -->
PeterNiblett's avatar
PeterNiblett committed
386 387 388 389 390 391
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="cmdType">
		<xs:annotation>
Peter Niblett's avatar
Peter Niblett committed
392
			<xs:documentation>Used for cmdType attribute in &lt;mgmtCmd&gt; resource.</xs:documentation>
PeterNiblett's avatar
PeterNiblett committed
393 394 395 396 397 398 399 400 401 402 403 404 405 406
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- RESET -->
			<xs:enumeration value="1" />
			<!-- REBOOT -->
			<xs:enumeration value="2" />
			<!-- UPLOAD -->
			<xs:enumeration value="3" />
			<!-- DOWNLOAD -->
			<xs:enumeration value="4" />
			<!-- SOFTWAREINSTALL -->
			<xs:enumeration value="5" />
			<!-- SOFTWAREUNINSTALL -->
			<xs:enumeration value="6" />
Peter Niblett's avatar
Peter Niblett committed
407 408
			<!-- SOFTWAREUPDATE -->
            <xs:enumeration value="7" />
PeterNiblett's avatar
PeterNiblett committed
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="execModeType">
		<xs:annotation>
			<xs:documentation>Used for execModeType attribute in &lt;mgmtCmd&gt; and &lt;execInstance&gt; resource.
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- IMMEDIATEONCE -->
			<xs:enumeration value="1" />
			<!-- IMMEDIATEREPEAT -->
			<xs:enumeration value="2" />
			<!-- RANDOMONCE -->
			<xs:enumeration value="3" />
			<!-- RANDOMREPEAT -->
			<xs:enumeration value="4" />
		</xs:restriction>
	</xs:simpleType>

Peter Niblett's avatar
Peter Niblett committed
429
	<xs:simpleType name="execStatusType">
PeterNiblett's avatar
PeterNiblett committed
430 431 432 433 434 435
		<xs:annotation>
			<xs:documentation>Used for execStatusType attribute in &lt;execInstance&gt; resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- INITIATED -->
			<xs:enumeration value="1" />
Peter Niblett's avatar
Peter Niblett committed
436
			<!-- PENDING  -->
PeterNiblett's avatar
PeterNiblett committed
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 462 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 503 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 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
			<xs:enumeration value="2" />
			<!-- FINISHED -->
			<xs:enumeration value="3" />
			<!-- CANCELLING -->
			<xs:enumeration value="4" />
			<!-- CANCELLED -->
			<xs:enumeration value="5" />
			<!-- STATUS_ NON_CANCELLABLE -->
			<xs:enumeration value="6" />
		</xs:restriction>
	</xs:simpleType>


	<xs:simpleType name="execResultType">
		<xs:annotation>
			<xs:documentation></xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- STATUS_REQUEST_UNSUPPORTED -->
			<xs:enumeration value="1" />
			<!-- STATUS_REQUEST DENIED -->
			<xs:enumeration value="2" />
			<!-- STATUS_CANCELLATION_DENIED -->
			<xs:enumeration value="3" />
			<!-- STATUS_INTERNAL_ERROR -->
			<xs:enumeration value="4" />
			<!-- STATUS_INVALID_ARGUMENTS -->
			<xs:enumeration value="5" />
			<!-- STATUS_RESOURCES_EXCEEDED -->
			<xs:enumeration value="6" />
			<!-- STATUS_FILE_TRANSFER_FAILED -->
			<xs:enumeration value="7" />
			<!-- STATUS_FILE_TRANSFER_SERVER_AUTHENTICATION_FAILURE -->
			<xs:enumeration value="8" />
			<!-- STATUS_UNSUPPORTED_PROTOCOL -->
			<xs:enumeration value="9" />
			<!-- STATUS_UPLOAD_FAILED -->
			<xs:enumeration value="10" />
			<!-- STATUS_FILE_TRANSFER_FAILED_MULTICAST_GROUP_UNABLE_JOIN -->
			<xs:enumeration value="11" />
			<!-- STATUS_FILE_TRANSFER_FAILED_SERVER_CONTACT_FAILED -->
			<xs:enumeration value="12" />
			<!-- STATUS_FILE_TRANSFER_FAILED_FILE_ACCESS_FAILED -->
			<xs:enumeration value="13" />
			<!-- STATUS_FILE_TRANSFER_FAILED_DOWNLOAD_INCOMPLETE -->
			<xs:enumeration value="14" />
			<!-- STATUS_FILE_TRANSFER_FAILED_FILE_CORRUPTED -->
			<xs:enumeration value="15" />
			<!-- STATUS_FILE_TRANSFER_FILE_AUTHENTICATION_FAILURE -->
			<xs:enumeration value="16" />
			<!-- STATUS_FILE_TRANSFER_FAILED -->
			<xs:enumeration value="17" />
			<!-- STATUS_FILE_TRANSFER_SERVER_AUTHENTICATION_FAILURE -->
			<xs:enumeration value="18" />
			<!-- STATUS_FILE_TRANSFER_WINDOW_EXCEEDED -->
			<xs:enumeration value="19" />
			<!-- STATUS_INVALID_UUID_FORMAT -->
			<xs:enumeration value="20" />
			<!-- STATUS_UNKNOWN_EXECUTION_ENVIRONMENT -->
			<xs:enumeration value="21" />
			<!-- STATUS_DISABLED_EXECUTION_ENVIRONMENT -->
			<xs:enumeration value="22" />
			<!-- STATUS_EXECUTION_ENVIRONMENT_MISMATCH -->
			<xs:enumeration value="23" />
			<!-- STATUS_DUPLICATE_DEPLOYMENT_UNIT -->
			<xs:enumeration value="24" />
			<!-- STATUS_SYSTEM_RESOURCES_EXCEEDED -->
			<xs:enumeration value="25" />
			<!-- STATUS_UNKNOWN_DEPLOYMENT_UNIT -->
			<xs:enumeration value="26" />
			<!-- STATUS_INVALID_DEPLOYMENT_UNIT_STATE -->
			<xs:enumeration value="27" />
			<!-- STATUS_INVALID_DEPLOYMENT_UNIT_UPDATE_DOWNGRADE_DISALLOWED -->
			<xs:enumeration value="28" />
			<!-- STATUS_INVALID_DEPLOYMENT_UNIT_UPDATE_UPGRADE_DISALLOWED -->
			<xs:enumeration value="29" />
			<!-- STATUS_INVALID_DEPLOYMENT_UNIT_UPDATE_VERSION_EXISTS -->
			<xs:enumeration value="30" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="pendingNotification">
		<xs:annotation>
			<xs:documentation>This is used for pendingNotification attribute in &lt;subscription&gt; resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- sendLatest -->
			<xs:enumeration value="1" />
			<!-- sendAllPending -->
			<xs:enumeration value="2" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="notificationContentType">
		<xs:annotation>
			<xs:documentation></xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- modifiedAttributes -->
			<xs:enumeration value="1" />
			<!-- wholeResource -->
			<xs:enumeration value="2" />
			<!-- referenceOnly -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="resourceStatus">
		<xs:annotation>
			<xs:documentation></xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- childCreated -->
			<xs:enumeration value="1" />
			<!-- childDeleted -->
			<xs:enumeration value="2" />
			<!-- updated -->
			<xs:enumeration value="3" />
			<!-- deleted -->
			<xs:enumeration value="4" />
		</xs:restriction>
	</xs:simpleType>

Peter Niblett's avatar
Peter Niblett committed
560
	
PeterNiblett's avatar
PeterNiblett committed
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 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 618 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 658 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 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711
	<xs:simpleType name="status">
		<xs:annotation>
			<xs:documentation>This is used for [software], [firmware] resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- Successful -->
			<xs:enumeration value="1" />
			<!-- Failure -->
			<xs:enumeration value="2" />
			<!-- In-Process -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="batteryStatus">
		<xs:annotation>
			<xs:documentation>This is used for [software], [firmware] resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- NORMAL -->
			<xs:enumeration value="1" />
			<!-- CHARGING -->
			<xs:enumeration value="2" />
			<!-- CHARGING-COMPLETE -->
			<xs:enumeration value="3" />
			<!-- DAMAGED -->
			<xs:enumeration value="4" />
			<!-- LOW-BATTERY -->
			<xs:enumeration value="5" />
			<!-- NOT-INSTALLED -->
			<xs:enumeration value="6" />
			<!-- UNKNOWN -->
			<xs:enumeration value="7" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="mgmtDefinition">
		<xs:annotation>
			<xs:documentation>This is used for mgmtObj resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- unspecified -->
			<xs:enumeration value="0" />
			<!-- firmware -->
			<xs:enumeration value="1001" />
			<!-- software -->
			<xs:enumeration value="1002" />
			<!-- memory -->
			<xs:enumeration value="1003" />
			<!-- areaNwkInfo -->
			<xs:enumeration value="1004" />
			<!-- areaNwkDeviceInfo -->
			<xs:enumeration value="1005" />
			<!-- battery -->
			<xs:enumeration value="1006" />
			<!-- deviceInfo -->
			<xs:enumeration value="1007" />
			<!-- deviceCapability -->
			<xs:enumeration value="1008" />
			<!-- reboot -->
			<xs:enumeration value="1009" />
			<!-- eventLog -->
			<xs:enumeration value="1010" />
			<!-- cmdhPolicy -->
			<xs:enumeration value="1011" />
			<!-- activeCmdhPolicy -->
			<xs:enumeration value="1012" />
			<!-- cmdhDefaults -->
			<xs:enumeration value="1013" />
			<!-- cmdhDefEcValue -->
			<xs:enumeration value="1014" />
			<!-- cmdhEcDefParamValues -->
			<xs:enumeration value="1015" />
			<!-- cmdhLimits -->
			<xs:enumeration value="1016" />
			<!-- cmdhNetworkAccessRules -->
			<xs:enumeration value="1017" />
			<!-- cmdhNwAccessRule -->
			<xs:enumeration value="1018" />
			<!-- cmdhBuffer -->
			<xs:enumeration value="1019" />


		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="logTypeId">
		<xs:annotation>
			<xs:documentation>Used for the logTypeId attribute of [eventLog] Management Resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- system -->
			<xs:enumeration value="1" />
			<!-- security -->
			<xs:enumeration value="2" />
			<!-- event -->
			<xs:enumeration value="3" />
			<!-- trace -->
			<xs:enumeration value="4" />
			<!-- panic -->
			<xs:enumeration value="5" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="logStatus">
		<xs:annotation>
			<xs:documentation>Used for the logStatus attribute of [eventLog] Management Resource.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<!-- Started -->
			<xs:enumeration value="1" />
			<!-- Stopped -->
			<xs:enumeration value="2" />
			<!-- Unknown -->
			<xs:enumeration value="3" />
			<!-- NotPresent -->
			<xs:enumeration value="4" />
			<!-- Error -->
			<xs:enumeration value="5" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="eventType">
		<xs:restriction base="xs:integer">
			<!-- Data Operation -->
			<xs:enumeration value="1" />
			<!-- Storage based -->
			<xs:enumeration value="2" />
			<!-- Timer Based -->
			<xs:enumeration value="3" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="statsRuleStatusType">
		<xs:restriction base="xs:integer">
			<!-- Active -->
			<xs:enumeration value="1" />
			<!-- Inactive -->
			<xs:enumeration value="2" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="statModelType">
		<xs:restriction base="xs:integer">
			<!-- Event Based -->
			<xs:enumeration value="1" />
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="encodingType">
		<xs:restriction base="xs:integer">
Peter Niblett's avatar
Peter Niblett committed
712
			<!-- Plain -->
PeterNiblett's avatar
PeterNiblett committed
713 714
			<xs:enumeration value="0" />
			<!-- base64String -->
Peter Niblett's avatar
Peter Niblett committed
715 716
			<xs:enumeration value="1" />
			<!-- base64Binary -->
PeterNiblett's avatar
PeterNiblett committed
717 718 719
			<xs:enumeration value="2" />
		</xs:restriction>
	</xs:simpleType>
Peter Niblett's avatar
Peter Niblett committed
720
	
Peter Niblett's avatar
Peter Niblett committed
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 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 781 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 824 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
	<!-- access control operations -->
    <xs:simpleType name="accessControlOperations">
        <xs:annotation>
            <xs:documentation>Shall be considered for access control policy check by the CSE</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:integer">
            <!-- Create -->
            <xs:enumeration value="1"/>
            <!-- Retrieve -->
            <xs:enumeration value="2"/>
            <!-- Create + Retrieve -->
            <xs:enumeration value="3"/>
            <!-- Update -->
            <xs:enumeration value="4"/>
            <!-- Create + Update -->
            <xs:enumeration value="5"/>
            <!-- Retrieve + Update -->
            <xs:enumeration value="6"/>
            <!-- Create + Retrieve + Update -->
            <xs:enumeration value="7"/>
            <!-- Delete -->
            <xs:enumeration value="8"/>
            <!-- Create + Delete -->
            <xs:enumeration value="9"/>
            <!-- Retrieve + Delete -->
            <xs:enumeration value="10"/>
            <!-- Create + Retrieve + Delete -->
            <xs:enumeration value="11"/>
            <!-- Update + Delete -->
            <xs:enumeration value="12"/>
            <!-- Create + Update + Delete -->
            <xs:enumeration value="13"/>
            <!-- Retrieve + Update + Delete -->
            <xs:enumeration value="14"/>
            <!-- Create + Retrieve + Update + Delete -->
            <xs:enumeration value="15"/>
            <!-- Notify -->
            <xs:enumeration value="16"/>
            <!-- Create + Notify -->
            <xs:enumeration value="17"/>
            <!-- Retrieve + Notify -->
            <xs:enumeration value="18"/>
            <!-- Create + Retrieve + Notify -->
            <xs:enumeration value="19"/>
            <!-- Update + Notify -->
            <xs:enumeration value="20"/>
            <!-- Create + Update + Notify -->
            <xs:enumeration value="21"/>
            <!-- Retrieve + Update + Notify -->
            <xs:enumeration value="22"/>
            <!-- Create + Retrieve + Update -->
            <xs:enumeration value="23"/>
            <!-- Delete + Notify -->
            <xs:enumeration value="24"/>
            <!-- Create + Delete + Notify -->
            <xs:enumeration value="25"/>
            <!-- Retrieve + Delete + Notify -->
            <xs:enumeration value="26"/>
            <!-- Create + Retrieve + Delete + Notify -->
            <xs:enumeration value="27"/>
            <!-- Update + Delete + Notify -->
            <xs:enumeration value="28"/>
            <!-- Create + Update + Delete + Notify -->
            <xs:enumeration value="29"/>
            <!-- Retrieve + Update + Delete + Notify -->
            <xs:enumeration value="30"/>
            <!-- Create + Retrieve + Update + Delete + Notify -->
            <xs:enumeration value="31"/>
            <!-- Discover -->
            <xs:enumeration value="32"/>
            <!-- Create + Discover -->
            <xs:enumeration value="33"/>
            <!-- Retrieve + Discover -->
            <xs:enumeration value="34"/>
            <!-- Create + Retrieve + Discover -->
            <xs:enumeration value="35"/>
            <!-- Update + Discover -->
            <xs:enumeration value="36"/>
            <!-- Create + Update + Discover -->
            <xs:enumeration value="37"/>
            <!-- Retrieve + Update + Discover -->
            <xs:enumeration value="38"/>
            <!-- Create + Retrieve + Update + Discover -->
            <xs:enumeration value="39"/>
            <!-- Delete + Discover -->
            <xs:enumeration value="40"/>
            <!-- Create + Delete + Discover -->
            <xs:enumeration value="41"/>
            <!-- Retrieve + Delete + Discover -->
            <xs:enumeration value="42"/>
            <!-- Create + Retrieve + Delete + Discover -->
            <xs:enumeration value="43"/>
            <!-- Update + Delete + Discover -->
            <xs:enumeration value="44"/>
            <!-- Create + Update + Delete + Discover -->
            <xs:enumeration value="45"/>
            <!-- Retrieve + Update + Delete + Discover -->
            <xs:enumeration value="46"/>
            <!-- Create + Retrieve + Update + Delete + Discover -->
            <xs:enumeration value="47"/>
            <!-- Notify + Discover -->
            <xs:enumeration value="48"/>
            <!-- Create + Notify + Discover -->
            <xs:enumeration value="49"/>
            <!-- Retrieve + Notify + Discover -->
            <xs:enumeration value="50"/>
            <!-- Create + Retrieve + Notify + Discover -->
            <xs:enumeration value="51"/>
            <!-- Update + Notify + Discover -->
            <xs:enumeration value="52"/>
            <!-- Create + Update + Notify + Discover -->
            <xs:enumeration value="53"/>
            <!-- Retrieve + Update + Notify + Discover -->
            <xs:enumeration value="54"/>
            <!-- Create + Retrieve + Update + Discover -->
            <xs:enumeration value="55"/>
            <!-- Delete + Notify + Discover -->
            <xs:enumeration value="56"/>
            <!-- Create + Delete + Notify + Discover -->
            <xs:enumeration value="57"/>
            <!-- Retrieve + Delete + Notify + Discover -->
            <xs:enumeration value="58"/>
            <!-- Create + Retrieve + Delete + Notify + Discover -->
            <xs:enumeration value="59"/>
            <!-- Update + Delete + Notify + Discover -->
            <xs:enumeration value="60"/>
            <!-- Create + Update + Delete + Notify + Discover -->
            <xs:enumeration value="61"/>
            <!-- Retrieve + Update + Delete + Notify + Discover -->
            <xs:enumeration value="62"/>
            <!-- Create + Retrieve + Update + Delete + Notify + Discover -->
            <xs:enumeration value="63"/>
        </xs:restriction>
    </xs:simpleType>
    
Peter Niblett's avatar
Peter Niblett committed
856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881
    <xs:simpleType name="SRole-ID">
        <xs:restriction base="xs:token">
            <!-- Software Management -->
            <xs:enumeration value="01-001" />
            <!-- Device Configuration -->
            <xs:enumeration value="02-001" />
            <!-- Device Diagnostics and Management -->
            <xs:enumeration value="02-002" />
            <!-- Device Firmware Management -->
            <xs:enumeration value="02-003" />
            <!-- Device Topology -->
            <xs:enumeration value="02-004" />
            <!-- Location -->
            <xs:enumeration value="03-001" />
            <!-- Basic Data -->
            <xs:enumeration value="04-001" />
            <!-- Onboarding -->
            <xs:enumeration value="05-001" />
            <!-- Security Administration -->
            <xs:enumeration value="06-001" />
            <!-- Groups Management -->
            <xs:enumeration value="07-001" />
            <!-- Event Collection -->
            <xs:enumeration value="08-001" />
        </xs:restriction>
    </xs:simpleType>
882 883 884 885 886 887 888 889 890 891 892 893
    
    <xs:simpleType name="filterUsage">
        <xs:annotation>
            <xs:documentation>Used in filterCriteria</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:integer">
            <!-- Discovery Criteria -->
            <xs:enumeration value="1" />
            <!-- Event Notification Criteria -->
            <xs:enumeration value="2" />
        </xs:restriction>
    </xs:simpleType>
PeterNiblett's avatar
PeterNiblett committed
894
</xs:schema>
Peter Niblett's avatar
Peter Niblett committed
895