Skip to content

Commit a36fe09

Browse files
github-actions[bot]MScottBlake
authored andcommitted
[auto] Updated Kandji SDK
1 parent 3c6e784 commit a36fe09

File tree

8 files changed

+212
-106
lines changed

8 files changed

+212
-106
lines changed

.github/workflows/python.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ name: kandji Python package
77

88
on: [push, pull_request]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.13.0
1+
7.14.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
137137

138138
- API version: 1.0.0
139139
- Package version: 1.0.0
140-
- Generator version: 7.13.0
140+
- Generator version: 7.14.0
141141
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
142142
For more information, please visit [https://github.com/MScottBlake/kandji-openapi](https://github.com/MScottBlake/kandji-openapi)
143143

docs/AuditLogApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ List audit events
1515
<p>List audit log events from the Kandji Activity module.</p>
1616
<p>Returns events related to</p>
1717
<ul>
18-
<li><p>Blueprint and Library Item creation, updates, and deletions (CUD)</p>
18+
<li><p>Blueprint and Library Item creation, updates, and deletions (Create, Update, Delete)</p>
1919
</li>
2020
<li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p>
2121
</li>
2222
<li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p>
2323
</li>
2424
<li><p>User directory events (including directory user deletions)</p>
2525
</li>
26-
<li><p>Administrative actions (tenant owner updates, API token management (CUD))</p>
26+
<li><p>Administrative actions (tenant owner updates, API token management (Create, Update, Delete))</p>
2727
</li>
2828
<li><p>Admin user management activities</p>
2929
</li>
30-
<li><p>Vulnerability management detections and remediations (for customers with this feature)</p>
30+
<li><p>Vulnerability management events for detections and remediations (for customers with this feature)</p>
31+
</li>
32+
<li><p>Endpoint Detection and Response events for detections, remediations, and admin actions (for customers with this feature)</p>
3133
</li>
3234
</ul>
3335

kandji/__init__.py

Lines changed: 178 additions & 87 deletions
Large diffs are not rendered by default.

kandji/api/audit_log_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def list_audit_events(
6363
) -> AuditLogListAuditEvents200Response:
6464
"""List audit events
6565
66-
<p>List audit log events from the Kandji Activity module.</p> <p>Returns events related to</p> <ul> <li><p>Blueprint and Library Item creation, updates, and deletions (CUD)</p> </li> <li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p> </li> <li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p> </li> <li><p>User directory events (including directory user deletions)</p> </li> <li><p>Administrative actions (tenant owner updates, API token management (CUD))</p> </li> <li><p>Admin user management activities</p> </li> <li><p>Vulnerability management detections and remediations (for customers with this feature)</p> </li> </ul>
66+
<p>List audit log events from the Kandji Activity module.</p> <p>Returns events related to</p> <ul> <li><p>Blueprint and Library Item creation, updates, and deletions (Create, Update, Delete)</p> </li> <li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p> </li> <li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p> </li> <li><p>User directory events (including directory user deletions)</p> </li> <li><p>Administrative actions (tenant owner updates, API token management (Create, Update, Delete))</p> </li> <li><p>Admin user management activities</p> </li> <li><p>Vulnerability management events for detections and remediations (for customers with this feature)</p> </li> <li><p>Endpoint Detection and Response events for detections, remediations, and admin actions (for customers with this feature)</p> </li> </ul>
6767
6868
:param limit: A max upper <code>limit</code> is set at 500 records returned per request. Pagination should be used using the cursor in the <code>next</code> key to request more results. Additionally, parameter queries can be added to a request to filter the results. (required)
6969
:type limit: str
@@ -146,7 +146,7 @@ def list_audit_events_with_http_info(
146146
) -> ApiResponse[AuditLogListAuditEvents200Response]:
147147
"""List audit events
148148
149-
<p>List audit log events from the Kandji Activity module.</p> <p>Returns events related to</p> <ul> <li><p>Blueprint and Library Item creation, updates, and deletions (CUD)</p> </li> <li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p> </li> <li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p> </li> <li><p>User directory events (including directory user deletions)</p> </li> <li><p>Administrative actions (tenant owner updates, API token management (CUD))</p> </li> <li><p>Admin user management activities</p> </li> <li><p>Vulnerability management detections and remediations (for customers with this feature)</p> </li> </ul>
149+
<p>List audit log events from the Kandji Activity module.</p> <p>Returns events related to</p> <ul> <li><p>Blueprint and Library Item creation, updates, and deletions (Create, Update, Delete)</p> </li> <li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p> </li> <li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p> </li> <li><p>User directory events (including directory user deletions)</p> </li> <li><p>Administrative actions (tenant owner updates, API token management (Create, Update, Delete))</p> </li> <li><p>Admin user management activities</p> </li> <li><p>Vulnerability management events for detections and remediations (for customers with this feature)</p> </li> <li><p>Endpoint Detection and Response events for detections, remediations, and admin actions (for customers with this feature)</p> </li> </ul>
150150
151151
:param limit: A max upper <code>limit</code> is set at 500 records returned per request. Pagination should be used using the cursor in the <code>next</code> key to request more results. Additionally, parameter queries can be added to a request to filter the results. (required)
152152
:type limit: str
@@ -229,7 +229,7 @@ def list_audit_events_without_preload_content(
229229
) -> RESTResponseType:
230230
"""List audit events
231231
232-
<p>List audit log events from the Kandji Activity module.</p> <p>Returns events related to</p> <ul> <li><p>Blueprint and Library Item creation, updates, and deletions (CUD)</p> </li> <li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p> </li> <li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p> </li> <li><p>User directory events (including directory user deletions)</p> </li> <li><p>Administrative actions (tenant owner updates, API token management (CUD))</p> </li> <li><p>Admin user management activities</p> </li> <li><p>Vulnerability management detections and remediations (for customers with this feature)</p> </li> </ul>
232+
<p>List audit log events from the Kandji Activity module.</p> <p>Returns events related to</p> <ul> <li><p>Blueprint and Library Item creation, updates, and deletions (Create, Update, Delete)</p> </li> <li><p>Access to sensitive data (such as FileVault keys and recovery keys)</p> </li> <li><p>Device lifecycle events (enrollment, deletion, MDM removal, blueprint changes)</p> </li> <li><p>User directory events (including directory user deletions)</p> </li> <li><p>Administrative actions (tenant owner updates, API token management (Create, Update, Delete))</p> </li> <li><p>Admin user management activities</p> </li> <li><p>Vulnerability management events for detections and remediations (for customers with this feature)</p> </li> <li><p>Endpoint Detection and Response events for detections, remediations, and admin actions (for customers with this feature)</p> </li> </ul>
233233
234234
:param limit: A max upper <code>limit</code> is set at 500 records returned per request. Pagination should be used using the cursor in the <code>next</code> key to request more results. Additionally, parameter queries can be added to a request to filter the results. (required)
235235
:type limit: str

kandji/api_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ def sanitize_for_serialization(self, obj):
383383
else:
384384
obj_dict = obj.__dict__
385385

386+
if isinstance(obj_dict, list):
387+
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
388+
return self.sanitize_for_serialization(obj_dict)
389+
386390
return {
387391
key: self.sanitize_for_serialization(val)
388392
for key, val in obj_dict.items()

pyproject.toml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
[tool.poetry]
1+
[project]
22
name = "kandji"
33
version = "1.0.0"
44
description = "Kandji API"
5-
authors = ["Scott Blake <[email protected]>"]
5+
authors = [
6+
{name = "Scott Blake",email = "[email protected]"},
7+
]
68
license = "MIT License"
79
readme = "README.md"
8-
repository = "https://github.com/MScottBlake/kandji-python-sdk"
910
keywords = ["OpenAPI", "OpenAPI-Generator", "Kandji API"]
10-
include = ["kandji/py.typed"]
11+
requires-python = ">=3.9"
1112

12-
[tool.poetry.dependencies]
13-
python = "^3.9"
13+
dependencies = [
14+
"urllib3 (>=2.1.0,<3.0.0)",
15+
"python-dateutil (>=2.8.2)",
16+
"pydantic (>=2)",
17+
"typing-extensions (>=4.7.1)"
18+
]
1419

15-
urllib3 = ">= 2.1.0, < 3.0.0"
16-
python-dateutil = ">= 2.8.2"
17-
pydantic = ">= 2"
18-
typing-extensions = ">= 4.7.1"
20+
[project.urls]
21+
Repository = "https://github.com/MScottBlake/kandji-python-sdk"
22+
23+
[tool.poetry]
24+
requires-poetry = ">=2.0"
1925

20-
[tool.poetry.dev-dependencies]
26+
[tool.poetry.group.dev.dependencies]
2127
pytest = ">= 7.2.1"
2228
pytest-cov = ">= 2.8.1"
2329
tox = ">= 3.9.0"

0 commit comments

Comments
 (0)