Modify nemo rpc input and related implementation.
[nemo.git] / nemo-api / src / main / yang / nemo-intent.yang
index d4693def4f44e4db3cd15139fc542ab2f526d4c9..034ad44d3baf68f796009d1d0bbbd45e0350565c 100644 (file)
@@ -308,7 +308,10 @@ module nemo-intent {
             "Begin a transaction for the user";\r
 \r
         input {\r
-            uses nemo-user:user-instance;\r
+            leaf user-id {\r
+                type nemo-common:user-id;\r
+                mandatory true;\r
+            }\r
         }\r
 \r
         output {\r
@@ -321,7 +324,10 @@ module nemo-intent {
             "Commit the user's current transaction";\r
 \r
         input {\r
-            uses nemo-user:user-instance;\r
+            leaf user-id {\r
+                type nemo-common:user-id;\r
+                mandatory true;\r
+            }\r
         }\r
 \r
         output {\r
@@ -334,7 +340,10 @@ module nemo-intent {
             "Create, update or delete an intent of a user through an NEMO statement";\r
 \r
         input {\r
-            uses nemo-user:user-instance;\r
+            leaf user-id {\r
+                type nemo-common:user-id;\r
+                mandatory true;\r
+            }\r
 \r
             leaf nemo-statement {\r
                 type string;\r
@@ -352,7 +361,11 @@ module nemo-intent {
              which are described as json or xml format.";\r
 \r
         input {\r
-            uses nemo-user:user-instance;\r
+            leaf user-id {\r
+                type nemo-common:user-id;\r
+                mandatory true;\r
+            }\r
+\r
             uses user-intent;\r
         }\r
 \r
@@ -366,7 +379,10 @@ module nemo-intent {
             "Delete some intents of a user from the user repository";\r
 \r
         input {\r
-            uses nemo-user:user-instance;\r
+            leaf user-id {\r
+                type nemo-common:user-id;\r
+                mandatory true;\r
+            }\r
 \r
             container objects {\r
                 leaf-list node {\r
@@ -404,7 +420,10 @@ module nemo-intent {
              according to several advanced query conditions.";\r
 \r
         input {\r
-            uses nemo-user:user-instance;\r
+            leaf user-id {\r
+                type nemo-common:user-id;\r
+                mandatory true;\r
+            }\r
 \r
             list query-condition {\r
                 key "query-condition-id";\r