Docker Plugin API in Python
Jacek Kowalski
2020-05-03 f7563b812fd7c6cc1103263fc38c6be9d669cc4b
commit | author | age
881ffe 1 class RequestPoolEntity:
JK 2     def __init__(self, AddressSpace: str, Pool: str = None, SubPool: str = None, Options: dict = None, V6: bool = None):
3         self.AddressSpace = AddressSpace
4         self.Pool = Pool
5         self.SubPool = SubPool
6         self.Options = {} if Options is None else Options
7         self.V6 = V6
8
9
10 class ReleasePoolEntity:
11     def __init__(self, PoolID: str):
12         self.PoolID = PoolID
13
14
15 class RequestAddressEntity:
16     def __init__(self, PoolID: str, Address: str = None, Options: dict = None):
17         self.PoolID = PoolID
18         self.Address = Address
19         self.Options = {} if Options is None else Options
20
21
22 class ReleaseAddressEntity:
23     def __init__(self, PoolID: str, Address: str):
24         self.PoolID = PoolID
25         self.Address = Address