-
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.
Added new APIv2 endpoints that allow advanced searches and included p…
…agination functionality (#47) * refactor: updated HttpSession class to be much more flexible * feat: allow org-level access and sub-account to be modified dynamically * refactor: created three base class types that endpoints should inherit * refactor: reorganized existing code and refactored to use new base classes * feat: implemented all new APIv2 endpoints including pagination support * chore: included flake8-quotes in dev dependencies * docs: small update to README.md for latest API endpoints * refactor: corrected docs and simplified `build_dict_from_items` method * fix: sanitizing access to 'query_data' * fix: narrowing down exception handling for pagination iteration * refactor: moved resource attribute to base of SeachEndpoint * refactor: removed unnecessary override method * docs: added docstrings for 'query_data' where needed * docs: added docstrings for methods which are passed * refactor: changed LaceworkException name to match conventions * tests: massively de-duped code for new search API tests * chore: importing Retry directly from urllib Ref: https://github.com/psf/requests/blob/v2.22.0/requests/packages.py * fix: passthrough Lacework response when maximum retries reached * fix: supply json to the query execute function * docs: improved function documentation for the BaseEndpoint class * chore: removed references to `query_data` in favor of `json` * chore: removed redundant `search()` method overrides * fix: improved consistency of variable naming in AgentAccessTokensAPI * chore: improved error message for JSONDecodeError * docs: added additional class docstrings * fix: fixed bugs and consistency issues found in testing * refactor: simplified and modernized all APIv2 tests * tests: fixed dependency issue with tests * fix: modified error logging for 'nextPage' parsing * refactor: changed LaceworksdkException to LaceworkSDKException
- Loading branch information
1 parent
6f0b47e
commit ee3f6f8
Showing
107 changed files
with
4,208 additions
and
3,753 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
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
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
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
Oops, something went wrong.