From 1333fb24279ddba79440a7bbc3059d21172ca898 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 19 Jan 2026 08:11:30 +0000 Subject: [PATCH 1/2] Generate loadbalancer --- .../loadbalancer/model_get_quota_response.go | 147 ++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/services/loadbalancer/model_get_quota_response.go b/services/loadbalancer/model_get_quota_response.go index 7828af75d..e0c1d6ca8 100644 --- a/services/loadbalancer/model_get_quota_response.go +++ b/services/loadbalancer/model_get_quota_response.go @@ -17,6 +17,26 @@ import ( // checks if the GetQuotaResponse type satisfies the MappedNullable interface at compile time var _ MappedNullable = &GetQuotaResponse{} +/* + types and functions for maxCredentials +*/ + +// isInteger +type GetQuotaResponseGetMaxCredentialsAttributeType = *int64 +type GetQuotaResponseGetMaxCredentialsArgType = int64 +type GetQuotaResponseGetMaxCredentialsRetType = int64 + +func getGetQuotaResponseGetMaxCredentialsAttributeTypeOk(arg GetQuotaResponseGetMaxCredentialsAttributeType) (ret GetQuotaResponseGetMaxCredentialsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setGetQuotaResponseGetMaxCredentialsAttributeType(arg *GetQuotaResponseGetMaxCredentialsAttributeType, val GetQuotaResponseGetMaxCredentialsRetType) { + *arg = &val +} + /* types and functions for maxLoadBalancers */ @@ -79,8 +99,51 @@ 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. + // Can be cast to int32 without loss of precision. + MaxCredentials GetQuotaResponseGetMaxCredentialsAttributeType `json:"maxCredentials,omitempty"` // The maximum number of load balancing servers in this project. Unlimited if set to -1. // Can be cast to int32 without loss of precision. MaxLoadBalancers GetQuotaResponseGetMaxLoadBalancersAttributeType `json:"maxLoadBalancers,omitempty"` @@ -88,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 @@ -107,6 +176,29 @@ func NewGetQuotaResponseWithDefaults() *GetQuotaResponse { return &this } +// GetMaxCredentials returns the MaxCredentials field value if set, zero value otherwise. +func (o *GetQuotaResponse) GetMaxCredentials() (res GetQuotaResponseGetMaxCredentialsRetType) { + res, _ = o.GetMaxCredentialsOk() + return +} + +// GetMaxCredentialsOk returns a tuple with the MaxCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetQuotaResponse) GetMaxCredentialsOk() (ret GetQuotaResponseGetMaxCredentialsRetType, ok bool) { + return getGetQuotaResponseGetMaxCredentialsAttributeTypeOk(o.MaxCredentials) +} + +// HasMaxCredentials returns a boolean if a field has been set. +func (o *GetQuotaResponse) HasMaxCredentials() bool { + _, ok := o.GetMaxCredentialsOk() + return ok +} + +// SetMaxCredentials gets a reference to the given int64 and assigns it to the MaxCredentials field. +func (o *GetQuotaResponse) SetMaxCredentials(v GetQuotaResponseGetMaxCredentialsRetType) { + setGetQuotaResponseGetMaxCredentialsAttributeType(&o.MaxCredentials, v) +} + // GetMaxLoadBalancers returns the MaxLoadBalancers field value if set, zero value otherwise. func (o *GetQuotaResponse) GetMaxLoadBalancers() (res GetQuotaResponseGetMaxLoadBalancersRetType) { res, _ = o.GetMaxLoadBalancersOk() @@ -176,8 +268,57 @@ 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 { + toSerialize["MaxCredentials"] = val + } if val, ok := getGetQuotaResponseGetMaxLoadBalancersAttributeTypeOk(o.MaxLoadBalancers); ok { toSerialize["MaxLoadBalancers"] = val } @@ -187,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 } From 895afae2b096df49056e128a188e9aec423af3a9 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Mon, 19 Jan 2026 15:35:05 +0100 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 2 ++ services/loadbalancer/CHANGELOG.md | 7 +++++-- services/loadbalancer/VERSION | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32102c8b8..7867584ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## Release (2026-XX-YY) +- `loadbalancer`: [v1.7.0](services/loadbalancer/CHANGELOG.md#v170) + - **Feature:** Add new fields `MaxCredentials`, `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` Model - `ske`: [v1.6.0](services/ske/CHANGELOG.md#v160) - **Feature:** Add field `Identity` to model `ClusterStatus` - `observability`: [v0.16.0](services/observability/CHANGELOG.md#v0160) diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index a05594ac5..26c62db4b 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,8 +1,11 @@ +## v1.7.0 +- **Feature:** Add new fields `MaxCredentials`, `UsedCredentials` and `UsedLoadBalancers` in `GetQuotaResponse` Model + ## v1.6.2 - - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` +- Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` ## v1.6.1 - - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` +- Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` ## v1.6.0 - Add field `Labels` (type `*map[string]string`) to structs `LoadBalancer`, `CreateLoadBalancerPayload`, `UpdateLoadBalancerPayload` diff --git a/services/loadbalancer/VERSION b/services/loadbalancer/VERSION index 98610aa42..b7c8e167d 100644 --- a/services/loadbalancer/VERSION +++ b/services/loadbalancer/VERSION @@ -1 +1 @@ -v1.6.2 \ No newline at end of file +v1.7.0 \ No newline at end of file