forked from opalstack/opalstack-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathips.py
More file actions
21 lines (16 loc) · 655 Bytes
/
ips.py
File metadata and controls
21 lines (16 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from .manager import ApiModelManager
class IpsManager(ApiModelManager):
def __init__(self, api):
self.model_name = 'ip'
self.model_name_plural = 'ips'
self.is_instantaneous = True
self.primary_key = 'id'
super().__init__(api)
def list_all(self, *args, **kwargs): return super().list_all(*args, **kwargs)
def read(self, *args, **kwargs): return super().read(*args, **kwargs)
def check_equals(self, a, b):
return ( a['id'] == b['id'] )
def check_obstructs(self, existing, new):
return False
def check_satisfies(self, existing, new):
return False