zscaler-sdk-python 0.1.7__tar.gz → 0.1.8__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.1.7 → zscaler_sdk_python-0.1.8}/PKG-INFO +1 -1
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/pyproject.toml +1 -1
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/__init__.py +1 -1
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/policies.py +2 -2
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/privileged_remote_access.py +5 -10
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/LICENSE.md +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/README.md +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/cache/__init__.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/cache/cache.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/cache/no_op_cache.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/cache/zscaler_cache.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/constants.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/errors/__init__.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/errors/error.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/errors/http_error.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/errors/zscaler_api_error.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/exceptions/__init__.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/exceptions/exceptions.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/logger.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/ratelimiter/__init__.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/ratelimiter/ratelimiter.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/user_agent.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/utils.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/__init__.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/activate.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/admin_and_role_management.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/apptotal.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/audit_logs.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/authentication_settings.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/client.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/cloud_apps.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/device_management.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/dlp.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/errors.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/firewall.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/forwarding_control.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/isolation_profile.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/labels.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/locations.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/sandbox.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/security.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/ssl_inspection.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/traffic.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/url_categories.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/url_filtering.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/users.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/web_dlp.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/workload_groups.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/zpa_gateway.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/README.md +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/__init__.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/app_segments.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/app_segments_inspection.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/app_segments_pra.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/certificates.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/client.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/cloud_connector_groups.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/connectors.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/emergency_access.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/errors.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/idp.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/inspection.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/isolation_profile.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/lss.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/machine_groups.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/posture_profiles.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/provisioning.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/saml_attributes.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/scim_attributes.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/scim_groups.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/segment_groups.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/server_groups.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/servers.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/service_edges.py +0 -0
- {zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/trusted_networks.py +0 -0
|
@@ -158,7 +158,7 @@ class PolicySetsAPI:
|
|
|
158
158
|
| ``credential``
|
|
159
159
|
| ``capabilities``
|
|
160
160
|
| ``siem``
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
rule_id (str): The unique identifier for the policy rule.
|
|
163
163
|
|
|
164
164
|
Returns:
|
|
@@ -255,7 +255,7 @@ class PolicySetsAPI:
|
|
|
255
255
|
| ``credential``
|
|
256
256
|
| ``capabilities``
|
|
257
257
|
| ``siem``
|
|
258
|
-
|
|
258
|
+
|
|
259
259
|
rule_id (str):
|
|
260
260
|
The unique identifier for the policy rule.
|
|
261
261
|
|
{zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zpa/privileged_remote_access.py
RENAMED
|
@@ -125,12 +125,13 @@ class PrivilegedRemoteAccessAPI:
|
|
|
125
125
|
for key, value in kwargs.items():
|
|
126
126
|
payload[snake_to_camel(key)] = value
|
|
127
127
|
|
|
128
|
-
response = self.rest.post("
|
|
128
|
+
response = self.rest.post("praPortal", json=payload)
|
|
129
129
|
if isinstance(response, Response):
|
|
130
|
+
# this is only true when the creation failed (status code is not 2xx)
|
|
130
131
|
status_code = response.status_code
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return
|
|
132
|
+
# Handle error response
|
|
133
|
+
raise Exception(f"API call failed with status {status_code}: {response.json()}")
|
|
134
|
+
return response
|
|
134
135
|
|
|
135
136
|
def update_portal(self, portal_id: str, **kwargs) -> Box:
|
|
136
137
|
"""
|
|
@@ -475,12 +476,6 @@ class PrivilegedRemoteAccessAPI:
|
|
|
475
476
|
|
|
476
477
|
"""
|
|
477
478
|
return self.rest.get(f"credential/{credential_id}")
|
|
478
|
-
# response = self.rest.get("/credential/%s" % (credential_id))
|
|
479
|
-
# if isinstance(response, Response):
|
|
480
|
-
# status_code = response.status_code
|
|
481
|
-
# if status_code != 200:
|
|
482
|
-
# return None
|
|
483
|
-
# return response
|
|
484
479
|
|
|
485
480
|
def add_credential(
|
|
486
481
|
self,
|
|
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.1.7 → zscaler_sdk_python-0.1.8}/zscaler/zia/admin_and_role_management.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zscaler_sdk_python-0.1.7 → zscaler_sdk_python-0.1.8}/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.1.7 → zscaler_sdk_python-0.1.8}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|