Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion services/auditlog/src/stackit/auditlog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"

# Define package exports
Expand Down
37 changes: 19 additions & 18 deletions services/auditlog/src/stackit/auditlog/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from datetime import datetime
from typing import Any, Dict, List, Optional, Tuple, Union
from uuid import UUID

from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
from stackit.core.configuration import Configuration
Expand Down Expand Up @@ -42,7 +43,7 @@ def __init__(self, configuration: Configuration = None) -> None:
@validate_call
def list_folder_audit_log_entries(
self,
folder_id: Annotated[StrictStr, Field(description="ID of the folder for which entries should be returned.")],
folder_id: Annotated[UUID, Field(description="ID of the folder for which entries should be returned.")],
start_time_range: Annotated[
datetime,
Field(
Expand Down Expand Up @@ -86,7 +87,7 @@ def list_folder_audit_log_entries(
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.

:param folder_id: ID of the folder for which entries should be returned. (required)
:type folder_id: str
:type folder_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -146,7 +147,7 @@ def list_folder_audit_log_entries(
@validate_call
def list_folder_audit_log_entries_with_http_info(
self,
folder_id: Annotated[StrictStr, Field(description="ID of the folder for which entries should be returned.")],
folder_id: Annotated[UUID, Field(description="ID of the folder for which entries should be returned.")],
start_time_range: Annotated[
datetime,
Field(
Expand Down Expand Up @@ -190,7 +191,7 @@ def list_folder_audit_log_entries_with_http_info(
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.

:param folder_id: ID of the folder for which entries should be returned. (required)
:type folder_id: str
:type folder_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -250,7 +251,7 @@ def list_folder_audit_log_entries_with_http_info(
@validate_call
def list_folder_audit_log_entries_without_preload_content(
self,
folder_id: Annotated[StrictStr, Field(description="ID of the folder for which entries should be returned.")],
folder_id: Annotated[UUID, Field(description="ID of the folder for which entries should be returned.")],
start_time_range: Annotated[
datetime,
Field(
Expand Down Expand Up @@ -294,7 +295,7 @@ def list_folder_audit_log_entries_without_preload_content(
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.

:param folder_id: ID of the folder for which entries should be returned. (required)
:type folder_id: str
:type folder_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -429,7 +430,7 @@ def _list_folder_audit_log_entries_serialize(
def list_organization_audit_log_entries(
self,
organization_id: Annotated[
StrictStr, Field(description="ID of the organization for which entries should be returned.")
UUID, Field(description="ID of the organization for which entries should be returned.")
],
start_time_range: Annotated[
datetime,
Expand Down Expand Up @@ -474,7 +475,7 @@ def list_organization_audit_log_entries(
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.

:param organization_id: ID of the organization for which entries should be returned. (required)
:type organization_id: str
:type organization_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -535,7 +536,7 @@ def list_organization_audit_log_entries(
def list_organization_audit_log_entries_with_http_info(
self,
organization_id: Annotated[
StrictStr, Field(description="ID of the organization for which entries should be returned.")
UUID, Field(description="ID of the organization for which entries should be returned.")
],
start_time_range: Annotated[
datetime,
Expand Down Expand Up @@ -580,7 +581,7 @@ def list_organization_audit_log_entries_with_http_info(
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.

:param organization_id: ID of the organization for which entries should be returned. (required)
:type organization_id: str
:type organization_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -641,7 +642,7 @@ def list_organization_audit_log_entries_with_http_info(
def list_organization_audit_log_entries_without_preload_content(
self,
organization_id: Annotated[
StrictStr, Field(description="ID of the organization for which entries should be returned.")
UUID, Field(description="ID of the organization for which entries should be returned.")
],
start_time_range: Annotated[
datetime,
Expand Down Expand Up @@ -686,7 +687,7 @@ def list_organization_audit_log_entries_without_preload_content(
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.

:param organization_id: ID of the organization for which entries should be returned. (required)
:type organization_id: str
:type organization_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -820,7 +821,7 @@ def _list_organization_audit_log_entries_serialize(
@validate_call
def list_project_audit_log_entries(
self,
project_id: Annotated[StrictStr, Field(description="ID of the project for which entries should be returned.")],
project_id: Annotated[UUID, Field(description="ID of the project for which entries should be returned.")],
start_time_range: Annotated[
datetime,
Field(
Expand Down Expand Up @@ -864,7 +865,7 @@ def list_project_audit_log_entries(
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.

:param project_id: ID of the project for which entries should be returned. (required)
:type project_id: str
:type project_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -924,7 +925,7 @@ def list_project_audit_log_entries(
@validate_call
def list_project_audit_log_entries_with_http_info(
self,
project_id: Annotated[StrictStr, Field(description="ID of the project for which entries should be returned.")],
project_id: Annotated[UUID, Field(description="ID of the project for which entries should be returned.")],
start_time_range: Annotated[
datetime,
Field(
Expand Down Expand Up @@ -968,7 +969,7 @@ def list_project_audit_log_entries_with_http_info(
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.

:param project_id: ID of the project for which entries should be returned. (required)
:type project_id: str
:type project_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down Expand Up @@ -1028,7 +1029,7 @@ def list_project_audit_log_entries_with_http_info(
@validate_call
def list_project_audit_log_entries_without_preload_content(
self,
project_id: Annotated[StrictStr, Field(description="ID of the project for which entries should be returned.")],
project_id: Annotated[UUID, Field(description="ID of the project for which entries should be returned.")],
start_time_range: Annotated[
datetime,
Field(
Expand Down Expand Up @@ -1072,7 +1073,7 @@ def list_project_audit_log_entries_without_preload_content(
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.

:param project_id: ID of the project for which entries should be returned. (required)
:type project_id: str
:type project_id: UUID
: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)
:type start_time_range: datetime
: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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
Do not edit the class manually.
""" # noqa: E501


# import models into model package
from stackit.auditlog.models.audit_log_entry_context_response import (
AuditLogEntryContextResponse,
Expand Down
Loading