From dd947c5755b61e69879873bf4ce22d69b75a4259 Mon Sep 17 00:00:00 2001
From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
Date: Wed, 18 May 2022 09:30:49 +0200
Subject: [PATCH] SDS-2020-0123R09 - TS-0004-m2m-service_user_ids_params_R4

Signed-off-by: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
---
 CDT-commonTypes.xsd                   | 1 +
 CDT-enumerationTypes.xsd              | 2 ++
 CDT-m2mServiceSubscriptionProfile.xsd | 2 ++
 CDT-requestPrimitive.xsd              | 2 ++
 CDT-responsePrimitive.xsd             | 4 +++-
 5 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/CDT-commonTypes.xsd b/CDT-commonTypes.xsd
index a4e6883..9ccec2d 100644
--- a/CDT-commonTypes.xsd
+++ b/CDT-commonTypes.xsd
@@ -632,6 +632,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 			<xs:element name="releaseVersionIndicator" type="m2m:releaseVersion" minOccurs="1"/>
 			<xs:element name="vendorInformation" type="xs:string" minOccurs="0"/>
 			<xs:element name="primitiveProfileIdentifier" type="xs:anyURI" minOccurs="0"/>
+			<xs:element name="m2mServiceUser" type="m2m:ID" minOccurs="0"/>
 		</xs:sequence>
 	</xs:complexType>
 
diff --git a/CDT-enumerationTypes.xsd b/CDT-enumerationTypes.xsd
index 4ad374e..832d867 100644
--- a/CDT-enumerationTypes.xsd
+++ b/CDT-enumerationTypes.xsd
@@ -455,6 +455,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 			<xs:enumeration value="4136" />    
 			<!-- PRIMITIVE_PROFILE_BAD_REQUEST -->
 			<xs:enumeration value="4137" />    
+			<!-- UNAUTHORIZED_USER -->
+			<xs:enumeration value="4138" />    
 			
 			<!-- INTERNAL_SERVER_ERROR     -->
 			<xs:enumeration value="5000" />              
diff --git a/CDT-m2mServiceSubscriptionProfile.xsd b/CDT-m2mServiceSubscriptionProfile.xsd
index bf0a276..51c7e1a 100644
--- a/CDT-m2mServiceSubscriptionProfile.xsd
+++ b/CDT-m2mServiceSubscriptionProfile.xsd
@@ -38,6 +38,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
 				<xs:extension base="m2m:regularResource">
 					<xs:sequence>
 						<!-- Resource Specific Attributes -->
+						<xs:element name="M2M-Sub-ID" type="m2m:ID"/>
+						<xs:element name="M2M-SS-ID" type="m2m:ID" minOccurs="0" />
 
 						<!-- Child Resources -->
 						<xs:choice minOccurs="0" maxOccurs="1">
diff --git a/CDT-requestPrimitive.xsd b/CDT-requestPrimitive.xsd
index 374d6ed..2784f32 100644
--- a/CDT-requestPrimitive.xsd
+++ b/CDT-requestPrimitive.xsd
@@ -137,6 +137,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
           <xs:element name="vendorInformation" type="xs:string" minOccurs="0"/>    
           <!-- parameter "Primitive Profile Identifier" -->
           <xs:element name="primitiveProfileIdentifier" type="xs:anyURI" minOccurs="0"/>    
+          <!-- parameter "M2M Service User" -->
+          <xs:element name="m2mServiceUser" type="m2m:ID" minOccurs="0"/>    
         </xs:sequence> 	       
     </xs:complexType>
     
diff --git a/CDT-responsePrimitive.xsd b/CDT-responsePrimitive.xsd
index e87df77..2f26437 100644
--- a/CDT-responsePrimitive.xsd
+++ b/CDT-responsePrimitive.xsd
@@ -114,7 +114,9 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR
           <xs:element name="releaseVersionIndicator" type="m2m:releaseVersion" minOccurs="1"/> 
           <!-- parameter "Vendor Information" -->
           <xs:element name="vendorInformation" type="xs:string" minOccurs="0"/>
-        </xs:sequence> 	       
+          <!-- parameter "M2M Service User" -->
+          <xs:element name="m2mServiceUser" type="m2m:ID" minOccurs="0"/>    
+		</xs:sequence> 	       
     </xs:complexType>
     
   <xs:element name="resource" type="m2m:resourceWrapper"  />
-- 
GitLab