From c140a58ca2384b0d4766e2db538f0451ce55af71 Mon Sep 17 00:00:00 2001 From: Jordi Nadeu Date: Mon, 30 Nov 2020 17:42:02 +0100 Subject: [PATCH] Update models.pyi of actions Allocate and Deallocate --- ereuse_devicehub/resources/action/models.pyi | 35 ++++++-------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/ereuse_devicehub/resources/action/models.pyi b/ereuse_devicehub/resources/action/models.pyi index e95c3945..5082702d 100644 --- a/ereuse_devicehub/resources/action/models.pyi +++ b/ereuse_devicehub/resources/action/models.pyi @@ -447,26 +447,8 @@ class Prepare(ActionWithMultipleDevices): class Live(ActionWithOneDevice): - ip = ... # type: Column - subdivision_confidence = ... # type: Column - subdivision = ... # type: Column - city = ... # type: Column - city_confidence = ... # type: Column - isp = ... # type: Column - organization = ... # type: Column - organization_type = ... # type: Column - - def __init__(self, **kwargs) -> None: - super().__init__(**kwargs) - self.ip = ... # type: Union[ipaddress.IPv4Address, ipaddress.IPv6Address] - self.subdivision_confidence = ... # type: int - self.subdivision = ... # type: enums.Subdivision - self.city = ... # type: str - self.city_confidence = ... # type: int - self.isp = ... # type: str - self.organization = ... # type: str - self.organization_type = ... # type: str - self.country = ... # type: Country + serial_number = ... # type: Column + time = ... # type: Column class Organize(ActionWithMultipleDevices): @@ -527,12 +509,15 @@ class DisposeProduct(Trade): class TransferOwnershipBlockchain(Trade): pass + + +class Allocate(ActionWithMultipleDevices): + code = ... # type: Column + end_users = ... # type: Column - -class Receive(ActionWithMultipleDevices): - agent_from = ... # type: relationship - agent_to = ... # type: relationship - action = ... # type: relationship + +class Deallocate(ActionWithMultipleDevices): + code = ... # type: Column class Migrate(ActionWithMultipleDevices):