Update models.pyi of actions Allocate and Deallocate
This commit is contained in:
parent
bcb3358af3
commit
c140a58ca2
|
@ -447,26 +447,8 @@ class Prepare(ActionWithMultipleDevices):
|
||||||
|
|
||||||
|
|
||||||
class Live(ActionWithOneDevice):
|
class Live(ActionWithOneDevice):
|
||||||
ip = ... # type: Column
|
serial_number = ... # type: Column
|
||||||
subdivision_confidence = ... # type: Column
|
time = ... # 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
|
|
||||||
|
|
||||||
|
|
||||||
class Organize(ActionWithMultipleDevices):
|
class Organize(ActionWithMultipleDevices):
|
||||||
|
@ -527,12 +509,15 @@ class DisposeProduct(Trade):
|
||||||
|
|
||||||
class TransferOwnershipBlockchain(Trade):
|
class TransferOwnershipBlockchain(Trade):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class Allocate(ActionWithMultipleDevices):
|
||||||
|
code = ... # type: Column
|
||||||
|
end_users = ... # type: Column
|
||||||
|
|
||||||
|
|
||||||
class Receive(ActionWithMultipleDevices):
|
class Deallocate(ActionWithMultipleDevices):
|
||||||
agent_from = ... # type: relationship
|
code = ... # type: Column
|
||||||
agent_to = ... # type: relationship
|
|
||||||
action = ... # type: relationship
|
|
||||||
|
|
||||||
|
|
||||||
class Migrate(ActionWithMultipleDevices):
|
class Migrate(ActionWithMultipleDevices):
|
||||||
|
|
Reference in New Issue