-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for auto-pagination of retrievals with list method (#69)
* Support for auto-pagination of retrievals with list method * Update .gitignore to refine secrets and dynaconf exclusions Revised the exclusion of secrets.yaml to target a specific path and added a dynaconf-related file to the ignore list. This reduces the risk of sensitive files being accidentally committed. * Add dynaconf dependency to pyproject.toml Include dynaconf as a new dependency to manage dynamic configurations. This update ensures better flexibility and control over application settings. * Add max_limit validation and pagination to object classes Introduced `max_limit` parameter with validation logic for API requests across object classes. Updated pagination to use a configurable `max_limit` to handle large datasets efficiently. Adjusted related methods to ensure proper handling and filtering of results. * Update .gitignore to exclude local test files Replaced the exclusion of dynaconf secret files with a rule to ignore local developer test files (_test_*.py). This keeps the repository cleaner by preventing unintended test files from being tracked. * Set max_limit parameter in security profiles and add tests Introduced the `max_limit` parameter to optimize API requests across Decryption, Security Rules, Wildfire Antivirus, Anti-Spyware, and Vulnerability Protection profiles. Updated test cases to cover default, custom, invalid, and pagination scenarios for the new parameter. This enables efficient data retrieval and improved error handling for limit configurations. * Bump version to 0.3.6 and update release notes. Introduced auto-pagination for the `list()` method and added support to control the maximum number of objects returned per request. Updated documentation with details of these enhancements. * Add pagination support using max_limit to SDK documentation Added details about controlling pagination with the `max_limit` parameter for objects. Updated examples across relevant sections to demonstrate the use of `max_limit` for efficient data retrieval.
- Loading branch information
Showing
53 changed files
with
6,102 additions
and
2,034 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
Oops, something went wrong.