From 14dcd2306145c2318e969c9d95f7ccaf71b7cdf8 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 20 Feb 2026 15:34:21 +0000 Subject: [PATCH] Generate alb --- services/alb/model_active_health_check.go | 49 ++++ services/alb/model_http_health_checks.go | 47 ++++ services/alb/model_target_pool.go | 8 +- services/alb/model_target_pool_tls_config.go | 225 ------------------ services/alb/model_tls_config.go | 225 ++++++++++++++++++ ...onfig_test.go => model_tls_config_test.go} | 0 .../alb/model_update_target_pool_payload.go | 8 +- services/alb/oas_commit | 2 +- 8 files changed, 330 insertions(+), 234 deletions(-) delete mode 100644 services/alb/model_target_pool_tls_config.go create mode 100644 services/alb/model_tls_config.go rename services/alb/{model_target_pool_tls_config_test.go => model_tls_config_test.go} (100%) diff --git a/services/alb/model_active_health_check.go b/services/alb/model_active_health_check.go index ef53c9ab5..7475e368a 100644 --- a/services/alb/model_active_health_check.go +++ b/services/alb/model_active_health_check.go @@ -17,6 +17,26 @@ import ( // checks if the ActiveHealthCheck type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ActiveHealthCheck{} +/* + types and functions for altPort +*/ + +// isInteger +type ActiveHealthCheckGetAltPortAttributeType = *int64 +type ActiveHealthCheckGetAltPortArgType = int64 +type ActiveHealthCheckGetAltPortRetType = int64 + +func getActiveHealthCheckGetAltPortAttributeTypeOk(arg ActiveHealthCheckGetAltPortAttributeType) (ret ActiveHealthCheckGetAltPortRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setActiveHealthCheckGetAltPortAttributeType(arg *ActiveHealthCheckGetAltPortAttributeType, val ActiveHealthCheckGetAltPortRetType) { + *arg = &val +} + /* types and functions for healthyThreshold */ @@ -142,6 +162,9 @@ func setActiveHealthCheckGetUnhealthyThresholdAttributeType(arg *ActiveHealthChe // ActiveHealthCheck Set this to customize active health checks for targets in this pool. type ActiveHealthCheck struct { + // Overrides the default port used for health check probes. + // Can be cast to int32 without loss of precision. + AltPort ActiveHealthCheckGetAltPortAttributeType `json:"altPort,omitempty"` // Healthy threshold of the health checking // Can be cast to int32 without loss of precision. HealthyThreshold ActiveHealthCheckGetHealthyThresholdAttributeType `json:"healthyThreshold,omitempty"` @@ -174,6 +197,29 @@ func NewActiveHealthCheckWithDefaults() *ActiveHealthCheck { return &this } +// GetAltPort returns the AltPort field value if set, zero value otherwise. +func (o *ActiveHealthCheck) GetAltPort() (res ActiveHealthCheckGetAltPortRetType) { + res, _ = o.GetAltPortOk() + return +} + +// GetAltPortOk returns a tuple with the AltPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActiveHealthCheck) GetAltPortOk() (ret ActiveHealthCheckGetAltPortRetType, ok bool) { + return getActiveHealthCheckGetAltPortAttributeTypeOk(o.AltPort) +} + +// HasAltPort returns a boolean if a field has been set. +func (o *ActiveHealthCheck) HasAltPort() bool { + _, ok := o.GetAltPortOk() + return ok +} + +// SetAltPort gets a reference to the given int64 and assigns it to the AltPort field. +func (o *ActiveHealthCheck) SetAltPort(v ActiveHealthCheckGetAltPortRetType) { + setActiveHealthCheckGetAltPortAttributeType(&o.AltPort, v) +} + // GetHealthyThreshold returns the HealthyThreshold field value if set, zero value otherwise. func (o *ActiveHealthCheck) GetHealthyThreshold() (res ActiveHealthCheckGetHealthyThresholdRetType) { res, _ = o.GetHealthyThresholdOk() @@ -314,6 +360,9 @@ func (o *ActiveHealthCheck) SetUnhealthyThreshold(v ActiveHealthCheckGetUnhealth func (o ActiveHealthCheck) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getActiveHealthCheckGetAltPortAttributeTypeOk(o.AltPort); ok { + toSerialize["AltPort"] = val + } if val, ok := getActiveHealthCheckGetHealthyThresholdAttributeTypeOk(o.HealthyThreshold); ok { toSerialize["HealthyThreshold"] = val } diff --git a/services/alb/model_http_health_checks.go b/services/alb/model_http_health_checks.go index 0b17fcee2..ae081808d 100644 --- a/services/alb/model_http_health_checks.go +++ b/services/alb/model_http_health_checks.go @@ -58,12 +58,33 @@ func setHttpHealthChecksGetPathAttributeType(arg *HttpHealthChecksGetPathAttribu type HttpHealthChecksGetPathArgType = string type HttpHealthChecksGetPathRetType = string +/* + types and functions for tls +*/ + +// isModel +type HttpHealthChecksGetTlsAttributeType = *TlsConfig +type HttpHealthChecksGetTlsArgType = TlsConfig +type HttpHealthChecksGetTlsRetType = TlsConfig + +func getHttpHealthChecksGetTlsAttributeTypeOk(arg HttpHealthChecksGetTlsAttributeType) (ret HttpHealthChecksGetTlsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHttpHealthChecksGetTlsAttributeType(arg *HttpHealthChecksGetTlsAttributeType, val HttpHealthChecksGetTlsRetType) { + *arg = &val +} + // HttpHealthChecks Options for the HTTP health checking. type HttpHealthChecks struct { // List of HTTP status codes that indicate a healthy response OkStatuses HttpHealthChecksGetOkStatusesAttributeType `json:"okStatuses,omitempty"` // Path to send the health check request to Path HttpHealthChecksGetPathAttributeType `json:"path,omitempty"` + Tls HttpHealthChecksGetTlsAttributeType `json:"tls,omitempty"` } // NewHttpHealthChecks instantiates a new HttpHealthChecks object @@ -129,6 +150,29 @@ func (o *HttpHealthChecks) SetPath(v HttpHealthChecksGetPathRetType) { setHttpHealthChecksGetPathAttributeType(&o.Path, v) } +// GetTls returns the Tls field value if set, zero value otherwise. +func (o *HttpHealthChecks) GetTls() (res HttpHealthChecksGetTlsRetType) { + res, _ = o.GetTlsOk() + return +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HttpHealthChecks) GetTlsOk() (ret HttpHealthChecksGetTlsRetType, ok bool) { + return getHttpHealthChecksGetTlsAttributeTypeOk(o.Tls) +} + +// HasTls returns a boolean if a field has been set. +func (o *HttpHealthChecks) HasTls() bool { + _, ok := o.GetTlsOk() + return ok +} + +// SetTls gets a reference to the given TlsConfig and assigns it to the Tls field. +func (o *HttpHealthChecks) SetTls(v HttpHealthChecksGetTlsRetType) { + setHttpHealthChecksGetTlsAttributeType(&o.Tls, v) +} + func (o HttpHealthChecks) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getHttpHealthChecksGetOkStatusesAttributeTypeOk(o.OkStatuses); ok { @@ -137,6 +181,9 @@ func (o HttpHealthChecks) ToMap() (map[string]interface{}, error) { if val, ok := getHttpHealthChecksGetPathAttributeTypeOk(o.Path); ok { toSerialize["Path"] = val } + if val, ok := getHttpHealthChecksGetTlsAttributeTypeOk(o.Tls); ok { + toSerialize["Tls"] = val + } return toSerialize, nil } diff --git a/services/alb/model_target_pool.go b/services/alb/model_target_pool.go index f336f7c59..fd6081063 100644 --- a/services/alb/model_target_pool.go +++ b/services/alb/model_target_pool.go @@ -103,9 +103,9 @@ func setTargetPoolGetTargetsAttributeType(arg *TargetPoolGetTargetsAttributeType */ // isModel -type TargetPoolGetTlsConfigAttributeType = *TargetPoolTlsConfig -type TargetPoolGetTlsConfigArgType = TargetPoolTlsConfig -type TargetPoolGetTlsConfigRetType = TargetPoolTlsConfig +type TargetPoolGetTlsConfigAttributeType = *TlsConfig +type TargetPoolGetTlsConfigArgType = TlsConfig +type TargetPoolGetTlsConfigRetType = TlsConfig func getTargetPoolGetTlsConfigAttributeTypeOk(arg TargetPoolGetTlsConfigAttributeType) (ret TargetPoolGetTlsConfigRetType, ok bool) { if arg == nil { @@ -258,7 +258,7 @@ func (o *TargetPool) HasTlsConfig() bool { return ok } -// SetTlsConfig gets a reference to the given TargetPoolTlsConfig and assigns it to the TlsConfig field. +// SetTlsConfig gets a reference to the given TlsConfig and assigns it to the TlsConfig field. func (o *TargetPool) SetTlsConfig(v TargetPoolGetTlsConfigRetType) { setTargetPoolGetTlsConfigAttributeType(&o.TlsConfig, v) } diff --git a/services/alb/model_target_pool_tls_config.go b/services/alb/model_target_pool_tls_config.go deleted file mode 100644 index 1a933c7f7..000000000 --- a/services/alb/model_target_pool_tls_config.go +++ /dev/null @@ -1,225 +0,0 @@ -/* -STACKIT Application Load Balancer API - -This API offers an interface to provision and manage Application Load Balancers in your STACKIT project.This solution offers modern L7 load balancing. Current features include TLS, path and prefix based routing aswell as routing based on headers, query parameters and keeping connections persistent with cookies and web sockets. For each Application Load Balancer provided, two VMs are deployed in your STACKIT project and are subject to fees. - -API version: 2.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package alb - -import ( - "encoding/json" -) - -// checks if the TargetPoolTlsConfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TargetPoolTlsConfig{} - -/* - types and functions for customCa -*/ - -// isNotNullableString -type TargetPoolTlsConfigGetCustomCaAttributeType = *string - -func getTargetPoolTlsConfigGetCustomCaAttributeTypeOk(arg TargetPoolTlsConfigGetCustomCaAttributeType) (ret TargetPoolTlsConfigGetCustomCaRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setTargetPoolTlsConfigGetCustomCaAttributeType(arg *TargetPoolTlsConfigGetCustomCaAttributeType, val TargetPoolTlsConfigGetCustomCaRetType) { - *arg = &val -} - -type TargetPoolTlsConfigGetCustomCaArgType = string -type TargetPoolTlsConfigGetCustomCaRetType = string - -/* - types and functions for enabled -*/ - -// isBoolean -type TargetPoolTlsConfiggetEnabledAttributeType = *bool -type TargetPoolTlsConfiggetEnabledArgType = bool -type TargetPoolTlsConfiggetEnabledRetType = bool - -func getTargetPoolTlsConfiggetEnabledAttributeTypeOk(arg TargetPoolTlsConfiggetEnabledAttributeType) (ret TargetPoolTlsConfiggetEnabledRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setTargetPoolTlsConfiggetEnabledAttributeType(arg *TargetPoolTlsConfiggetEnabledAttributeType, val TargetPoolTlsConfiggetEnabledRetType) { - *arg = &val -} - -/* - types and functions for skipCertificateValidation -*/ - -// isBoolean -type TargetPoolTlsConfiggetSkipCertificateValidationAttributeType = *bool -type TargetPoolTlsConfiggetSkipCertificateValidationArgType = bool -type TargetPoolTlsConfiggetSkipCertificateValidationRetType = bool - -func getTargetPoolTlsConfiggetSkipCertificateValidationAttributeTypeOk(arg TargetPoolTlsConfiggetSkipCertificateValidationAttributeType) (ret TargetPoolTlsConfiggetSkipCertificateValidationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setTargetPoolTlsConfiggetSkipCertificateValidationAttributeType(arg *TargetPoolTlsConfiggetSkipCertificateValidationAttributeType, val TargetPoolTlsConfiggetSkipCertificateValidationRetType) { - *arg = &val -} - -// TargetPoolTlsConfig TLSConfig used for the target pool. -type TargetPoolTlsConfig struct { - // Specifies a custom Certificate Authority (CA). When provided, the target pool will trust certificates signed by this CA, in addition to any system-trusted CAs. This is useful for scenarios where the target pool needs to communicate with servers using self-signed or internally-issued certificates. Enabled needs to be set to true and skip validation to false for this option. - CustomCa TargetPoolTlsConfigGetCustomCaAttributeType `json:"customCa,omitempty"` - // Enable TLS (Transport Layer Security) bridging for the connection between Application Load Balancer and targets in this pool. When enabled, public CAs are trusted. Can be used in tandem with the options either custom CA or skip validation or alone. - Enabled TargetPoolTlsConfiggetEnabledAttributeType `json:"enabled,omitempty"` - // Bypass certificate validation for TLS bridging in this target pool. This option is insecure and can only be used with public CAs by setting enabled true. Meant to be used for testing purposes only! - SkipCertificateValidation TargetPoolTlsConfiggetSkipCertificateValidationAttributeType `json:"skipCertificateValidation,omitempty"` -} - -// NewTargetPoolTlsConfig instantiates a new TargetPoolTlsConfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTargetPoolTlsConfig() *TargetPoolTlsConfig { - this := TargetPoolTlsConfig{} - return &this -} - -// NewTargetPoolTlsConfigWithDefaults instantiates a new TargetPoolTlsConfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTargetPoolTlsConfigWithDefaults() *TargetPoolTlsConfig { - this := TargetPoolTlsConfig{} - return &this -} - -// GetCustomCa returns the CustomCa field value if set, zero value otherwise. -func (o *TargetPoolTlsConfig) GetCustomCa() (res TargetPoolTlsConfigGetCustomCaRetType) { - res, _ = o.GetCustomCaOk() - return -} - -// GetCustomCaOk returns a tuple with the CustomCa field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TargetPoolTlsConfig) GetCustomCaOk() (ret TargetPoolTlsConfigGetCustomCaRetType, ok bool) { - return getTargetPoolTlsConfigGetCustomCaAttributeTypeOk(o.CustomCa) -} - -// HasCustomCa returns a boolean if a field has been set. -func (o *TargetPoolTlsConfig) HasCustomCa() bool { - _, ok := o.GetCustomCaOk() - return ok -} - -// SetCustomCa gets a reference to the given string and assigns it to the CustomCa field. -func (o *TargetPoolTlsConfig) SetCustomCa(v TargetPoolTlsConfigGetCustomCaRetType) { - setTargetPoolTlsConfigGetCustomCaAttributeType(&o.CustomCa, v) -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *TargetPoolTlsConfig) GetEnabled() (res TargetPoolTlsConfiggetEnabledRetType) { - res, _ = o.GetEnabledOk() - return -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TargetPoolTlsConfig) GetEnabledOk() (ret TargetPoolTlsConfiggetEnabledRetType, ok bool) { - return getTargetPoolTlsConfiggetEnabledAttributeTypeOk(o.Enabled) -} - -// HasEnabled returns a boolean if a field has been set. -func (o *TargetPoolTlsConfig) HasEnabled() bool { - _, ok := o.GetEnabledOk() - return ok -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *TargetPoolTlsConfig) SetEnabled(v TargetPoolTlsConfiggetEnabledRetType) { - setTargetPoolTlsConfiggetEnabledAttributeType(&o.Enabled, v) -} - -// GetSkipCertificateValidation returns the SkipCertificateValidation field value if set, zero value otherwise. -func (o *TargetPoolTlsConfig) GetSkipCertificateValidation() (res TargetPoolTlsConfiggetSkipCertificateValidationRetType) { - res, _ = o.GetSkipCertificateValidationOk() - return -} - -// GetSkipCertificateValidationOk returns a tuple with the SkipCertificateValidation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TargetPoolTlsConfig) GetSkipCertificateValidationOk() (ret TargetPoolTlsConfiggetSkipCertificateValidationRetType, ok bool) { - return getTargetPoolTlsConfiggetSkipCertificateValidationAttributeTypeOk(o.SkipCertificateValidation) -} - -// HasSkipCertificateValidation returns a boolean if a field has been set. -func (o *TargetPoolTlsConfig) HasSkipCertificateValidation() bool { - _, ok := o.GetSkipCertificateValidationOk() - return ok -} - -// SetSkipCertificateValidation gets a reference to the given bool and assigns it to the SkipCertificateValidation field. -func (o *TargetPoolTlsConfig) SetSkipCertificateValidation(v TargetPoolTlsConfiggetSkipCertificateValidationRetType) { - setTargetPoolTlsConfiggetSkipCertificateValidationAttributeType(&o.SkipCertificateValidation, v) -} - -func (o TargetPoolTlsConfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getTargetPoolTlsConfigGetCustomCaAttributeTypeOk(o.CustomCa); ok { - toSerialize["CustomCa"] = val - } - if val, ok := getTargetPoolTlsConfiggetEnabledAttributeTypeOk(o.Enabled); ok { - toSerialize["Enabled"] = val - } - if val, ok := getTargetPoolTlsConfiggetSkipCertificateValidationAttributeTypeOk(o.SkipCertificateValidation); ok { - toSerialize["SkipCertificateValidation"] = val - } - return toSerialize, nil -} - -type NullableTargetPoolTlsConfig struct { - value *TargetPoolTlsConfig - isSet bool -} - -func (v NullableTargetPoolTlsConfig) Get() *TargetPoolTlsConfig { - return v.value -} - -func (v *NullableTargetPoolTlsConfig) Set(val *TargetPoolTlsConfig) { - v.value = val - v.isSet = true -} - -func (v NullableTargetPoolTlsConfig) IsSet() bool { - return v.isSet -} - -func (v *NullableTargetPoolTlsConfig) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTargetPoolTlsConfig(val *TargetPoolTlsConfig) *NullableTargetPoolTlsConfig { - return &NullableTargetPoolTlsConfig{value: val, isSet: true} -} - -func (v NullableTargetPoolTlsConfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTargetPoolTlsConfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/alb/model_tls_config.go b/services/alb/model_tls_config.go new file mode 100644 index 000000000..a34cf2efc --- /dev/null +++ b/services/alb/model_tls_config.go @@ -0,0 +1,225 @@ +/* +STACKIT Application Load Balancer API + +This API offers an interface to provision and manage Application Load Balancers in your STACKIT project.This solution offers modern L7 load balancing. Current features include TLS, path and prefix based routing aswell as routing based on headers, query parameters and keeping connections persistent with cookies and web sockets. For each Application Load Balancer provided, two VMs are deployed in your STACKIT project and are subject to fees. + +API version: 2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package alb + +import ( + "encoding/json" +) + +// checks if the TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TlsConfig{} + +/* + types and functions for customCa +*/ + +// isNotNullableString +type TlsConfigGetCustomCaAttributeType = *string + +func getTlsConfigGetCustomCaAttributeTypeOk(arg TlsConfigGetCustomCaAttributeType) (ret TlsConfigGetCustomCaRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setTlsConfigGetCustomCaAttributeType(arg *TlsConfigGetCustomCaAttributeType, val TlsConfigGetCustomCaRetType) { + *arg = &val +} + +type TlsConfigGetCustomCaArgType = string +type TlsConfigGetCustomCaRetType = string + +/* + types and functions for enabled +*/ + +// isBoolean +type TlsConfiggetEnabledAttributeType = *bool +type TlsConfiggetEnabledArgType = bool +type TlsConfiggetEnabledRetType = bool + +func getTlsConfiggetEnabledAttributeTypeOk(arg TlsConfiggetEnabledAttributeType) (ret TlsConfiggetEnabledRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setTlsConfiggetEnabledAttributeType(arg *TlsConfiggetEnabledAttributeType, val TlsConfiggetEnabledRetType) { + *arg = &val +} + +/* + types and functions for skipCertificateValidation +*/ + +// isBoolean +type TlsConfiggetSkipCertificateValidationAttributeType = *bool +type TlsConfiggetSkipCertificateValidationArgType = bool +type TlsConfiggetSkipCertificateValidationRetType = bool + +func getTlsConfiggetSkipCertificateValidationAttributeTypeOk(arg TlsConfiggetSkipCertificateValidationAttributeType) (ret TlsConfiggetSkipCertificateValidationRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setTlsConfiggetSkipCertificateValidationAttributeType(arg *TlsConfiggetSkipCertificateValidationAttributeType, val TlsConfiggetSkipCertificateValidationRetType) { + *arg = &val +} + +// TlsConfig Set this to configure TLS settings. +type TlsConfig struct { + // Specifies a custom Certificate Authority (CA). When provided, the target pool will trust certificates signed by this CA, in addition to any system-trusted CAs. This is useful for scenarios where the target pool needs to communicate with servers using self-signed or internally-issued certificates. Enabled needs to be set to true and skip validation to false for this option. + CustomCa TlsConfigGetCustomCaAttributeType `json:"customCa,omitempty"` + // Enable TLS (Transport Layer Security) bridging for the connection between Application Load Balancer and targets in this pool. When enabled, public CAs are trusted. Can be used in tandem with the options either custom CA or skip validation or alone. + Enabled TlsConfiggetEnabledAttributeType `json:"enabled,omitempty"` + // Bypass certificate validation for TLS bridging in this target pool. This option is insecure and can only be used with public CAs by setting enabled true. Meant to be used for testing purposes only! + SkipCertificateValidation TlsConfiggetSkipCertificateValidationAttributeType `json:"skipCertificateValidation,omitempty"` +} + +// NewTlsConfig instantiates a new TlsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTlsConfig() *TlsConfig { + this := TlsConfig{} + return &this +} + +// NewTlsConfigWithDefaults instantiates a new TlsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTlsConfigWithDefaults() *TlsConfig { + this := TlsConfig{} + return &this +} + +// GetCustomCa returns the CustomCa field value if set, zero value otherwise. +func (o *TlsConfig) GetCustomCa() (res TlsConfigGetCustomCaRetType) { + res, _ = o.GetCustomCaOk() + return +} + +// GetCustomCaOk returns a tuple with the CustomCa field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TlsConfig) GetCustomCaOk() (ret TlsConfigGetCustomCaRetType, ok bool) { + return getTlsConfigGetCustomCaAttributeTypeOk(o.CustomCa) +} + +// HasCustomCa returns a boolean if a field has been set. +func (o *TlsConfig) HasCustomCa() bool { + _, ok := o.GetCustomCaOk() + return ok +} + +// SetCustomCa gets a reference to the given string and assigns it to the CustomCa field. +func (o *TlsConfig) SetCustomCa(v TlsConfigGetCustomCaRetType) { + setTlsConfigGetCustomCaAttributeType(&o.CustomCa, v) +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *TlsConfig) GetEnabled() (res TlsConfiggetEnabledRetType) { + res, _ = o.GetEnabledOk() + return +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TlsConfig) GetEnabledOk() (ret TlsConfiggetEnabledRetType, ok bool) { + return getTlsConfiggetEnabledAttributeTypeOk(o.Enabled) +} + +// HasEnabled returns a boolean if a field has been set. +func (o *TlsConfig) HasEnabled() bool { + _, ok := o.GetEnabledOk() + return ok +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *TlsConfig) SetEnabled(v TlsConfiggetEnabledRetType) { + setTlsConfiggetEnabledAttributeType(&o.Enabled, v) +} + +// GetSkipCertificateValidation returns the SkipCertificateValidation field value if set, zero value otherwise. +func (o *TlsConfig) GetSkipCertificateValidation() (res TlsConfiggetSkipCertificateValidationRetType) { + res, _ = o.GetSkipCertificateValidationOk() + return +} + +// GetSkipCertificateValidationOk returns a tuple with the SkipCertificateValidation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TlsConfig) GetSkipCertificateValidationOk() (ret TlsConfiggetSkipCertificateValidationRetType, ok bool) { + return getTlsConfiggetSkipCertificateValidationAttributeTypeOk(o.SkipCertificateValidation) +} + +// HasSkipCertificateValidation returns a boolean if a field has been set. +func (o *TlsConfig) HasSkipCertificateValidation() bool { + _, ok := o.GetSkipCertificateValidationOk() + return ok +} + +// SetSkipCertificateValidation gets a reference to the given bool and assigns it to the SkipCertificateValidation field. +func (o *TlsConfig) SetSkipCertificateValidation(v TlsConfiggetSkipCertificateValidationRetType) { + setTlsConfiggetSkipCertificateValidationAttributeType(&o.SkipCertificateValidation, v) +} + +func (o TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getTlsConfigGetCustomCaAttributeTypeOk(o.CustomCa); ok { + toSerialize["CustomCa"] = val + } + if val, ok := getTlsConfiggetEnabledAttributeTypeOk(o.Enabled); ok { + toSerialize["Enabled"] = val + } + if val, ok := getTlsConfiggetSkipCertificateValidationAttributeTypeOk(o.SkipCertificateValidation); ok { + toSerialize["SkipCertificateValidation"] = val + } + return toSerialize, nil +} + +type NullableTlsConfig struct { + value *TlsConfig + isSet bool +} + +func (v NullableTlsConfig) Get() *TlsConfig { + return v.value +} + +func (v *NullableTlsConfig) Set(val *TlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTlsConfig(val *TlsConfig) *NullableTlsConfig { + return &NullableTlsConfig{value: val, isSet: true} +} + +func (v NullableTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/alb/model_target_pool_tls_config_test.go b/services/alb/model_tls_config_test.go similarity index 100% rename from services/alb/model_target_pool_tls_config_test.go rename to services/alb/model_tls_config_test.go diff --git a/services/alb/model_update_target_pool_payload.go b/services/alb/model_update_target_pool_payload.go index 9013170cb..f02e4158f 100644 --- a/services/alb/model_update_target_pool_payload.go +++ b/services/alb/model_update_target_pool_payload.go @@ -103,9 +103,9 @@ func setUpdateTargetPoolPayloadGetTargetsAttributeType(arg *UpdateTargetPoolPayl */ // isModel -type UpdateTargetPoolPayloadGetTlsConfigAttributeType = *TargetPoolTlsConfig -type UpdateTargetPoolPayloadGetTlsConfigArgType = TargetPoolTlsConfig -type UpdateTargetPoolPayloadGetTlsConfigRetType = TargetPoolTlsConfig +type UpdateTargetPoolPayloadGetTlsConfigAttributeType = *TlsConfig +type UpdateTargetPoolPayloadGetTlsConfigArgType = TlsConfig +type UpdateTargetPoolPayloadGetTlsConfigRetType = TlsConfig func getUpdateTargetPoolPayloadGetTlsConfigAttributeTypeOk(arg UpdateTargetPoolPayloadGetTlsConfigAttributeType) (ret UpdateTargetPoolPayloadGetTlsConfigRetType, ok bool) { if arg == nil { @@ -258,7 +258,7 @@ func (o *UpdateTargetPoolPayload) HasTlsConfig() bool { return ok } -// SetTlsConfig gets a reference to the given TargetPoolTlsConfig and assigns it to the TlsConfig field. +// SetTlsConfig gets a reference to the given TlsConfig and assigns it to the TlsConfig field. func (o *UpdateTargetPoolPayload) SetTlsConfig(v UpdateTargetPoolPayloadGetTlsConfigRetType) { setUpdateTargetPoolPayloadGetTlsConfigAttributeType(&o.TlsConfig, v) } diff --git a/services/alb/oas_commit b/services/alb/oas_commit index 588ee296b..f1fc529e5 100644 --- a/services/alb/oas_commit +++ b/services/alb/oas_commit @@ -1 +1 @@ -964ac4ce34f0b6417f2496a1d48585c4926dee3a +a0507fbc8a743f261058ef285885928d2e8e0355