Skip to content

Commit ba2cc12

Browse files
Generate loadbalancer
1 parent ea92a68 commit ba2cc12

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

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)