diff --git a/services/alb/go.mod b/services/alb/go.mod index 22a4c358c..a0cbd4a2a 100644 --- a/services/alb/go.mod +++ b/services/alb/go.mod @@ -5,7 +5,7 @@ go 1.25 require ( github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.26.0 + github.com/stackitcloud/stackit-sdk-go/core v0.27.0 ) require github.com/golang-jwt/jwt/v5 v5.3.1 // indirect diff --git a/services/alb/go.sum b/services/alb/go.sum index 3712a0c87..042f4a71a 100644 --- a/services/alb/go.sum +++ b/services/alb/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA= -github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= +github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/alb/model_loadbalancer_option_access_control.go b/services/alb/model_loadbalancer_option_access_control.go index 3cbe050ed..ab3325656 100644 --- a/services/alb/model_loadbalancer_option_access_control.go +++ b/services/alb/model_loadbalancer_option_access_control.go @@ -45,11 +45,40 @@ func setLoadbalancerOptionAccessControlGetAllowedSourceRangesAttributeType(arg * *arg = &val } -// LoadbalancerOptionAccessControl Use this option to limit the IP ranges that can use the Application Load Balancer. +/* + types and functions for ipBlockListName +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type LoadbalancerOptionAccessControlGetIpBlockListNameAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getLoadbalancerOptionAccessControlGetIpBlockListNameAttributeTypeOk(arg LoadbalancerOptionAccessControlGetIpBlockListNameAttributeType) (ret LoadbalancerOptionAccessControlGetIpBlockListNameRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setLoadbalancerOptionAccessControlGetIpBlockListNameAttributeType(arg *LoadbalancerOptionAccessControlGetIpBlockListNameAttributeType, val LoadbalancerOptionAccessControlGetIpBlockListNameRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type LoadbalancerOptionAccessControlGetIpBlockListNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type LoadbalancerOptionAccessControlGetIpBlockListNameRetType = string + +// LoadbalancerOptionAccessControl Use this option to limit the IP ranges that can use the Application Load Balancer. `allowed_source_ranges` and `ip_block_list_name` may be set together. When both are set, `allowed_source_ranges` is evaluated first, then `ip_block_list_name` is evaluated. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type LoadbalancerOptionAccessControl struct { - // Application Load Balancer is accessible only from an IP address in this range + // Application Load Balancer is accessible only from an IP address in this range. May be combined with `ipBlockListName`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. AllowedSourceRanges LoadbalancerOptionAccessControlGetAllowedSourceRangesAttributeType `json:"allowedSourceRanges,omitempty"` + // Reference to an IP block list by name. Traffic originating from any IP in the referenced list is denied access to the Application Load Balancer. See \"IP Lists API\" for how to manage IP block lists. May be combined with `allowedSourceRanges`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. + IpBlockListName LoadbalancerOptionAccessControlGetIpBlockListNameAttributeType `json:"ipBlockListName,omitempty"` } // NewLoadbalancerOptionAccessControl instantiates a new LoadbalancerOptionAccessControl object @@ -98,12 +127,42 @@ func (o *LoadbalancerOptionAccessControl) SetAllowedSourceRanges(v LoadbalancerO setLoadbalancerOptionAccessControlGetAllowedSourceRangesAttributeType(&o.AllowedSourceRanges, v) } +// GetIpBlockListName returns the IpBlockListName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *LoadbalancerOptionAccessControl) GetIpBlockListName() (res LoadbalancerOptionAccessControlGetIpBlockListNameRetType) { + res, _ = o.GetIpBlockListNameOk() + return +} + +// GetIpBlockListNameOk returns a tuple with the IpBlockListName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *LoadbalancerOptionAccessControl) GetIpBlockListNameOk() (ret LoadbalancerOptionAccessControlGetIpBlockListNameRetType, ok bool) { + return getLoadbalancerOptionAccessControlGetIpBlockListNameAttributeTypeOk(o.IpBlockListName) +} + +// HasIpBlockListName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *LoadbalancerOptionAccessControl) HasIpBlockListName() bool { + _, ok := o.GetIpBlockListNameOk() + return ok +} + +// SetIpBlockListName gets a reference to the given string and assigns it to the IpBlockListName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *LoadbalancerOptionAccessControl) SetIpBlockListName(v LoadbalancerOptionAccessControlGetIpBlockListNameRetType) { + setLoadbalancerOptionAccessControlGetIpBlockListNameAttributeType(&o.IpBlockListName, v) +} + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o LoadbalancerOptionAccessControl) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getLoadbalancerOptionAccessControlGetAllowedSourceRangesAttributeTypeOk(o.AllowedSourceRanges); ok { toSerialize["AllowedSourceRanges"] = val } + if val, ok := getLoadbalancerOptionAccessControlGetIpBlockListNameAttributeTypeOk(o.IpBlockListName); ok { + toSerialize["IpBlockListName"] = val + } return toSerialize, nil } diff --git a/services/alb/oas_commit b/services/alb/oas_commit index 69bfa80b3..d5d15003c 100644 --- a/services/alb/oas_commit +++ b/services/alb/oas_commit @@ -1 +1 @@ -864bdad12a54f612df8fcdb6e41dd2933e94c3af +f385f3b154cb566b3c9e5156c29b28150f2af4a2 diff --git a/services/alb/v2api/model_loadbalancer_option_access_control.go b/services/alb/v2api/model_loadbalancer_option_access_control.go index ef58e5c10..8d62ec8ca 100644 --- a/services/alb/v2api/model_loadbalancer_option_access_control.go +++ b/services/alb/v2api/model_loadbalancer_option_access_control.go @@ -17,10 +17,12 @@ import ( // checks if the LoadbalancerOptionAccessControl type satisfies the MappedNullable interface at compile time var _ MappedNullable = &LoadbalancerOptionAccessControl{} -// LoadbalancerOptionAccessControl Use this option to limit the IP ranges that can use the Application Load Balancer. +// LoadbalancerOptionAccessControl Use this option to limit the IP ranges that can use the Application Load Balancer. `allowed_source_ranges` and `ip_block_list_name` may be set together. When both are set, `allowed_source_ranges` is evaluated first, then `ip_block_list_name` is evaluated. type LoadbalancerOptionAccessControl struct { - // Application Load Balancer is accessible only from an IP address in this range - AllowedSourceRanges []string `json:"allowedSourceRanges,omitempty"` + // Application Load Balancer is accessible only from an IP address in this range. May be combined with `ipBlockListName`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. + AllowedSourceRanges []string `json:"allowedSourceRanges,omitempty"` + // Reference to an IP block list by name. Traffic originating from any IP in the referenced list is denied access to the Application Load Balancer. See \"IP Lists API\" for how to manage IP block lists. May be combined with `allowedSourceRanges`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. + IpBlockListName *string `json:"ipBlockListName,omitempty" validate:"regexp=^[0-9a-z](?:(?:[0-9a-z]|-){0\\,49}[0-9a-z])?$"` AdditionalProperties map[string]interface{} } @@ -75,6 +77,38 @@ func (o *LoadbalancerOptionAccessControl) SetAllowedSourceRanges(v []string) { o.AllowedSourceRanges = v } +// GetIpBlockListName returns the IpBlockListName field value if set, zero value otherwise. +func (o *LoadbalancerOptionAccessControl) GetIpBlockListName() string { + if o == nil || IsNil(o.IpBlockListName) { + var ret string + return ret + } + return *o.IpBlockListName +} + +// GetIpBlockListNameOk returns a tuple with the IpBlockListName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LoadbalancerOptionAccessControl) GetIpBlockListNameOk() (*string, bool) { + if o == nil || IsNil(o.IpBlockListName) { + return nil, false + } + return o.IpBlockListName, true +} + +// HasIpBlockListName returns a boolean if a field has been set. +func (o *LoadbalancerOptionAccessControl) HasIpBlockListName() bool { + if o != nil && !IsNil(o.IpBlockListName) { + return true + } + + return false +} + +// SetIpBlockListName gets a reference to the given string and assigns it to the IpBlockListName field. +func (o *LoadbalancerOptionAccessControl) SetIpBlockListName(v string) { + o.IpBlockListName = &v +} + func (o LoadbalancerOptionAccessControl) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -88,6 +122,9 @@ func (o LoadbalancerOptionAccessControl) ToMap() (map[string]interface{}, error) if !IsNil(o.AllowedSourceRanges) { toSerialize["allowedSourceRanges"] = o.AllowedSourceRanges } + if !IsNil(o.IpBlockListName) { + toSerialize["ipBlockListName"] = o.IpBlockListName + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -111,6 +148,7 @@ func (o *LoadbalancerOptionAccessControl) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "allowedSourceRanges") + delete(additionalProperties, "ipBlockListName") o.AdditionalProperties = additionalProperties }