From c4cd0d404d16df908922aec6ccc2778847e5e01a Mon Sep 17 00:00:00 2001 From: reinaortega <miguelangel.reinaortega@etsi.org> Date: Mon, 11 May 2020 15:07:16 +0200 Subject: [PATCH] XSD v3_9_0 baseline --- CDT-enumerationTypes.xsd | 47 ++++++++++++++++++++++++++++----- CDT-locationPolicy.xsd | 7 +++++ CDT-node.xsd | 3 +++ CDT-subscription.xsd | 2 +- CDT-triggerPayload.xsd | 57 ++++++++++++++++++++++++++++++++++++++++ CDT-triggerRequest.xsd | 3 +-- 6 files changed, 109 insertions(+), 10 deletions(-) create mode 100644 CDT-triggerPayload.xsd diff --git a/CDT-enumerationTypes.xsd b/CDT-enumerationTypes.xsd index 8796320..1f4a35d 100644 --- a/CDT-enumerationTypes.xsd +++ b/CDT-enumerationTypes.xsd @@ -794,31 +794,36 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:documentation></xs:documentation> </xs:annotation> <xs:restriction base="xs:integer"> - <!-- all attributes --> + <!-- All attributes --> <xs:enumeration value="1" /> - <!-- modified attributes --> + <!-- Modified attributes --> <xs:enumeration value="2" /> <!-- ResourceID --> <xs:enumeration value="3" /> + <!-- Trigger Payload --> + <xs:enumeration value="4" /> </xs:restriction> </xs:simpleType> + <xs:simpleType name="notificationEventType"> <xs:annotation> <xs:documentation>Used in the notificationEventType element of eventNotificationCriteria attribute of subscription resource and in the Notification data object</xs:documentation> </xs:annotation> <xs:restriction base="xs:integer"> - <!-- Update of Resource --> + <!-- Update_of_Resource --> <xs:enumeration value="1" /> - <!-- Delete of Resource --> + <!-- Delete_of_Resource --> <xs:enumeration value="2" /> - <!-- Create of Direct Child Resource --> + <!-- Create_of_Direct_Child_Resource --> <xs:enumeration value="3" /> - <!-- Delete of Direct Child Resource --> + <!-- Delete_of_Direct_Child_Resource --> <xs:enumeration value="4" /> - <!-- Retrieve of Container Resource With No Child Resource --> + <!-- Retrieve_of_Container_Resource_With_No_Child_Resource --> <xs:enumeration value="5" /> + <!-- Trigger_Received_For_AE_Resource --> + <xs:enumeration value="6" /> </xs:restriction> </xs:simpleType> @@ -1625,5 +1630,33 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR </xs:restriction> </xs:simpleType> + <xs:simpleType name="locationInformationType"> + <xs:annotation> + <xs:documentation>Used in the locationInformationType attribute of the locationPolicy resource</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + <!-- Position fix --> + <xs:enumeration value="1" /> + <!-- Geofence event --> + <xs:enumeration value="2" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="geofenceEventCriteria"> + <xs:annotation> + <xs:documentation>Used in the geofenceEventCriteria attribute of the locationPolicy resource</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + <!-- Entering --> + <xs:enumeration value="1" /> + <!-- Leaving --> + <xs:enumeration value="2" /> + <!-- Inside --> + <xs:enumeration value="3" /> + <!-- Outside --> + <xs:enumeration value="4" /> + </xs:restriction> + </xs:simpleType> + </xs:schema> diff --git a/CDT-locationPolicy.xsd b/CDT-locationPolicy.xsd index 753a0a3..857cda8 100644 --- a/CDT-locationPolicy.xsd +++ b/CDT-locationPolicy.xsd @@ -39,15 +39,19 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:sequence> <!-- Resource Specific Attributes --> <xs:element name="locationSource" type="m2m:locationSource" /> + <xs:element name="locationInformationType" type="m2m:locationInformationType" /> <xs:element name="locationUpdatePeriod" type="m2m:listOfDuration" minOccurs="0" /> <xs:element name="locationTargetID" type="m2m:locationTargetID" minOccurs="0" /> <xs:element name="locationServer" type="xs:anyURI" minOccurs="0" /> <xs:element name="locationContainerID" type="xs:anyURI" /> <xs:element name="locationContainerName" type="xs:string" minOccurs="0" /> <xs:element name="locationStatus" type="xs:string" /> + <xs:element name="geographicalTargetArea" type="xs:anyType" minOccurs="0" /> + <xs:element name="geofenceEventCriteria" type="m2m:geofenceEventCriteria" minOccurs="0" /> <xs:element name="authID" type="m2m:externalID" minOccurs="0" /> <xs:element name="retrieveLastKnownLocation" type="xs:boolean" minOccurs="0" /> <xs:element name="locationUpdateEventCriteria" type="m2m:locationUpdateEventCriteria" minOccurs="0" /> + <!-- Child Resources --> <xs:choice minOccurs="0" maxOccurs="1"> @@ -71,12 +75,15 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:sequence> <!-- Resource Specific Attributes --> <xs:element name="locationSource" type="m2m:locationSource" minOccurs="0" /> + <xs:element name="locationInformationType" type="m2m:locationInformationType" minOccurs="0" /> <xs:element name="locationUpdatePeriod" type="m2m:listOfDuration" minOccurs="0" /> <xs:element name="locationTargetID" type="m2m:locationTargetID" minOccurs="0" /> <xs:element name="locationServer" type="xs:anyURI" minOccurs="0" /> <xs:element name="locationContainerID" type="xs:anyURI" minOccurs="0" /> <xs:element name="locationContainerName" type="xs:string" minOccurs="0" /> <xs:element name="locationStatus" type="xs:string" minOccurs="0" /> + <xs:element name="geographicalTargetArea" type="xs:anyType" minOccurs="0" /> + <xs:element name="geofenceEventCriteria" type="m2m:geofenceEventCriteria" minOccurs="0" /> <xs:element name="authID" type="m2m:externalID" minOccurs="0" /> <xs:element name="retrieveLastKnownLocation" type="xs:boolean" minOccurs="0" /> <xs:element name="locationUpdateEventCriteria" type="m2m:locationUpdateEventCriteria" minOccurs="0" /> diff --git a/CDT-node.xsd b/CDT-node.xsd index 8017e2a..07e0927 100644 --- a/CDT-node.xsd +++ b/CDT-node.xsd @@ -43,6 +43,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:include schemaLocation="CDT-subscription.xsd" /> <xs:include schemaLocation="CDT-semanticDescriptor.xsd" /> <xs:include schemaLocation="CDT-transaction.xsd"/> + <xs:include schemaLocation="CDT-schedule.xsd"/> <xs:element name="node" substitutionGroup="m2m:sg_announceableResource"> <xs:complexType> @@ -78,6 +79,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:subscription" /> <xs:element ref="m2m:semanticDescriptor" /> <xs:element ref="m2m:transaction" /> + <xs:element ref="m2m:schedule" /> </xs:choice> </xs:choice> </xs:sequence> @@ -119,6 +121,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:semanticDescriptor" /> <xs:element ref="m2m:semanticDescriptorAnnc" /> <xs:element ref="m2m:transaction" /> + <xs:element ref="m2m:schedule" /> </xs:choice> </xs:choice> </xs:sequence> diff --git a/CDT-subscription.xsd b/CDT-subscription.xsd index ff4f6e9..ba8651e 100644 --- a/CDT-subscription.xsd +++ b/CDT-subscription.xsd @@ -55,7 +55,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="notificationContentType" type="m2m:notificationContentType" /> <xs:element name="notificationEventCat" type="m2m:eventCat" minOccurs="0" /> <xs:element name="subscriberURI" type="xs:anyURI" minOccurs="0" /> - <xs:element name="associatedCrossResourceSub" type="m2m:resourceList" minOccurs="0" /> + <xs:element name="associatedCrossResourceSub" type="m2m:listOfURIs" minOccurs="0" /> <!-- Child Resources --> <xs:choice minOccurs="0" maxOccurs="1"> diff --git a/CDT-triggerPayload.xsd b/CDT-triggerPayload.xsd new file mode 100644 index 0000000..e7e28e4 --- /dev/null +++ b/CDT-triggerPayload.xsd @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +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. +© 2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, 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" targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + + <xs:element name="triggerPayload"> + <xs:complexType> + <xs:sequence> + <!-- Parameter Trigger Purpose --> + <xs:element name="triggerPurpose" type="m2m:triggerPurpose"/> + <xs:element name="triggerInfoAddress" type="xs:anyURI" minOccurs="0"/> + <xs:element name="triggerInfoPoA" type="m2m:poaList" minOccurs="0"/> + <xs:element name="triggerInfoOperation" type="m2m:operation" minOccurs="0"/> + <xs:element name="targetedResourceType" type="m2m:resourceType" minOccurs="0"/> + <xs:element name="triggerInfoAE-ID" type="m2m:ID" minOccurs="0"/> + <xs:element name="triggerInfoSerializationTypes" minOccurs="0"> + <xs:simpleType> + <xs:restriction> + <xs:simpleType> + <xs:list itemType="m2m:serializationType"/> + </xs:simpleType> + <xs:minLength value="1"/> + </xs:restriction> + </xs:simpleType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + +</xs:schema> + diff --git a/CDT-triggerRequest.xsd b/CDT-triggerRequest.xsd index bb5e349..105912f 100644 --- a/CDT-triggerRequest.xsd +++ b/CDT-triggerRequest.xsd @@ -41,9 +41,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="M2M-Ext-ID" type="m2m:externalID" /> <xs:element name="Trigger-Recipient-ID" type="m2m:triggerRecipientID" /> <xs:element name="triggerPurpose" type="m2m:triggerPurpose" /> - <xs:element name="triggerPayloadSerialization" type="m2m:serializationType" /> <xs:element name="triggerStatus" type="m2m:triggerStatus" /> - <xs:element name="triggerValidityTime" type="m2m:timestamp" minOccurs="0" /> + <xs:element name="triggerValidityTime" type="xs:duration" minOccurs="0" /> <xs:element name="triggerInfoAE-ID" type="m2m:ID" minOccurs="0" /> <xs:element name="triggerInfoAddress" type="xs:anyURI" minOccurs="0" /> <xs:element name="triggerInfoOperation" type="m2m:operation" minOccurs="0" /> -- GitLab