Fix: UpdateDms throwing error that no attribute 'events'
[pti/o2.git] / o2dms / domain / dms.py
index ceef458..28faf3c 100644 (file)
@@ -23,9 +23,40 @@ class NfDeploymentDesc(AgRoot):
         super().__init__()\r
         self.id = id\r
         self.version_number = 0\r
-        self.dmsId = dmsId\r
+        self.deploymentManagerId = dmsId\r
         self.name = name\r
         self.description = description\r
         self.inputParams = inputParams\r
         self.outputParams = outputParams\r
-        self.extensions = []\r
+        # self.extensions = []\r
+\r
+\r
+class NfDeployment(AgRoot):\r
+    def __init__(self, id: str, name: str, dmsId: str, description: str = '',\r
+                 descriptorId: str = '', parentId: str = '',) -> None:\r
+        super().__init__()\r
+        self.id = id\r
+        self.version_number = 0\r
+        self.deploymentManagerId = dmsId\r
+        self.name = name\r
+        self.description = description\r
+        self.descriptorId = descriptorId\r
+        self.parentDeploymentId = parentId\r
+        self.status = 0\r
+\r
+\r
+class NfOCloudVResource(AgRoot):\r
+    def __init__(self, id: str, name: str, dmsId: str, description: str = '',\r
+                 descriptorId: str = '', nfDeploymentId: str = '',\r
+                 vresourceType: int = 0,) -> None:\r
+        super().__init__()\r
+        self.id = id\r
+        self.version_number = 0\r
+        self.deploymentManagerId = dmsId\r
+        self.name = name\r
+        self.description = description\r
+        self.descriptorId = descriptorId\r
+        self.nfDeploymentId = nfDeploymentId\r
+        self.vresourceType = vresourceType\r
+        self.status = 0\r
+        self.metadata = []\r