From 5786539e2391ee1ddc3a606620f0ac61932e8cd4 Mon Sep 17 00:00:00 2001 From: root <Yorgo EL MOUBAYED> Date: Fri, 30 Apr 2021 09:57:54 +0200 Subject: [PATCH] Update storage and computation models --- .../computationhost_model.cpython-38.pyc | Bin 939 -> 937 bytes .../storagehost_model.cpython-38.pyc | Bin 921 -> 921 bytes dataproc/api/models/computationhost_model.py | 9 +++++---- dataproc/api/models/storagehost_model.py | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dataproc/api/models/__pycache__/computationhost_model.cpython-38.pyc b/dataproc/api/models/__pycache__/computationhost_model.cpython-38.pyc index e38cb55907e9956adbb8d6ca021d99024a91fba3..f4fc417b6e4c4a7b9026533fb13b66aa150d54db 100644 GIT binary patch delta 248 zcmZ3@zLK3cl$V!_0SLTAyAvjC<Xy`s6eXXWpIcB`l30?NpO=weToONd52Lj8Ee;Ud zFEKau7EfAHW@=taP9>NpP@Z3uotc;Jl3A3RT#{c@S;P%APm}Q$OL1yW+De8Zp~*r_ zsf;|6E0_}8cz{wx>>z>{MDT$Keh?u5ByMpO6y+DB7L`;MiGaj}PzhlWmjg(!PBvh6 jvIH9dHVPz$P4O)bo80`A(wtN~CZLL979b(R$ioBxy@NTq delta 250 zcmZ3<zM7pkl$V!_0SLYtcP8X)<Xy|ibc=uT8AfUAD2|N$;u62a+|*k<X+@c-c_}%S zAYPO}d45rLW?s5WW>IQ#Nq$jf5f4zmCgUxZ;?$h9l?+9Kla-iK8M!BSFeOCr0;P)B zK?EO=xCJ&d4`@meKadMIDg|cLEslbs{DRb?lFA}skS0M?LI}j=01_;d^_ZP3K}JFh e2Z>=*e2c>-H$SB`C)JJ-sG^t!NXRhqFaZECyFH=+ diff --git a/dataproc/api/models/__pycache__/storagehost_model.cpython-38.pyc b/dataproc/api/models/__pycache__/storagehost_model.cpython-38.pyc index 5e54815988436463972734ea5e9f962b5e288639..3a86a6a4485b82ffcf50f31ab16140c2b0f838c9 100644 GIT binary patch delta 22 ccmbQqK9ij{l$V!_0SK5xyAw(`^7b$T05A*$ivR!s delta 22 ccmbQqK9ij{l$V!_0SK;5?Mf)w$lJpV06TOA-2eap diff --git a/dataproc/api/models/computationhost_model.py b/dataproc/api/models/computationhost_model.py index fef8075..7d97e54 100644 --- a/dataproc/api/models/computationhost_model.py +++ b/dataproc/api/models/computationhost_model.py @@ -1,12 +1,13 @@ -from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo +# Import libraries +from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo from uuid import uuid4 class ComputationHost(StructuredNode): ip=StringProperty() uuid=StringProperty(unique_index=True, default=uuid4) - hostname=StringProperty() + hostName=StringProperty() friendlyName=StringProperty() - workingdirectory=StringProperty() + workingDirectory=StringProperty() @property def serialize(self): @@ -16,7 +17,7 @@ class ComputationHost(StructuredNode): """ return { - 'node_properties': { + 'computationhost_node_properties': { 'ip': self.ip, 'uuid': self.uuid, 'hostName': self.hostName, diff --git a/dataproc/api/models/storagehost_model.py b/dataproc/api/models/storagehost_model.py index cd2ceac..dbea323 100644 --- a/dataproc/api/models/storagehost_model.py +++ b/dataproc/api/models/storagehost_model.py @@ -1,4 +1,4 @@ -from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo +from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo from uuid import uuid4 class StorageHost(StructuredNode): -- GitLab