Skip to content

Commit cd29311

Browse files
Generator: Update SDK /services/alb (#2822)
1 parent 3d91baa commit cd29311

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

CHANGELOG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
- **Feature:** added KmsKey to Instance, CreateInstancePayload and UpdateInstancePayload
2525
- `sfs`: [v0.1.0](services/sfs/CHANGELOG.md#v010)
2626
- **New:** STACKIT File Storage (SFS) service
27-
- `alb` [v0.7.0](services/alb/CHANGELOG.md#v070)
28-
- **Feature:** Switch from `v2beta` API version to `v2` version.
29-
- **Feature:** `MaxCredentials` field added to `GetQuotaResponse`
30-
- **Breaking change:** added `version` to LoadBalancer constructor
31-
- **Breaking change:** renamed `exact` to `exactMatch` in Path model
32-
- **Breaking change:** removed `pathPrefix` from Rule model
27+
- `alb`:
28+
- [v0.8.0](services/alb/CHANGELOG.md#v080)
29+
- **Feature:** Add new fields `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model
30+
- [v0.7.0](services/alb/CHANGELOG.md#v070)
31+
- **Feature:** Switch from `v2beta` API version to `v2` version.
32+
- **Feature:** `MaxCredentials` field added to `GetQuotaResponse`
33+
- **Breaking change:** added `version` to LoadBalancer constructor
34+
- **Breaking change:** renamed `exact` to `exactMatch` in Path model
35+
- **Breaking change:** removed `pathPrefix` from Rule model
3336
- `certificates`: [v1.2.0](services/certificates/CHANGELOG.md#v120)
3437
- **Feature:** Switch from `v2beta` API version to `v2` version.
3538
- **Breaking change:** Rename `CreateCertificateResponse` to `GetCertificateResponse`

services/alb/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 `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model
3+
14
## v0.7.0
25
- **Feature:** Switch from `v2beta` API version to `v2` version.
36
- **Feature:** `MaxCredentials` field added to `GetQuotaResponse`

services/alb/pyproject.toml

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

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

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,24 @@ class GetQuotaResponse(BaseModel):
4141
default=None, description="Project identifier", alias="projectId"
4242
)
4343
region: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Region")
44-
__properties: ClassVar[List[str]] = ["maxCredentials", "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+
]
4562

4663
@field_validator("project_id")
4764
def project_id_validate_regular_expression(cls, value):
@@ -126,6 +143,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
126143
"maxLoadBalancers": obj.get("maxLoadBalancers"),
127144
"projectId": obj.get("projectId"),
128145
"region": obj.get("region"),
146+
"usedCredentials": obj.get("usedCredentials"),
147+
"usedLoadBalancers": obj.get("usedLoadBalancers"),
129148
}
130149
)
131150
return _obj

services/alb/src/stackit/alb/models/load_balancer_options.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ class LoadBalancerOptions(BaseModel):
3434
""" # noqa: E501
3535

3636
access_control: Optional[LoadbalancerOptionAccessControl] = Field(default=None, alias="accessControl")
37-
ephemeral_address: Optional[StrictBool] = Field(default=None, alias="ephemeralAddress")
37+
ephemeral_address: Optional[StrictBool] = Field(
38+
default=None,
39+
description="This option automates the handling of the external IP address for an Application Load Balancer. If set to true a new IP address will be automatically created. It will also be automatically deleted when the Load Balancer is deleted.",
40+
alias="ephemeralAddress",
41+
)
3842
observability: Optional[LoadbalancerOptionObservability] = None
3943
private_network_only: Optional[StrictBool] = Field(
4044
default=None,

0 commit comments

Comments
 (0)