Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 3 additions & 0 deletions services/loadbalancer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion services/loadbalancer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-loadbalancer"

[tool.poetry]
name = "stackit-loadbalancer"
version = "v0.7.0"
version = "v0.8.0"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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):
Expand Down Expand Up @@ -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