stackit-cdn 2.6.0__tar.gz → 2.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/PKG-INFO +4 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/pyproject.toml +7 -7
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/__init__.py +15 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api/default_api.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api_client.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api_response.py +0 -1
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/configuration.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/exceptions.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/__init__.py +10 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_backend.py +23 -9
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_backend_create.py +23 -9
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_backend_patch.py +25 -9
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_credentials.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config.py +13 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config_backend.py +5 -6
- stackit_cdn-2.8.0/src/stackit/cdn/models/config_log_sink.py +135 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config_patch.py +14 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config_patch_backend.py +5 -6
- stackit_cdn-2.8.0/src/stackit/cdn/models/config_patch_log_sink.py +141 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/create_distribution_payload.py +19 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/create_distribution_payload_backend.py +5 -6
- stackit_cdn-2.8.0/src/stackit/cdn/models/create_distribution_payload_log_sink.py +135 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/create_distribution_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/custom_domain.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/delete_custom_domain_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/delete_distribution_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_logs_record.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_statistics_record.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_statistics_record_entry.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_statistics_record_regions.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_waf.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/domain.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/domain_status.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/error_details.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/find_cache_paths_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/find_cache_paths_response_entry.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/generic_json_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_cache_info_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_cache_info_response_history_entry.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_custom_certificate.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_managed_certificate.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_response_certificate.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_distribution_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_search_filters_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_search_filters_response_datacenter_block.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_search_filters_response_datacenter_block_item.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_statistics_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/http_backend.py +16 -7
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/http_backend_create.py +16 -7
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/http_backend_patch.py +21 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/list_distributions_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/list_waf_collections_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink.py +18 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink_create.py +20 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink_credentials.py +9 -9
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink_patch.py +21 -8
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/match_condition.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/matcher.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/optimizer.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/optimizer_patch.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/patch_distribution_payload.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/patch_distribution_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/purge_cache_payload.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_custom_certificate.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_managed_certificate.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_payload.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_payload_certificate.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_response.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_response_certificate.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/redirect_config.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/redirect_rule.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/region.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/status_error.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/tls_config.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/tls_config_patch.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_config.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_config_patch.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_mode.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_paranoia_level.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule_action.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule_collection.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule_group.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_directly_defined.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_inherited_from_collection.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_inherited_from_group.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_invalid_waf_type.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_never_defined.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_type.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_violation.py +5 -5
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/rest.py +5 -6
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/.gitignore +0 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/LICENSE.md +0 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/NOTICE.txt +0 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/README.md +0 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api/__init__.py +0 -0
- {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: stackit-cdn
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.8.0
|
|
4
4
|
Summary: CDN API
|
|
5
5
|
Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
|
|
6
6
|
Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
|
|
@@ -10,16 +10,15 @@ License-File: NOTICE.txt
|
|
|
10
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
-
Requires-Python: <4.0,>=3.
|
|
18
|
+
Requires-Python: <4.0,>=3.10
|
|
20
19
|
Requires-Dist: pydantic>=2.9.2
|
|
21
20
|
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
22
|
-
Requires-Dist: requests>=2.
|
|
21
|
+
Requires-Dist: requests>=2.33.0
|
|
23
22
|
Requires-Dist: stackit-core>=0.0.1a
|
|
24
23
|
Description-Content-Type: text/markdown
|
|
25
24
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "stackit-cdn"
|
|
3
|
-
version = "v2.
|
|
3
|
+
version = "v2.8.0"
|
|
4
4
|
description = "CDN API"
|
|
5
5
|
authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
|
|
6
|
-
requires-python = ">=3.
|
|
6
|
+
requires-python = ">=3.10,<4.0"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
classifiers = [
|
|
9
9
|
"Programming Language :: Python :: 3",
|
|
10
10
|
"License :: OSI Approved :: Apache Software License",
|
|
11
11
|
"Operating System :: OS Independent",
|
|
12
|
-
"Programming Language :: Python :: 3.9",
|
|
13
12
|
"Programming Language :: Python :: 3.10",
|
|
14
13
|
"Programming Language :: Python :: 3.11",
|
|
15
14
|
"Programming Language :: Python :: 3.12",
|
|
@@ -18,7 +17,7 @@ classifiers = [
|
|
|
18
17
|
]
|
|
19
18
|
dependencies = [
|
|
20
19
|
"stackit-core>=0.0.1a",
|
|
21
|
-
"requests>=2.
|
|
20
|
+
"requests>=2.33.0",
|
|
22
21
|
"pydantic>=2.9.2",
|
|
23
22
|
"python-dateutil>=2.9.0.post0",
|
|
24
23
|
]
|
|
@@ -29,8 +28,8 @@ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
|
|
|
29
28
|
|
|
30
29
|
[dependency-groups]
|
|
31
30
|
dev = [
|
|
32
|
-
"black>=
|
|
33
|
-
"pytest>=
|
|
31
|
+
"black>=26.3.1",
|
|
32
|
+
"pytest>=9.1.1",
|
|
34
33
|
"flake8>=5.0.3 ; python_full_version < '3.12'",
|
|
35
34
|
"flake8>=6.0.1 ; python_full_version >= '3.12'",
|
|
36
35
|
"flake8-black>=0.3.6",
|
|
@@ -102,7 +101,8 @@ show-source = false
|
|
|
102
101
|
max-line-length = 120
|
|
103
102
|
# E203,W503 and E704 are incompatible with the formatter black
|
|
104
103
|
# W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
|
|
105
|
-
|
|
104
|
+
# fixing B042 in upstream exceptions.mustache would be a breaking change
|
|
105
|
+
ignore = ["E203", "W503", "E704", "W291", "B042"]
|
|
106
106
|
inline-quotes = '"'
|
|
107
107
|
docstring-quotes = '"""'
|
|
108
108
|
multiline-quotes = '"""'
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
|
-
|
|
6
|
+
STACKIT CDN API
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
API used to create and manage your CDN distributions.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
The version of the OpenAPI document: 1.0.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Do not edit the class manually.
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
__version__ = "1.0.0"
|
|
18
17
|
|
|
19
18
|
# Define package exports
|
|
@@ -34,10 +33,13 @@ __all__ = [
|
|
|
34
33
|
"BucketCredentials",
|
|
35
34
|
"Config",
|
|
36
35
|
"ConfigBackend",
|
|
36
|
+
"ConfigLogSink",
|
|
37
37
|
"ConfigPatch",
|
|
38
38
|
"ConfigPatchBackend",
|
|
39
|
+
"ConfigPatchLogSink",
|
|
39
40
|
"CreateDistributionPayload",
|
|
40
41
|
"CreateDistributionPayloadBackend",
|
|
42
|
+
"CreateDistributionPayloadLogSink",
|
|
41
43
|
"CreateDistributionResponse",
|
|
42
44
|
"CustomDomain",
|
|
43
45
|
"DeleteCustomDomainResponse",
|
|
@@ -138,16 +140,23 @@ from stackit.cdn.models.bucket_backend_patch import (
|
|
|
138
140
|
from stackit.cdn.models.bucket_credentials import BucketCredentials as BucketCredentials
|
|
139
141
|
from stackit.cdn.models.config import Config as Config
|
|
140
142
|
from stackit.cdn.models.config_backend import ConfigBackend as ConfigBackend
|
|
143
|
+
from stackit.cdn.models.config_log_sink import ConfigLogSink as ConfigLogSink
|
|
141
144
|
from stackit.cdn.models.config_patch import ConfigPatch as ConfigPatch
|
|
142
145
|
from stackit.cdn.models.config_patch_backend import (
|
|
143
146
|
ConfigPatchBackend as ConfigPatchBackend,
|
|
144
147
|
)
|
|
148
|
+
from stackit.cdn.models.config_patch_log_sink import (
|
|
149
|
+
ConfigPatchLogSink as ConfigPatchLogSink,
|
|
150
|
+
)
|
|
145
151
|
from stackit.cdn.models.create_distribution_payload import (
|
|
146
152
|
CreateDistributionPayload as CreateDistributionPayload,
|
|
147
153
|
)
|
|
148
154
|
from stackit.cdn.models.create_distribution_payload_backend import (
|
|
149
155
|
CreateDistributionPayloadBackend as CreateDistributionPayloadBackend,
|
|
150
156
|
)
|
|
157
|
+
from stackit.cdn.models.create_distribution_payload_log_sink import (
|
|
158
|
+
CreateDistributionPayloadLogSink as CreateDistributionPayloadLogSink,
|
|
159
|
+
)
|
|
151
160
|
from stackit.cdn.models.create_distribution_response import (
|
|
152
161
|
CreateDistributionResponse as CreateDistributionResponse,
|
|
153
162
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from datetime import datetime
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
import datetime
|
|
@@ -36,7 +36,6 @@ from stackit.cdn.exceptions import (
|
|
|
36
36
|
ApiException,
|
|
37
37
|
)
|
|
38
38
|
|
|
39
|
-
|
|
40
39
|
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
|
|
41
40
|
|
|
42
41
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
import sys
|
|
@@ -18,7 +18,6 @@ from typing_extensions import NotRequired
|
|
|
18
18
|
|
|
19
19
|
import os
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
ServerVariablesT = Dict[str, str]
|
|
23
22
|
|
|
24
23
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from typing import Any, Optional
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
"""
|
|
5
|
-
|
|
5
|
+
STACKIT CDN API
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
API used to create and manage your CDN distributions.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
The version of the OpenAPI document: 1.0.0
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Do not edit the class manually.
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
15
|
# import models into model package
|
|
@@ -19,12 +19,17 @@ from stackit.cdn.models.bucket_backend_patch import BucketBackendPatch
|
|
|
19
19
|
from stackit.cdn.models.bucket_credentials import BucketCredentials
|
|
20
20
|
from stackit.cdn.models.config import Config
|
|
21
21
|
from stackit.cdn.models.config_backend import ConfigBackend
|
|
22
|
+
from stackit.cdn.models.config_log_sink import ConfigLogSink
|
|
22
23
|
from stackit.cdn.models.config_patch import ConfigPatch
|
|
23
24
|
from stackit.cdn.models.config_patch_backend import ConfigPatchBackend
|
|
25
|
+
from stackit.cdn.models.config_patch_log_sink import ConfigPatchLogSink
|
|
24
26
|
from stackit.cdn.models.create_distribution_payload import CreateDistributionPayload
|
|
25
27
|
from stackit.cdn.models.create_distribution_payload_backend import (
|
|
26
28
|
CreateDistributionPayloadBackend,
|
|
27
29
|
)
|
|
30
|
+
from stackit.cdn.models.create_distribution_payload_log_sink import (
|
|
31
|
+
CreateDistributionPayloadLogSink,
|
|
32
|
+
)
|
|
28
33
|
from stackit.cdn.models.create_distribution_response import CreateDistributionResponse
|
|
29
34
|
from stackit.cdn.models.custom_domain import CustomDomain
|
|
30
35
|
from stackit.cdn.models.delete_custom_domain_response import DeleteCustomDomainResponse
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
21
|
from pydantic_core import to_jsonable_python
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
@@ -27,11 +27,25 @@ class BucketBackend(BaseModel):
|
|
|
27
27
|
BucketBackend
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
|
|
30
|
-
bucket_url: StrictStr = Field(
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
bucket_url: StrictStr = Field(
|
|
31
|
+
description="The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`).",
|
|
32
|
+
alias="bucketUrl",
|
|
33
|
+
)
|
|
34
|
+
region: StrictStr = Field(
|
|
35
|
+
description="The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT)."
|
|
36
|
+
)
|
|
37
|
+
type: StrictStr = Field(
|
|
38
|
+
description="Defines the type of content origin. For this schema, it must be set to `bucket`."
|
|
39
|
+
)
|
|
33
40
|
__properties: ClassVar[List[str]] = ["bucketUrl", "region", "type"]
|
|
34
41
|
|
|
42
|
+
@field_validator("type")
|
|
43
|
+
def type_validate_enum(cls, value):
|
|
44
|
+
"""Validates the enum"""
|
|
45
|
+
if value not in set(["bucket"]):
|
|
46
|
+
raise ValueError("must be one of enum values ('bucket')")
|
|
47
|
+
return value
|
|
48
|
+
|
|
35
49
|
model_config = ConfigDict(
|
|
36
50
|
validate_by_name=True,
|
|
37
51
|
validate_by_alias=True,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
21
|
from pydantic_core import to_jsonable_python
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
@@ -29,12 +29,26 @@ class BucketBackendCreate(BaseModel):
|
|
|
29
29
|
BucketBackendCreate
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
|
|
32
|
-
bucket_url: StrictStr = Field(
|
|
32
|
+
bucket_url: StrictStr = Field(
|
|
33
|
+
description="The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`).",
|
|
34
|
+
alias="bucketUrl",
|
|
35
|
+
)
|
|
33
36
|
credentials: BucketCredentials
|
|
34
|
-
region: StrictStr
|
|
35
|
-
|
|
37
|
+
region: StrictStr = Field(
|
|
38
|
+
description="The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT)."
|
|
39
|
+
)
|
|
40
|
+
type: StrictStr = Field(
|
|
41
|
+
description="Defines the type of content origin. For this schema, it must be set to `bucket`."
|
|
42
|
+
)
|
|
36
43
|
__properties: ClassVar[List[str]] = ["bucketUrl", "credentials", "region", "type"]
|
|
37
44
|
|
|
45
|
+
@field_validator("type")
|
|
46
|
+
def type_validate_enum(cls, value):
|
|
47
|
+
"""Validates the enum"""
|
|
48
|
+
if value not in set(["bucket"]):
|
|
49
|
+
raise ValueError("must be one of enum values ('bucket')")
|
|
50
|
+
return value
|
|
51
|
+
|
|
38
52
|
model_config = ConfigDict(
|
|
39
53
|
validate_by_name=True,
|
|
40
54
|
validate_by_alias=True,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
21
|
from pydantic_core import to_jsonable_python
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
@@ -29,12 +29,28 @@ class BucketBackendPatch(BaseModel):
|
|
|
29
29
|
BucketBackendPatch
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
|
|
32
|
-
bucket_url: Optional[StrictStr] = Field(
|
|
32
|
+
bucket_url: Optional[StrictStr] = Field(
|
|
33
|
+
default=None,
|
|
34
|
+
description="The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`).",
|
|
35
|
+
alias="bucketUrl",
|
|
36
|
+
)
|
|
33
37
|
credentials: Optional[BucketCredentials] = None
|
|
34
|
-
region: Optional[StrictStr] =
|
|
35
|
-
|
|
38
|
+
region: Optional[StrictStr] = Field(
|
|
39
|
+
default=None,
|
|
40
|
+
description="The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT).",
|
|
41
|
+
)
|
|
42
|
+
type: StrictStr = Field(
|
|
43
|
+
description="Defines the type of content origin. For this schema, it must be set to `bucket`."
|
|
44
|
+
)
|
|
36
45
|
__properties: ClassVar[List[str]] = ["bucketUrl", "credentials", "region", "type"]
|
|
37
46
|
|
|
47
|
+
@field_validator("type")
|
|
48
|
+
def type_validate_enum(cls, value):
|
|
49
|
+
"""Validates the enum"""
|
|
50
|
+
if value not in set(["bucket"]):
|
|
51
|
+
raise ValueError("must be one of enum values ('bucket')")
|
|
52
|
+
return value
|
|
53
|
+
|
|
38
54
|
model_config = ConfigDict(
|
|
39
55
|
validate_by_name=True,
|
|
40
56
|
validate_by_alias=True,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -28,7 +28,7 @@ from pydantic_core import to_jsonable_python
|
|
|
28
28
|
from typing_extensions import Annotated, Self
|
|
29
29
|
|
|
30
30
|
from stackit.cdn.models.config_backend import ConfigBackend
|
|
31
|
-
from stackit.cdn.models.
|
|
31
|
+
from stackit.cdn.models.config_log_sink import ConfigLogSink
|
|
32
32
|
from stackit.cdn.models.optimizer import Optimizer
|
|
33
33
|
from stackit.cdn.models.redirect_config import RedirectConfig
|
|
34
34
|
from stackit.cdn.models.region import Region
|
|
@@ -59,7 +59,10 @@ class Config(BaseModel):
|
|
|
59
59
|
description="Enabling this allows the 'Host' header to be passed through to the origin. ",
|
|
60
60
|
alias="forwardHostHeader",
|
|
61
61
|
)
|
|
62
|
-
|
|
62
|
+
labels: Optional[Dict[str, StrictStr]] = Field(
|
|
63
|
+
default=None, description="Labels are key-value string pairs that can be attached to a distribution."
|
|
64
|
+
)
|
|
65
|
+
log_sink: Optional[ConfigLogSink] = Field(default=None, alias="logSink")
|
|
63
66
|
monthly_limit_bytes: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(
|
|
64
67
|
default=None,
|
|
65
68
|
description="Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. ",
|
|
@@ -80,6 +83,7 @@ class Config(BaseModel):
|
|
|
80
83
|
"blockedIps",
|
|
81
84
|
"defaultCacheDuration",
|
|
82
85
|
"forwardHostHeader",
|
|
86
|
+
"labels",
|
|
83
87
|
"logSink",
|
|
84
88
|
"monthlyLimitBytes",
|
|
85
89
|
"optimizer",
|
|
@@ -173,7 +177,8 @@ class Config(BaseModel):
|
|
|
173
177
|
"blockedIps": obj.get("blockedIps"),
|
|
174
178
|
"defaultCacheDuration": obj.get("defaultCacheDuration"),
|
|
175
179
|
"forwardHostHeader": obj.get("forwardHostHeader"),
|
|
176
|
-
"
|
|
180
|
+
"labels": obj.get("labels"),
|
|
181
|
+
"logSink": ConfigLogSink.from_dict(obj["logSink"]) if obj.get("logSink") is not None else None,
|
|
177
182
|
"monthlyLimitBytes": obj.get("monthlyLimitBytes"),
|
|
178
183
|
"optimizer": Optimizer.from_dict(obj["optimizer"]) if obj.get("optimizer") is not None else None,
|
|
179
184
|
"redirects": RedirectConfig.from_dict(obj["redirects"]) if obj.get("redirects") is not None else None,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
STACKIT CDN API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
API used to create and manage your CDN distributions.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Do not edit the class manually.
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -28,7 +28,6 @@ from typing_extensions import Self
|
|
|
28
28
|
from stackit.cdn.models.bucket_backend import BucketBackend
|
|
29
29
|
from stackit.cdn.models.http_backend import HttpBackend
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
CONFIGBACKEND_ONE_OF_SCHEMAS = ["BucketBackend", "HttpBackend"]
|
|
33
32
|
|
|
34
33
|
|