Skip to content

Commit b6f1883

Browse files
Generate cdn (#765)
Co-authored-by: Rüdiger Schmitz <[email protected]>
1 parent 3e95287 commit b6f1883

Some content is hidden

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

47 files changed

+9497
-0
lines changed

services/cdn/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# stackit.cdn
2+
API used to create and manage your CDN distributions.
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-cdn
13+
```
14+
15+
Then import the package:
16+
```python
17+
import stackit.cdn
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/cdn/poetry.lock

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

services/cdn/pyproject.toml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
[project]
2+
name = "stackit-cdn"
3+
4+
[tool.poetry]
5+
name = "stackit-cdn"
6+
version = "v0.0.1a"
7+
authors = [
8+
"STACKIT Developer Tools <[email protected]>",
9+
]
10+
description = "CDN 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.8,<4.0"
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+
per-file-ignores = """
99+
# asserts are fine in tests, tests shouldn't be build optimized
100+
./tests/*: S101,
101+
# F841: some variables get generated but may not be used, depending on the api-spec
102+
# E501: long descriptions/string values might lead to lines that are too long
103+
./src/stackit/*/models/*: F841,E501
104+
# F841: some variables get generated but may not be used, depending on the api-spec
105+
# E501: long descriptions/string values might lead to lines that are too long
106+
# B028: stacklevel for deprecation warning is irrelevant
107+
./src/stackit/*/api/default_api.py: F841,B028,E501
108+
"""
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
CDN API
7+
8+
API used to create and manage your CDN distributions.
9+
10+
The version of the OpenAPI document: 1beta.0.0
11+
Generated by OpenAPI Generator (https://openapi-generator.tech)
12+
13+
Do not edit the class manually.
14+
""" # noqa: E501 docstring might be too long
15+
16+
17+
__version__ = "1.0.0"
18+
19+
# import apis into sdk package
20+
from stackit.cdn.api.default_api import DefaultApi
21+
from stackit.cdn.api_client import ApiClient
22+
23+
# import ApiClient
24+
from stackit.cdn.api_response import ApiResponse
25+
from stackit.cdn.configuration import HostConfiguration
26+
from stackit.cdn.exceptions import (
27+
ApiAttributeError,
28+
ApiException,
29+
ApiKeyError,
30+
ApiTypeError,
31+
ApiValueError,
32+
OpenApiException,
33+
)
34+
35+
# import models into sdk package
36+
from stackit.cdn.models.config import Config
37+
from stackit.cdn.models.config_backend import ConfigBackend
38+
from stackit.cdn.models.config_patch import ConfigPatch
39+
from stackit.cdn.models.config_patch_backend import ConfigPatchBackend
40+
from stackit.cdn.models.create_distribution_payload import CreateDistributionPayload
41+
from stackit.cdn.models.create_distribution_response import CreateDistributionResponse
42+
from stackit.cdn.models.custom_domain import CustomDomain
43+
from stackit.cdn.models.delete_custom_domain_response import DeleteCustomDomainResponse
44+
from stackit.cdn.models.delete_distribution_response import DeleteDistributionResponse
45+
from stackit.cdn.models.distribution import Distribution
46+
from stackit.cdn.models.distribution_statistics_record import (
47+
DistributionStatisticsRecord,
48+
)
49+
from stackit.cdn.models.distribution_statistics_record_entry import (
50+
DistributionStatisticsRecordEntry,
51+
)
52+
from stackit.cdn.models.distribution_statistics_record_regions import (
53+
DistributionStatisticsRecordRegions,
54+
)
55+
from stackit.cdn.models.domain import Domain
56+
from stackit.cdn.models.domain_status import DomainStatus
57+
from stackit.cdn.models.find_cache_paths_response import FindCachePathsResponse
58+
from stackit.cdn.models.find_cache_paths_response_entry import (
59+
FindCachePathsResponseEntry,
60+
)
61+
from stackit.cdn.models.generic_json_response import GenericJSONResponse
62+
from stackit.cdn.models.generic_json_response_details_inner import (
63+
GenericJSONResponseDetailsInner,
64+
)
65+
from stackit.cdn.models.get_cache_info_response import GetCacheInfoResponse
66+
from stackit.cdn.models.get_cache_info_response_history_entry import (
67+
GetCacheInfoResponseHistoryEntry,
68+
)
69+
from stackit.cdn.models.get_custom_domain_response import GetCustomDomainResponse
70+
from stackit.cdn.models.get_distribution_response import GetDistributionResponse
71+
from stackit.cdn.models.get_statistics_response import GetStatisticsResponse
72+
from stackit.cdn.models.http_backend import HttpBackend
73+
from stackit.cdn.models.http_backend_patch import HttpBackendPatch
74+
from stackit.cdn.models.list_distributions_response import ListDistributionsResponse
75+
from stackit.cdn.models.patch_distribution_payload import PatchDistributionPayload
76+
from stackit.cdn.models.patch_distribution_response import PatchDistributionResponse
77+
from stackit.cdn.models.purge_cache_payload import PurgeCachePayload
78+
from stackit.cdn.models.put_custom_domain_payload import PutCustomDomainPayload
79+
from stackit.cdn.models.put_custom_domain_response import PutCustomDomainResponse
80+
from stackit.cdn.models.region import Region
81+
from stackit.cdn.models.status_error import StatusError
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.cdn.api.default_api import DefaultApi

0 commit comments

Comments
 (0)