From 65ecc23c4f61ffe9ab419dab7d4d6c369254d238 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 11 Sep 2026 12:32:15 +0000 Subject: [PATCH] Generate alb --- ...odel_loadbalancer_option_access_control.go | 63 ++++++++++++++++++- services/alb/oas_commit | 2 +- ...odel_loadbalancer_option_access_control.go | 44 ++++++++++++- 3 files changed, 103 insertions(+), 6 deletions(-) diff --git a/services/alb/model_loadbalancer_option_access_control.go b/services/alb/model_loadbalancer_option_access_control.go index 3cbe050ed1..ab33256563 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 69bfa80b38..b2db84d556 100644 --- a/services/alb/oas_commit +++ b/services/alb/oas_commit @@ -1 +1 @@ -864bdad12a54f612df8fcdb6e41dd2933e94c3af +9b983fefc1a52d2b7fdc9df6376424c944a044bb diff --git a/services/alb/v2api/model_loadbalancer_option_access_control.go b/services/alb/v2api/model_loadbalancer_option_access_control.go index ef58e5c10f..8d62ec8ca6 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 }