wizata-dsapi 1.2.15__py3-none-any.whl → 1.2.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wizata_dsapi/twin.py +21 -5
- wizata_dsapi/version.py +1 -1
- {wizata_dsapi-1.2.15.dist-info → wizata_dsapi-1.2.17.dist-info}/METADATA +1 -1
- {wizata_dsapi-1.2.15.dist-info → wizata_dsapi-1.2.17.dist-info}/RECORD +7 -7
- {wizata_dsapi-1.2.15.dist-info → wizata_dsapi-1.2.17.dist-info}/LICENSE.txt +0 -0
- {wizata_dsapi-1.2.15.dist-info → wizata_dsapi-1.2.17.dist-info}/WHEEL +0 -0
- {wizata_dsapi-1.2.15.dist-info → wizata_dsapi-1.2.17.dist-info}/top_level.txt +0 -0
wizata_dsapi/twin.py
CHANGED
|
@@ -147,10 +147,19 @@ class Twin(ApiDto):
|
|
|
147
147
|
obj.from_json(data)
|
|
148
148
|
return obj
|
|
149
149
|
|
|
150
|
-
def __init__(self,
|
|
150
|
+
def __init__(self,
|
|
151
|
+
twin_id=None,
|
|
152
|
+
hardware_id=None,
|
|
153
|
+
name=None, parent_id=None,
|
|
154
|
+
ttype=TwinBlockType.MACHINE,
|
|
151
155
|
type_id:uuid.UUID = None,
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
twin_type:TwinType = None,
|
|
157
|
+
latitude_id: uuid.UUID = None,
|
|
158
|
+
longitude_id: uuid.UUID = None,
|
|
159
|
+
color: str = None,
|
|
160
|
+
icon: str = None,
|
|
161
|
+
latitude: float = None,
|
|
162
|
+
longitude: float = None,
|
|
154
163
|
extra_properties: dict = None,
|
|
155
164
|
description: str = None):
|
|
156
165
|
if twin_id is None:
|
|
@@ -161,7 +170,12 @@ class Twin(ApiDto):
|
|
|
161
170
|
self.name = name
|
|
162
171
|
self.parent_id = parent_id
|
|
163
172
|
self.type = ttype
|
|
164
|
-
|
|
173
|
+
if twin_type is not None:
|
|
174
|
+
self.twin_type = twin_type
|
|
175
|
+
self.type_id = twin_type.twin_type_id
|
|
176
|
+
else:
|
|
177
|
+
self.twin_type = None
|
|
178
|
+
self.type_id = type_id
|
|
165
179
|
self.description = description
|
|
166
180
|
self.latitude = latitude
|
|
167
181
|
self.longitude = longitude
|
|
@@ -235,7 +249,9 @@ class Twin(ApiDto):
|
|
|
235
249
|
obj["name"] = str(self.name)
|
|
236
250
|
if self.parent_id is not None:
|
|
237
251
|
obj["parentId"] = str(self.parent_id)
|
|
238
|
-
if self.
|
|
252
|
+
if self.twin_type is not None:
|
|
253
|
+
obj["twinTypeId"] = str(self.twin_type.twin_type_id)
|
|
254
|
+
elif self.type_id is not None:
|
|
239
255
|
obj["twinTypeId"] = str(self.type_id)
|
|
240
256
|
if self.type is not None and isinstance(self.type, TwinBlockType):
|
|
241
257
|
obj["type"] = self.type.value
|
wizata_dsapi/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.17"
|
|
@@ -29,9 +29,9 @@ wizata_dsapi/solution_component.py,sha256=8gbZWx2h_xUqI_pAXa3goqAnR5Y-GDMii8MeGl
|
|
|
29
29
|
wizata_dsapi/streamlit_utils.py,sha256=sXBdygktbixV828Zg01Nl27_a4F8zGFc4RY0C8g-1bc,1942
|
|
30
30
|
wizata_dsapi/template.py,sha256=h2f3dLduJ4WhreVxJXuFIB3pinnI3c39WxBms0bCgos,13007
|
|
31
31
|
wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
|
|
32
|
-
wizata_dsapi/twin.py,sha256=
|
|
32
|
+
wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
|
|
33
33
|
wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
|
|
34
|
-
wizata_dsapi/version.py,sha256=
|
|
34
|
+
wizata_dsapi/version.py,sha256=LyCJKEtzC7sS6MlxViknrdz9t79ni5iIOEGUNPPAnwU,23
|
|
35
35
|
wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
|
|
36
36
|
wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
|
|
37
37
|
wizata_dsapi/wizata_dsapi_client.py,sha256=6URQeMA5A9eXxC2cs8TUbKolmOo-Kj6kII9NmRRITPQ,78702
|
|
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
|
|
|
42
42
|
wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
|
|
43
43
|
wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
|
|
44
44
|
wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
|
|
45
|
-
wizata_dsapi-1.2.
|
|
46
|
-
wizata_dsapi-1.2.
|
|
47
|
-
wizata_dsapi-1.2.
|
|
48
|
-
wizata_dsapi-1.2.
|
|
49
|
-
wizata_dsapi-1.2.
|
|
45
|
+
wizata_dsapi-1.2.17.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
46
|
+
wizata_dsapi-1.2.17.dist-info/METADATA,sha256=FFniPBqiPgq96S4zGnAHFyyMLfua5QF9xWk1wU5dTv8,2188
|
|
47
|
+
wizata_dsapi-1.2.17.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
48
|
+
wizata_dsapi-1.2.17.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
|
|
49
|
+
wizata_dsapi-1.2.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|