Skip to content

Commit 2da005a

Browse files
Generator: Update SDK /services/cdn (#2069)
* Generate cdn * Add changelogs Signed-off-by: Alexander Dahmen <[email protected]> --------- Signed-off-by: Alexander Dahmen <[email protected]> Co-authored-by: Alexander Dahmen <[email protected]>
1 parent e66e64a commit 2da005a

20 files changed

+1237
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
- **Version**: Minimal version is now python 3.9
44
- `authorization`: [v0.3.0](services/authorization/CHANGELOG.md#v030)
55
- **Version**: Minimal version is now python 3.9
6-
- `cdn`: [v1.4.0](services/cdn/CHANGELOG.md#v140)
7-
- **Version**: Minimal version is now python 3.9
6+
- `cdn`:
7+
- [v1.5.0](services/cdn/CHANGELOG.md#v150)
8+
- **Feature:** Added new filter functions `DataCenterRegion`, `RequestCountryCode`, `StatusCode` and `CacheHit`
9+
- **Feature:** Added Attribute `LogSink` and `Certificate`
10+
- **Feature:** Added `ConfigLogSink` and `PatchLokiLogSink` functionality
11+
- [v1.4.0](services/cdn/CHANGELOG.md#v140)
12+
- **Version**: Minimal version is now python 3.9
813
- `certificates`: [v1.1.0](services/certificates/CHANGELOG.md#v110)
914
- **Version**: Minimal version is now python 3.9
1015
- `dns`: [v0.5.0](services/dns/CHANGELOG.md#v050)

services/cdn/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v1.5.0
2+
- **Feature:** Added new filter functions `DataCenterRegion`, `RequestCountryCode`, `StatusCode` and `CacheHit`
3+
- **Feature:** Added Attribute `LogSink` and `Certificate`
4+
- **Feature:** Added `ConfigLogSink` and `PatchLokiLogSink` functionality
5+
16
## v1.4.0
27
- **Version**: Minimal version is now python 3.9
38

services/cdn/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-cdn"
33

44
[tool.poetry]
55
name = "stackit-cdn"
6-
version = "v1.4.0"
6+
version = "v1.5.0"
77
authors = [
88
"STACKIT Developer Tools <[email protected]>",
99
]

services/cdn/src/stackit/cdn/__init__.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,29 @@
4848
"GenericJSONResponse",
4949
"GetCacheInfoResponse",
5050
"GetCacheInfoResponseHistoryEntry",
51+
"GetCustomDomainCustomCertificate",
52+
"GetCustomDomainManagedCertificate",
5153
"GetCustomDomainResponse",
54+
"GetCustomDomainResponseCertificate",
5255
"GetDistributionResponse",
5356
"GetLogsResponse",
5457
"GetStatisticsResponse",
5558
"HttpBackend",
5659
"HttpBackendPatch",
5760
"ListDistributionsResponse",
61+
"LokiLogSink",
5862
"Optimizer",
5963
"OptimizerPatch",
6064
"PatchDistributionPayload",
6165
"PatchDistributionResponse",
66+
"PatchLokiLogSink",
6267
"PurgeCachePayload",
68+
"PutCustomDomainCustomCertificate",
69+
"PutCustomDomainManagedCertificate",
6370
"PutCustomDomainPayload",
71+
"PutCustomDomainPayloadCertificate",
6472
"PutCustomDomainResponse",
73+
"PutCustomDomainResponseCertificate",
6574
"Region",
6675
"StatusError",
6776
]
@@ -127,9 +136,18 @@
127136
from stackit.cdn.models.get_cache_info_response_history_entry import (
128137
GetCacheInfoResponseHistoryEntry as GetCacheInfoResponseHistoryEntry,
129138
)
139+
from stackit.cdn.models.get_custom_domain_custom_certificate import (
140+
GetCustomDomainCustomCertificate as GetCustomDomainCustomCertificate,
141+
)
142+
from stackit.cdn.models.get_custom_domain_managed_certificate import (
143+
GetCustomDomainManagedCertificate as GetCustomDomainManagedCertificate,
144+
)
130145
from stackit.cdn.models.get_custom_domain_response import (
131146
GetCustomDomainResponse as GetCustomDomainResponse,
132147
)
148+
from stackit.cdn.models.get_custom_domain_response_certificate import (
149+
GetCustomDomainResponseCertificate as GetCustomDomainResponseCertificate,
150+
)
133151
from stackit.cdn.models.get_distribution_response import (
134152
GetDistributionResponse as GetDistributionResponse,
135153
)
@@ -142,6 +160,7 @@
142160
from stackit.cdn.models.list_distributions_response import (
143161
ListDistributionsResponse as ListDistributionsResponse,
144162
)
163+
from stackit.cdn.models.loki_log_sink import LokiLogSink as LokiLogSink
145164
from stackit.cdn.models.optimizer import Optimizer as Optimizer
146165
from stackit.cdn.models.optimizer_patch import OptimizerPatch as OptimizerPatch
147166
from stackit.cdn.models.patch_distribution_payload import (
@@ -150,14 +169,27 @@
150169
from stackit.cdn.models.patch_distribution_response import (
151170
PatchDistributionResponse as PatchDistributionResponse,
152171
)
172+
from stackit.cdn.models.patch_loki_log_sink import PatchLokiLogSink as PatchLokiLogSink
153173
from stackit.cdn.models.purge_cache_payload import (
154174
PurgeCachePayload as PurgeCachePayload,
155175
)
176+
from stackit.cdn.models.put_custom_domain_custom_certificate import (
177+
PutCustomDomainCustomCertificate as PutCustomDomainCustomCertificate,
178+
)
179+
from stackit.cdn.models.put_custom_domain_managed_certificate import (
180+
PutCustomDomainManagedCertificate as PutCustomDomainManagedCertificate,
181+
)
156182
from stackit.cdn.models.put_custom_domain_payload import (
157183
PutCustomDomainPayload as PutCustomDomainPayload,
158184
)
185+
from stackit.cdn.models.put_custom_domain_payload_certificate import (
186+
PutCustomDomainPayloadCertificate as PutCustomDomainPayloadCertificate,
187+
)
159188
from stackit.cdn.models.put_custom_domain_response import (
160189
PutCustomDomainResponse as PutCustomDomainResponse,
161190
)
191+
from stackit.cdn.models.put_custom_domain_response_certificate import (
192+
PutCustomDomainResponseCertificate as PutCustomDomainResponseCertificate,
193+
)
162194
from stackit.cdn.models.region import Region as Region
163195
from stackit.cdn.models.status_error import StatusError as StatusError

services/cdn/src/stackit/cdn/api/default_api.py

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
from pydantic import (
1818
Field,
19+
StrictBool,
1920
StrictFloat,
2021
StrictInt,
2122
StrictStr,
@@ -1971,6 +1972,30 @@ def get_logs(
19711972
),
19721973
] = None,
19731974
sort_order: Optional[StrictStr] = None,
1975+
data_center_region: Annotated[
1976+
Optional[StrictStr],
1977+
Field(
1978+
description="Filters by the CDN data center region that served the request. Can be combined with other filters "
1979+
),
1980+
] = None,
1981+
request_country_code: Annotated[
1982+
Optional[StrictStr],
1983+
Field(
1984+
description="Filters by the originating country of the user request. Can be combined with other filters "
1985+
),
1986+
] = None,
1987+
status_code: Annotated[
1988+
Optional[StrictInt],
1989+
Field(
1990+
description="Filters by the HTTP status code returned to the client. Can be combined with other filters "
1991+
),
1992+
] = None,
1993+
cache_hit: Annotated[
1994+
Optional[StrictBool],
1995+
Field(
1996+
description="Filters based on whether the request was served from the CDN cache. Can be combined with other filters "
1997+
),
1998+
] = None,
19741999
_request_timeout: Union[
19752000
None,
19762001
Annotated[StrictFloat, Field(gt=0)],
@@ -2000,6 +2025,14 @@ def get_logs(
20002025
:type sort_by: str
20012026
:param sort_order:
20022027
:type sort_order: str
2028+
:param data_center_region: Filters by the CDN data center region that served the request. Can be combined with other filters
2029+
:type data_center_region: str
2030+
:param request_country_code: Filters by the originating country of the user request. Can be combined with other filters
2031+
:type request_country_code: str
2032+
:param status_code: Filters by the HTTP status code returned to the client. Can be combined with other filters
2033+
:type status_code: int
2034+
:param cache_hit: Filters based on whether the request was served from the CDN cache. Can be combined with other filters
2035+
:type cache_hit: bool
20032036
:param _request_timeout: timeout setting for this request. If one
20042037
number provided, it will be total request
20052038
timeout. It can also be a pair (tuple) of
@@ -2031,6 +2064,10 @@ def get_logs(
20312064
page_identifier=page_identifier,
20322065
sort_by=sort_by,
20332066
sort_order=sort_order,
2067+
data_center_region=data_center_region,
2068+
request_country_code=request_country_code,
2069+
status_code=status_code,
2070+
cache_hit=cache_hit,
20342071
_request_auth=_request_auth,
20352072
_content_type=_content_type,
20362073
_headers=_headers,
@@ -2083,6 +2120,30 @@ def get_logs_with_http_info(
20832120
),
20842121
] = None,
20852122
sort_order: Optional[StrictStr] = None,
2123+
data_center_region: Annotated[
2124+
Optional[StrictStr],
2125+
Field(
2126+
description="Filters by the CDN data center region that served the request. Can be combined with other filters "
2127+
),
2128+
] = None,
2129+
request_country_code: Annotated[
2130+
Optional[StrictStr],
2131+
Field(
2132+
description="Filters by the originating country of the user request. Can be combined with other filters "
2133+
),
2134+
] = None,
2135+
status_code: Annotated[
2136+
Optional[StrictInt],
2137+
Field(
2138+
description="Filters by the HTTP status code returned to the client. Can be combined with other filters "
2139+
),
2140+
] = None,
2141+
cache_hit: Annotated[
2142+
Optional[StrictBool],
2143+
Field(
2144+
description="Filters based on whether the request was served from the CDN cache. Can be combined with other filters "
2145+
),
2146+
] = None,
20862147
_request_timeout: Union[
20872148
None,
20882149
Annotated[StrictFloat, Field(gt=0)],
@@ -2112,6 +2173,14 @@ def get_logs_with_http_info(
21122173
:type sort_by: str
21132174
:param sort_order:
21142175
:type sort_order: str
2176+
:param data_center_region: Filters by the CDN data center region that served the request. Can be combined with other filters
2177+
:type data_center_region: str
2178+
:param request_country_code: Filters by the originating country of the user request. Can be combined with other filters
2179+
:type request_country_code: str
2180+
:param status_code: Filters by the HTTP status code returned to the client. Can be combined with other filters
2181+
:type status_code: int
2182+
:param cache_hit: Filters based on whether the request was served from the CDN cache. Can be combined with other filters
2183+
:type cache_hit: bool
21152184
:param _request_timeout: timeout setting for this request. If one
21162185
number provided, it will be total request
21172186
timeout. It can also be a pair (tuple) of
@@ -2143,6 +2212,10 @@ def get_logs_with_http_info(
21432212
page_identifier=page_identifier,
21442213
sort_by=sort_by,
21452214
sort_order=sort_order,
2215+
data_center_region=data_center_region,
2216+
request_country_code=request_country_code,
2217+
status_code=status_code,
2218+
cache_hit=cache_hit,
21462219
_request_auth=_request_auth,
21472220
_content_type=_content_type,
21482221
_headers=_headers,
@@ -2195,6 +2268,30 @@ def get_logs_without_preload_content(
21952268
),
21962269
] = None,
21972270
sort_order: Optional[StrictStr] = None,
2271+
data_center_region: Annotated[
2272+
Optional[StrictStr],
2273+
Field(
2274+
description="Filters by the CDN data center region that served the request. Can be combined with other filters "
2275+
),
2276+
] = None,
2277+
request_country_code: Annotated[
2278+
Optional[StrictStr],
2279+
Field(
2280+
description="Filters by the originating country of the user request. Can be combined with other filters "
2281+
),
2282+
] = None,
2283+
status_code: Annotated[
2284+
Optional[StrictInt],
2285+
Field(
2286+
description="Filters by the HTTP status code returned to the client. Can be combined with other filters "
2287+
),
2288+
] = None,
2289+
cache_hit: Annotated[
2290+
Optional[StrictBool],
2291+
Field(
2292+
description="Filters based on whether the request was served from the CDN cache. Can be combined with other filters "
2293+
),
2294+
] = None,
21982295
_request_timeout: Union[
21992296
None,
22002297
Annotated[StrictFloat, Field(gt=0)],
@@ -2224,6 +2321,14 @@ def get_logs_without_preload_content(
22242321
:type sort_by: str
22252322
:param sort_order:
22262323
:type sort_order: str
2324+
:param data_center_region: Filters by the CDN data center region that served the request. Can be combined with other filters
2325+
:type data_center_region: str
2326+
:param request_country_code: Filters by the originating country of the user request. Can be combined with other filters
2327+
:type request_country_code: str
2328+
:param status_code: Filters by the HTTP status code returned to the client. Can be combined with other filters
2329+
:type status_code: int
2330+
:param cache_hit: Filters based on whether the request was served from the CDN cache. Can be combined with other filters
2331+
:type cache_hit: bool
22272332
:param _request_timeout: timeout setting for this request. If one
22282333
number provided, it will be total request
22292334
timeout. It can also be a pair (tuple) of
@@ -2255,6 +2360,10 @@ def get_logs_without_preload_content(
22552360
page_identifier=page_identifier,
22562361
sort_by=sort_by,
22572362
sort_order=sort_order,
2363+
data_center_region=data_center_region,
2364+
request_country_code=request_country_code,
2365+
status_code=status_code,
2366+
cache_hit=cache_hit,
22582367
_request_auth=_request_auth,
22592368
_content_type=_content_type,
22602369
_headers=_headers,
@@ -2280,6 +2389,10 @@ def _get_logs_serialize(
22802389
page_identifier,
22812390
sort_by,
22822391
sort_order,
2392+
data_center_region,
2393+
request_country_code,
2394+
status_code,
2395+
cache_hit,
22832396
_request_auth,
22842397
_content_type,
22852398
_headers,
@@ -2331,6 +2444,22 @@ def _get_logs_serialize(
23312444

23322445
_query_params.append(("sortOrder", sort_order))
23332446

2447+
if data_center_region is not None:
2448+
2449+
_query_params.append(("dataCenterRegion", data_center_region))
2450+
2451+
if request_country_code is not None:
2452+
2453+
_query_params.append(("requestCountryCode", request_country_code))
2454+
2455+
if status_code is not None:
2456+
2457+
_query_params.append(("statusCode", status_code))
2458+
2459+
if cache_hit is not None:
2460+
2461+
_query_params.append(("cacheHit", cache_hit))
2462+
23342463
# process the header parameters
23352464
# process the form parameters
23362465
# process the body parameter

services/cdn/src/stackit/cdn/models/__init__.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,42 @@
4444
from stackit.cdn.models.get_cache_info_response_history_entry import (
4545
GetCacheInfoResponseHistoryEntry,
4646
)
47+
from stackit.cdn.models.get_custom_domain_custom_certificate import (
48+
GetCustomDomainCustomCertificate,
49+
)
50+
from stackit.cdn.models.get_custom_domain_managed_certificate import (
51+
GetCustomDomainManagedCertificate,
52+
)
4753
from stackit.cdn.models.get_custom_domain_response import GetCustomDomainResponse
54+
from stackit.cdn.models.get_custom_domain_response_certificate import (
55+
GetCustomDomainResponseCertificate,
56+
)
4857
from stackit.cdn.models.get_distribution_response import GetDistributionResponse
4958
from stackit.cdn.models.get_logs_response import GetLogsResponse
5059
from stackit.cdn.models.get_statistics_response import GetStatisticsResponse
5160
from stackit.cdn.models.http_backend import HttpBackend
5261
from stackit.cdn.models.http_backend_patch import HttpBackendPatch
5362
from stackit.cdn.models.list_distributions_response import ListDistributionsResponse
63+
from stackit.cdn.models.loki_log_sink import LokiLogSink
5464
from stackit.cdn.models.optimizer import Optimizer
5565
from stackit.cdn.models.optimizer_patch import OptimizerPatch
5666
from stackit.cdn.models.patch_distribution_payload import PatchDistributionPayload
5767
from stackit.cdn.models.patch_distribution_response import PatchDistributionResponse
68+
from stackit.cdn.models.patch_loki_log_sink import PatchLokiLogSink
5869
from stackit.cdn.models.purge_cache_payload import PurgeCachePayload
70+
from stackit.cdn.models.put_custom_domain_custom_certificate import (
71+
PutCustomDomainCustomCertificate,
72+
)
73+
from stackit.cdn.models.put_custom_domain_managed_certificate import (
74+
PutCustomDomainManagedCertificate,
75+
)
5976
from stackit.cdn.models.put_custom_domain_payload import PutCustomDomainPayload
77+
from stackit.cdn.models.put_custom_domain_payload_certificate import (
78+
PutCustomDomainPayloadCertificate,
79+
)
6080
from stackit.cdn.models.put_custom_domain_response import PutCustomDomainResponse
81+
from stackit.cdn.models.put_custom_domain_response_certificate import (
82+
PutCustomDomainResponseCertificate,
83+
)
6184
from stackit.cdn.models.region import Region
6285
from stackit.cdn.models.status_error import StatusError

0 commit comments

Comments
 (0)