Skip to content

Commit

Permalink
security-profiles (#16)
Browse files Browse the repository at this point in the history
* Refactor model imports and reorganize directories

Moved models into the 'objects' sub-directory and updated import paths across various files. Also reorganized the security-related files into the config/security directory for better module management.

* Remove redundant validator from Address model

The `validate_container_type` model validator was removed from the `AddressRequestModel`. This validator was duplicative as the necessary validation is already covered by another existing validator. Removing it helps simplify and streamline the code.

* Remove redundant 'validate_container_type' method

This method duplicate-checks a single condition that is already validated by another method. Removing it reduces the code complexity and minimizes the risk of conflicting validations.

* Update import paths and add security module init file

Corrected file paths in application, address group, address, application group, and service models. Also, added an `__init__.py` file to the security module for proper module initialization.

* Add anti-spyware profile models

Introduce comprehensive models for anti-spyware profiles, including actions, rules, threat exceptions, and API request/response structures. These models ensure accurate representation and validation of anti-spyware settings.

* Add support for Anti Spyware Profiles

Introduced the `AntiSpywareProfile` class to manage Anti-Spyware Profiles within the SCM. Updated the relevant models and documentation to reflect the new functionality. Bumped version to 0.1.7 in `pyproject.toml`.

* Add tests for AntiSpywareProfile and AddressRequestModel

Implemented comprehensive validation and functionality tests for AntiSpywareProfile, including CRUD operations and model-specific checks. Extended AddressRequestModel tests to cover various validation cases, ensuring robustness and correctness of the models.

* Restructure documentation for better organization

Reorganized the documentation to segregate configuration objects and security services for improved clarity. Deleted outdated models.md and created new directories for objects and security services each with dedicated overview files. Updated all relevant links and references accordingly.

* Simplify Mermaid class diagram and update SDK documentation

Trimmed down class definitions in the Mermaid diagram for clarity and enhanced SDK documentation to include information about data model structures in Python dictionaries.

* Update version to 0.1.8 and add release notes

Bump the version in pyproject.toml to 0.1.8. Add release notes for version 0.1.8, including the addition of pytests to support Anti Spyware Profiles.
  • Loading branch information
cdot65 authored Oct 17, 2024
1 parent 01d2c42 commit 4461b7c
Show file tree
Hide file tree
Showing 46 changed files with 1,932 additions and 428 deletions.
22 changes: 21 additions & 1 deletion docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
# Release Notes
~~# Release Notes

Welcome to the release notes for the `pan-scm-sdk` tool. This document provides a detailed record of changes,
enhancements, and fixes in each version of the tool.

---

## Version 0.1.8

**Release Date:** October 16, 2024

### Anti Spyware Profiles

- **Pytests**: Add the pytests to support Anti Spyware Profiles.

---

## Version 0.1.7

**Release Date:** October 16, 2024

### Anti Spyware Profiles

- **Anti Spyware Profiles**: Add the ability to support Anti Spyware Profiles.

---

## Version 0.1.6

**Release Date:** October 15, 2024
Expand Down
Loading

0 comments on commit 4461b7c

Please sign in to comment.