|
13 | 13 |
|
14 | 14 | from datetime import datetime |
15 | 15 | from typing import Any, Dict, List, Optional, Tuple, Union |
| 16 | +from uuid import UUID |
16 | 17 |
|
17 | 18 | from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call |
18 | 19 | from stackit.core.configuration import Configuration |
@@ -42,7 +43,7 @@ def __init__(self, configuration: Configuration = None) -> None: |
42 | 43 | @validate_call |
43 | 44 | def list_folder_audit_log_entries( |
44 | 45 | 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.")], |
46 | 47 | start_time_range: Annotated[ |
47 | 48 | datetime, |
48 | 49 | Field( |
@@ -86,7 +87,7 @@ def list_folder_audit_log_entries( |
86 | 87 | 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. |
87 | 88 |
|
88 | 89 | :param folder_id: ID of the folder for which entries should be returned. (required) |
89 | | - :type folder_id: str |
| 90 | + :type folder_id: UUID |
90 | 91 | :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) |
91 | 92 | :type start_time_range: datetime |
92 | 93 | :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( |
146 | 147 | @validate_call |
147 | 148 | def list_folder_audit_log_entries_with_http_info( |
148 | 149 | 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.")], |
150 | 151 | start_time_range: Annotated[ |
151 | 152 | datetime, |
152 | 153 | Field( |
@@ -190,7 +191,7 @@ def list_folder_audit_log_entries_with_http_info( |
190 | 191 | 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. |
191 | 192 |
|
192 | 193 | :param folder_id: ID of the folder for which entries should be returned. (required) |
193 | | - :type folder_id: str |
| 194 | + :type folder_id: UUID |
194 | 195 | :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) |
195 | 196 | :type start_time_range: datetime |
196 | 197 | :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( |
250 | 251 | @validate_call |
251 | 252 | def list_folder_audit_log_entries_without_preload_content( |
252 | 253 | 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.")], |
254 | 255 | start_time_range: Annotated[ |
255 | 256 | datetime, |
256 | 257 | Field( |
@@ -294,7 +295,7 @@ def list_folder_audit_log_entries_without_preload_content( |
294 | 295 | 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. |
295 | 296 |
|
296 | 297 | :param folder_id: ID of the folder for which entries should be returned. (required) |
297 | | - :type folder_id: str |
| 298 | + :type folder_id: UUID |
298 | 299 | :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) |
299 | 300 | :type start_time_range: datetime |
300 | 301 | :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( |
429 | 430 | def list_organization_audit_log_entries( |
430 | 431 | self, |
431 | 432 | 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.") |
433 | 434 | ], |
434 | 435 | start_time_range: Annotated[ |
435 | 436 | datetime, |
@@ -474,7 +475,7 @@ def list_organization_audit_log_entries( |
474 | 475 | 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. |
475 | 476 |
|
476 | 477 | :param organization_id: ID of the organization for which entries should be returned. (required) |
477 | | - :type organization_id: str |
| 478 | + :type organization_id: UUID |
478 | 479 | :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) |
479 | 480 | :type start_time_range: datetime |
480 | 481 | :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( |
535 | 536 | def list_organization_audit_log_entries_with_http_info( |
536 | 537 | self, |
537 | 538 | 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.") |
539 | 540 | ], |
540 | 541 | start_time_range: Annotated[ |
541 | 542 | datetime, |
@@ -580,7 +581,7 @@ def list_organization_audit_log_entries_with_http_info( |
580 | 581 | 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. |
581 | 582 |
|
582 | 583 | :param organization_id: ID of the organization for which entries should be returned. (required) |
583 | | - :type organization_id: str |
| 584 | + :type organization_id: UUID |
584 | 585 | :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) |
585 | 586 | :type start_time_range: datetime |
586 | 587 | :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( |
641 | 642 | def list_organization_audit_log_entries_without_preload_content( |
642 | 643 | self, |
643 | 644 | 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.") |
645 | 646 | ], |
646 | 647 | start_time_range: Annotated[ |
647 | 648 | datetime, |
@@ -686,7 +687,7 @@ def list_organization_audit_log_entries_without_preload_content( |
686 | 687 | 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. |
687 | 688 |
|
688 | 689 | :param organization_id: ID of the organization for which entries should be returned. (required) |
689 | | - :type organization_id: str |
| 690 | + :type organization_id: UUID |
690 | 691 | :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) |
691 | 692 | :type start_time_range: datetime |
692 | 693 | :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( |
820 | 821 | @validate_call |
821 | 822 | def list_project_audit_log_entries( |
822 | 823 | 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.")], |
824 | 825 | start_time_range: Annotated[ |
825 | 826 | datetime, |
826 | 827 | Field( |
@@ -864,7 +865,7 @@ def list_project_audit_log_entries( |
864 | 865 | 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. |
865 | 866 |
|
866 | 867 | :param project_id: ID of the project for which entries should be returned. (required) |
867 | | - :type project_id: str |
| 868 | + :type project_id: UUID |
868 | 869 | :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) |
869 | 870 | :type start_time_range: datetime |
870 | 871 | :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( |
924 | 925 | @validate_call |
925 | 926 | def list_project_audit_log_entries_with_http_info( |
926 | 927 | 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.")], |
928 | 929 | start_time_range: Annotated[ |
929 | 930 | datetime, |
930 | 931 | Field( |
@@ -968,7 +969,7 @@ def list_project_audit_log_entries_with_http_info( |
968 | 969 | 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. |
969 | 970 |
|
970 | 971 | :param project_id: ID of the project for which entries should be returned. (required) |
971 | | - :type project_id: str |
| 972 | + :type project_id: UUID |
972 | 973 | :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) |
973 | 974 | :type start_time_range: datetime |
974 | 975 | :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( |
1028 | 1029 | @validate_call |
1029 | 1030 | def list_project_audit_log_entries_without_preload_content( |
1030 | 1031 | 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.")], |
1032 | 1033 | start_time_range: Annotated[ |
1033 | 1034 | datetime, |
1034 | 1035 | Field( |
@@ -1072,7 +1073,7 @@ def list_project_audit_log_entries_without_preload_content( |
1072 | 1073 | 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. |
1073 | 1074 |
|
1074 | 1075 | :param project_id: ID of the project for which entries should be returned. (required) |
1075 | | - :type project_id: str |
| 1076 | + :type project_id: UUID |
1076 | 1077 | :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) |
1077 | 1078 | :type start_time_range: datetime |
1078 | 1079 | :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) |
|
0 commit comments