From 5387c08905c8fd648d7892304564fe77aaa216c4 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 19 Jan 2026 08:11:26 +0000 Subject: [PATCH 1/2] Generate alb --- services/alb/model_get_quota_response.go | 98 +++++++++++++++++++++ services/alb/model_load_balancer_options.go | 3 +- 2 files changed, 100 insertions(+), 1 deletion(-) diff --git a/services/alb/model_get_quota_response.go b/services/alb/model_get_quota_response.go index 9df15cf19..d9bfff697 100644 --- a/services/alb/model_get_quota_response.go +++ b/services/alb/model_get_quota_response.go @@ -99,6 +99,46 @@ func setGetQuotaResponseGetRegionAttributeType(arg *GetQuotaResponseGetRegionAtt type GetQuotaResponseGetRegionArgType = string type GetQuotaResponseGetRegionRetType = string +/* + types and functions for usedCredentials +*/ + +// isInteger +type GetQuotaResponseGetUsedCredentialsAttributeType = *int64 +type GetQuotaResponseGetUsedCredentialsArgType = int64 +type GetQuotaResponseGetUsedCredentialsRetType = int64 + +func getGetQuotaResponseGetUsedCredentialsAttributeTypeOk(arg GetQuotaResponseGetUsedCredentialsAttributeType) (ret GetQuotaResponseGetUsedCredentialsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setGetQuotaResponseGetUsedCredentialsAttributeType(arg *GetQuotaResponseGetUsedCredentialsAttributeType, val GetQuotaResponseGetUsedCredentialsRetType) { + *arg = &val +} + +/* + types and functions for usedLoadBalancers +*/ + +// isInteger +type GetQuotaResponseGetUsedLoadBalancersAttributeType = *int64 +type GetQuotaResponseGetUsedLoadBalancersArgType = int64 +type GetQuotaResponseGetUsedLoadBalancersRetType = int64 + +func getGetQuotaResponseGetUsedLoadBalancersAttributeTypeOk(arg GetQuotaResponseGetUsedLoadBalancersAttributeType) (ret GetQuotaResponseGetUsedLoadBalancersRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setGetQuotaResponseGetUsedLoadBalancersAttributeType(arg *GetQuotaResponseGetUsedLoadBalancersAttributeType, val GetQuotaResponseGetUsedLoadBalancersRetType) { + *arg = &val +} + // GetQuotaResponse struct for GetQuotaResponse type GetQuotaResponse struct { // The maximum number of observability credentials that can be stored in this project. @@ -111,6 +151,12 @@ type GetQuotaResponse struct { ProjectId GetQuotaResponseGetProjectIdAttributeType `json:"projectId,omitempty"` // Region Region GetQuotaResponseGetRegionAttributeType `json:"region,omitempty"` + // The number of observability credentials that are currently existing in this project. + // Can be cast to int32 without loss of precision. + UsedCredentials GetQuotaResponseGetUsedCredentialsAttributeType `json:"usedCredentials,omitempty"` + // The number of load balancing servers that are currently existing in this project. + // Can be cast to int32 without loss of precision. + UsedLoadBalancers GetQuotaResponseGetUsedLoadBalancersAttributeType `json:"usedLoadBalancers,omitempty"` } // NewGetQuotaResponse instantiates a new GetQuotaResponse object @@ -222,6 +268,52 @@ func (o *GetQuotaResponse) SetRegion(v GetQuotaResponseGetRegionRetType) { setGetQuotaResponseGetRegionAttributeType(&o.Region, v) } +// GetUsedCredentials returns the UsedCredentials field value if set, zero value otherwise. +func (o *GetQuotaResponse) GetUsedCredentials() (res GetQuotaResponseGetUsedCredentialsRetType) { + res, _ = o.GetUsedCredentialsOk() + return +} + +// GetUsedCredentialsOk returns a tuple with the UsedCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetQuotaResponse) GetUsedCredentialsOk() (ret GetQuotaResponseGetUsedCredentialsRetType, ok bool) { + return getGetQuotaResponseGetUsedCredentialsAttributeTypeOk(o.UsedCredentials) +} + +// HasUsedCredentials returns a boolean if a field has been set. +func (o *GetQuotaResponse) HasUsedCredentials() bool { + _, ok := o.GetUsedCredentialsOk() + return ok +} + +// SetUsedCredentials gets a reference to the given int64 and assigns it to the UsedCredentials field. +func (o *GetQuotaResponse) SetUsedCredentials(v GetQuotaResponseGetUsedCredentialsRetType) { + setGetQuotaResponseGetUsedCredentialsAttributeType(&o.UsedCredentials, v) +} + +// GetUsedLoadBalancers returns the UsedLoadBalancers field value if set, zero value otherwise. +func (o *GetQuotaResponse) GetUsedLoadBalancers() (res GetQuotaResponseGetUsedLoadBalancersRetType) { + res, _ = o.GetUsedLoadBalancersOk() + return +} + +// GetUsedLoadBalancersOk returns a tuple with the UsedLoadBalancers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetQuotaResponse) GetUsedLoadBalancersOk() (ret GetQuotaResponseGetUsedLoadBalancersRetType, ok bool) { + return getGetQuotaResponseGetUsedLoadBalancersAttributeTypeOk(o.UsedLoadBalancers) +} + +// HasUsedLoadBalancers returns a boolean if a field has been set. +func (o *GetQuotaResponse) HasUsedLoadBalancers() bool { + _, ok := o.GetUsedLoadBalancersOk() + return ok +} + +// SetUsedLoadBalancers gets a reference to the given int64 and assigns it to the UsedLoadBalancers field. +func (o *GetQuotaResponse) SetUsedLoadBalancers(v GetQuotaResponseGetUsedLoadBalancersRetType) { + setGetQuotaResponseGetUsedLoadBalancersAttributeType(&o.UsedLoadBalancers, v) +} + func (o GetQuotaResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetQuotaResponseGetMaxCredentialsAttributeTypeOk(o.MaxCredentials); ok { @@ -236,6 +328,12 @@ func (o GetQuotaResponse) ToMap() (map[string]interface{}, error) { if val, ok := getGetQuotaResponseGetRegionAttributeTypeOk(o.Region); ok { toSerialize["Region"] = val } + if val, ok := getGetQuotaResponseGetUsedCredentialsAttributeTypeOk(o.UsedCredentials); ok { + toSerialize["UsedCredentials"] = val + } + if val, ok := getGetQuotaResponseGetUsedLoadBalancersAttributeTypeOk(o.UsedLoadBalancers); ok { + toSerialize["UsedLoadBalancers"] = val + } return toSerialize, nil } diff --git a/services/alb/model_load_balancer_options.go b/services/alb/model_load_balancer_options.go index d0b5163ec..cbdb6a7d4 100644 --- a/services/alb/model_load_balancer_options.go +++ b/services/alb/model_load_balancer_options.go @@ -99,7 +99,8 @@ func setLoadBalancerOptionsgetPrivateNetworkOnlyAttributeType(arg *LoadBalancerO // LoadBalancerOptions Defines any optional functionality you want to have enabled on your Application Load Balancer. type LoadBalancerOptions struct { - AccessControl LoadBalancerOptionsGetAccessControlAttributeType `json:"accessControl,omitempty"` + AccessControl LoadBalancerOptionsGetAccessControlAttributeType `json:"accessControl,omitempty"` + // 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. EphemeralAddress LoadBalancerOptionsgetEphemeralAddressAttributeType `json:"ephemeralAddress,omitempty"` Observability LoadBalancerOptionsGetObservabilityAttributeType `json:"observability,omitempty"` // Application Load Balancer is accessible only via a private network ip address. Not changeable after creation. From e6bc4406969ebeb72d6ede548739f893fdb223d7 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Mon, 19 Jan 2026 15:48:41 +0100 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 15 +++++++++------ services/alb/CHANGELOG.md | 3 +++ services/alb/VERSION | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7867584ef..df090ba35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,12 +27,15 @@ - **Feature:** Add waiter methods for the API - [v0.1.0](services/edge/CHANGELOG.md#v010) - **New:** STACKIT Edge Cloud service -- `alb`: [v0.8.0](services/alb/CHANGELOG.md#v080) - - **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.9.0](services/alb/CHANGELOG.md#v090) + - **Feature:** Add new fields `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` model + - [v0.8.0](services/alb/CHANGELOG.md#v080) + - **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 bbd05a153..75ef0865d 100644 --- a/services/alb/CHANGELOG.md +++ b/services/alb/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.9.0 +- **Feature:** Add new fields `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` model + ## v0.8.0 - **Feature:** Switch from `v2beta` API version to `v2` version. - **Feature:** `MaxCredentials` field added to `GetQuotaResponse` diff --git a/services/alb/VERSION b/services/alb/VERSION index 4ea5cafac..7965b36d6 100644 --- a/services/alb/VERSION +++ b/services/alb/VERSION @@ -1 +1 @@ -v0.8.0 \ No newline at end of file +v0.9.0 \ No newline at end of file