Skip to content

Commit 676b3e5

Browse files
Generate automation
1 parent d14550d commit 676b3e5

54 files changed

Lines changed: 10164 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+
1b60c8c31bf54c6160da7979afc673ffc6865e48

services/automation/pyproject.toml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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+
"Programming Language :: Python :: 3.15",
18+
]
19+
dependencies = [
20+
"stackit-core>=0.0.1a",
21+
"requests>=2.33.0",
22+
"pydantic>=2.9.2",
23+
"python-dateutil>=2.9.0.post0",
24+
]
25+
26+
[project.urls]
27+
Homepage = "https://github.com/stackitcloud/stackit-sdk-python"
28+
Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
29+
30+
[dependency-groups]
31+
dev = [
32+
"black>=26.3.1",
33+
"pytest>=9.1.1",
34+
"flake8>=5.0.3 ; python_full_version < '3.12'",
35+
"flake8>=6.0.1 ; python_full_version >= '3.12'",
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+
47+
[tool.uv]
48+
default-groups = "all"
49+
50+
[tool.uv.sources]
51+
stackit-core = { path = "../../core" }
52+
53+
[tool.hatch.build.targets.sdist]
54+
include = ["src/stackit"]
55+
56+
[tool.hatch.build.targets.wheel]
57+
include = ["src/stackit"]
58+
59+
[tool.hatch.build.targets.wheel-sources]
60+
"src/stackit" = "stackit"
61+
62+
[build-system]
63+
requires = ["hatchling"]
64+
build-backend = "hatchling.build"
65+
66+
[tool.pytest.ini_options]
67+
pythonpath = [
68+
"src"
69+
]
70+
testpaths = [
71+
"tests"
72+
]
73+
74+
[tool.black]
75+
line-length = 120
76+
exclude = """
77+
/(
78+
.eggs
79+
| .git
80+
| .hg
81+
| .mypy_cache
82+
| .nox
83+
| .pants.d
84+
| .tox
85+
| .venv
86+
| _build
87+
| buck-out
88+
| build
89+
| dist
90+
| node_modules
91+
| venv
92+
)/
93+
"""
94+
95+
[tool.isort]
96+
profile = 'black'
97+
98+
[tool.flake8]
99+
exclude= [".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", ".devcontainer", "venv", "_build", "buck-out", "build", "dist"]
100+
statistics = true
101+
show-source = false
102+
max-line-length = 120
103+
# E203,W503 and E704 are incompatible with the formatter black
104+
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
105+
ignore = ["E203", "W503", "E704", "W291"]
106+
inline-quotes = '"'
107+
docstring-quotes = '"""'
108+
multiline-quotes = '"""'
109+
ban-relative-imports = true
110+
# Exclude generated code
111+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
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: 1beta.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+
"GenericInput",
41+
"GetVolumeIDsResult",
42+
"GetVolumeTemplateResponse",
43+
"HelpErrorDetail",
44+
"ListAutomationsItem",
45+
"ListAutomationsResponse",
46+
"ListExecutionsItem",
47+
"ListExecutionsResponse",
48+
"ListTemplatesResponse",
49+
"LocalizedMessageErrorDetail",
50+
"PartialUpdateVolumeAutomationPayload",
51+
"Schedule",
52+
"ScheduleDetails",
53+
"SchedulePatchRequest",
54+
"ScheduleRequest",
55+
"SnapshotRetentionPolicy",
56+
"SnapshotRetentionPolicyCount",
57+
"SnapshotRetentionPolicyIndefinitely",
58+
"Template",
59+
"VolumeAutomation",
60+
"VolumeAutomationInput",
61+
"VolumeExecutionAutomation",
62+
"VolumeExecutionDetails",
63+
"VolumeExecutionOutput",
64+
"VolumeExecutionOutputStep",
65+
"VolumeExecutionResponse",
66+
"VolumeOutput",
67+
"VolumeOutputStep",
68+
"VolumeOutputStepResult",
69+
"VolumeRecoveryPointManagementInput",
70+
"VolumeTemplateAutomationInput",
71+
]
72+
73+
# import apis into sdk package
74+
from stackit.automation.api.default_api import DefaultApi as DefaultApi
75+
from stackit.automation.api_client import ApiClient as ApiClient
76+
77+
# import ApiClient
78+
from stackit.automation.api_response import ApiResponse as ApiResponse
79+
from stackit.automation.configuration import HostConfiguration as HostConfiguration
80+
from stackit.automation.exceptions import ApiAttributeError as ApiAttributeError
81+
from stackit.automation.exceptions import ApiException as ApiException
82+
from stackit.automation.exceptions import ApiKeyError as ApiKeyError
83+
from stackit.automation.exceptions import ApiTypeError as ApiTypeError
84+
from stackit.automation.exceptions import ApiValueError as ApiValueError
85+
from stackit.automation.exceptions import OpenApiException as OpenApiException
86+
87+
# import models into sdk package
88+
from stackit.automation.models.automation_schedule_trigger import (
89+
AutomationScheduleTrigger as AutomationScheduleTrigger,
90+
)
91+
from stackit.automation.models.automation_triggers import (
92+
AutomationTriggers as AutomationTriggers,
93+
)
94+
from stackit.automation.models.create_snapshots_result import (
95+
CreateSnapshotsResult as CreateSnapshotsResult,
96+
)
97+
from stackit.automation.models.create_volume_automation_payload import (
98+
CreateVolumeAutomationPayload as CreateVolumeAutomationPayload,
99+
)
100+
from stackit.automation.models.error_info_detail import (
101+
ErrorInfoDetail as ErrorInfoDetail,
102+
)
103+
from stackit.automation.models.error_response import ErrorResponse as ErrorResponse
104+
from stackit.automation.models.error_response_content import (
105+
ErrorResponseContent as ErrorResponseContent,
106+
)
107+
from stackit.automation.models.error_response_content_details import (
108+
ErrorResponseContentDetails as ErrorResponseContentDetails,
109+
)
110+
from stackit.automation.models.event_create_response import (
111+
EventCreateResponse as EventCreateResponse,
112+
)
113+
from stackit.automation.models.generic_input import GenericInput as GenericInput
114+
from stackit.automation.models.get_volume_ids_result import (
115+
GetVolumeIDsResult as GetVolumeIDsResult,
116+
)
117+
from stackit.automation.models.get_volume_template_response import (
118+
GetVolumeTemplateResponse as GetVolumeTemplateResponse,
119+
)
120+
from stackit.automation.models.help_error_detail import (
121+
HelpErrorDetail as HelpErrorDetail,
122+
)
123+
from stackit.automation.models.list_automations_item import (
124+
ListAutomationsItem as ListAutomationsItem,
125+
)
126+
from stackit.automation.models.list_automations_response import (
127+
ListAutomationsResponse as ListAutomationsResponse,
128+
)
129+
from stackit.automation.models.list_executions_item import (
130+
ListExecutionsItem as ListExecutionsItem,
131+
)
132+
from stackit.automation.models.list_executions_response import (
133+
ListExecutionsResponse as ListExecutionsResponse,
134+
)
135+
from stackit.automation.models.list_templates_response import (
136+
ListTemplatesResponse as ListTemplatesResponse,
137+
)
138+
from stackit.automation.models.localized_message_error_detail import (
139+
LocalizedMessageErrorDetail as LocalizedMessageErrorDetail,
140+
)
141+
from stackit.automation.models.partial_update_volume_automation_payload import (
142+
PartialUpdateVolumeAutomationPayload as PartialUpdateVolumeAutomationPayload,
143+
)
144+
from stackit.automation.models.schedule import Schedule as Schedule
145+
from stackit.automation.models.schedule_details import (
146+
ScheduleDetails as ScheduleDetails,
147+
)
148+
from stackit.automation.models.schedule_patch_request import (
149+
SchedulePatchRequest as SchedulePatchRequest,
150+
)
151+
from stackit.automation.models.schedule_request import (
152+
ScheduleRequest as ScheduleRequest,
153+
)
154+
from stackit.automation.models.snapshot_retention_policy import (
155+
SnapshotRetentionPolicy as SnapshotRetentionPolicy,
156+
)
157+
from stackit.automation.models.snapshot_retention_policy_count import (
158+
SnapshotRetentionPolicyCount as SnapshotRetentionPolicyCount,
159+
)
160+
from stackit.automation.models.snapshot_retention_policy_indefinitely import (
161+
SnapshotRetentionPolicyIndefinitely as SnapshotRetentionPolicyIndefinitely,
162+
)
163+
from stackit.automation.models.template import Template as Template
164+
from stackit.automation.models.volume_automation import (
165+
VolumeAutomation as VolumeAutomation,
166+
)
167+
from stackit.automation.models.volume_automation_input import (
168+
VolumeAutomationInput as VolumeAutomationInput,
169+
)
170+
from stackit.automation.models.volume_execution_automation import (
171+
VolumeExecutionAutomation as VolumeExecutionAutomation,
172+
)
173+
from stackit.automation.models.volume_execution_details import (
174+
VolumeExecutionDetails as VolumeExecutionDetails,
175+
)
176+
from stackit.automation.models.volume_execution_output import (
177+
VolumeExecutionOutput as VolumeExecutionOutput,
178+
)
179+
from stackit.automation.models.volume_execution_output_step import (
180+
VolumeExecutionOutputStep as VolumeExecutionOutputStep,
181+
)
182+
from stackit.automation.models.volume_execution_response import (
183+
VolumeExecutionResponse as VolumeExecutionResponse,
184+
)
185+
from stackit.automation.models.volume_output import VolumeOutput as VolumeOutput
186+
from stackit.automation.models.volume_output_step import (
187+
VolumeOutputStep as VolumeOutputStep,
188+
)
189+
from stackit.automation.models.volume_output_step_result import (
190+
VolumeOutputStepResult as VolumeOutputStepResult,
191+
)
192+
from stackit.automation.models.volume_recovery_point_management_input import (
193+
VolumeRecoveryPointManagementInput as VolumeRecoveryPointManagementInput,
194+
)
195+
from stackit.automation.models.volume_template_automation_input import (
196+
VolumeTemplateAutomationInput as VolumeTemplateAutomationInput,
197+
)
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)