From fa895d0c60caf8cbc696170db2909d142fef892f Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 20 Feb 2026 15:34:29 +0000 Subject: [PATCH] Generate loadbalancer --- .../loadbalancer/model_active_health_check.go | 96 ++++++++ .../loadbalancer/model_http_health_checks.go | 224 +++++++++++++++++ .../model_http_health_checks_test.go | 11 + services/loadbalancer/model_tls_config.go | 225 ++++++++++++++++++ .../loadbalancer/model_tls_config_test.go | 11 + services/loadbalancer/oas_commit | 2 +- 6 files changed, 568 insertions(+), 1 deletion(-) create mode 100644 services/loadbalancer/model_http_health_checks.go create mode 100644 services/loadbalancer/model_http_health_checks_test.go create mode 100644 services/loadbalancer/model_tls_config.go create mode 100644 services/loadbalancer/model_tls_config_test.go diff --git a/services/loadbalancer/model_active_health_check.go b/services/loadbalancer/model_active_health_check.go index 7661c1b17..2031dd5d1 100644 --- a/services/loadbalancer/model_active_health_check.go +++ b/services/loadbalancer/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 */ @@ -37,6 +57,26 @@ func setActiveHealthCheckGetHealthyThresholdAttributeType(arg *ActiveHealthCheck *arg = &val } +/* + types and functions for httpHealthChecks +*/ + +// isModel +type ActiveHealthCheckGetHttpHealthChecksAttributeType = *HttpHealthChecks +type ActiveHealthCheckGetHttpHealthChecksArgType = HttpHealthChecks +type ActiveHealthCheckGetHttpHealthChecksRetType = HttpHealthChecks + +func getActiveHealthCheckGetHttpHealthChecksAttributeTypeOk(arg ActiveHealthCheckGetHttpHealthChecksAttributeType) (ret ActiveHealthCheckGetHttpHealthChecksRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setActiveHealthCheckGetHttpHealthChecksAttributeType(arg *ActiveHealthCheckGetHttpHealthChecksAttributeType, val ActiveHealthCheckGetHttpHealthChecksRetType) { + *arg = &val +} + /* types and functions for interval */ @@ -122,9 +162,13 @@ func setActiveHealthCheckGetUnhealthyThresholdAttributeType(arg *ActiveHealthChe // ActiveHealthCheck struct for ActiveHealthCheck 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"` + HttpHealthChecks ActiveHealthCheckGetHttpHealthChecksAttributeType `json:"httpHealthChecks,omitempty"` // Interval duration of health checking in seconds Interval ActiveHealthCheckGetIntervalAttributeType `json:"interval,omitempty"` // Interval duration threshold of the health checking in seconds @@ -153,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() @@ -176,6 +243,29 @@ func (o *ActiveHealthCheck) SetHealthyThreshold(v ActiveHealthCheckGetHealthyThr setActiveHealthCheckGetHealthyThresholdAttributeType(&o.HealthyThreshold, v) } +// GetHttpHealthChecks returns the HttpHealthChecks field value if set, zero value otherwise. +func (o *ActiveHealthCheck) GetHttpHealthChecks() (res ActiveHealthCheckGetHttpHealthChecksRetType) { + res, _ = o.GetHttpHealthChecksOk() + return +} + +// GetHttpHealthChecksOk returns a tuple with the HttpHealthChecks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActiveHealthCheck) GetHttpHealthChecksOk() (ret ActiveHealthCheckGetHttpHealthChecksRetType, ok bool) { + return getActiveHealthCheckGetHttpHealthChecksAttributeTypeOk(o.HttpHealthChecks) +} + +// HasHttpHealthChecks returns a boolean if a field has been set. +func (o *ActiveHealthCheck) HasHttpHealthChecks() bool { + _, ok := o.GetHttpHealthChecksOk() + return ok +} + +// SetHttpHealthChecks gets a reference to the given HttpHealthChecks and assigns it to the HttpHealthChecks field. +func (o *ActiveHealthCheck) SetHttpHealthChecks(v ActiveHealthCheckGetHttpHealthChecksRetType) { + setActiveHealthCheckGetHttpHealthChecksAttributeType(&o.HttpHealthChecks, v) +} + // GetInterval returns the Interval field value if set, zero value otherwise. func (o *ActiveHealthCheck) GetInterval() (res ActiveHealthCheckGetIntervalRetType) { res, _ = o.GetIntervalOk() @@ -270,9 +360,15 @@ 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 } + if val, ok := getActiveHealthCheckGetHttpHealthChecksAttributeTypeOk(o.HttpHealthChecks); ok { + toSerialize["HttpHealthChecks"] = val + } if val, ok := getActiveHealthCheckGetIntervalAttributeTypeOk(o.Interval); ok { toSerialize["Interval"] = val } diff --git a/services/loadbalancer/model_http_health_checks.go b/services/loadbalancer/model_http_health_checks.go new file mode 100644 index 000000000..0ad129e4f --- /dev/null +++ b/services/loadbalancer/model_http_health_checks.go @@ -0,0 +1,224 @@ +/* +STACKIT Network Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package loadbalancer + +import ( + "encoding/json" +) + +// checks if the HttpHealthChecks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HttpHealthChecks{} + +/* + types and functions for okStatuses +*/ + +// isArray +type HttpHealthChecksGetOkStatusesAttributeType = *[]string +type HttpHealthChecksGetOkStatusesArgType = []string +type HttpHealthChecksGetOkStatusesRetType = []string + +func getHttpHealthChecksGetOkStatusesAttributeTypeOk(arg HttpHealthChecksGetOkStatusesAttributeType) (ret HttpHealthChecksGetOkStatusesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHttpHealthChecksGetOkStatusesAttributeType(arg *HttpHealthChecksGetOkStatusesAttributeType, val HttpHealthChecksGetOkStatusesRetType) { + *arg = &val +} + +/* + types and functions for path +*/ + +// isNotNullableString +type HttpHealthChecksGetPathAttributeType = *string + +func getHttpHealthChecksGetPathAttributeTypeOk(arg HttpHealthChecksGetPathAttributeType) (ret HttpHealthChecksGetPathRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setHttpHealthChecksGetPathAttributeType(arg *HttpHealthChecksGetPathAttributeType, val HttpHealthChecksGetPathRetType) { + *arg = &val +} + +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 +// 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 NewHttpHealthChecks() *HttpHealthChecks { + this := HttpHealthChecks{} + return &this +} + +// NewHttpHealthChecksWithDefaults instantiates a new HttpHealthChecks 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 NewHttpHealthChecksWithDefaults() *HttpHealthChecks { + this := HttpHealthChecks{} + return &this +} + +// GetOkStatuses returns the OkStatuses field value if set, zero value otherwise. +func (o *HttpHealthChecks) GetOkStatuses() (res HttpHealthChecksGetOkStatusesRetType) { + res, _ = o.GetOkStatusesOk() + return +} + +// GetOkStatusesOk returns a tuple with the OkStatuses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HttpHealthChecks) GetOkStatusesOk() (ret HttpHealthChecksGetOkStatusesRetType, ok bool) { + return getHttpHealthChecksGetOkStatusesAttributeTypeOk(o.OkStatuses) +} + +// HasOkStatuses returns a boolean if a field has been set. +func (o *HttpHealthChecks) HasOkStatuses() bool { + _, ok := o.GetOkStatusesOk() + return ok +} + +// SetOkStatuses gets a reference to the given []string and assigns it to the OkStatuses field. +func (o *HttpHealthChecks) SetOkStatuses(v HttpHealthChecksGetOkStatusesRetType) { + setHttpHealthChecksGetOkStatusesAttributeType(&o.OkStatuses, v) +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *HttpHealthChecks) GetPath() (res HttpHealthChecksGetPathRetType) { + res, _ = o.GetPathOk() + return +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HttpHealthChecks) GetPathOk() (ret HttpHealthChecksGetPathRetType, ok bool) { + return getHttpHealthChecksGetPathAttributeTypeOk(o.Path) +} + +// HasPath returns a boolean if a field has been set. +func (o *HttpHealthChecks) HasPath() bool { + _, ok := o.GetPathOk() + return ok +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +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 { + toSerialize["OkStatuses"] = val + } + if val, ok := getHttpHealthChecksGetPathAttributeTypeOk(o.Path); ok { + toSerialize["Path"] = val + } + if val, ok := getHttpHealthChecksGetTlsAttributeTypeOk(o.Tls); ok { + toSerialize["Tls"] = val + } + return toSerialize, nil +} + +type NullableHttpHealthChecks struct { + value *HttpHealthChecks + isSet bool +} + +func (v NullableHttpHealthChecks) Get() *HttpHealthChecks { + return v.value +} + +func (v *NullableHttpHealthChecks) Set(val *HttpHealthChecks) { + v.value = val + v.isSet = true +} + +func (v NullableHttpHealthChecks) IsSet() bool { + return v.isSet +} + +func (v *NullableHttpHealthChecks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHttpHealthChecks(val *HttpHealthChecks) *NullableHttpHealthChecks { + return &NullableHttpHealthChecks{value: val, isSet: true} +} + +func (v NullableHttpHealthChecks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHttpHealthChecks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/loadbalancer/model_http_health_checks_test.go b/services/loadbalancer/model_http_health_checks_test.go new file mode 100644 index 000000000..5551ef6b5 --- /dev/null +++ b/services/loadbalancer/model_http_health_checks_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Network Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package loadbalancer diff --git a/services/loadbalancer/model_tls_config.go b/services/loadbalancer/model_tls_config.go new file mode 100644 index 000000000..0791ef657 --- /dev/null +++ b/services/loadbalancer/model_tls_config.go @@ -0,0 +1,225 @@ +/* +STACKIT Network Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package loadbalancer + +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/loadbalancer/model_tls_config_test.go b/services/loadbalancer/model_tls_config_test.go new file mode 100644 index 000000000..5551ef6b5 --- /dev/null +++ b/services/loadbalancer/model_tls_config_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Network Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 2.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package loadbalancer diff --git a/services/loadbalancer/oas_commit b/services/loadbalancer/oas_commit index 588ee296b..f1fc529e5 100644 --- a/services/loadbalancer/oas_commit +++ b/services/loadbalancer/oas_commit @@ -1 +1 @@ -964ac4ce34f0b6417f2496a1d48585c4926dee3a +a0507fbc8a743f261058ef285885928d2e8e0355