Skip to content

Commit f2e9a13

Browse files
Generate automation
1 parent 815ef3e commit f2e9a13

54 files changed

Lines changed: 10762 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+
d7306ee5d2400a8571c390a29df8ffd02428182f

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.9,<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.9",
13+
"Programming Language :: Python :: 3.10",
14+
"Programming Language :: Python :: 3.11",
15+
"Programming Language :: Python :: 3.12",
16+
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
18+
]
19+
dependencies = [
20+
"stackit-core>=0.0.1a",
21+
"requests>=2.32.3",
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>=24.8.0",
33+
"pytest>=8.3.3",
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: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
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+
18+
__version__ = "1.0.0"
19+
20+
# Define package exports
21+
__all__ = [
22+
"DefaultApi",
23+
"ApiResponse",
24+
"ApiClient",
25+
"HostConfiguration",
26+
"OpenApiException",
27+
"ApiTypeError",
28+
"ApiValueError",
29+
"ApiKeyError",
30+
"ApiAttributeError",
31+
"ApiException",
32+
"AutomationScheduleTrigger",
33+
"AutomationTriggers",
34+
"CreateSnapshotsResult",
35+
"CreateVolumeAutomationPayload",
36+
"ErrorInfoDetail",
37+
"ErrorResponse",
38+
"ErrorResponseContent",
39+
"ErrorResponseContentDetails",
40+
"EventCreateResponse",
41+
"GenericInput",
42+
"GetVolumeIDsResult",
43+
"GetVolumeTemplateResponse",
44+
"HelpErrorDetail",
45+
"ListAutomationsItem",
46+
"ListAutomationsResponse",
47+
"ListExecutionsItem",
48+
"ListExecutionsResponse",
49+
"ListTemplatesResponse",
50+
"LocalizedMessageErrorDetail",
51+
"PartialUpdateVolumeAutomationPayload",
52+
"Schedule",
53+
"ScheduleDetails",
54+
"SchedulePatchRequest",
55+
"ScheduleRequest",
56+
"SnapshotRetentionPolicy",
57+
"SnapshotRetentionPolicyCount",
58+
"SnapshotRetentionPolicyIndefinitely",
59+
"Template",
60+
"VolumeAutomation",
61+
"VolumeAutomationInput",
62+
"VolumeExecutionAutomation",
63+
"VolumeExecutionDetails",
64+
"VolumeExecutionOutput",
65+
"VolumeExecutionOutputStep",
66+
"VolumeExecutionResponse",
67+
"VolumeOutput",
68+
"VolumeOutputStep",
69+
"VolumeOutputStepResult",
70+
"VolumeRecoveryPointManagementInput",
71+
"VolumeTemplateAutomationInput",
72+
]
73+
74+
# import apis into sdk package
75+
from stackit.automation.api.default_api import DefaultApi as DefaultApi
76+
from stackit.automation.api_client import ApiClient as ApiClient
77+
78+
# import ApiClient
79+
from stackit.automation.api_response import ApiResponse as ApiResponse
80+
from stackit.automation.configuration import HostConfiguration as HostConfiguration
81+
from stackit.automation.exceptions import ApiAttributeError as ApiAttributeError
82+
from stackit.automation.exceptions import ApiException as ApiException
83+
from stackit.automation.exceptions import ApiKeyError as ApiKeyError
84+
from stackit.automation.exceptions import ApiTypeError as ApiTypeError
85+
from stackit.automation.exceptions import ApiValueError as ApiValueError
86+
from stackit.automation.exceptions import OpenApiException as OpenApiException
87+
88+
# import models into sdk package
89+
from stackit.automation.models.automation_schedule_trigger import (
90+
AutomationScheduleTrigger as AutomationScheduleTrigger,
91+
)
92+
from stackit.automation.models.automation_triggers import (
93+
AutomationTriggers as AutomationTriggers,
94+
)
95+
from stackit.automation.models.create_snapshots_result import (
96+
CreateSnapshotsResult as CreateSnapshotsResult,
97+
)
98+
from stackit.automation.models.create_volume_automation_payload import (
99+
CreateVolumeAutomationPayload as CreateVolumeAutomationPayload,
100+
)
101+
from stackit.automation.models.error_info_detail import (
102+
ErrorInfoDetail as ErrorInfoDetail,
103+
)
104+
from stackit.automation.models.error_response import ErrorResponse as ErrorResponse
105+
from stackit.automation.models.error_response_content import (
106+
ErrorResponseContent as ErrorResponseContent,
107+
)
108+
from stackit.automation.models.error_response_content_details import (
109+
ErrorResponseContentDetails as ErrorResponseContentDetails,
110+
)
111+
from stackit.automation.models.event_create_response import (
112+
EventCreateResponse as EventCreateResponse,
113+
)
114+
from stackit.automation.models.generic_input import GenericInput as GenericInput
115+
from stackit.automation.models.get_volume_ids_result import (
116+
GetVolumeIDsResult as GetVolumeIDsResult,
117+
)
118+
from stackit.automation.models.get_volume_template_response import (
119+
GetVolumeTemplateResponse as GetVolumeTemplateResponse,
120+
)
121+
from stackit.automation.models.help_error_detail import (
122+
HelpErrorDetail as HelpErrorDetail,
123+
)
124+
from stackit.automation.models.list_automations_item import (
125+
ListAutomationsItem as ListAutomationsItem,
126+
)
127+
from stackit.automation.models.list_automations_response import (
128+
ListAutomationsResponse as ListAutomationsResponse,
129+
)
130+
from stackit.automation.models.list_executions_item import (
131+
ListExecutionsItem as ListExecutionsItem,
132+
)
133+
from stackit.automation.models.list_executions_response import (
134+
ListExecutionsResponse as ListExecutionsResponse,
135+
)
136+
from stackit.automation.models.list_templates_response import (
137+
ListTemplatesResponse as ListTemplatesResponse,
138+
)
139+
from stackit.automation.models.localized_message_error_detail import (
140+
LocalizedMessageErrorDetail as LocalizedMessageErrorDetail,
141+
)
142+
from stackit.automation.models.partial_update_volume_automation_payload import (
143+
PartialUpdateVolumeAutomationPayload as PartialUpdateVolumeAutomationPayload,
144+
)
145+
from stackit.automation.models.schedule import Schedule as Schedule
146+
from stackit.automation.models.schedule_details import (
147+
ScheduleDetails as ScheduleDetails,
148+
)
149+
from stackit.automation.models.schedule_patch_request import (
150+
SchedulePatchRequest as SchedulePatchRequest,
151+
)
152+
from stackit.automation.models.schedule_request import (
153+
ScheduleRequest as ScheduleRequest,
154+
)
155+
from stackit.automation.models.snapshot_retention_policy import (
156+
SnapshotRetentionPolicy as SnapshotRetentionPolicy,
157+
)
158+
from stackit.automation.models.snapshot_retention_policy_count import (
159+
SnapshotRetentionPolicyCount as SnapshotRetentionPolicyCount,
160+
)
161+
from stackit.automation.models.snapshot_retention_policy_indefinitely import (
162+
SnapshotRetentionPolicyIndefinitely as SnapshotRetentionPolicyIndefinitely,
163+
)
164+
from stackit.automation.models.template import Template as Template
165+
from stackit.automation.models.volume_automation import (
166+
VolumeAutomation as VolumeAutomation,
167+
)
168+
from stackit.automation.models.volume_automation_input import (
169+
VolumeAutomationInput as VolumeAutomationInput,
170+
)
171+
from stackit.automation.models.volume_execution_automation import (
172+
VolumeExecutionAutomation as VolumeExecutionAutomation,
173+
)
174+
from stackit.automation.models.volume_execution_details import (
175+
VolumeExecutionDetails as VolumeExecutionDetails,
176+
)
177+
from stackit.automation.models.volume_execution_output import (
178+
VolumeExecutionOutput as VolumeExecutionOutput,
179+
)
180+
from stackit.automation.models.volume_execution_output_step import (
181+
VolumeExecutionOutputStep as VolumeExecutionOutputStep,
182+
)
183+
from stackit.automation.models.volume_execution_response import (
184+
VolumeExecutionResponse as VolumeExecutionResponse,
185+
)
186+
from stackit.automation.models.volume_output import VolumeOutput as VolumeOutput
187+
from stackit.automation.models.volume_output_step import (
188+
VolumeOutputStep as VolumeOutputStep,
189+
)
190+
from stackit.automation.models.volume_output_step_result import (
191+
VolumeOutputStepResult as VolumeOutputStepResult,
192+
)
193+
from stackit.automation.models.volume_recovery_point_management_input import (
194+
VolumeRecoveryPointManagementInput as VolumeRecoveryPointManagementInput,
195+
)
196+
from stackit.automation.models.volume_template_automation_input import (
197+
VolumeTemplateAutomationInput as VolumeTemplateAutomationInput,
198+
)
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)