diff --git a/CHANGELOG.md b/CHANGELOG.md index 98af7dbde..b75da0be0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ - **Feature:** Add new field `DemoUrl` to `CatalogProductDetail` model - [v1.10.0](services/stackitmarketplace/CHANGELOG.md#v1100) - **Feature:** Added `PlanId` to `CatalogProductPricingOption` and `SubscriptionProduct` +- `alb`: [v0.7.0](services/alb/CHANGELOG.md#v070) + - Add field `Labels` (type `*map[string]string`) to structs `LoadBalancer`, `CreateLoadBalancerPayload`, `UpdateLoadBalancerPayload` + - Add field `WafConfigName` (type `*string`) to `Listener` struct diff --git a/services/alb/CHANGELOG.md b/services/alb/CHANGELOG.md index a1b34900e..c0d35048a 100644 --- a/services/alb/CHANGELOG.md +++ b/services/alb/CHANGELOG.md @@ -1,5 +1,9 @@ +## v0.7.0 +- Add field `Labels` (type `*map[string]string`) to structs `LoadBalancer`, `CreateLoadBalancerPayload`, `UpdateLoadBalancerPayload` +- Add field `WafConfigName` (type `*string`) to `Listener` struct + ## v0.6.1 - - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` +- **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` ## v0.6.0 - **Feature:** Add new `LoadBalancerSecurityGroup` field to `CreateLoadBalancerPayload`, `LoadBalancer`, and `UpdateLoadBalancerPayload` models diff --git a/services/alb/VERSION b/services/alb/VERSION index 45a997041..8b20e4852 100644 --- a/services/alb/VERSION +++ b/services/alb/VERSION @@ -1 +1 @@ -v0.6.1 \ No newline at end of file +v0.7.0 diff --git a/services/alb/model_create_load_balancer_payload.go b/services/alb/model_create_load_balancer_payload.go index 55b6fe530..213c862fd 100644 --- a/services/alb/model_create_load_balancer_payload.go +++ b/services/alb/model_create_load_balancer_payload.go @@ -79,6 +79,26 @@ func setCreateLoadBalancerPayloadGetExternalAddressAttributeType(arg *CreateLoad type CreateLoadBalancerPayloadGetExternalAddressArgType = string type CreateLoadBalancerPayloadGetExternalAddressRetType = string +/* + types and functions for labels +*/ + +// isContainer +type CreateLoadBalancerPayloadGetLabelsAttributeType = *map[string]string +type CreateLoadBalancerPayloadGetLabelsArgType = map[string]string +type CreateLoadBalancerPayloadGetLabelsRetType = map[string]string + +func getCreateLoadBalancerPayloadGetLabelsAttributeTypeOk(arg CreateLoadBalancerPayloadGetLabelsAttributeType) (ret CreateLoadBalancerPayloadGetLabelsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateLoadBalancerPayloadGetLabelsAttributeType(arg *CreateLoadBalancerPayloadGetLabelsAttributeType, val CreateLoadBalancerPayloadGetLabelsRetType) { + *arg = &val +} + /* types and functions for listeners */ @@ -442,6 +462,8 @@ type CreateLoadBalancerPayload struct { Errors CreateLoadBalancerPayloadGetErrorsAttributeType `json:"errors,omitempty"` // External application load balancer IP address where this application load balancer is exposed. Not changeable after creation. ExternalAddress CreateLoadBalancerPayloadGetExternalAddressAttributeType `json:"externalAddress,omitempty"` + // Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per ALB. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels CreateLoadBalancerPayloadGetLabelsAttributeType `json:"labels,omitempty"` // There is a maximum listener count of 20. Listeners CreateLoadBalancerPayloadGetListenersAttributeType `json:"listeners,omitempty"` LoadBalancerSecurityGroup CreateLoadBalancerPayloadGetLoadBalancerSecurityGroupAttributeType `json:"loadBalancerSecurityGroup,omitempty"` @@ -550,6 +572,29 @@ func (o *CreateLoadBalancerPayload) SetExternalAddress(v CreateLoadBalancerPaylo setCreateLoadBalancerPayloadGetExternalAddressAttributeType(&o.ExternalAddress, v) } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *CreateLoadBalancerPayload) GetLabels() (res CreateLoadBalancerPayloadGetLabelsRetType) { + res, _ = o.GetLabelsOk() + return +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateLoadBalancerPayload) GetLabelsOk() (ret CreateLoadBalancerPayloadGetLabelsRetType, ok bool) { + return getCreateLoadBalancerPayloadGetLabelsAttributeTypeOk(o.Labels) +} + +// HasLabels returns a boolean if a field has been set. +func (o *CreateLoadBalancerPayload) HasLabels() bool { + _, ok := o.GetLabelsOk() + return ok +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *CreateLoadBalancerPayload) SetLabels(v CreateLoadBalancerPayloadGetLabelsRetType) { + setCreateLoadBalancerPayloadGetLabelsAttributeType(&o.Labels, v) +} + // GetListeners returns the Listeners field value if set, zero value otherwise. func (o *CreateLoadBalancerPayload) GetListeners() (res CreateLoadBalancerPayloadGetListenersRetType) { res, _ = o.GetListenersOk() @@ -837,6 +882,9 @@ func (o CreateLoadBalancerPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateLoadBalancerPayloadGetExternalAddressAttributeTypeOk(o.ExternalAddress); ok { toSerialize["ExternalAddress"] = val } + if val, ok := getCreateLoadBalancerPayloadGetLabelsAttributeTypeOk(o.Labels); ok { + toSerialize["Labels"] = val + } if val, ok := getCreateLoadBalancerPayloadGetListenersAttributeTypeOk(o.Listeners); ok { toSerialize["Listeners"] = val } diff --git a/services/alb/model_listener.go b/services/alb/model_listener.go index 5eb0972cb..4ac929893 100644 --- a/services/alb/model_listener.go +++ b/services/alb/model_listener.go @@ -225,6 +225,27 @@ func setListenerGetProtocolAttributeType(arg *ListenerGetProtocolAttributeType, *arg = &val } +/* + types and functions for wafConfigName +*/ + +// isNotNullableString +type ListenerGetWafConfigNameAttributeType = *string + +func getListenerGetWafConfigNameAttributeTypeOk(arg ListenerGetWafConfigNameAttributeType) (ret ListenerGetWafConfigNameRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setListenerGetWafConfigNameAttributeType(arg *ListenerGetWafConfigNameAttributeType, val ListenerGetWafConfigNameRetType) { + *arg = &val +} + +type ListenerGetWafConfigNameArgType = string +type ListenerGetWafConfigNameRetType = string + // Listener struct for Listener type Listener struct { Http ListenerGetHttpAttributeType `json:"http,omitempty"` @@ -236,6 +257,8 @@ type Listener struct { Port ListenerGetPortAttributeType `json:"port,omitempty"` // Protocol is the highest network protocol we understand to load balance. Currently PROTOCOL_HTTP and PROTOCOL_HTTPS are supported. Protocol ListenerGetProtocolAttributeType `json:"protocol,omitempty"` + // Enable Web Application Firewall (WAF), referenced to a by name. See \"Application Load Balancer - Web Application Firewall API\" for more information. + WafConfigName ListenerGetWafConfigNameAttributeType `json:"wafConfigName,omitempty"` } // NewListener instantiates a new Listener object @@ -370,6 +393,29 @@ func (o *Listener) SetProtocol(v ListenerGetProtocolRetType) { setListenerGetProtocolAttributeType(&o.Protocol, v) } +// GetWafConfigName returns the WafConfigName field value if set, zero value otherwise. +func (o *Listener) GetWafConfigName() (res ListenerGetWafConfigNameRetType) { + res, _ = o.GetWafConfigNameOk() + return +} + +// GetWafConfigNameOk returns a tuple with the WafConfigName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Listener) GetWafConfigNameOk() (ret ListenerGetWafConfigNameRetType, ok bool) { + return getListenerGetWafConfigNameAttributeTypeOk(o.WafConfigName) +} + +// HasWafConfigName returns a boolean if a field has been set. +func (o *Listener) HasWafConfigName() bool { + _, ok := o.GetWafConfigNameOk() + return ok +} + +// SetWafConfigName gets a reference to the given string and assigns it to the WafConfigName field. +func (o *Listener) SetWafConfigName(v ListenerGetWafConfigNameRetType) { + setListenerGetWafConfigNameAttributeType(&o.WafConfigName, v) +} + func (o Listener) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListenerGetHttpAttributeTypeOk(o.Http); ok { @@ -387,6 +433,9 @@ func (o Listener) ToMap() (map[string]interface{}, error) { if val, ok := getListenerGetProtocolAttributeTypeOk(o.Protocol); ok { toSerialize["Protocol"] = val } + if val, ok := getListenerGetWafConfigNameAttributeTypeOk(o.WafConfigName); ok { + toSerialize["WafConfigName"] = val + } return toSerialize, nil } diff --git a/services/alb/model_load_balancer.go b/services/alb/model_load_balancer.go index f54c030d9..d43302620 100644 --- a/services/alb/model_load_balancer.go +++ b/services/alb/model_load_balancer.go @@ -79,6 +79,26 @@ func setLoadBalancerGetExternalAddressAttributeType(arg *LoadBalancerGetExternal type LoadBalancerGetExternalAddressArgType = string type LoadBalancerGetExternalAddressRetType = string +/* + types and functions for labels +*/ + +// isContainer +type LoadBalancerGetLabelsAttributeType = *map[string]string +type LoadBalancerGetLabelsArgType = map[string]string +type LoadBalancerGetLabelsRetType = map[string]string + +func getLoadBalancerGetLabelsAttributeTypeOk(arg LoadBalancerGetLabelsAttributeType) (ret LoadBalancerGetLabelsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setLoadBalancerGetLabelsAttributeType(arg *LoadBalancerGetLabelsAttributeType, val LoadBalancerGetLabelsRetType) { + *arg = &val +} + /* types and functions for listeners */ @@ -442,6 +462,8 @@ type LoadBalancer struct { Errors LoadBalancerGetErrorsAttributeType `json:"errors,omitempty"` // External application load balancer IP address where this application load balancer is exposed. Not changeable after creation. ExternalAddress LoadBalancerGetExternalAddressAttributeType `json:"externalAddress,omitempty"` + // Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per ALB. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels LoadBalancerGetLabelsAttributeType `json:"labels,omitempty"` // There is a maximum listener count of 20. Listeners LoadBalancerGetListenersAttributeType `json:"listeners,omitempty"` LoadBalancerSecurityGroup LoadBalancerGetLoadBalancerSecurityGroupAttributeType `json:"loadBalancerSecurityGroup,omitempty"` @@ -550,6 +572,29 @@ func (o *LoadBalancer) SetExternalAddress(v LoadBalancerGetExternalAddressRetTyp setLoadBalancerGetExternalAddressAttributeType(&o.ExternalAddress, v) } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *LoadBalancer) GetLabels() (res LoadBalancerGetLabelsRetType) { + res, _ = o.GetLabelsOk() + return +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LoadBalancer) GetLabelsOk() (ret LoadBalancerGetLabelsRetType, ok bool) { + return getLoadBalancerGetLabelsAttributeTypeOk(o.Labels) +} + +// HasLabels returns a boolean if a field has been set. +func (o *LoadBalancer) HasLabels() bool { + _, ok := o.GetLabelsOk() + return ok +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *LoadBalancer) SetLabels(v LoadBalancerGetLabelsRetType) { + setLoadBalancerGetLabelsAttributeType(&o.Labels, v) +} + // GetListeners returns the Listeners field value if set, zero value otherwise. func (o *LoadBalancer) GetListeners() (res LoadBalancerGetListenersRetType) { res, _ = o.GetListenersOk() @@ -837,6 +882,9 @@ func (o LoadBalancer) ToMap() (map[string]interface{}, error) { if val, ok := getLoadBalancerGetExternalAddressAttributeTypeOk(o.ExternalAddress); ok { toSerialize["ExternalAddress"] = val } + if val, ok := getLoadBalancerGetLabelsAttributeTypeOk(o.Labels); ok { + toSerialize["Labels"] = val + } if val, ok := getLoadBalancerGetListenersAttributeTypeOk(o.Listeners); ok { toSerialize["Listeners"] = val } diff --git a/services/alb/model_update_load_balancer_payload.go b/services/alb/model_update_load_balancer_payload.go index d3067ee6b..59d9a5015 100644 --- a/services/alb/model_update_load_balancer_payload.go +++ b/services/alb/model_update_load_balancer_payload.go @@ -79,6 +79,26 @@ func setUpdateLoadBalancerPayloadGetExternalAddressAttributeType(arg *UpdateLoad type UpdateLoadBalancerPayloadGetExternalAddressArgType = string type UpdateLoadBalancerPayloadGetExternalAddressRetType = string +/* + types and functions for labels +*/ + +// isContainer +type UpdateLoadBalancerPayloadGetLabelsAttributeType = *map[string]string +type UpdateLoadBalancerPayloadGetLabelsArgType = map[string]string +type UpdateLoadBalancerPayloadGetLabelsRetType = map[string]string + +func getUpdateLoadBalancerPayloadGetLabelsAttributeTypeOk(arg UpdateLoadBalancerPayloadGetLabelsAttributeType) (ret UpdateLoadBalancerPayloadGetLabelsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateLoadBalancerPayloadGetLabelsAttributeType(arg *UpdateLoadBalancerPayloadGetLabelsAttributeType, val UpdateLoadBalancerPayloadGetLabelsRetType) { + *arg = &val +} + /* types and functions for listeners */ @@ -442,6 +462,8 @@ type UpdateLoadBalancerPayload struct { Errors UpdateLoadBalancerPayloadGetErrorsAttributeType `json:"errors,omitempty"` // External application load balancer IP address where this application load balancer is exposed. Not changeable after creation. ExternalAddress UpdateLoadBalancerPayloadGetExternalAddressAttributeType `json:"externalAddress,omitempty"` + // Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per ALB. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. + Labels UpdateLoadBalancerPayloadGetLabelsAttributeType `json:"labels,omitempty"` // There is a maximum listener count of 20. Listeners UpdateLoadBalancerPayloadGetListenersAttributeType `json:"listeners,omitempty"` LoadBalancerSecurityGroup UpdateLoadBalancerPayloadGetLoadBalancerSecurityGroupAttributeType `json:"loadBalancerSecurityGroup,omitempty"` @@ -550,6 +572,29 @@ func (o *UpdateLoadBalancerPayload) SetExternalAddress(v UpdateLoadBalancerPaylo setUpdateLoadBalancerPayloadGetExternalAddressAttributeType(&o.ExternalAddress, v) } +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *UpdateLoadBalancerPayload) GetLabels() (res UpdateLoadBalancerPayloadGetLabelsRetType) { + res, _ = o.GetLabelsOk() + return +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLoadBalancerPayload) GetLabelsOk() (ret UpdateLoadBalancerPayloadGetLabelsRetType, ok bool) { + return getUpdateLoadBalancerPayloadGetLabelsAttributeTypeOk(o.Labels) +} + +// HasLabels returns a boolean if a field has been set. +func (o *UpdateLoadBalancerPayload) HasLabels() bool { + _, ok := o.GetLabelsOk() + return ok +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *UpdateLoadBalancerPayload) SetLabels(v UpdateLoadBalancerPayloadGetLabelsRetType) { + setUpdateLoadBalancerPayloadGetLabelsAttributeType(&o.Labels, v) +} + // GetListeners returns the Listeners field value if set, zero value otherwise. func (o *UpdateLoadBalancerPayload) GetListeners() (res UpdateLoadBalancerPayloadGetListenersRetType) { res, _ = o.GetListenersOk() @@ -837,6 +882,9 @@ func (o UpdateLoadBalancerPayload) ToMap() (map[string]interface{}, error) { if val, ok := getUpdateLoadBalancerPayloadGetExternalAddressAttributeTypeOk(o.ExternalAddress); ok { toSerialize["ExternalAddress"] = val } + if val, ok := getUpdateLoadBalancerPayloadGetLabelsAttributeTypeOk(o.Labels); ok { + toSerialize["Labels"] = val + } if val, ok := getUpdateLoadBalancerPayloadGetListenersAttributeTypeOk(o.Listeners); ok { toSerialize["Listeners"] = val }