Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions services/cdn/src/stackit/cdn/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from pydantic import (
Field,
StrictBool,
StrictFloat,
StrictInt,
StrictStr,
Expand Down Expand Up @@ -1971,6 +1972,30 @@ def get_logs(
),
] = None,
sort_order: Optional[StrictStr] = None,
data_center_region: Annotated[
Optional[StrictStr],
Field(
description="Filters by the CDN data center region that served the request. Can be combined with other filters "
),
] = None,
request_country_code: Annotated[
Optional[StrictStr],
Field(
description="Filters by the originating country of the user request. Can be combined with other filters "
),
] = None,
status_code: Annotated[
Optional[StrictInt],
Field(
description="Filters by the HTTP status code returned to the client. Can be combined with other filters "
),
] = None,
cache_hit: Annotated[
Optional[StrictBool],
Field(
description="Filters based on whether the request was served from the CDN cache. Can be combined with other filters "
),
] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -2000,6 +2025,14 @@ def get_logs(
:type sort_by: str
:param sort_order:
:type sort_order: str
:param data_center_region: Filters by the CDN data center region that served the request. Can be combined with other filters
:type data_center_region: str
:param request_country_code: Filters by the originating country of the user request. Can be combined with other filters
:type request_country_code: str
:param status_code: Filters by the HTTP status code returned to the client. Can be combined with other filters
:type status_code: int
:param cache_hit: Filters based on whether the request was served from the CDN cache. Can be combined with other filters
:type cache_hit: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -2031,6 +2064,10 @@ def get_logs(
page_identifier=page_identifier,
sort_by=sort_by,
sort_order=sort_order,
data_center_region=data_center_region,
request_country_code=request_country_code,
status_code=status_code,
cache_hit=cache_hit,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -2083,6 +2120,30 @@ def get_logs_with_http_info(
),
] = None,
sort_order: Optional[StrictStr] = None,
data_center_region: Annotated[
Optional[StrictStr],
Field(
description="Filters by the CDN data center region that served the request. Can be combined with other filters "
),
] = None,
request_country_code: Annotated[
Optional[StrictStr],
Field(
description="Filters by the originating country of the user request. Can be combined with other filters "
),
] = None,
status_code: Annotated[
Optional[StrictInt],
Field(
description="Filters by the HTTP status code returned to the client. Can be combined with other filters "
),
] = None,
cache_hit: Annotated[
Optional[StrictBool],
Field(
description="Filters based on whether the request was served from the CDN cache. Can be combined with other filters "
),
] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -2112,6 +2173,14 @@ def get_logs_with_http_info(
:type sort_by: str
:param sort_order:
:type sort_order: str
:param data_center_region: Filters by the CDN data center region that served the request. Can be combined with other filters
:type data_center_region: str
:param request_country_code: Filters by the originating country of the user request. Can be combined with other filters
:type request_country_code: str
:param status_code: Filters by the HTTP status code returned to the client. Can be combined with other filters
:type status_code: int
:param cache_hit: Filters based on whether the request was served from the CDN cache. Can be combined with other filters
:type cache_hit: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -2143,6 +2212,10 @@ def get_logs_with_http_info(
page_identifier=page_identifier,
sort_by=sort_by,
sort_order=sort_order,
data_center_region=data_center_region,
request_country_code=request_country_code,
status_code=status_code,
cache_hit=cache_hit,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -2195,6 +2268,30 @@ def get_logs_without_preload_content(
),
] = None,
sort_order: Optional[StrictStr] = None,
data_center_region: Annotated[
Optional[StrictStr],
Field(
description="Filters by the CDN data center region that served the request. Can be combined with other filters "
),
] = None,
request_country_code: Annotated[
Optional[StrictStr],
Field(
description="Filters by the originating country of the user request. Can be combined with other filters "
),
] = None,
status_code: Annotated[
Optional[StrictInt],
Field(
description="Filters by the HTTP status code returned to the client. Can be combined with other filters "
),
] = None,
cache_hit: Annotated[
Optional[StrictBool],
Field(
description="Filters based on whether the request was served from the CDN cache. Can be combined with other filters "
),
] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -2224,6 +2321,14 @@ def get_logs_without_preload_content(
:type sort_by: str
:param sort_order:
:type sort_order: str
:param data_center_region: Filters by the CDN data center region that served the request. Can be combined with other filters
:type data_center_region: str
:param request_country_code: Filters by the originating country of the user request. Can be combined with other filters
:type request_country_code: str
:param status_code: Filters by the HTTP status code returned to the client. Can be combined with other filters
:type status_code: int
:param cache_hit: Filters based on whether the request was served from the CDN cache. Can be combined with other filters
:type cache_hit: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -2255,6 +2360,10 @@ def get_logs_without_preload_content(
page_identifier=page_identifier,
sort_by=sort_by,
sort_order=sort_order,
data_center_region=data_center_region,
request_country_code=request_country_code,
status_code=status_code,
cache_hit=cache_hit,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -2280,6 +2389,10 @@ def _get_logs_serialize(
page_identifier,
sort_by,
sort_order,
data_center_region,
request_country_code,
status_code,
cache_hit,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -2331,6 +2444,22 @@ def _get_logs_serialize(

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

if data_center_region is not None:

_query_params.append(("dataCenterRegion", data_center_region))

if request_country_code is not None:

_query_params.append(("requestCountryCode", request_country_code))

if status_code is not None:

_query_params.append(("statusCode", status_code))

if cache_hit is not None:

_query_params.append(("cacheHit", cache_hit))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down
Loading