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