We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b512be commit 042ee4fCopy full SHA for 042ee4f
src/cbapi/defense/models.py
@@ -12,3 +12,15 @@ def _parse(self, obj):
12
if type(obj) == dict and "deviceInfo" in obj:
13
return obj["deviceInfo"]
14
15
+
16
+class Event(NewBaseModel):
17
+ urlobject = "/integrationServices/v3/event"
18
+ primary_key = "eventId"
19
20
+ def __init__(self, cb, model_unique_id, initial_data=None):
21
+ super(Event, self).__init__(cb, model_unique_id, initial_data)
22
23
+ def _parse(self, obj):
24
+ if type(obj) == dict and "eventInfo" in obj:
25
+ return obj["eventInfo"]
26
0 commit comments