Skip to content

Commit 2583b2d

Browse files
Generate auditlog
1 parent d38df9f commit 2583b2d

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
__version__ = "1.0.0"
1817

1918
# Define package exports

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

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from datetime import datetime
1515
from typing import Any, Dict, List, Optional, Tuple, Union
16+
from uuid import UUID
1617

1718
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
1819
from stackit.core.configuration import Configuration
@@ -42,7 +43,7 @@ def __init__(self, configuration: Configuration = None) -> None:
4243
@validate_call
4344
def list_folder_audit_log_entries(
4445
self,
45-
folder_id: Annotated[StrictStr, Field(description="ID of the folder for which entries should be returned.")],
46+
folder_id: Annotated[UUID, Field(description="ID of the folder for which entries should be returned.")],
4647
start_time_range: Annotated[
4748
datetime,
4849
Field(
@@ -86,7 +87,7 @@ def list_folder_audit_log_entries(
8687
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.
8788
8889
:param folder_id: ID of the folder for which entries should be returned. (required)
89-
:type folder_id: str
90+
:type folder_id: UUID
9091
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
9192
:type start_time_range: datetime
9293
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -146,7 +147,7 @@ def list_folder_audit_log_entries(
146147
@validate_call
147148
def list_folder_audit_log_entries_with_http_info(
148149
self,
149-
folder_id: Annotated[StrictStr, Field(description="ID of the folder for which entries should be returned.")],
150+
folder_id: Annotated[UUID, Field(description="ID of the folder for which entries should be returned.")],
150151
start_time_range: Annotated[
151152
datetime,
152153
Field(
@@ -190,7 +191,7 @@ def list_folder_audit_log_entries_with_http_info(
190191
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.
191192
192193
:param folder_id: ID of the folder for which entries should be returned. (required)
193-
:type folder_id: str
194+
:type folder_id: UUID
194195
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
195196
:type start_time_range: datetime
196197
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -250,7 +251,7 @@ def list_folder_audit_log_entries_with_http_info(
250251
@validate_call
251252
def list_folder_audit_log_entries_without_preload_content(
252253
self,
253-
folder_id: Annotated[StrictStr, Field(description="ID of the folder for which entries should be returned.")],
254+
folder_id: Annotated[UUID, Field(description="ID of the folder for which entries should be returned.")],
254255
start_time_range: Annotated[
255256
datetime,
256257
Field(
@@ -294,7 +295,7 @@ def list_folder_audit_log_entries_without_preload_content(
294295
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.
295296
296297
:param folder_id: ID of the folder for which entries should be returned. (required)
297-
:type folder_id: str
298+
:type folder_id: UUID
298299
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
299300
:type start_time_range: datetime
300301
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -429,7 +430,7 @@ def _list_folder_audit_log_entries_serialize(
429430
def list_organization_audit_log_entries(
430431
self,
431432
organization_id: Annotated[
432-
StrictStr, Field(description="ID of the organization for which entries should be returned.")
433+
UUID, Field(description="ID of the organization for which entries should be returned.")
433434
],
434435
start_time_range: Annotated[
435436
datetime,
@@ -474,7 +475,7 @@ def list_organization_audit_log_entries(
474475
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.
475476
476477
:param organization_id: ID of the organization for which entries should be returned. (required)
477-
:type organization_id: str
478+
:type organization_id: UUID
478479
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
479480
:type start_time_range: datetime
480481
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -535,7 +536,7 @@ def list_organization_audit_log_entries(
535536
def list_organization_audit_log_entries_with_http_info(
536537
self,
537538
organization_id: Annotated[
538-
StrictStr, Field(description="ID of the organization for which entries should be returned.")
539+
UUID, Field(description="ID of the organization for which entries should be returned.")
539540
],
540541
start_time_range: Annotated[
541542
datetime,
@@ -580,7 +581,7 @@ def list_organization_audit_log_entries_with_http_info(
580581
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.
581582
582583
:param organization_id: ID of the organization for which entries should be returned. (required)
583-
:type organization_id: str
584+
:type organization_id: UUID
584585
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
585586
:type start_time_range: datetime
586587
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -641,7 +642,7 @@ def list_organization_audit_log_entries_with_http_info(
641642
def list_organization_audit_log_entries_without_preload_content(
642643
self,
643644
organization_id: Annotated[
644-
StrictStr, Field(description="ID of the organization for which entries should be returned.")
645+
UUID, Field(description="ID of the organization for which entries should be returned.")
645646
],
646647
start_time_range: Annotated[
647648
datetime,
@@ -686,7 +687,7 @@ def list_organization_audit_log_entries_without_preload_content(
686687
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.
687688
688689
:param organization_id: ID of the organization for which entries should be returned. (required)
689-
:type organization_id: str
690+
:type organization_id: UUID
690691
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
691692
:type start_time_range: datetime
692693
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -820,7 +821,7 @@ def _list_organization_audit_log_entries_serialize(
820821
@validate_call
821822
def list_project_audit_log_entries(
822823
self,
823-
project_id: Annotated[StrictStr, Field(description="ID of the project for which entries should be returned.")],
824+
project_id: Annotated[UUID, Field(description="ID of the project for which entries should be returned.")],
824825
start_time_range: Annotated[
825826
datetime,
826827
Field(
@@ -864,7 +865,7 @@ def list_project_audit_log_entries(
864865
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.
865866
866867
:param project_id: ID of the project for which entries should be returned. (required)
867-
:type project_id: str
868+
:type project_id: UUID
868869
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
869870
:type start_time_range: datetime
870871
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -924,7 +925,7 @@ def list_project_audit_log_entries(
924925
@validate_call
925926
def list_project_audit_log_entries_with_http_info(
926927
self,
927-
project_id: Annotated[StrictStr, Field(description="ID of the project for which entries should be returned.")],
928+
project_id: Annotated[UUID, Field(description="ID of the project for which entries should be returned.")],
928929
start_time_range: Annotated[
929930
datetime,
930931
Field(
@@ -968,7 +969,7 @@ def list_project_audit_log_entries_with_http_info(
968969
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.
969970
970971
:param project_id: ID of the project for which entries should be returned. (required)
971-
:type project_id: str
972+
:type project_id: UUID
972973
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
973974
:type start_time_range: datetime
974975
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)
@@ -1028,7 +1029,7 @@ def list_project_audit_log_entries_with_http_info(
10281029
@validate_call
10291030
def list_project_audit_log_entries_without_preload_content(
10301031
self,
1031-
project_id: Annotated[StrictStr, Field(description="ID of the project for which entries should be returned.")],
1032+
project_id: Annotated[UUID, Field(description="ID of the project for which entries should be returned.")],
10321033
start_time_range: Annotated[
10331034
datetime,
10341035
Field(
@@ -1072,7 +1073,7 @@ def list_project_audit_log_entries_without_preload_content(
10721073
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.
10731074
10741075
:param project_id: ID of the project for which entries should be returned. (required)
1075-
:type project_id: str
1076+
:type project_id: UUID
10761077
:param start_time_range: An ISO timestamp to specify the beginning of the time range from which entries should be returned, based on the eventTimeStamp. If not given, defaults to the beginning of time. (required)
10771078
:type start_time_range: datetime
10781079
:param end_time_range: An ISO timestamp to specify the end of the time range up until which entries should be returned, based on the eventTimeStamp. If not given, defaults to the time this request was received. (required)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
Do not edit the class manually.
1313
""" # noqa: E501
1414

15-
1615
# import models into model package
1716
from stackit.auditlog.models.audit_log_entry_context_response import (
1817
AuditLogEntryContextResponse,

0 commit comments

Comments
 (0)