Skip to content

Commit 3d91baa

Browse files
Generator: Update SDK /services/loadbalancer (#2823)
1 parent c9b3853 commit 3d91baa

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Release (2026-xx-xx)
2+
- `loadbalancer`: [v0.8.0](services/loadbalancer/CHANGELOG.md#v080)
3+
- **Feature:** Add new fields `max_credentials`, `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model
24
- `ske`: [v1.5.0](services/ske/CHANGELOG.md#v150)
35
- **Feature:** Add field `identity` to model `ClusterStatus`
46
- `logs`: [v0.1.0](services/logs/CHANGELOG.md#v010)

services/loadbalancer/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.8.0
2+
- **Feature:** Add new fields `max_credentials`, `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model
3+
14
## v0.7.0
25
- **Feature**: Add new attribute `labels` to `LoadBalancer`, `CreateLoadBalancerPayload`, `UpdateLoadBalancerPayload` model classes
36

services/loadbalancer/pyproject.toml

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

44
[tool.poetry]
55
name = "stackit-loadbalancer"
6-
version = "v0.7.0"
6+
version = "v0.8.0"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

services/loadbalancer/src/stackit/loadbalancer/models/get_quota_response.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ class GetQuotaResponse(BaseModel):
2727
GetQuotaResponse
2828
""" # noqa: E501
2929

30+
max_credentials: Optional[Annotated[int, Field(le=999, strict=True, ge=-1)]] = Field(
31+
default=None,
32+
description="The maximum number of observability credentials that can be stored in this project.",
33+
alias="maxCredentials",
34+
)
3035
max_load_balancers: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field(
3136
default=None,
3237
description="The maximum number of load balancing servers in this project. Unlimited if set to -1.",
@@ -36,7 +41,24 @@ class GetQuotaResponse(BaseModel):
3641
default=None, description="Project identifier", alias="projectId"
3742
)
3843
region: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Region")
39-
__properties: ClassVar[List[str]] = ["maxLoadBalancers", "projectId", "region"]
44+
used_credentials: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field(
45+
default=None,
46+
description="The number of observability credentials that are currently existing in this project.",
47+
alias="usedCredentials",
48+
)
49+
used_load_balancers: Optional[Annotated[int, Field(le=1000000, strict=True, ge=-1)]] = Field(
50+
default=None,
51+
description="The number of load balancing servers that are currently existing in this project.",
52+
alias="usedLoadBalancers",
53+
)
54+
__properties: ClassVar[List[str]] = [
55+
"maxCredentials",
56+
"maxLoadBalancers",
57+
"projectId",
58+
"region",
59+
"usedCredentials",
60+
"usedLoadBalancers",
61+
]
4062

4163
@field_validator("project_id")
4264
def project_id_validate_regular_expression(cls, value):
@@ -117,9 +139,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
117139

118140
_obj = cls.model_validate(
119141
{
142+
"maxCredentials": obj.get("maxCredentials"),
120143
"maxLoadBalancers": obj.get("maxLoadBalancers"),
121144
"projectId": obj.get("projectId"),
122145
"region": obj.get("region"),
146+
"usedCredentials": obj.get("usedCredentials"),
147+
"usedLoadBalancers": obj.get("usedLoadBalancers"),
123148
}
124149
)
125150
return _obj

0 commit comments

Comments
 (0)