zscaler-sdk-python 0.7.0__tar.gz → 0.8.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.8.0}/PKG-INFO +2 -2
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/pyproject.toml +4 -4
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/__init__.py +1 -1
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/utils.py +12 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/__init__.py +9 -0
- zscaler_sdk_python-0.8.0/zscaler/zia/cloudappcontrol.py +603 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/dlp.py +222 -70
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/url_categories.py +64 -2
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/url_filtering.py +22 -14
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/LICENSE.md +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/README.md +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/cache/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/cache/cache.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/cache/no_op_cache.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/cache/zscaler_cache.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/constants.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/errors/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/errors/error.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/errors/http_error.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/errors/zscaler_api_error.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/exceptions/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/exceptions/exceptions.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/logger.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/ratelimiter/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/ratelimiter/ratelimiter.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/user_agent.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/activation.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/ecgroups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/locations.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zcon/provisioning.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/admin.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/alerts.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/apps.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/devices.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/filters.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/inventory.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/troubleshooting.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/users.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zdx/zdx_client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/activate.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/apptotal.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/audit_logs.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/authentication_settings.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/cloud_apps.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/device_management.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/errors.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/firewall.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/forwarding_control.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/isolation_profile.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/labels.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/locations.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/sandbox.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/security.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/ssl_inspection.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/traffic.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/users.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/web_dlp.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/workload_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zia/zpa_gateway.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/README.md +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/__init__.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/app_segments.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/app_segments_inspection.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/app_segments_pra.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/authdomains.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/certificates.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/client.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/cloud_connector_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/connectors.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/emergency_access.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/errors.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/idp.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/inspection.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/isolation.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/lss.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/machine_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/microtenants.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/policies.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/posture_profiles.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/privileged_remote_access.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/provisioning.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/saml_attributes.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/scim_attributes.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/scim_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/segment_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/server_groups.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/servers.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.0}/zscaler/zpa/service_edges.py +0 -0
- {zscaler_sdk_python-0.7.0 → zscaler_sdk_python-0.8.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.8.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
|
|
@@ -27,7 +27,7 @@ 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
33
|
Requires-Dist: idna
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "zscaler-sdk-python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.8.0"
|
|
4
4
|
description = "Official Python SDK for the Zscaler Products (Beta)"
|
|
5
5
|
authors = ["Zscaler, Inc. <devrel@zscaler.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -50,13 +50,13 @@ 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
55
|
aiohttp = ">=3.10.2"
|
|
56
56
|
|
|
57
57
|
[tool.poetry.dev-dependencies]
|
|
58
58
|
black = ">=24.3.0"
|
|
59
|
-
pytest = ">=8.
|
|
59
|
+
pytest = ">=8.3.1"
|
|
60
60
|
pytest-asyncio = "^0.23.8"
|
|
61
61
|
pytest-mock = "*"
|
|
62
62
|
pytest-recording = "^0.13.2"
|
|
@@ -64,7 +64,7 @@ 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,18 @@ 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] = {
|
|
188
|
+
"id": value["id"],
|
|
189
|
+
"name": value["name"],
|
|
190
|
+
"url": value["url"]
|
|
191
|
+
}
|
|
192
|
+
elif key == "cloud_app_risk_profile":
|
|
193
|
+
# Special handling for cloudAppRiskProfile
|
|
194
|
+
if isinstance(value, dict) and "id" in value:
|
|
195
|
+
payload[payload_key] = {"id": value["id"]}
|
|
184
196
|
else:
|
|
185
197
|
# General case for ID transformations
|
|
186
198
|
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
|
"""
|