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.
Files changed (102) hide show
  1. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/PKG-INFO +4 -5
  2. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/pyproject.toml +7 -7
  3. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/__init__.py +15 -6
  4. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api/default_api.py +5 -5
  5. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api_client.py +5 -6
  6. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api_response.py +0 -1
  7. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/configuration.py +5 -6
  8. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/exceptions.py +5 -5
  9. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/__init__.py +10 -5
  10. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_backend.py +23 -9
  11. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_backend_create.py +23 -9
  12. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_backend_patch.py +25 -9
  13. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/bucket_credentials.py +5 -5
  14. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config.py +13 -8
  15. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config_backend.py +5 -6
  16. stackit_cdn-2.8.0/src/stackit/cdn/models/config_log_sink.py +135 -0
  17. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config_patch.py +14 -8
  18. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/config_patch_backend.py +5 -6
  19. stackit_cdn-2.8.0/src/stackit/cdn/models/config_patch_log_sink.py +141 -0
  20. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/create_distribution_payload.py +19 -8
  21. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/create_distribution_payload_backend.py +5 -6
  22. stackit_cdn-2.8.0/src/stackit/cdn/models/create_distribution_payload_log_sink.py +135 -0
  23. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/create_distribution_response.py +5 -5
  24. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/custom_domain.py +5 -5
  25. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/delete_custom_domain_response.py +5 -5
  26. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/delete_distribution_response.py +5 -5
  27. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution.py +5 -5
  28. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_logs_record.py +5 -5
  29. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_statistics_record.py +5 -5
  30. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_statistics_record_entry.py +5 -5
  31. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_statistics_record_regions.py +5 -5
  32. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/distribution_waf.py +5 -5
  33. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/domain.py +5 -5
  34. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/domain_status.py +5 -5
  35. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/error_details.py +5 -5
  36. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/find_cache_paths_response.py +5 -5
  37. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/find_cache_paths_response_entry.py +5 -5
  38. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/generic_json_response.py +5 -5
  39. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_cache_info_response.py +5 -5
  40. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_cache_info_response_history_entry.py +5 -5
  41. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_custom_certificate.py +5 -5
  42. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_managed_certificate.py +5 -5
  43. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_response.py +5 -5
  44. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_custom_domain_response_certificate.py +5 -6
  45. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_distribution_response.py +5 -5
  46. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_response.py +5 -5
  47. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_search_filters_response.py +5 -5
  48. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_logs_search_filters_response_datacenter_block.py +5 -5
  49. {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
  50. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/get_statistics_response.py +5 -5
  51. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/http_backend.py +16 -7
  52. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/http_backend_create.py +16 -7
  53. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/http_backend_patch.py +21 -8
  54. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/list_distributions_response.py +5 -5
  55. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/list_waf_collections_response.py +5 -5
  56. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink.py +18 -8
  57. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink_create.py +20 -8
  58. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink_credentials.py +9 -9
  59. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/loki_log_sink_patch.py +21 -8
  60. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/match_condition.py +5 -5
  61. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/matcher.py +5 -5
  62. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/optimizer.py +5 -5
  63. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/optimizer_patch.py +5 -5
  64. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/patch_distribution_payload.py +5 -5
  65. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/patch_distribution_response.py +5 -5
  66. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/purge_cache_payload.py +5 -5
  67. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_custom_certificate.py +5 -5
  68. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_managed_certificate.py +5 -5
  69. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_payload.py +5 -5
  70. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_payload_certificate.py +5 -6
  71. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_response.py +5 -5
  72. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/put_custom_domain_response_certificate.py +5 -6
  73. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/redirect_config.py +5 -5
  74. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/redirect_rule.py +5 -5
  75. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/region.py +5 -5
  76. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/status_error.py +5 -5
  77. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/tls_config.py +5 -5
  78. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/tls_config_patch.py +5 -5
  79. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_config.py +5 -5
  80. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_config_patch.py +5 -5
  81. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_mode.py +5 -5
  82. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_paranoia_level.py +5 -5
  83. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule.py +5 -5
  84. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule_action.py +5 -5
  85. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule_collection.py +5 -5
  86. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_rule_group.py +5 -5
  87. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block.py +5 -5
  88. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason.py +5 -6
  89. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_directly_defined.py +5 -5
  90. {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
  91. {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
  92. {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
  93. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_status_rule_block_reason_never_defined.py +5 -5
  94. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_type.py +5 -5
  95. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/models/waf_violation.py +5 -5
  96. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/rest.py +5 -6
  97. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/.gitignore +0 -0
  98. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/LICENSE.md +0 -0
  99. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/NOTICE.txt +0 -0
  100. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/README.md +0 -0
  101. {stackit_cdn-2.6.0 → stackit_cdn-2.8.0}/src/stackit/cdn/api/__init__.py +0 -0
  102. {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.4
1
+ Metadata-Version: 2.5
2
2
  Name: stackit-cdn
3
- Version: 2.6.0
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.9
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.32.3
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.6.0"
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.9,<4.0"
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.32.3",
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>=24.8.0",
33
- "pytest>=8.3.3",
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
- ignore = ["E203", "W503", "E704", "W291"]
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
- STACKIT CDN API
6
+ STACKIT CDN API
7
7
 
8
- API used to create and manage your CDN distributions.
8
+ API used to create and manage your CDN distributions.
9
9
 
10
- The version of the OpenAPI document: 1.0.0
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 1.0.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
- Do not edit the class manually.
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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
 
@@ -6,7 +6,6 @@ from typing import Generic, Mapping, Optional, TypeVar
6
6
 
7
7
  from pydantic import BaseModel, Field, StrictBytes, StrictInt
8
8
 
9
-
10
9
  T = TypeVar("T")
11
10
 
12
11
 
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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
- STACKIT CDN API
5
+ STACKIT CDN API
6
6
 
7
- API used to create and manage your CDN distributions.
7
+ API used to create and manage your CDN distributions.
8
8
 
9
- The version of the OpenAPI document: 1.0.0
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 1.0.0
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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(alias="bucketUrl")
31
- region: StrictStr
32
- type: StrictStr
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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(alias="bucketUrl")
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
- type: StrictStr
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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(default=None, alias="bucketUrl")
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] = None
35
- type: StrictStr
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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.loki_log_sink import LokiLogSink
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
- log_sink: Optional[LokiLogSink] = Field(default=None, alias="logSink")
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
- "logSink": LokiLogSink.from_dict(obj["logSink"]) if obj.get("logSink") is not None else None,
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
- STACKIT CDN API
4
+ STACKIT CDN API
5
5
 
6
- API used to create and manage your CDN distributions.
6
+ API used to create and manage your CDN distributions.
7
7
 
8
- The version of the OpenAPI document: 1.0.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
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