zscaler-sdk-python 0.1.4__tar.gz → 0.1.6__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.
Files changed (75) hide show
  1. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/PKG-INFO +2 -1
  2. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/README.md +1 -0
  3. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/pyproject.toml +1 -1
  4. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/__init__.py +2 -2
  5. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/__init__.py +3 -0
  6. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/client.py +5 -5
  7. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/lss.py +42 -32
  8. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/policies.py +35 -2
  9. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/LICENSE.md +0 -0
  10. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/cache/__init__.py +0 -0
  11. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/cache/cache.py +0 -0
  12. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/cache/no_op_cache.py +0 -0
  13. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/cache/zscaler_cache.py +0 -0
  14. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/constants.py +0 -0
  15. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/errors/__init__.py +0 -0
  16. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/errors/error.py +0 -0
  17. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/errors/http_error.py +0 -0
  18. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/errors/zscaler_api_error.py +0 -0
  19. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/exceptions/__init__.py +0 -0
  20. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/exceptions/exceptions.py +0 -0
  21. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/logger.py +0 -0
  22. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/ratelimiter/__init__.py +0 -0
  23. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/ratelimiter/ratelimiter.py +0 -0
  24. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/user_agent.py +0 -0
  25. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/utils.py +0 -0
  26. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/__init__.py +0 -0
  27. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/activate.py +0 -0
  28. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/admin_and_role_management.py +0 -0
  29. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/apptotal.py +0 -0
  30. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/audit_logs.py +0 -0
  31. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/authentication_settings.py +0 -0
  32. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/client.py +0 -0
  33. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/cloud_apps.py +0 -0
  34. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/device_management.py +0 -0
  35. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/dlp.py +0 -0
  36. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/errors.py +0 -0
  37. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/firewall.py +0 -0
  38. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/forwarding_control.py +0 -0
  39. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/isolation_profile.py +0 -0
  40. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/labels.py +0 -0
  41. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/locations.py +0 -0
  42. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/sandbox.py +0 -0
  43. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/security.py +0 -0
  44. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/ssl_inspection.py +0 -0
  45. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/traffic.py +0 -0
  46. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/url_categories.py +0 -0
  47. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/url_filtering.py +0 -0
  48. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/users.py +0 -0
  49. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/web_dlp.py +0 -0
  50. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/workload_groups.py +0 -0
  51. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zia/zpa_gateway.py +0 -0
  52. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/README.md +0 -0
  53. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/app_segments.py +0 -0
  54. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/app_segments_inspection.py +0 -0
  55. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/app_segments_pra.py +0 -0
  56. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/certificates.py +0 -0
  57. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/cloud_connector_groups.py +0 -0
  58. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/connectors.py +0 -0
  59. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/emergency_access.py +0 -0
  60. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/errors.py +0 -0
  61. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/idp.py +0 -0
  62. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/inspection.py +0 -0
  63. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/isolation_profile.py +0 -0
  64. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/machine_groups.py +0 -0
  65. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/posture_profiles.py +0 -0
  66. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/privileged_remote_access.py +0 -0
  67. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/provisioning.py +0 -0
  68. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/saml_attributes.py +0 -0
  69. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/scim_attributes.py +0 -0
  70. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/scim_groups.py +0 -0
  71. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/segment_groups.py +0 -0
  72. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/server_groups.py +0 -0
  73. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/servers.py +0 -0
  74. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/zscaler/zpa/service_edges.py +0 -0
  75. {zscaler_sdk_python-0.1.4 → zscaler_sdk_python-0.1.6}/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.1.4
3
+ Version: 0.1.6
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
@@ -54,6 +54,7 @@ Description-Content-Type: text/markdown
54
54
  [![Documentation Status](https://readthedocs.org/projects/zscaler-sdk-python/badge/?version=latest)](https://zscaler-sdk-python.readthedocs.io/en/latest/?badge=latest)
55
55
  [![Latest version released on PyPi](https://img.shields.io/pypi/v/zscaler-sdk-python.svg)](https://pypi.org/project/zscaler-sdk-python)
56
56
  [![PyPI pyversions](https://img.shields.io/pypi/pyversions/zscaler-sdk-python.svg)](https://pypi.python.org/pypi/zscaler-sdk-python/)
57
+ [![codecov](https://codecov.io/gh/zscaler/zscaler-sdk-python/graph/badge.svg?token=56B53PITU8)](https://codecov.io/gh/zscaler/zscaler-sdk-python)
57
58
  [![Zscaler Community](https://img.shields.io/badge/zscaler-community-blue)](https://community.zscaler.com/)
58
59
 
59
60
  ## Support Disclaimer
@@ -5,6 +5,7 @@
5
5
  [![Documentation Status](https://readthedocs.org/projects/zscaler-sdk-python/badge/?version=latest)](https://zscaler-sdk-python.readthedocs.io/en/latest/?badge=latest)
6
6
  [![Latest version released on PyPi](https://img.shields.io/pypi/v/zscaler-sdk-python.svg)](https://pypi.org/project/zscaler-sdk-python)
7
7
  [![PyPI pyversions](https://img.shields.io/pypi/pyversions/zscaler-sdk-python.svg)](https://pypi.python.org/pypi/zscaler-sdk-python/)
8
+ [![codecov](https://codecov.io/gh/zscaler/zscaler-sdk-python/graph/badge.svg?token=56B53PITU8)](https://codecov.io/gh/zscaler/zscaler-sdk-python)
8
9
  [![Zscaler Community](https://img.shields.io/badge/zscaler-community-blue)](https://community.zscaler.com/)
9
10
 
10
11
  ## Support Disclaimer
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "zscaler-sdk-python"
3
- version = "0.1.4"
3
+ version = "0.1.6"
4
4
  description = "Official Python SDK for the Zscaler Products (Beta)"
5
5
  authors = ["Zscaler, Inc. <devrel@zscaler.com>"]
6
6
  license = "MIT"
@@ -16,7 +16,7 @@
16
16
 
17
17
  """Official Python SDK for the Zscaler Products (Beta)
18
18
 
19
- Zscaler SDK Python is an SDK that provides a uniform and easy-to-use
19
+ Zscaler SDK Python is an SDK that provides a uniform and easy-to-use
20
20
  interface for each of the Zscaler product APIs.
21
21
 
22
22
  Documentation available at https://zscaler-sdk-python.readthedocs.io
@@ -29,7 +29,7 @@ __license__ = "MIT"
29
29
  __contributors__ = [
30
30
  "William Guilherme",
31
31
  ]
32
- __version__ = "0.1.4"
32
+ __version__ = "0.1.6"
33
33
 
34
34
  from zscaler.zia import ZIAClientHelper # noqa
35
35
  from zscaler.zpa import ZPAClientHelper # noqa
@@ -114,6 +114,7 @@ class ZPAClientHelper(ZPAClient):
114
114
  self.url = f"{self.baseurl}/mgmtconfig/v1/admin/customers/{customer_id}"
115
115
  self.user_config_url = f"{self.baseurl}/userconfig/v1/customers/{customer_id}"
116
116
  self.v2_url = f"{self.baseurl}/mgmtconfig/v2/admin/customers/{customer_id}"
117
+ self.v2_lss_url = f"{self.baseurl}/mgmtconfig/v2/admin/lssConfig/customers/{customer_id}"
117
118
  self.cbi_url = f"{self.baseurl}/cbiconfig/cbi/api/customers/{customer_id}"
118
119
  self.fail_safe = fail_safe
119
120
  # Cache setup
@@ -182,6 +183,8 @@ class ZPAClientHelper(ZPAClient):
182
183
  api = self.url
183
184
  elif api_version == "v2":
184
185
  api = self.v2_url
186
+ elif api_version == "v2_lss":
187
+ api = self.v2_lss_url
185
188
  elif api_version == "userconfig_v1":
186
189
  api = self.user_config_url
187
190
 
@@ -33,7 +33,7 @@ class ZPAClient:
33
33
  - path (str): API endpoint path.
34
34
  - json (str): the request body.
35
35
  - params (dict): the query params
36
- - api_version (str): the api version, availbale values: v1, v2, userconfig_v1, cbiconfig_v1
36
+ - api_version (str): the api version, availbale values: v1, v2, v2_lss, userconfig_v1, cbiconfig_v1
37
37
  """
38
38
  pass
39
39
 
@@ -64,7 +64,7 @@ class ZPAClient:
64
64
  - data_key_name (str): list field key.
65
65
  - data_per_page: the page size
66
66
  - params (dict): the query params
67
- - api_version (str): the api version, availbale values: v1, v2, userconfig_v1 or cbiconfig
67
+ - api_version (str): the api version, availbale values: v1, v2, v2_lss, userconfig_v1 or cbiconfig
68
68
  """
69
69
  pass
70
70
 
@@ -86,7 +86,7 @@ class ZPAClient:
86
86
  - path (str): API endpoint path.
87
87
  - json (str): the request body.
88
88
  - params (dict): the query params
89
- - api_version (str): the api version, availbale values: v1, v2, userconfig_v1 or cbiconfig
89
+ - api_version (str): the api version, availbale values: v1, v2, v2_lss, userconfig_v1 or cbiconfig
90
90
  """
91
91
  pass
92
92
 
@@ -97,7 +97,7 @@ class ZPAClient:
97
97
  - path (str): API endpoint path.
98
98
  - json (str): the request body.
99
99
  - params (dict): the query params
100
- - api_version (str): the api version, availbale values: v1, v2, userconfig_v1 or cbiconfig
100
+ - api_version (str): the api version, availbale values: v1, v2, v2_lss, userconfig_v1 or cbiconfig
101
101
  """
102
102
  pass
103
103
 
@@ -108,6 +108,6 @@ class ZPAClient:
108
108
  - path (str): API endpoint path.
109
109
  - json (str): the request body.
110
110
  - params (dict): the query params
111
- - api_version (str): the api version, availbale values: v1, v2, userconfig_v1 or cbiconfig
111
+ - api_version (str): the api version, availbale values: v1, v2, v2_lss, userconfig_v1 or cbiconfig
112
112
  """
113
113
  pass
@@ -88,42 +88,41 @@ class LSSConfigControllerAPI:
88
88
 
89
89
  return template
90
90
 
91
- def get_client_types(self) -> Box:
91
+ def get_client_types(self, client_type=None) -> Box:
92
92
  """
93
- Returns all available LSS Client Types.
93
+ Returns all available LSS Client Types or a specific Client Type if specified.
94
94
 
95
- Client Types are used when creating LSS Receiver configs. ZPA uses an internal code for Client Types, e.g.
96
- ``zpn_client_type_ip_anchoring`` is the Client Type for a ZIA Service Edge. zscaler-sdk-python inverts the key/value so
97
- that you can perform a lookup using a human-readable name in your code (e.g. ``cloud_connector``).
95
+ Client Types are used when creating LSS Receiver configs.
96
+ ZPA uses an internal code for Client Types, e.g.
97
+ `zpn_client_type_ip_anchoring` is the Client Type for a ZIA Service Edge.
98
+ The zscaler-sdk-python inverts the key/value so
99
+ that you can perform a lookup using a human-readable name in your code (e.g. `cloud_connector`).
100
+
101
+ Args:
102
+ client_type_name (str, optional): The human-readable name of the client type to filter for.
98
103
 
99
104
  Returns:
100
- :obj:`Box`: Dictionary containing all LSS Client Types with human-readable name as the key.
105
+ :obj:`Box`: Dictionary containing all or a specific LSS Client Type with human-readable name as the key.
101
106
 
102
107
  Examples:
103
108
  Print all LSS Client Types:
104
-
105
109
  >>> print(zpa.lss.get_client_types())
106
110
 
111
+ Print only the 'web_browser' Client Type:
112
+ >>> print(zpa.lss.get_client_types('web_browser'))
107
113
  """
108
- # ZPA returns a dictionary of client types but the keys are the internal ZPA codes, which our users probably
109
- # won't know. This method reverses the dictionary, converts the 'normalised' Client Type name to snake_case
110
- # before returning it so that a lookup can be easily performed using the Client Type name in plain english.
111
- #
112
- # Example before:
113
- # {'zpn_client_type_exporter': 'Web Browser'}
114
- # Example after:
115
- # {'web_browser': 'zpn_client_type_exporter'}
116
-
117
- response = requests.get(f"{self.v2_admin_url}/clientTypes", headers=self.rest.headers)
118
-
114
+ response = self.rest.send("GET", "clientTypes", api_version="v2_lss")
119
115
  if response.status_code == 200:
120
- return response.json()
116
+ client_types = response.json()
117
+ reverse_map = {v.lower().replace(" ", "_"): k for k, v in client_types.items()}
118
+ box = Box(reverse_map)
119
+
120
+ if client_type and client_type in box:
121
+ return Box({client_type: box[client_type]})
122
+ return box
121
123
  else:
122
124
  response.raise_for_status()
123
125
 
124
- reverse_map = {v.lower().replace(" ", "_"): k for k, v in response.items()}
125
- return Box(reverse_map)
126
-
127
126
  def list_configs(self, **kwargs) -> BoxList:
128
127
  """
129
128
  Returns all configured LSS receivers.
@@ -167,32 +166,43 @@ class LSSConfigControllerAPI:
167
166
  >>> print(zpa.lss.get_config('99999'))
168
167
 
169
168
  """
170
- response = self.rest.get("/lssConfig/%s" % (lss_id), api_version="v2")
169
+ response = self.rest.send("GET", "/lssConfig/%s" % (lss_id), api_version="v2")
171
170
  if isinstance(response, Response):
172
171
  status_code = response.status_code
173
172
  if status_code != 200:
174
173
  return None
175
174
  return response
176
175
 
177
- def get_log_formats(self) -> Box:
176
+ def get_log_formats(self, log_type=None) -> Box:
178
177
  """
179
- Returns all available pre-configured LSS Log Formats.
178
+ Returns all available pre-configured LSS Log Formats or a specific log format if specified.
180
179
 
181
- LSS Log Formats are provided as either CSV, JSON or TSV. LSS Log Format values can be used when
180
+ LSS Log Formats are provided as either CSV, JSON, or TSV. The values can be used when
182
181
  creating or updating LSS Log Receiver configs.
183
182
 
183
+ Args:
184
+ log_type_name (str, optional): The name of the log type to retrieve (e.g., 'zpn_ast_comprehensive_stats').
185
+
184
186
  Returns:
185
187
  :obj:`Box`: Dictionary containing pre-configured LSS Log Formats.
186
188
 
187
189
  Examples:
188
- >>> for item in zpa.lss.get_log_formats():
189
- ... print(item)
190
-
190
+ >>> print(zpa.lss.get_log_formats())
191
+ >>> print(zpa.lss.get_log_formats('zpn_ast_comprehensive_stats'))
191
192
  """
192
- response = requests.get(f"{self.v2_admin_url}/logType/formats", headers=self.rest.headers)
193
-
193
+ response = self.rest.send("GET", "lssConfig/logType/formats", api_version="v2")
194
194
  if response.status_code == 200:
195
- return response.json()
195
+ formats = response.json()
196
+ if log_type:
197
+ # Filter and return only the requested log type
198
+ specific_format = formats.get(log_type, None)
199
+ if specific_format:
200
+ return Box({log_type: specific_format})
201
+ else:
202
+ return Box() # or raise an Exception if preferred
203
+ else:
204
+ # Return all formats
205
+ return Box(formats)
196
206
  else:
197
207
  response.raise_for_status()
198
208
 
@@ -34,12 +34,16 @@ class PolicySetsAPI:
34
34
  "client_forwarding": "CLIENT_FORWARDING_POLICY",
35
35
  "isolation": "ISOLATION_POLICY",
36
36
  "inspection": "INSPECTION_POLICY",
37
+ "redirection": "REDIRECTION_POLICY",
38
+ "credential": "CREDENTIAL_POLICY",
39
+ "capabilities": "CAPABILITIES_POLICY",
37
40
  "siem": "SIEM_POLICY",
38
41
  }
39
42
 
40
43
  reformat_params = [
41
44
  ("app_server_group_ids", "appServerGroups"),
42
45
  ("app_connector_group_ids", "appConnectorGroups"),
46
+ ("service_edge_group_ids", "serviceEdgeGroups"),
43
47
  ]
44
48
 
45
49
  @staticmethod
@@ -148,7 +152,13 @@ class PolicySetsAPI:
148
152
  | ``access``
149
153
  | ``timeout``
150
154
  | ``client_forwarding``
155
+ | ``isolation``
156
+ | ``inspection``
157
+ | ``redirection``
158
+ | ``credential``
159
+ | ``capabilities``
151
160
  | ``siem``
161
+
152
162
  rule_id (str): The unique identifier for the policy rule.
153
163
 
154
164
  Returns:
@@ -197,7 +207,12 @@ class PolicySetsAPI:
197
207
  | ``access`` - returns Access Policy rules
198
208
  | ``timeout`` - returns Timeout Policy rules
199
209
  | ``client_forwarding`` - returns Client Forwarding Policy rules
200
-
210
+ | ``isolation`` - returns Isolation Policy rules
211
+ | ``inspection`` - returns Inspection Policy rules
212
+ | ``redirection`` - returns Redirection Policy rules
213
+ | ``credential`` - returns Credential Policy rules
214
+ | ``capabilities`` - returns Capabilities Policy rules
215
+ | ``siem`` - returns SIEM Policy rules
201
216
  Returns:
202
217
  :obj:`list`: A list of all policy rules that match the requested type.
203
218
 
@@ -234,7 +249,13 @@ class PolicySetsAPI:
234
249
  | ``access``
235
250
  | ``timeout``
236
251
  | ``client_forwarding``
252
+ | ``isolation``
253
+ | ``inspection``
254
+ | ``redirection``
255
+ | ``credential``
256
+ | ``capabilities``
237
257
  | ``siem``
258
+
238
259
  rule_id (str):
239
260
  The unique identifier for the policy rule.
240
261
 
@@ -753,6 +774,12 @@ class PolicySetsAPI:
753
774
  | ``access``
754
775
  | ``timeout``
755
776
  | ``client_forwarding``
777
+ | ``isolation``
778
+ | ``inspection``
779
+ | ``redirection``
780
+ | ``credential``
781
+ | ``capabilities``
782
+ | ``siem``
756
783
 
757
784
  Returns:
758
785
  :obj:`Box`: The updated policy rule resource record.
@@ -768,7 +795,7 @@ class PolicySetsAPI:
768
795
  # Get policy id for specified policy type
769
796
  policy_id = self.get_policy(policy_type).id
770
797
 
771
- resp = self._put(f"policySet/{policy_id}/rule/{rule_id}/reorder/{rule_order}").status_code
798
+ resp = self.rest.put(f"policySet/{policy_id}/rule/{rule_id}/reorder/{rule_order}").status_code
772
799
 
773
800
  if resp == 204:
774
801
  return self.get_rule(policy_type, rule_id)
@@ -803,6 +830,12 @@ class PolicySetsAPI:
803
830
  | ``access``
804
831
  | ``timeout``
805
832
  | ``client_forwarding``
833
+ | ``isolation``
834
+ | ``inspection``
835
+ | ``redirection``
836
+ | ``credential``
837
+ | ``capabilities``
838
+ | ``siem``
806
839
 
807
840
  """
808
841
  # Get policy id for specified policy type