Skip to content

Commit cccc6bf

Browse files
Generate automation
1 parent 8b3aa37 commit cccc6bf

51 files changed

Lines changed: 9821 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎services/automation/README.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# stackit.automation
2+
API endpoints for automation management .
3+
4+
5+
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.
6+
7+
8+
## Installation & Usage
9+
### pip install
10+
11+
```sh
12+
pip install stackit-automation
13+
```
14+
15+
Then import the package:
16+
```python
17+
import stackit.automation
18+
```
19+
20+
## Getting Started
21+
22+
[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/automation/oas_commit‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e828de99e9bf81d8751c7764f78848aa905568d2

‎services/automation/pyproject.toml‎

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
[project]
2+
name = "stackit-automation"
3+
version = "v0.0.1a"
4+
description = "STACKIT Automation Service API"
5+
authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}]
6+
requires-python = ">=3.10,<4.0"
7+
readme = "README.md"
8+
classifiers = [
9+
"Programming Language :: Python :: 3",
10+
"License :: OSI Approved :: Apache Software License",
11+
"Operating System :: OS Independent",
12+
"Programming Language :: Python :: 3.10",
13+
"Programming Language :: Python :: 3.11",
14+
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
16+
"Programming Language :: Python :: 3.14",
17+
]
18+
dependencies = [
19+
"stackit-core>=0.0.1a",
20+
"requests>=2.33.0",
21+
"pydantic>=2.9.2",
22+
"python-dateutil>=2.9.0.post0",
23+
]
24+
25+
[project.urls]
26+
Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
27+
Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
28+
29+
[dependency-groups]
30+
dev = [
31+
"black>=26.3.1",
32+
"pytest>=9.1.1",
33+
"flake8>=5.0.3 ; python_full_version < '3.12'",
34+
"flake8>=6.0.1 ; python_full_version >= '3.12'",
35+
"flake8-black>=0.3.6",
36+
"flake8-pyproject>=1.2.3",
37+
"autoimport>=1.6.1",
38+
"flake8-eol>=0.0.8",
39+
"flake8-eradicate>=1.5.0",
40+
"flake8-bandit>=4.1.1",
41+
"flake8-bugbear>=23.1.14",
42+
"flake8-quotes>=3.4.0",
43+
"isort>=5.13.2",
44+
]
45+
46+
[tool.uv]
47+
default-groups = "all"
48+
49+
[tool.uv.sources]
50+
stackit-core = { path = "../../core" }
51+
52+
[tool.hatch.build.targets.sdist]
53+
include = ["src/stackit"]
54+
55+
[tool.hatch.build.targets.wheel]
56+
include = ["src/stackit"]
57+
58+
[tool.hatch.build.targets.wheel.sources]
59+
"src/stackit" = "stackit"
60+
61+
[build-system]
62+
requires = ["hatchling"]
63+
build-backend = "hatchling.build"
64+
65+
[tool.pytest.ini_options]
66+
pythonpath = [
67+
"src"
68+
]
69+
testpaths = [
70+
"tests"
71+
]
72+
73+
[tool.black]
74+
line-length = 120
75+
exclude = """
76+
/(
77+
.eggs
78+
| .git
79+
| .hg
80+
| .mypy_cache
81+
| .nox
82+
| .pants.d
83+
| .tox
84+
| .venv
85+
| _build
86+
| buck-out
87+
| build
88+
| dist
89+
| node_modules
90+
| venv
91+
)/
92+
"""
93+
94+
[tool.isort]
95+
profile = 'black'
96+
97+
[tool.flake8]
98+
exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
99+
statistics = true
100+
show-source = false
101+
max-line-length = 120
102+
# E203,W503 and E704 are incompatible with the formatter black
103+
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
104+
ignore = ["E203", "W503", "E704", "W291"]
105+
inline-quotes = '"'
106+
docstring-quotes = '"""'
107+
multiline-quotes = '"""'
108+
ban-relative-imports = true
109+
# Exclude generated code
110+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
STACKIT Automation Service API
7+
8+
API endpoints for automation management .
9+
10+
The version of the OpenAPI document: 1.0
11+
Contact: support@stackit.de
12+
Generated by OpenAPI Generator (https://openapi-generator.tech)
13+
14+
Do not edit the class manually.
15+
""" # noqa: E501
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+
"AutomationScheduleTrigger",
32+
"AutomationTriggers",
33+
"CreateSnapshotsResult",
34+
"CreateVolumeAutomationPayload",
35+
"ErrorInfoDetail",
36+
"ErrorResponse",
37+
"ErrorResponseContent",
38+
"ErrorResponseContentDetails",
39+
"EventCreateResponse",
40+
"GetVolumeIDsResult",
41+
"GetVolumeTemplateResponse",
42+
"HelpErrorDetail",
43+
"ListAutomationsItem",
44+
"ListAutomationsResponse",
45+
"ListExecutionsItem",
46+
"ListExecutionsResponse",
47+
"ListTemplatesResponse",
48+
"LocalizedMessageErrorDetail",
49+
"PartialUpdateVolumeAutomationPayload",
50+
"Schedule",
51+
"ScheduleDetails",
52+
"SchedulePatchRequest",
53+
"ScheduleRequest",
54+
"SnapshotRetentionPolicy",
55+
"Template",
56+
"VolumeAutomation",
57+
"VolumeAutomationInput",
58+
"VolumeExecutionAutomation",
59+
"VolumeExecutionDetails",
60+
"VolumeExecutionOutput",
61+
"VolumeExecutionOutputStep",
62+
"VolumeExecutionResponse",
63+
"VolumeOutput",
64+
"VolumeOutputStep",
65+
"VolumeOutputStepResult",
66+
"VolumeRecoveryPointManagementInput",
67+
"VolumeTemplateAutomationInput",
68+
]
69+
70+
# import apis into sdk package
71+
from stackit.automation.api.default_api import DefaultApi as DefaultApi
72+
from stackit.automation.api_client import ApiClient as ApiClient
73+
74+
# import ApiClient
75+
from stackit.automation.api_response import ApiResponse as ApiResponse
76+
from stackit.automation.configuration import HostConfiguration as HostConfiguration
77+
from stackit.automation.exceptions import ApiAttributeError as ApiAttributeError
78+
from stackit.automation.exceptions import ApiException as ApiException
79+
from stackit.automation.exceptions import ApiKeyError as ApiKeyError
80+
from stackit.automation.exceptions import ApiTypeError as ApiTypeError
81+
from stackit.automation.exceptions import ApiValueError as ApiValueError
82+
from stackit.automation.exceptions import OpenApiException as OpenApiException
83+
84+
# import models into sdk package
85+
from stackit.automation.models.automation_schedule_trigger import (
86+
AutomationScheduleTrigger as AutomationScheduleTrigger,
87+
)
88+
from stackit.automation.models.automation_triggers import (
89+
AutomationTriggers as AutomationTriggers,
90+
)
91+
from stackit.automation.models.create_snapshots_result import (
92+
CreateSnapshotsResult as CreateSnapshotsResult,
93+
)
94+
from stackit.automation.models.create_volume_automation_payload import (
95+
CreateVolumeAutomationPayload as CreateVolumeAutomationPayload,
96+
)
97+
from stackit.automation.models.error_info_detail import (
98+
ErrorInfoDetail as ErrorInfoDetail,
99+
)
100+
from stackit.automation.models.error_response import ErrorResponse as ErrorResponse
101+
from stackit.automation.models.error_response_content import (
102+
ErrorResponseContent as ErrorResponseContent,
103+
)
104+
from stackit.automation.models.error_response_content_details import (
105+
ErrorResponseContentDetails as ErrorResponseContentDetails,
106+
)
107+
from stackit.automation.models.event_create_response import (
108+
EventCreateResponse as EventCreateResponse,
109+
)
110+
from stackit.automation.models.get_volume_ids_result import (
111+
GetVolumeIDsResult as GetVolumeIDsResult,
112+
)
113+
from stackit.automation.models.get_volume_template_response import (
114+
GetVolumeTemplateResponse as GetVolumeTemplateResponse,
115+
)
116+
from stackit.automation.models.help_error_detail import (
117+
HelpErrorDetail as HelpErrorDetail,
118+
)
119+
from stackit.automation.models.list_automations_item import (
120+
ListAutomationsItem as ListAutomationsItem,
121+
)
122+
from stackit.automation.models.list_automations_response import (
123+
ListAutomationsResponse as ListAutomationsResponse,
124+
)
125+
from stackit.automation.models.list_executions_item import (
126+
ListExecutionsItem as ListExecutionsItem,
127+
)
128+
from stackit.automation.models.list_executions_response import (
129+
ListExecutionsResponse as ListExecutionsResponse,
130+
)
131+
from stackit.automation.models.list_templates_response import (
132+
ListTemplatesResponse as ListTemplatesResponse,
133+
)
134+
from stackit.automation.models.localized_message_error_detail import (
135+
LocalizedMessageErrorDetail as LocalizedMessageErrorDetail,
136+
)
137+
from stackit.automation.models.partial_update_volume_automation_payload import (
138+
PartialUpdateVolumeAutomationPayload as PartialUpdateVolumeAutomationPayload,
139+
)
140+
from stackit.automation.models.schedule import Schedule as Schedule
141+
from stackit.automation.models.schedule_details import (
142+
ScheduleDetails as ScheduleDetails,
143+
)
144+
from stackit.automation.models.schedule_patch_request import (
145+
SchedulePatchRequest as SchedulePatchRequest,
146+
)
147+
from stackit.automation.models.schedule_request import (
148+
ScheduleRequest as ScheduleRequest,
149+
)
150+
from stackit.automation.models.snapshot_retention_policy import (
151+
SnapshotRetentionPolicy as SnapshotRetentionPolicy,
152+
)
153+
from stackit.automation.models.template import Template as Template
154+
from stackit.automation.models.volume_automation import (
155+
VolumeAutomation as VolumeAutomation,
156+
)
157+
from stackit.automation.models.volume_automation_input import (
158+
VolumeAutomationInput as VolumeAutomationInput,
159+
)
160+
from stackit.automation.models.volume_execution_automation import (
161+
VolumeExecutionAutomation as VolumeExecutionAutomation,
162+
)
163+
from stackit.automation.models.volume_execution_details import (
164+
VolumeExecutionDetails as VolumeExecutionDetails,
165+
)
166+
from stackit.automation.models.volume_execution_output import (
167+
VolumeExecutionOutput as VolumeExecutionOutput,
168+
)
169+
from stackit.automation.models.volume_execution_output_step import (
170+
VolumeExecutionOutputStep as VolumeExecutionOutputStep,
171+
)
172+
from stackit.automation.models.volume_execution_response import (
173+
VolumeExecutionResponse as VolumeExecutionResponse,
174+
)
175+
from stackit.automation.models.volume_output import VolumeOutput as VolumeOutput
176+
from stackit.automation.models.volume_output_step import (
177+
VolumeOutputStep as VolumeOutputStep,
178+
)
179+
from stackit.automation.models.volume_output_step_result import (
180+
VolumeOutputStepResult as VolumeOutputStepResult,
181+
)
182+
from stackit.automation.models.volume_recovery_point_management_input import (
183+
VolumeRecoveryPointManagementInput as VolumeRecoveryPointManagementInput,
184+
)
185+
from stackit.automation.models.volume_template_automation_input import (
186+
VolumeTemplateAutomationInput as VolumeTemplateAutomationInput,
187+
)
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.automation.api.default_api import DefaultApi

0 commit comments

Comments
 (0)