stackit-cdn 2.5.0__tar.gz → 2.7.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.5.0 → stackit_cdn-2.7.0}/PKG-INFO +3 -4
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/pyproject.toml +7 -7
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/__init__.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/api/default_api.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/api_client.py +20 -23
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/api_response.py +0 -1
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/configuration.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/exceptions.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/__init__.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/bucket_backend.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/bucket_backend_create.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/bucket_backend_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/bucket_credentials.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/config.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/config_backend.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/config_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/config_patch_backend.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/create_distribution_payload.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/create_distribution_payload_backend.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/create_distribution_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/custom_domain.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/delete_custom_domain_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/delete_distribution_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/distribution.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/distribution_logs_record.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/distribution_statistics_record.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/distribution_statistics_record_entry.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/distribution_statistics_record_regions.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/distribution_waf.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/domain.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/domain_status.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/error_details.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/find_cache_paths_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/find_cache_paths_response_entry.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/generic_json_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_cache_info_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_cache_info_response_history_entry.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_custom_domain_custom_certificate.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_custom_domain_managed_certificate.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_custom_domain_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_custom_domain_response_certificate.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_distribution_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_logs_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_logs_search_filters_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_logs_search_filters_response_datacenter_block.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_logs_search_filters_response_datacenter_block_item.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/get_statistics_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/http_backend.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/http_backend_create.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/http_backend_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/list_distributions_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/list_waf_collections_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/loki_log_sink.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/loki_log_sink_create.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/loki_log_sink_credentials.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/loki_log_sink_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/match_condition.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/matcher.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/optimizer.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/optimizer_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/patch_distribution_payload.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/patch_distribution_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/purge_cache_payload.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/put_custom_domain_custom_certificate.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/put_custom_domain_managed_certificate.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/put_custom_domain_payload.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/put_custom_domain_payload_certificate.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/put_custom_domain_response.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/put_custom_domain_response_certificate.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/redirect_config.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/redirect_rule.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/region.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/status_error.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/tls_config.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/tls_config_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_config.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_config_patch.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_mode.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_paranoia_level.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_rule.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_rule_action.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_rule_collection.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_rule_group.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block_reason.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block_reason_directly_defined.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block_reason_inherited_from_collection.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block_reason_inherited_from_group.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block_reason_invalid_waf_type.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_status_rule_block_reason_never_defined.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_type.py +5 -5
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/models/waf_violation.py +9 -8
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/rest.py +5 -6
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/.gitignore +0 -0
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/LICENSE.md +0 -0
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/NOTICE.txt +0 -0
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/README.md +0 -0
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/api/__init__.py +0 -0
- {stackit_cdn-2.5.0 → stackit_cdn-2.7.0}/src/stackit/cdn/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-cdn
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.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.7.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
|
|
@@ -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
|
|
|
@@ -66,6 +65,7 @@ class ApiClient:
|
|
|
66
65
|
"date": datetime.date,
|
|
67
66
|
"datetime": datetime.datetime,
|
|
68
67
|
"decimal": decimal.Decimal,
|
|
68
|
+
"UUID": uuid.UUID,
|
|
69
69
|
"object": object,
|
|
70
70
|
}
|
|
71
71
|
_pool = None
|
|
@@ -265,7 +265,7 @@ class ApiClient:
|
|
|
265
265
|
response_text = None
|
|
266
266
|
return_data = None
|
|
267
267
|
try:
|
|
268
|
-
if response_type
|
|
268
|
+
if response_type in ("bytearray", "bytes"):
|
|
269
269
|
return_data = response_data.data
|
|
270
270
|
elif response_type == "file":
|
|
271
271
|
return_data = self.__deserialize_file(response_data)
|
|
@@ -326,25 +326,20 @@ class ApiClient:
|
|
|
326
326
|
return obj.isoformat()
|
|
327
327
|
elif isinstance(obj, decimal.Decimal):
|
|
328
328
|
return str(obj)
|
|
329
|
-
|
|
330
329
|
elif isinstance(obj, dict):
|
|
331
|
-
|
|
330
|
+
return {key: self.sanitize_for_serialization(val) for key, val in obj.items()}
|
|
331
|
+
|
|
332
|
+
# Convert model obj to dict except
|
|
333
|
+
# attributes `openapi_types`, `attribute_map`
|
|
334
|
+
# and attributes which value is not None.
|
|
335
|
+
# Convert attribute name to json key in
|
|
336
|
+
# model definition for request.
|
|
337
|
+
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
338
|
+
obj_dict = obj.to_dict()
|
|
332
339
|
else:
|
|
333
|
-
|
|
334
|
-
# attributes `openapi_types`, `attribute_map`
|
|
335
|
-
# and attributes which value is not None.
|
|
336
|
-
# Convert attribute name to json key in
|
|
337
|
-
# model definition for request.
|
|
338
|
-
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
339
|
-
obj_dict = obj.to_dict()
|
|
340
|
-
else:
|
|
341
|
-
obj_dict = obj.__dict__
|
|
342
|
-
|
|
343
|
-
if isinstance(obj_dict, list):
|
|
344
|
-
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501
|
|
345
|
-
return self.sanitize_for_serialization(obj_dict)
|
|
340
|
+
obj_dict = obj.__dict__
|
|
346
341
|
|
|
347
|
-
return
|
|
342
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
348
343
|
|
|
349
344
|
def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
|
|
350
345
|
"""Deserializes response into an object.
|
|
@@ -417,6 +412,8 @@ class ApiClient:
|
|
|
417
412
|
return self.__deserialize_datetime(data)
|
|
418
413
|
elif klass is decimal.Decimal:
|
|
419
414
|
return decimal.Decimal(data)
|
|
415
|
+
elif klass is uuid.UUID:
|
|
416
|
+
return uuid.UUID(data)
|
|
420
417
|
elif issubclass(klass, Enum):
|
|
421
418
|
return self.__deserialize_enum(data, klass)
|
|
422
419
|
else:
|
|
@@ -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
|
|
@@ -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
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -32,7 +33,8 @@ class BucketBackend(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["bucketUrl", "region", "type"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class BucketBackend(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -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
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.cdn.models.bucket_credentials import BucketCredentials
|
|
@@ -35,7 +36,8 @@ class BucketBackendCreate(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["bucketUrl", "credentials", "region", "type"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class BucketBackendCreate(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -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
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.cdn.models.bucket_credentials import BucketCredentials
|
|
@@ -35,7 +36,8 @@ class BucketBackendPatch(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["bucketUrl", "credentials", "region", "type"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class BucketBackendPatch(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -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
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -31,7 +32,8 @@ class BucketCredentials(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["accessKeyId", "secretAccessKey"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -42,8 +44,7 @@ class BucketCredentials(BaseModel):
|
|
|
42
44
|
|
|
43
45
|
def to_json(self) -> str:
|
|
44
46
|
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -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
|
|
@@ -24,6 +24,7 @@ from pydantic import (
|
|
|
24
24
|
StrictBool,
|
|
25
25
|
StrictStr,
|
|
26
26
|
)
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
from typing_extensions import Annotated, Self
|
|
28
29
|
|
|
29
30
|
from stackit.cdn.models.config_backend import ConfigBackend
|
|
@@ -90,7 +91,8 @@ class Config(BaseModel):
|
|
|
90
91
|
]
|
|
91
92
|
|
|
92
93
|
model_config = ConfigDict(
|
|
93
|
-
|
|
94
|
+
validate_by_name=True,
|
|
95
|
+
validate_by_alias=True,
|
|
94
96
|
validate_assignment=True,
|
|
95
97
|
protected_namespaces=(),
|
|
96
98
|
)
|
|
@@ -101,8 +103,7 @@ class Config(BaseModel):
|
|
|
101
103
|
|
|
102
104
|
def to_json(self) -> str:
|
|
103
105
|
"""Returns the JSON representation of the model using alias"""
|
|
104
|
-
|
|
105
|
-
return json.dumps(self.to_dict())
|
|
106
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
106
107
|
|
|
107
108
|
@classmethod
|
|
108
109
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -24,6 +24,7 @@ from pydantic import (
|
|
|
24
24
|
StrictBool,
|
|
25
25
|
StrictStr,
|
|
26
26
|
)
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
from typing_extensions import Annotated, Self
|
|
28
29
|
|
|
29
30
|
from stackit.cdn.models.config_patch_backend import ConfigPatchBackend
|
|
@@ -94,7 +95,8 @@ class ConfigPatch(BaseModel):
|
|
|
94
95
|
]
|
|
95
96
|
|
|
96
97
|
model_config = ConfigDict(
|
|
97
|
-
|
|
98
|
+
validate_by_name=True,
|
|
99
|
+
validate_by_alias=True,
|
|
98
100
|
validate_assignment=True,
|
|
99
101
|
protected_namespaces=(),
|
|
100
102
|
)
|
|
@@ -105,8 +107,7 @@ class ConfigPatch(BaseModel):
|
|
|
105
107
|
|
|
106
108
|
def to_json(self) -> str:
|
|
107
109
|
"""Returns the JSON representation of the model using alias"""
|
|
108
|
-
|
|
109
|
-
return json.dumps(self.to_dict())
|
|
110
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
110
111
|
|
|
111
112
|
@classmethod
|
|
112
113
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -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_patch import BucketBackendPatch
|
|
29
29
|
from stackit.cdn.models.http_backend_patch import HttpBackendPatch
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
CONFIGPATCHBACKEND_ONE_OF_SCHEMAS = ["BucketBackendPatch", "HttpBackendPatch"]
|
|
33
32
|
|
|
34
33
|
|