zscaler-sdk-python 0.7.0__tar.gz → 0.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/PKG-INFO +5 -5
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/pyproject.toml +8 -8
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/__init__.py +1 -1
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/utils.py +8 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/__init__.py +9 -0
- zscaler_sdk_python-0.9.0/zscaler/zia/cloudappcontrol.py +620 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/dlp.py +221 -75
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/url_categories.py +63 -2
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/url_filtering.py +22 -14
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/segment_groups.py +43 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/LICENSE.md +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/README.md +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/cache/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/cache/cache.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/cache/no_op_cache.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/cache/zscaler_cache.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/constants.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/errors/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/errors/error.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/errors/http_error.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/errors/zscaler_api_error.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/exceptions/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/exceptions/exceptions.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/logger.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/ratelimiter/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/ratelimiter/ratelimiter.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/user_agent.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/activation.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/ecgroups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/locations.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zcon/provisioning.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/admin.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/alerts.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/apps.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/devices.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/filters.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/inventory.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/troubleshooting.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/users.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zdx/zdx_client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/activate.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/apptotal.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/audit_logs.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/authentication_settings.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/cloud_apps.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/device_management.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/errors.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/firewall.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/forwarding_control.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/isolation_profile.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/labels.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/locations.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/sandbox.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/security.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/ssl_inspection.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/traffic.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/users.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/web_dlp.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/workload_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zia/zpa_gateway.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/README.md +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/app_segments.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/app_segments_inspection.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/app_segments_pra.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/authdomains.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/certificates.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/cloud_connector_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/connectors.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/emergency_access.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/errors.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/idp.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/inspection.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/isolation.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/lss.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/machine_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/microtenants.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/policies.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/posture_profiles.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/privileged_remote_access.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/provisioning.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/saml_attributes.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/scim_attributes.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/scim_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/server_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/servers.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/service_edges.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.9.0}/zscaler/zpa/trusted_networks.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: zscaler-sdk-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Official Python SDK for the Zscaler Products (Beta)
|
|
5
5
|
Home-page: https://github.com/zscaler/zscaler-sdk-python
|
|
6
6
|
License: MIT
|
|
@@ -22,19 +22,19 @@ Classifier: Topic :: Security
|
|
|
22
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
23
|
Provides-Extra: dev
|
|
24
24
|
Requires-Dist: aenum ; extra == "dev"
|
|
25
|
-
Requires-Dist: aiohttp (>=3.10.
|
|
25
|
+
Requires-Dist: aiohttp (>=3.10.5)
|
|
26
26
|
Requires-Dist: arrow
|
|
27
27
|
Requires-Dist: black (>=24.3.0) ; extra == "dev"
|
|
28
28
|
Requires-Dist: certifi (>=2024.2.2)
|
|
29
29
|
Requires-Dist: charset-normalizer
|
|
30
|
-
Requires-Dist: cryptography (>=
|
|
30
|
+
Requires-Dist: cryptography (>=43.0.0)
|
|
31
31
|
Requires-Dist: flake8
|
|
32
32
|
Requires-Dist: flatdict
|
|
33
|
-
Requires-Dist: idna
|
|
33
|
+
Requires-Dist: idna (>=3.7,<4.0)
|
|
34
34
|
Requires-Dist: okta (>=2.9.7)
|
|
35
35
|
Requires-Dist: pycryptodomex
|
|
36
36
|
Requires-Dist: pydash (>=8.0.3) ; extra == "dev"
|
|
37
|
-
Requires-Dist: python-box (>=7.2.0
|
|
37
|
+
Requires-Dist: python-box (>=7.2.0)
|
|
38
38
|
Requires-Dist: python-dateutil
|
|
39
39
|
Requires-Dist: pytz
|
|
40
40
|
Requires-Dist: pyyaml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "zscaler-sdk-python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.9.0"
|
|
4
4
|
description = "Official Python SDK for the Zscaler Products (Beta)"
|
|
5
5
|
authors = ["Zscaler, Inc. <devrel@zscaler.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -32,8 +32,8 @@ python = ">=3.9,<4.0"
|
|
|
32
32
|
arrow = "*"
|
|
33
33
|
certifi = ">=2024.2.2"
|
|
34
34
|
charset-normalizer = "*"
|
|
35
|
-
idna = "
|
|
36
|
-
python-box = "
|
|
35
|
+
idna = "^3.7"
|
|
36
|
+
python-box = ">=7.2.0"
|
|
37
37
|
python-dateutil = "*"
|
|
38
38
|
requests = ">=2.32.3"
|
|
39
39
|
responses = ">=0.25.3"
|
|
@@ -50,21 +50,21 @@ flake8 = "*"
|
|
|
50
50
|
pytz = "*"
|
|
51
51
|
black = ">=24.3.0"
|
|
52
52
|
# cryptography = ">=3.4,<43.0"
|
|
53
|
-
cryptography = ">=
|
|
53
|
+
cryptography = ">=43.0.0"
|
|
54
54
|
okta = ">=2.9.7"
|
|
55
|
-
aiohttp = ">=3.10.
|
|
55
|
+
aiohttp = ">=3.10.5"
|
|
56
56
|
|
|
57
57
|
[tool.poetry.dev-dependencies]
|
|
58
58
|
black = ">=24.3.0"
|
|
59
|
-
pytest = ">=8.
|
|
60
|
-
pytest-asyncio = "
|
|
59
|
+
pytest = ">=8.3.1"
|
|
60
|
+
pytest-asyncio = ">=0.23.8"
|
|
61
61
|
pytest-mock = "*"
|
|
62
62
|
pytest-recording = "^0.13.2"
|
|
63
63
|
pytest-cov = "*"
|
|
64
64
|
pyfakefs = "^5.6.0"
|
|
65
65
|
isort = "*"
|
|
66
66
|
wheel = "*"
|
|
67
|
-
sphinx = "^7.4.
|
|
67
|
+
sphinx = "^7.4.7"
|
|
68
68
|
sphinx-autobuild = "*"
|
|
69
69
|
sphinx_rtd_theme = "*"
|
|
70
70
|
|
|
@@ -181,6 +181,14 @@ def transform_common_id_fields(id_groups: list, kwargs: dict, payload: dict):
|
|
|
181
181
|
# Handle zpa_app_segments, zpa_application_segments, and zpa_application_segment_groups
|
|
182
182
|
if isinstance(value, list):
|
|
183
183
|
payload[payload_key] = [{"externalId": item["external_id"], "name": item["name"]} for item in value]
|
|
184
|
+
elif key == "cbi_profile":
|
|
185
|
+
# Special handling for cbi_profile
|
|
186
|
+
if isinstance(value, dict) and all(k in value for k in ["id", "name", "url"]):
|
|
187
|
+
payload[payload_key] = {"id": value["id"], "name": value["name"], "url": value["url"]}
|
|
188
|
+
elif key == "cloud_app_risk_profile":
|
|
189
|
+
# Special handling for cloudAppRiskProfile
|
|
190
|
+
if isinstance(value, dict) and "id" in value:
|
|
191
|
+
payload[payload_key] = {"id": value["id"]}
|
|
184
192
|
else:
|
|
185
193
|
# General case for ID transformations
|
|
186
194
|
if isinstance(value, list):
|
|
@@ -36,6 +36,7 @@ from zscaler.zia.device_management import DeviceManagementAPI
|
|
|
36
36
|
from zscaler.zia.dlp import DLPAPI
|
|
37
37
|
from zscaler.zia.firewall import FirewallPolicyAPI
|
|
38
38
|
from zscaler.zia.forwarding_control import ForwardingControlAPI
|
|
39
|
+
from zscaler.zia.cloudappcontrol import CloudAppControlAPI
|
|
39
40
|
from zscaler.zia.isolation_profile import IsolationProfileAPI
|
|
40
41
|
from zscaler.zia.labels import RuleLabelsAPI
|
|
41
42
|
from zscaler.zia.locations import LocationsAPI
|
|
@@ -594,6 +595,14 @@ class ZIAClientHelper(ZIAClient):
|
|
|
594
595
|
"""
|
|
595
596
|
return URLFilteringAPI(self)
|
|
596
597
|
|
|
598
|
+
@property
|
|
599
|
+
def cloudappcontrol(self):
|
|
600
|
+
"""
|
|
601
|
+
The interface object for the :ref:`ZIA Cloud App Control <zia-cloudappcontrol>`.
|
|
602
|
+
|
|
603
|
+
"""
|
|
604
|
+
return CloudAppControlAPI(self)
|
|
605
|
+
|
|
597
606
|
@property
|
|
598
607
|
def users(self):
|
|
599
608
|
"""
|