diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cd624ff..0b77aa5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,12 +24,15 @@ - **Feature:** added KmsKey to Instance, CreateInstancePayload and UpdateInstancePayload - `sfs`: [v0.1.0](services/sfs/CHANGELOG.md#v010) - **New:** STACKIT File Storage (SFS) service -- `alb` [v0.7.0](services/alb/CHANGELOG.md#v070) - - **Feature:** Switch from `v2beta` API version to `v2` version. - - **Feature:** `MaxCredentials` field added to `GetQuotaResponse` - - **Breaking change:** added `version` to LoadBalancer constructor - - **Breaking change:** renamed `exact` to `exactMatch` in Path model - - **Breaking change:** removed `pathPrefix` from Rule model +- `alb`: + - [v0.8.0](services/alb/CHANGELOG.md#v080) + - **Feature:** Add new fields `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model + - [v0.7.0](services/alb/CHANGELOG.md#v070) + - **Feature:** Switch from `v2beta` API version to `v2` version. + - **Feature:** `MaxCredentials` field added to `GetQuotaResponse` + - **Breaking change:** added `version` to LoadBalancer constructor + - **Breaking change:** renamed `exact` to `exactMatch` in Path model + - **Breaking change:** removed `pathPrefix` from Rule model - `certificates`: [v1.2.0](services/certificates/CHANGELOG.md#v120) - **Feature:** Switch from `v2beta` API version to `v2` version. - **Breaking change:** Rename `CreateCertificateResponse` to `GetCertificateResponse` diff --git a/services/alb/CHANGELOG.md b/services/alb/CHANGELOG.md index 34dd3f32..5b67cd3b 100644 --- a/services/alb/CHANGELOG.md +++ b/services/alb/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.8.0 +- **Feature:** Add new fields `used_credentials` and `used_load_balancers` to `GetQuotaResponse` model + ## v0.7.0 - **Feature:** Switch from `v2beta` API version to `v2` version. - **Feature:** `MaxCredentials` field added to `GetQuotaResponse` diff --git a/services/alb/pyproject.toml b/services/alb/pyproject.toml index d91e8a6e..6d2b6168 100644 --- a/services/alb/pyproject.toml +++ b/services/alb/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-alb" [tool.poetry] name = "stackit-alb" -version = "v0.7.0" +version = "v0.8.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/alb/src/stackit/alb/models/get_quota_response.py b/services/alb/src/stackit/alb/models/get_quota_response.py index c889d527..b8e01c54 100644 --- a/services/alb/src/stackit/alb/models/get_quota_response.py +++ b/services/alb/src/stackit/alb/models/get_quota_response.py @@ -41,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]] = ["maxCredentials", "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): @@ -126,6 +143,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "maxLoadBalancers": obj.get("maxLoadBalancers"), "projectId": obj.get("projectId"), "region": obj.get("region"), + "usedCredentials": obj.get("usedCredentials"), + "usedLoadBalancers": obj.get("usedLoadBalancers"), } ) return _obj diff --git a/services/alb/src/stackit/alb/models/load_balancer_options.py b/services/alb/src/stackit/alb/models/load_balancer_options.py index 694c6de4..ba94508e 100644 --- a/services/alb/src/stackit/alb/models/load_balancer_options.py +++ b/services/alb/src/stackit/alb/models/load_balancer_options.py @@ -34,7 +34,11 @@ class LoadBalancerOptions(BaseModel): """ # noqa: E501 access_control: Optional[LoadbalancerOptionAccessControl] = Field(default=None, alias="accessControl") - ephemeral_address: Optional[StrictBool] = Field(default=None, alias="ephemeralAddress") + ephemeral_address: Optional[StrictBool] = Field( + default=None, + 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.", + alias="ephemeralAddress", + ) observability: Optional[LoadbalancerOptionObservability] = None private_network_only: Optional[StrictBool] = Field( default=None,