-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Droessler
authored
Aug 10, 2022
1 parent
a279172
commit 608d898
Showing
8 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ local/ | |
# Virtual Environments | ||
.venv/ | ||
venv/ | ||
env/ | ||
|
||
# Test artifacts | ||
.cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
logger = logging.getLogger(__name__) | ||
|
||
|
||
class EventsAPI: | ||
class EventsAPIv1: | ||
""" | ||
Lacework Events API. | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Lacework Events API wrapper. | ||
""" | ||
|
||
from laceworksdk.api.search_endpoint import SearchEndpoint | ||
from laceworksdk.api.v1.events import EventsAPIv1 | ||
|
||
class EventsAPIv2(EventsAPIv1, SearchEndpoint): | ||
|
||
def __init__(self, session): | ||
""" | ||
Initializes the EventsAPI object. | ||
:param session: An instance of the HttpSession class | ||
:return EventsAPI object. | ||
""" | ||
|
||
# The need to pass "Events" into the v1 init() is tied | ||
# to the super() call within the v1 init() | ||
super(EventsAPIv1, self).__init__(session, "Events") | ||
|
||
super(SearchEndpoint, self).__init__(session, "Events") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters