Skip to content

Commit 547496b

Browse files
Generate auditlog
1 parent 3cab071 commit 547496b

22 files changed

+4996
-0
lines changed

services/auditlog/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# stackit.auditlog
2+
API Endpoints to retrieve recorded actions and resulting changes in the system.
3+
4+
### Documentation
5+
The user documentation with explanations how to use the api can be found
6+
[here](https://docs.stackit.cloud/stackit/en/retrieve-audit-log-per-api-request-134415907.html).
7+
8+
### Audit Logging
9+
Changes on organizations, folders and projects and respective cloud resources are logged and collected in the audit
10+
log.
11+
12+
### API Constraints
13+
The audit log API allows to download messages from the last 90 days. The maximum duration that can be queried at
14+
once is 24 hours. Requests are rate limited - the current maximum is 60 requests per minute.
15+
16+
For more information, please visit [https://support.stackit.cloud/servicedesk](https://support.stackit.cloud/servicedesk)
17+
18+
This package is part of the STACKIT Python SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.
19+
20+
21+
## Installation & Usage
22+
### pip install
23+
24+
```sh
25+
pip install stackit-auditlog
26+
```
27+
28+
Then import the package:
29+
```python
30+
import stackit.auditlog
31+
```
32+
33+
## Getting Started
34+
35+
[Examples](https://github.com/stackitcloud/stackit-sdk-python/tree/main/examples) for the usage of the package can be found in the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-python) of the SDK.

services/auditlog/poetry.lock

Lines changed: 1412 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/auditlog/pyproject.toml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
[project]
2+
name = "stackit-auditlog"
3+
4+
[tool.poetry]
5+
name = "stackit-auditlog"
6+
version = "v0.0.1a"
7+
authors = [
8+
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
9+
]
10+
description = "Audit Log API"
11+
readme = "README.md"
12+
#license = "NoLicense"
13+
classifiers = [
14+
"Programming Language :: Python :: 3",
15+
"License :: OSI Approved :: Apache Software License",
16+
"Operating System :: OS Independent",
17+
]
18+
packages = [
19+
{ include = "stackit", from="src" }
20+
]
21+
22+
[tool.poetry.dependencies]
23+
python = "^3.9"
24+
stackit-core = ">=0.0.1a"
25+
requests = ">=2.32.3"
26+
pydantic = ">=2.9.2"
27+
python-dateutil = ">=2.9.0.post0"
28+
29+
[tool.poetry.group.dev.dependencies]
30+
black = ">=24.8.0"
31+
pytest = ">=8.3.3"
32+
flake8 = [
33+
{ version= ">=5.0.3", python="<3.12"},
34+
{ version= ">=6.0.1", python=">=3.12"}
35+
]
36+
flake8-black = ">=0.3.6"
37+
flake8-pyproject = ">=1.2.3"
38+
autoimport = ">=1.6.1"
39+
flake8-eol = ">=0.0.8"
40+
flake8-eradicate = ">=1.5.0"
41+
flake8-bandit = ">=4.1.1"
42+
flake8-bugbear = ">=23.1.14"
43+
flake8-quotes = ">=3.4.0"
44+
isort = ">=5.13.2"
45+
46+
[project.urls]
47+
Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
48+
Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
49+
50+
[build-system]
51+
requires = ["setuptools", "poetry-core"]
52+
build-backend = "poetry.core.masonry.api"
53+
54+
[tool.pytest.ini_options]
55+
pythonpath = [
56+
"src"
57+
]
58+
testpaths = [
59+
"tests"
60+
]
61+
62+
[tool.black]
63+
line-length = 120
64+
exclude = """
65+
/(
66+
.eggs
67+
| .git
68+
| .hg
69+
| .mypy_cache
70+
| .nox
71+
| .pants.d
72+
| .tox
73+
| .venv
74+
| _build
75+
| buck-out
76+
| build
77+
| dist
78+
| node_modules
79+
| venv
80+
)/
81+
"""
82+
83+
[tool.isort]
84+
profile = 'black'
85+
86+
[tool.flake8]
87+
exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
88+
statistics = true
89+
show-source = false
90+
max-line-length = 120
91+
# E203,W503 and E704 are incompatible with the formatter black
92+
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
93+
ignore = ["E203", "W503", "E704", "W291"]
94+
inline-quotes = '"'
95+
docstring-quotes = '"""'
96+
multiline-quotes = '"""'
97+
ban-relative-imports = true
98+
# Exclude generated code
99+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
Audit Log API
7+
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.
9+
10+
The version of the OpenAPI document: 2.0
11+
Generated by OpenAPI Generator (https://openapi-generator.tech)
12+
13+
Do not edit the class manually.
14+
""" # noqa: E501
15+
16+
17+
__version__ = "1.0.0"
18+
19+
# Define package exports
20+
__all__ = [
21+
"DefaultApi",
22+
"ApiResponse",
23+
"ApiClient",
24+
"HostConfiguration",
25+
"OpenApiException",
26+
"ApiTypeError",
27+
"ApiValueError",
28+
"ApiKeyError",
29+
"ApiAttributeError",
30+
"ApiException",
31+
"AuditLogEntry",
32+
"Context",
33+
"DelegationPrincipal",
34+
"Error",
35+
"GatewayError",
36+
"Initiator",
37+
"InlineObject",
38+
"Request",
39+
"ServiceAccountDelegationInfo",
40+
]
41+
42+
# import apis into sdk package
43+
from stackit.auditlog.api.default_api import DefaultApi as DefaultApi
44+
from stackit.auditlog.api_client import ApiClient as ApiClient
45+
46+
# import ApiClient
47+
from stackit.auditlog.api_response import ApiResponse as ApiResponse
48+
from stackit.auditlog.configuration import HostConfiguration as HostConfiguration
49+
from stackit.auditlog.exceptions import ApiAttributeError as ApiAttributeError
50+
from stackit.auditlog.exceptions import ApiException as ApiException
51+
from stackit.auditlog.exceptions import ApiKeyError as ApiKeyError
52+
from stackit.auditlog.exceptions import ApiTypeError as ApiTypeError
53+
from stackit.auditlog.exceptions import ApiValueError as ApiValueError
54+
from stackit.auditlog.exceptions import OpenApiException as OpenApiException
55+
56+
# import models into sdk package
57+
from stackit.auditlog.models.audit_log_entry import AuditLogEntry as AuditLogEntry
58+
from stackit.auditlog.models.context import Context as Context
59+
from stackit.auditlog.models.delegation_principal import (
60+
DelegationPrincipal as DelegationPrincipal,
61+
)
62+
from stackit.auditlog.models.error import Error as Error
63+
from stackit.auditlog.models.gateway_error import GatewayError as GatewayError
64+
from stackit.auditlog.models.initiator import Initiator as Initiator
65+
from stackit.auditlog.models.inline_object import InlineObject as InlineObject
66+
from stackit.auditlog.models.request import Request as Request
67+
from stackit.auditlog.models.service_account_delegation_info import (
68+
ServiceAccountDelegationInfo as ServiceAccountDelegationInfo,
69+
)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# flake8: noqa
2+
3+
# import apis into api package
4+
from stackit.auditlog.api.default_api import DefaultApi

0 commit comments

Comments
 (0)