diff --git a/CHANGELOG.md b/CHANGELOG.md index c6f42427..5cd624ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## Release (2026-xx-xx) +- `loadbalancer`: [v0.8.0](services/loadbalancer/CHANGELOG.md#v080) + - **Feature:** Add new fields `max_credentials`, `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model - `ske`: [v1.5.0](services/ske/CHANGELOG.md#v150) - **Feature:** Add field `identity` to model `ClusterStatus` - `logs`: [v0.1.0](services/logs/CHANGELOG.md#v010) diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index 27ceb8ca..c5a82d24 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.8.0 +- **Feature:** Add new fields `max_credentials`, `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model + ## v0.7.0 - **Feature**: Add new attribute `labels` to `LoadBalancer`, `CreateLoadBalancerPayload`, `UpdateLoadBalancerPayload` model classes diff --git a/services/loadbalancer/pyproject.toml b/services/loadbalancer/pyproject.toml index ba2dd279..7ce1eec6 100644 --- a/services/loadbalancer/pyproject.toml +++ b/services/loadbalancer/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-loadbalancer" [tool.poetry] name = "stackit-loadbalancer" -version = "v0.7.0" +version = "v0.8.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py b/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py index a2581b11..202dcbc3 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py @@ -27,6 +27,11 @@ class GetQuotaResponse(BaseModel): GetQuotaResponse """ # noqa: E501 + max_credentials: Optional[Annotated[int, Field(le=999, strict=True, ge=-1)]] = Field( + default=None, + description="The maximum number of observability credentials that can be stored in this project.", + alias="maxCredentials", + ) max_load_balancers: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field( default=None, description="The maximum number of load balancing servers in this project. Unlimited if set to -1.", @@ -36,7 +41,24 @@ class GetQuotaResponse(BaseModel): default=None, description="Project identifier", alias="projectId" ) region: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Region") - __properties: ClassVar[List[str]] = ["maxLoadBalancers", "projectId", "region"] + used_credentials: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field( + default=None, + description="The number of observability credentials that are currently existing in this project.", + alias="usedCredentials", + ) + used_load_balancers: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field( + default=None, + description="The number of load balancing servers that are currently existing in this project.", + alias="usedLoadBalancers", + ) + __properties: ClassVar[List[str]] = [ + "maxCredentials", + "maxLoadBalancers", + "projectId", + "region", + "usedCredentials", + "usedLoadBalancers", + ] @field_validator("project_id") def project_id_validate_regular_expression(cls, value): @@ -117,9 +139,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { + "maxCredentials": obj.get("maxCredentials"), "maxLoadBalancers": obj.get("maxLoadBalancers"), "projectId": obj.get("projectId"), "region": obj.get("region"), + "usedCredentials": obj.get("usedCredentials"), + "usedLoadBalancers": obj.get("usedLoadBalancers"), } ) return _obj