Skip to content

Commit d3eb0ea

Browse files
Generate auditlog
1 parent 815ef3e commit d3eb0ea

17 files changed

Lines changed: 40 additions & 30 deletions

services/auditlog/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0e64886dd0847341800d7191ed193b75413be998
1+
4328b24be5d1c85147f3a30afd9a5199c10624d8

services/auditlog/src/stackit/auditlog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66
STACKIT Audit Log API
77
8-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
8+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
99
1010
The version of the OpenAPI document: 2.0
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)

services/auditlog/src/stackit/auditlog/api/default_api.py

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
1212
""" # noqa: E501
1313

14+
import warnings
1415
from datetime import datetime
1516
from typing import Any, Dict, List, Optional, Tuple, Union
1617
from uuid import UUID
@@ -82,7 +83,7 @@ def list_folder_audit_log_entries(
8283
_headers: Optional[Dict[StrictStr, Any]] = None,
8384
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
8485
) -> ListAuditLogEntriesResponse:
85-
"""Folder - Download audit log entries
86+
"""(Deprecated) Folder - Download audit log entries
8687
8788
Returns all audit log entries of the folder for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
8889
@@ -117,6 +118,7 @@ def list_folder_audit_log_entries(
117118
:type _host_index: int, optional
118119
:return: Returns the result object.
119120
""" # noqa: E501
121+
warnings.warn("GET /v2/folders/{folderId} is deprecated.", DeprecationWarning)
120122

121123
_param = self._list_folder_audit_log_entries_serialize(
122124
folder_id=folder_id,
@@ -186,7 +188,7 @@ def list_folder_audit_log_entries_with_http_info(
186188
_headers: Optional[Dict[StrictStr, Any]] = None,
187189
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
188190
) -> ApiResponse[ListAuditLogEntriesResponse]:
189-
"""Folder - Download audit log entries
191+
"""(Deprecated) Folder - Download audit log entries
190192
191193
Returns all audit log entries of the folder for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
192194
@@ -221,6 +223,7 @@ def list_folder_audit_log_entries_with_http_info(
221223
:type _host_index: int, optional
222224
:return: Returns the result object.
223225
""" # noqa: E501
226+
warnings.warn("GET /v2/folders/{folderId} is deprecated.", DeprecationWarning)
224227

225228
_param = self._list_folder_audit_log_entries_serialize(
226229
folder_id=folder_id,
@@ -290,7 +293,7 @@ def list_folder_audit_log_entries_without_preload_content(
290293
_headers: Optional[Dict[StrictStr, Any]] = None,
291294
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
292295
) -> RESTResponseType:
293-
"""Folder - Download audit log entries
296+
"""(Deprecated) Folder - Download audit log entries
294297
295298
Returns all audit log entries of the folder for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
296299
@@ -325,6 +328,7 @@ def list_folder_audit_log_entries_without_preload_content(
325328
:type _host_index: int, optional
326329
:return: Returns the result object.
327330
""" # noqa: E501
331+
warnings.warn("GET /v2/folders/{folderId} is deprecated.", DeprecationWarning)
328332

329333
_param = self._list_folder_audit_log_entries_serialize(
330334
folder_id=folder_id,
@@ -470,7 +474,7 @@ def list_organization_audit_log_entries(
470474
_headers: Optional[Dict[StrictStr, Any]] = None,
471475
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
472476
) -> ListAuditLogEntriesResponse:
473-
"""Organization - Download audit log entries
477+
"""(Deprecated) Organization - Download audit log entries
474478
475479
Returns all audit log entries of the organization for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
476480
@@ -505,6 +509,7 @@ def list_organization_audit_log_entries(
505509
:type _host_index: int, optional
506510
:return: Returns the result object.
507511
""" # noqa: E501
512+
warnings.warn("GET /v2/organizations/{organizationId} is deprecated.", DeprecationWarning)
508513

509514
_param = self._list_organization_audit_log_entries_serialize(
510515
organization_id=organization_id,
@@ -576,7 +581,7 @@ def list_organization_audit_log_entries_with_http_info(
576581
_headers: Optional[Dict[StrictStr, Any]] = None,
577582
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
578583
) -> ApiResponse[ListAuditLogEntriesResponse]:
579-
"""Organization - Download audit log entries
584+
"""(Deprecated) Organization - Download audit log entries
580585
581586
Returns all audit log entries of the organization for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
582587
@@ -611,6 +616,7 @@ def list_organization_audit_log_entries_with_http_info(
611616
:type _host_index: int, optional
612617
:return: Returns the result object.
613618
""" # noqa: E501
619+
warnings.warn("GET /v2/organizations/{organizationId} is deprecated.", DeprecationWarning)
614620

615621
_param = self._list_organization_audit_log_entries_serialize(
616622
organization_id=organization_id,
@@ -682,7 +688,7 @@ def list_organization_audit_log_entries_without_preload_content(
682688
_headers: Optional[Dict[StrictStr, Any]] = None,
683689
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
684690
) -> RESTResponseType:
685-
"""Organization - Download audit log entries
691+
"""(Deprecated) Organization - Download audit log entries
686692
687693
Returns all audit log entries of the organization for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
688694
@@ -717,6 +723,7 @@ def list_organization_audit_log_entries_without_preload_content(
717723
:type _host_index: int, optional
718724
:return: Returns the result object.
719725
""" # noqa: E501
726+
warnings.warn("GET /v2/organizations/{organizationId} is deprecated.", DeprecationWarning)
720727

721728
_param = self._list_organization_audit_log_entries_serialize(
722729
organization_id=organization_id,
@@ -860,7 +867,7 @@ def list_project_audit_log_entries(
860867
_headers: Optional[Dict[StrictStr, Any]] = None,
861868
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
862869
) -> ListAuditLogEntriesResponse:
863-
"""Project - Download audit log entries
870+
"""(Deprecated) Project - Download audit log entries
864871
865872
Returns all audit log entries of the project for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
866873
@@ -895,6 +902,7 @@ def list_project_audit_log_entries(
895902
:type _host_index: int, optional
896903
:return: Returns the result object.
897904
""" # noqa: E501
905+
warnings.warn("GET /v2/projects/{projectId} is deprecated.", DeprecationWarning)
898906

899907
_param = self._list_project_audit_log_entries_serialize(
900908
project_id=project_id,
@@ -964,7 +972,7 @@ def list_project_audit_log_entries_with_http_info(
964972
_headers: Optional[Dict[StrictStr, Any]] = None,
965973
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
966974
) -> ApiResponse[ListAuditLogEntriesResponse]:
967-
"""Project - Download audit log entries
975+
"""(Deprecated) Project - Download audit log entries
968976
969977
Returns all audit log entries of the project for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
970978
@@ -999,6 +1007,7 @@ def list_project_audit_log_entries_with_http_info(
9991007
:type _host_index: int, optional
10001008
:return: Returns the result object.
10011009
""" # noqa: E501
1010+
warnings.warn("GET /v2/projects/{projectId} is deprecated.", DeprecationWarning)
10021011

10031012
_param = self._list_project_audit_log_entries_serialize(
10041013
project_id=project_id,
@@ -1068,7 +1077,7 @@ def list_project_audit_log_entries_without_preload_content(
10681077
_headers: Optional[Dict[StrictStr, Any]] = None,
10691078
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
10701079
) -> RESTResponseType:
1071-
"""Project - Download audit log entries
1080+
"""(Deprecated) Project - Download audit log entries
10721081
10731082
Returns all audit log entries of the project for the specified period. \\ Period must not be longer than 24 hours within the last 90 days.
10741083
@@ -1103,6 +1112,7 @@ def list_project_audit_log_entries_without_preload_content(
11031112
:type _host_index: int, optional
11041113
:return: Returns the result object.
11051114
""" # noqa: E501
1115+
warnings.warn("GET /v2/projects/{projectId} is deprecated.", DeprecationWarning)
11061116

11071117
_param = self._list_project_audit_log_entries_serialize(
11081118
project_id=project_id,

services/auditlog/src/stackit/auditlog/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)

services/auditlog/src/stackit/auditlog/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)

services/auditlog/src/stackit/auditlog/exceptions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -45,7 +45,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
4545
full_msg = msg
4646
if path_to_item:
4747
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
48-
super(ApiTypeError, self).__init__(full_msg)
48+
super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type)
4949

5050

5151
class ApiValueError(OpenApiException, ValueError):
@@ -63,7 +63,7 @@ def __init__(self, msg, path_to_item=None) -> None:
6363
full_msg = msg
6464
if path_to_item:
6565
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
66-
super(ApiValueError, self).__init__(full_msg)
66+
super(ApiValueError, self).__init__(full_msg, path_to_item)
6767

6868

6969
class ApiAttributeError(OpenApiException, AttributeError):
@@ -82,7 +82,7 @@ def __init__(self, msg, path_to_item=None) -> None:
8282
full_msg = msg
8383
if path_to_item:
8484
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
85-
super(ApiAttributeError, self).__init__(full_msg)
85+
super(ApiAttributeError, self).__init__(full_msg, path_to_item)
8686

8787

8888
class ApiKeyError(OpenApiException, KeyError):
@@ -99,7 +99,7 @@ def __init__(self, msg, path_to_item=None) -> None:
9999
full_msg = msg
100100
if path_to_item:
101101
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
102-
super(ApiKeyError, self).__init__(full_msg)
102+
super(ApiKeyError, self).__init__(full_msg, path_to_item)
103103

104104

105105
class ApiException(OpenApiException):

services/auditlog/src/stackit/auditlog/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
STACKIT Audit Log API
66
7-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
7+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
88
99
The version of the OpenAPI document: 2.0
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)

services/auditlog/src/stackit/auditlog/models/audit_log_entry_context_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)

services/auditlog/src/stackit/auditlog/models/audit_log_entry_initiator_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)

services/auditlog/src/stackit/auditlog/models/audit_log_entry_request_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
STACKIT Audit Log API
55
6-
API Endpoints to retrieve recorded actions and resulting changes in the system. ### Documentation The user documentation with explanations how to use the api can be found [here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html). ### Audit Logging Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit log. ### API Constraints The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
6+
**Deprecated:** The auditlog API is deprecated and will be removed shortly. Please use the [telemetry-router](https://docs.stackit.cloud/products/logging-and-monitoring/telemetry-router/) to retrieve audit log messages in the future.
77
88
The version of the OpenAPI document: 2.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)

0 commit comments

Comments
 (0)