zscaler-sdk-python 0.9.1__tar.gz → 0.9.3__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.9.1 → zscaler_sdk_python-0.9.3}/PKG-INFO +3 -3
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/pyproject.toml +3 -3
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/__init__.py +1 -1
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/dlp.py +4 -30
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/connectors.py +30 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/LICENSE.md +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/README.md +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/cache/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/cache/cache.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/cache/no_op_cache.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/cache/zscaler_cache.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/constants.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/errors/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/errors/error.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/errors/http_error.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/errors/zscaler_api_error.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/exceptions/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/exceptions/exceptions.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/logger.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/ratelimiter/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/ratelimiter/ratelimiter.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/user_agent.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/utils.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcc/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcc/client.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcc/devices.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcc/secrets.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/activation.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/client.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/ecgroups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/locations.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/provisioning.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/admin.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/alerts.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/apps.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/devices.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/filters.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/inventory.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/troubleshooting.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/users.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zdx/zdx_client.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/activate.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/apptotal.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/audit_logs.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/authentication_settings.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/client.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/cloud_apps.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/cloudappcontrol.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/device_management.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/errors.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/firewall.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/forwarding_control.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/isolation_profile.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/labels.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/locations.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/sandbox.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/security.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/ssl_inspection.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/traffic.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/url_categories.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/url_filtering.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/users.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/web_dlp.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/workload_groups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/zpa_gateway.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/README.md +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/__init__.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/app_segments.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/app_segments_inspection.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/app_segments_pra.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/authdomains.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/certificates.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/client.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/cloud_connector_groups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/emergency_access.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/errors.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/idp.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/inspection.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/isolation.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/lss.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/machine_groups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/microtenants.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/policies.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/posture_profiles.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/privileged_remote_access.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/provisioning.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/saml_attributes.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/scim_attributes.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/scim_groups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/segment_groups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/server_groups.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/servers.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/service_edges.py +0 -0
- {zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/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.9.
|
|
3
|
+
Version: 0.9.3
|
|
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
|
|
@@ -30,13 +30,13 @@ Requires-Dist: charset-normalizer
|
|
|
30
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.10)
|
|
34
34
|
Requires-Dist: okta (>=2.9.7)
|
|
35
35
|
Requires-Dist: pycryptodomex
|
|
36
36
|
Requires-Dist: pydash (>=8.0.3) ; extra == "dev"
|
|
37
37
|
Requires-Dist: python-box (>=7.2.0)
|
|
38
38
|
Requires-Dist: python-dateutil
|
|
39
|
-
Requires-Dist: pytz
|
|
39
|
+
Requires-Dist: pytz (>=2024.2)
|
|
40
40
|
Requires-Dist: pyyaml
|
|
41
41
|
Requires-Dist: requests (>=2.32.3)
|
|
42
42
|
Requires-Dist: responses (>=0.25.3)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "zscaler-sdk-python"
|
|
3
|
-
version = "0.9.
|
|
3
|
+
version = "0.9.3"
|
|
4
4
|
description = "Official Python SDK for the Zscaler Products (Beta)"
|
|
5
5
|
authors = ["Zscaler, Inc. <devrel@zscaler.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -32,7 +32,7 @@ python = ">=3.9,<4.0"
|
|
|
32
32
|
arrow = "*"
|
|
33
33
|
certifi = ">=2024.2.2"
|
|
34
34
|
charset-normalizer = "*"
|
|
35
|
-
idna = "
|
|
35
|
+
idna = ">=3.10"
|
|
36
36
|
python-box = ">=7.2.0"
|
|
37
37
|
python-dateutil = "*"
|
|
38
38
|
requests = ">=2.32.3"
|
|
@@ -47,7 +47,7 @@ pycryptodomex = "*"
|
|
|
47
47
|
aenum = "*"
|
|
48
48
|
pydash = ">=8.0.3"
|
|
49
49
|
flake8 = "*"
|
|
50
|
-
pytz = "
|
|
50
|
+
pytz = ">=2024.2"
|
|
51
51
|
black = ">=24.3.0"
|
|
52
52
|
# cryptography = ">=3.4,<43.0"
|
|
53
53
|
cryptography = ">=43.0.0"
|
|
@@ -398,38 +398,9 @@ class DLPAPI:
|
|
|
398
398
|
else:
|
|
399
399
|
return response
|
|
400
400
|
|
|
401
|
-
def add_dlp_engine(self, name: str, engine_expression=None, custom_dlp_engine=None, **kwargs) -> Box:
|
|
401
|
+
def add_dlp_engine(self, name: str, engine_expression=None, custom_dlp_engine=None, description=None, **kwargs) -> Box:
|
|
402
402
|
"""
|
|
403
403
|
Adds a new dlp engine.
|
|
404
|
-
Args:
|
|
405
|
-
name (str): The order of the rule, defaults to adding rule to bottom of list.
|
|
406
|
-
**kwargs: Optional keyword args.
|
|
407
|
-
|
|
408
|
-
Keyword Args:
|
|
409
|
-
description (str): The admin rank of the rule.
|
|
410
|
-
engine_expression (str, optional): The logical expression defining a DLP engine by
|
|
411
|
-
combining DLP dictionaries using logical operators: All (AND), Any (OR), Exclude (NOT),
|
|
412
|
-
and Sum (total number of content matches).
|
|
413
|
-
custom_dlp_engine (bool, optional): If true, indicates a custom DLP engine.
|
|
414
|
-
description (str, optional): The DLP engine description.
|
|
415
|
-
|
|
416
|
-
Returns:
|
|
417
|
-
:obj:`Box`: The updated dlp engine resource record.
|
|
418
|
-
|
|
419
|
-
Examples:
|
|
420
|
-
Update the dlp engine:
|
|
421
|
-
|
|
422
|
-
>>> zia.dlp.add_dlp_engine(name='new_dlp_engine',
|
|
423
|
-
... description='TT#1965432122',
|
|
424
|
-
... engine_expression="((D63.S > 1))",
|
|
425
|
-
... custom_dlp_engine=False)
|
|
426
|
-
|
|
427
|
-
Update a rule to enable custom dlp engine:
|
|
428
|
-
|
|
429
|
-
>>> zia.dlp.add_dlp_engine(name='new_dlp_engine',
|
|
430
|
-
... custom_dlp_engine=True,
|
|
431
|
-
... engine_expression="((D63.S > 1))",
|
|
432
|
-
... description="TT#1965232866")
|
|
433
404
|
"""
|
|
434
405
|
payload = {
|
|
435
406
|
"name": name,
|
|
@@ -441,6 +412,9 @@ class DLPAPI:
|
|
|
441
412
|
if custom_dlp_engine is not None:
|
|
442
413
|
payload["customDlpEngine"] = custom_dlp_engine
|
|
443
414
|
|
|
415
|
+
if description is not None:
|
|
416
|
+
payload["description"] = description
|
|
417
|
+
|
|
444
418
|
# Convert the payload keys to camelCase
|
|
445
419
|
camel_payload = {snake_to_camel(key): value for key, value in payload.items()}
|
|
446
420
|
|
|
@@ -561,3 +561,33 @@ class AppConnectorControllerAPI:
|
|
|
561
561
|
raise Exception(f"API call failed with status {response.status_code}: {response.json()}")
|
|
562
562
|
else:
|
|
563
563
|
raise Exception(f"API call failed with status {response.status_code}: {response.json()}")
|
|
564
|
+
|
|
565
|
+
def list_version_profiles(self, **kwargs) -> BoxList:
|
|
566
|
+
"""
|
|
567
|
+
Returns a list of all visible version profiles.
|
|
568
|
+
|
|
569
|
+
Args:
|
|
570
|
+
**kwargs: Optional keyword args.
|
|
571
|
+
|
|
572
|
+
Keyword Args:
|
|
573
|
+
**max_items (int, optional):
|
|
574
|
+
The maximum number of items to request before stopping iteration.
|
|
575
|
+
**max_pages (int, optional):
|
|
576
|
+
The maximum number of pages to request before stopping iteration.
|
|
577
|
+
**pagesize (int, optional):
|
|
578
|
+
Specifies the page size. The default size is 100, but the maximum size is 1000.
|
|
579
|
+
**search (str, optional):
|
|
580
|
+
The search string used to match against a department's name or comments attributes.
|
|
581
|
+
|
|
582
|
+
Returns:
|
|
583
|
+
:obj:`BoxList`: List containing all visibile version profiles.
|
|
584
|
+
|
|
585
|
+
Examples:
|
|
586
|
+
List all visibile version profiles:
|
|
587
|
+
|
|
588
|
+
>>> for profile in zpa.connectors.list_version_profiles():
|
|
589
|
+
... print(profile)
|
|
590
|
+
|
|
591
|
+
"""
|
|
592
|
+
list, _ = self.rest.get_paginated_data(path="/visible/versionProfiles", **kwargs, api_version="v1")
|
|
593
|
+
return list
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zcon/admin_and_role_management.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/admin_and_role_management.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zia/authentication_settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/app_segments_inspection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zscaler_sdk_python-0.9.1 → zscaler_sdk_python-0.9.3}/zscaler/zpa/privileged_remote_access.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|