Skip to content

Commit f515ffe

Browse files
authored
fix: Fixed Application Segment Port Omission and Policy Object Type (#296)
* fix: Fixed Application Segment Port Omission and Policy Object Type
1 parent 1b24e23 commit f515ffe

29 files changed

+489
-155
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ jobs:
103103
env:
104104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105105
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
106-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
106+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}

.github/workflows/zcc-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ jobs:
126126
# env:
127127
# ZCC_CLIENT_ID: ${{ secrets.ZCC_CLIENT_ID }}
128128
# ZCC_CLIENT_SECRET: ${{ secrets.ZCC_CLIENT_SECRET }}
129-
# ZCC_CLOUD: ${{ secrets.ZCC_CLOUD }}
129+
# ZCC_CLOUD: ${{ secrets.ZCC_CLOUD }}

.github/workflows/zdx-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ jobs:
7575
with:
7676
token: ${{ secrets.CODECOV_TOKEN }}
7777
file: ./coverage.xml
78-
fail_ci_if_error: true
78+
fail_ci_if_error: true

.github/workflows/zia-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ jobs:
151151
# with:
152152
# token: ${{ secrets.CODECOV_TOKEN }}
153153
# file: ./coverage.xml
154-
# fail_ci_if_error: true
154+
# fail_ci_if_error: true

.github/workflows/zpa_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ jobs:
154154
# with:
155155
# token: ${{ secrets.CODECOV_TOKEN }}
156156
# file: ./coverage.xml
157-
# fail_ci_if_error: true
157+
# fail_ci_if_error: true

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Zscaler Python SDK Changelog
22

3+
## 1.4.3 (June 3, 2025)
4+
5+
### Notes
6+
7+
- Python Versions: **v3.8, v3.9, v3.10, v3.11**
8+
9+
### Bug Fixes:
10+
11+
* [PR #296](https://github.com/zscaler/zscaler-sdk-python/pull/296) - Added the following new functions in the ZPA `policies` package: `add_browser_protection_rule_v2` and `update_browser_protection_rule_v2` to support `CLIENTLESS_SESSION_PROTECTION_POLICY` policy type for Browser Protection Rule configuration.
12+
* [PR #296](https://github.com/zscaler/zscaler-sdk-python/pull/296) - Added the following new `object_type` `USER_PORTAL` in the ZPA conditions template `_create_conditions_v2` to support `CLIENTLESS_SESSION_PROTECTION_POLICY` policy type for Browser Protection Rule configuration.
13+
* [PR #296](https://github.com/zscaler/zscaler-sdk-python/pull/296) - Fixed `update_segment()` behavior in all ZPA Application Segment client to ensure that port fields (`tcpPortRange`, `udpPortRange`, `tcpPortRanges`, `udpPortRanges`) are properly cleared when omitted. Previously, omitting these fields during update would leave existing port configurations intact instead of removing them.
14+
315
## 1.4.2 (May, 29 2025)
416

517
### Notes

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ help:
3434
@echo "$(COLOR_OK) format Reformat code with black$(COLOR_NONE)"
3535
@echo "$(COLOR_OK) lint Check style with flake8 for all packages$(COLOR_NONE)"
3636
@echo "$(COLOR_OK) lint:zcc Check style with flake8 for zcc packages$(COLOR_NONE)"
37-
@echo "$(COLOR_OK) lint:zcon Check style with flake8 for zcon packages$(COLOR_NONE)"
37+
@echo "$(COLOR_OK) lint:ztw Check style with flake8 for ztw packages$(COLOR_NONE)"
3838
@echo "$(COLOR_OK) lint:zdx Check style with flake8 for zdx packages$(COLOR_NONE)"
3939
@echo "$(COLOR_OK) lint:zpa Check style with flake8 for zpa packages$(COLOR_NONE)"
4040
@echo "$(COLOR_OK) lint:zia Check style with flake8 for zia packages$(COLOR_NONE)"
4141
@echo "$(COLOR_OK) coverage Check code coverage quickly with the default Python$(COLOR_NONE)"
4242
@echo "$(COLOR_WARNING)test$(COLOR_NONE)"
4343
@echo "$(COLOR_OK) test:all Run all tests$(COLOR_NONE)"
4444
@echo "$(COLOR_OK) test:integration:zcc Run only zcc integration tests$(COLOR_NONE)"
45-
@echo "$(COLOR_OK) test:integration:zcon Run only zcon integration tests$(COLOR_NONE)"
45+
@echo "$(COLOR_OK) test:integration:ztw Run only ztw integration tests$(COLOR_NONE)"
4646
@echo "$(COLOR_OK) test:integration:zdx Run only zdx integration tests$(COLOR_NONE)"
4747
@echo "$(COLOR_OK) test:integration:zia Run only zia integration tests$(COLOR_NONE)"
4848
@echo "$(COLOR_OK) test:integration:zpa Run only zpa integration tests$(COLOR_NONE)"
@@ -89,9 +89,9 @@ lint\:zcc:
8989
flake8 zscaler/zcc --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
9090
flake8 zscaler/zcc --count --select=E9,F63,F7,F82 --show-source --statistics
9191

92-
lint\:zcon:
93-
flake8 zscaler/zcon --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
94-
flake8 zscaler/zcon --count --select=E9,F63,F7,F82 --show-source --statistics
92+
lint\:ztw:
93+
flake8 zscaler/ztw --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
94+
flake8 zscaler/ztw --count --select=E9,F63,F7,F82 --show-source --statistics
9595

9696
lint\:zdx:
9797
flake8 zscaler/zdx --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
@@ -115,9 +115,9 @@ test\:integration\:zcc:
115115
@echo "$(COLOR_ZSCALER)Running zcc integration tests...$(COLOR_NONE)"
116116
pytest tests/integration/zcc --disable-warnings
117117

118-
test\:integration\:zcon:
119-
@echo "$(COLOR_ZSCALER)Running zcon integration tests...$(COLOR_NONE)"
120-
pytest tests/integration/zcon --disable-warnings
118+
test\:integration\:ztw:
119+
@echo "$(COLOR_ZSCALER)Running ztw integration tests...$(COLOR_NONE)"
120+
pytest tests/integration/ztw --disable-warnings
121121

122122
test\:integration\:zdx:
123123
@echo "$(COLOR_ZSCALER)Running zdx integration tests...$(COLOR_NONE)"
@@ -140,14 +140,14 @@ coverage:
140140
coverage\:zcc:
141141
pytest tests/integration/zcc -v --cov=zscaler/zcc --cov-report xml --cov-report term
142142

143-
coverage\:zcon:
144-
pytest tests/integration/zcon -v --cov=zscaler/zcon --cov-report xml --cov-report term
143+
coverage\:ztw:
144+
pytest tests/integration/ztw -v --cov=zscaler/ztw --cov-report xml --cov-report term
145145

146146
coverage\:zdx:
147147
pytest tests/integration/zdx -v --cov=zscaler/zdx --cov-report xml --cov-report term
148148

149149
coverage\:zia:
150-
pytest tests/integration/zia --cov=zscaler/zia --cov-report xml --cov-report term
150+
pytest tests/integration/zia --cov=zscaler/zia --cov-report xml --cov-report term
151151

152152
coverage\:zpa:
153153
pytest tests/integration/zpa --cov=zscaler/zpa --cov-report xml --cov-report term

docsrc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
html_title = ""
2929

3030
# The short X.Y version
31-
version = "1.4.1"
31+
version = "1.4.3"
3232
# The full version, including alpha/beta/rc tags
33-
release = "1.4.1"
33+
release = "1.4.3"
3434

3535
# -- General configuration ---------------------------------------------------
3636

docsrc/zs/guides/release_notes.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ Release Notes
66
Zscaler Python SDK Changelog
77
----------------------------
88

9+
1.4.3 (June, 3 2025)
10+
-------------------------
11+
12+
Notes
13+
-----
14+
15+
- Python Versions: **v3.8, v3.9, v3.10, v3.11**
16+
17+
Enhancements
18+
-------------
19+
20+
* (`#296 <https://github.com/zscaler/zscaler-sdk-python/pull/296>`_) - Added the following new functions in the ZPA `policies` package: `add_browser_protection_rule_v2` and `update_browser_protection_rule_v2` to support `CLIENTLESS_SESSION_PROTECTION_POLICY` policy type for Browser Protection Rule configuration.
21+
* (`#296 <https://github.com/zscaler/zscaler-sdk-python/pull/296>`_) - Added the following new `object_type` `USER_PORTAL` in the ZPA conditions template `_create_conditions_v2` to support `CLIENTLESS_SESSION_PROTECTION_POLICY` policy type for Browser Protection Rule configuration.
22+
* (`#296 <https://github.com/zscaler/zscaler-sdk-python/pull/296>`_) - Fixed `update_segment()` behavior in all ZPA Application Segment client to ensure that port fields (`tcpPortRange`, `udpPortRange`, `tcpPortRanges`, `udpPortRanges`) are properly cleared when omitted. Previously, omitting these fields during update would leave existing port configurations intact instead of removing them.
23+
924
1.4.2 (May, 29 2025)
1025
-------------------------
1126

poetry.lock

Lines changed: 22 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zscaler-sdk-python"
3-
version = "1.4.2"
3+
version = "1.4.3"
44
description = "Official Python SDK for the Zscaler Products"
55
authors = ["Zscaler, Inc. <devrel@zscaler.com>"]
66
license = "MIT"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ pyyaml==6.0.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
1616
requests==2.32.3 ; python_full_version >= "3.9.2" and python_version < "4.0"
1717
six==1.17.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
1818
types-python-dateutil==2.9.0.20250516 ; python_full_version >= "3.9.2" and python_version < "4.0"
19-
typing-extensions==4.13.2 ; python_full_version >= "3.9.2" and python_version < "4.0"
19+
typing-extensions==4.14.0 ; python_full_version >= "3.9.2" and python_version < "4.0"
2020
urllib3==2.4.0 ; python_full_version >= "3.9.2" and python_version < "4.0"

0 commit comments

Comments
 (0)