diff --git a/CHANGELOG.md b/CHANGELOG.md index 72ad13a2..3e46ee1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,24 +1,27 @@ ## Release (2025-xx-xx) -- `cdn`: [v2.0.0](services/cdn/CHANGELOG.md#v200) - - **Feature:** Switch from `v1beta` CDN API version to `v1beta2` version. - - **Breaking change:** Changed spelling from `WAF` to `Waf` in model class names - - `WAFStatusRuleBlock` -> `WafStatusRuleBlock` - - `WAFRuleGroup` -> `WafRuleGroup` - - `WAFRuleCollection` -> `WafRuleCollection` - - `WAFRule` -> `WafRule` - - `ListWAFCollectionsResponse` -> `ListWafCollectionsResponse` - - **Breaking change:** Changed spelling from model class named `GenericJSONResponse` to `GenericJsonResponse` - - **Breaking change:** Removal of attributes from model classes - - Remove `description` attribute from `ErrorDetails` model class - - Remove `domain` attribute from `PutCustomDomainResponse` and `GetCustomDomainResponse` model classes - - Remove `occured_at` attribute from `GetCacheInfoResponseHistoryEntry` model class - - **Breaking change:** Removal of API client method `get_logs_search_filters` - - **Feature:** Add attributes to model classes - - Add `backend` attribute to `CreateDistributionPayload` model class - - **Feature:** New model classes - - New Loki model classes: `LokiLogSinkCredentials`, `LokiLogSinkCreate`, `LokiLogSinkPatch` - - New Backend model classes: `HttpBackendCreate`, `BucketBackendCreate`, `BucketBackend`, `BucketBackendPatch`, `CreateDistributionPayloadBackend`, `ConfigPatchBackend`, `ConfigBackend` - - Other new model classes: `BucketCredentials` +- `cdn`: + - [v2.1.0](services/cdn/CHANGELOG.md#v210) + - **Breaking change:** Remove unused model classes: `GetLogsSearchFiltersResponse`, `PatchLokiLogSink` + - [v2.0.0](services/cdn/CHANGELOG.md#v200) + - **Feature:** Switch from `v1beta` CDN API version to `v1beta2` version. + - **Breaking change:** Changed spelling from `WAF` to `Waf` in model class names + - `WAFStatusRuleBlock` -> `WafStatusRuleBlock` + - `WAFRuleGroup` -> `WafRuleGroup` + - `WAFRuleCollection` -> `WafRuleCollection` + - `WAFRule` -> `WafRule` + - `ListWAFCollectionsResponse` -> `ListWafCollectionsResponse` + - **Breaking change:** Changed spelling from model class named `GenericJSONResponse` to `GenericJsonResponse` + - **Breaking change:** Removal of attributes from model classes + - Remove `description` attribute from `ErrorDetails` model class + - Remove `domain` attribute from `PutCustomDomainResponse` and `GetCustomDomainResponse` model classes + - Remove `occured_at` attribute from `GetCacheInfoResponseHistoryEntry` model class + - **Breaking change:** Removal of API client method `get_logs_search_filters` + - **Feature:** Add attributes to model classes + - Add `backend` attribute to `CreateDistributionPayload` model class + - **Feature:** New model classes + - New Loki model classes: `LokiLogSinkCredentials`, `LokiLogSinkCreate`, `LokiLogSinkPatch` + - New Backend model classes: `HttpBackendCreate`, `BucketBackendCreate`, `BucketBackend`, `BucketBackendPatch`, `CreateDistributionPayloadBackend`, `ConfigPatchBackend`, `ConfigBackend` + - Other new model classes: `BucketCredentials` ## Release (2025-10-29) - `stackitmarketplace`: [v1.15.0](services/stackitmarketplace/CHANGELOG.md#v1150) diff --git a/services/cdn/CHANGELOG.md b/services/cdn/CHANGELOG.md index 105bde17..5f792de0 100644 --- a/services/cdn/CHANGELOG.md +++ b/services/cdn/CHANGELOG.md @@ -1,3 +1,6 @@ +## v2.1.0 +- **Breaking change:** Remove unused model classes: `GetLogsSearchFiltersResponse`, `PatchLokiLogSink` + ## v2.0.0 - **Feature:** Switch from `v1beta` CDN API version to `v1beta2` version. - **Breaking change:** Changed spelling from `WAF` to `Waf` in model class names diff --git a/services/cdn/pyproject.toml b/services/cdn/pyproject.toml index d76adfba..3da71428 100644 --- a/services/cdn/pyproject.toml +++ b/services/cdn/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-cdn" [tool.poetry] name = "stackit-cdn" -version = "v2.0.0" +version = "v2.1.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/cdn/src/stackit/cdn/models/get_logs_search_filters_response.py b/services/cdn/src/stackit/cdn/models/get_logs_search_filters_response.py deleted file mode 100644 index 6bb7a7e3..00000000 --- a/services/cdn/src/stackit/cdn/models/get_logs_search_filters_response.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CDN API - - API used to create and manage your CDN distributions. - - The version of the OpenAPI document: 1beta.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -from __future__ import annotations - -import json -import pprint -from typing import Any, ClassVar, Dict, List, Optional, Set - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing_extensions import Self - - -class GetLogsSearchFiltersResponse(BaseModel): - """ - GetLogsSearchFiltersResponse - """ # noqa: E501 - - filters: List[StrictStr] - __properties: ClassVar[List[str]] = ["filters"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetLogsSearchFiltersResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetLogsSearchFiltersResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({"filters": obj.get("filters")}) - return _obj diff --git a/services/cdn/src/stackit/cdn/models/patch_loki_log_sink.py b/services/cdn/src/stackit/cdn/models/patch_loki_log_sink.py deleted file mode 100644 index 26bb0aa2..00000000 --- a/services/cdn/src/stackit/cdn/models/patch_loki_log_sink.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - CDN API - - API used to create and manage your CDN distributions. - - The version of the OpenAPI document: 1beta.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -from __future__ import annotations - -import json -import pprint -from typing import Any, ClassVar, Dict, List, Optional, Set - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing_extensions import Self - - -class PatchLokiLogSink(BaseModel): - """ - PatchLokiLogSink - """ # noqa: E501 - - password: StrictStr - push_url: StrictStr = Field(alias="pushUrl") - type: StrictStr - username: StrictStr - __properties: ClassVar[List[str]] = ["password", "pushUrl", "type", "username"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PatchLokiLogSink from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PatchLokiLogSink from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "password": obj.get("password"), - "pushUrl": obj.get("pushUrl"), - "type": obj.get("type"), - "username": obj.get("username"), - } - ) - return _obj