Fix add&remove resource in grant request
[vfc/nfvo/lcm.git] / lcm / swagger / vfc.vnfdriver.swagger.json
index 6fa7bb0..07f6768 100644 (file)
         }\r
       }\r
     },\r
+    "ResourceChange" : {\r
+       "type": "object",\r
+       "properties": {\r
+         "type": {\r
+           "type": "string",\r
+           "description": " The value should be VDU,VL,CP,Strorage."\r
+         },\r
+         "resourceDefinitionId": {\r
+           "type": "string"\r
+         },\r
+         "vdu": {\r
+           "type": "string"\r
+         }\r
+       }\r
+    },\r
     "GrantVNFRequest": {\r
       "type": "object",\r
       "properties": {\r
           "type": "string"\r
         },\r
         "addResource": {\r
-          "type": "object",\r
-          "properties": {\r
-            "type": {\r
-              "type": "string",\r
-              "description": " The value should be VDU,VL,CP,Strorage."\r
-            },\r
-            "resourceDefinitionId": {\r
-              "type": "string"\r
-            },\r
-            "vdu": {\r
-              "type": "string"\r
-            }\r
+          "type": "array",\r
+          "items": {\r
+            "$ref": "#/definitions/ResourceChange"\r
           }\r
         },\r
         "removeResource": {\r
-          "type": "object",\r
-          "properties": {\r
-            "type": {\r
-              "type": "string",\r
-              "description": " The value should be VDU,VL,CP,Strorage."\r
-            },\r
-            "resourceDefinitionId": {\r
-              "type": "string"\r
-            },\r
-            "vdu": {\r
-              "type": "string"\r
-            }\r
+          "type": "array",\r
+          "items": {\r
+            "$ref": "#/definitions/ResourceChange"\r
           }\r
         },\r
         "additionalParam": {\r
       }      \r
     }\r
   }\r
-}
\ No newline at end of file
+}\r