diff --git a/CHANGELOG.md b/CHANGELOG.md index 9599f8afa..ad399f28e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -265,6 +265,8 @@ - **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0` - [v0.21.2](services/observability/CHANGELOG.md#v0212) - **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0` + - [v0.22.0](services/observability/CHANGELOG.md#v0220) + - **Breaking change:** Updated `InstanceSensitiveData` model because of misbehaving API - `opensearch`: - [v0.26.3](services/opensearch/CHANGELOG.md#v0263) - **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1` diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index da91b46c4..b0b9bd1e6 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.22.0 +- **Breaking change:** Updated `InstanceSensitiveData` model because of misbehaving API + ## v0.21.2 - **Dependencies:** Bump STACKIT SDK core module from `v0.25.0` to `v0.26.0` diff --git a/services/observability/VERSION b/services/observability/VERSION index 172c2f8b5..0babdaf0f 100644 --- a/services/observability/VERSION +++ b/services/observability/VERSION @@ -1 +1 @@ -v0.21.2 \ No newline at end of file +v0.22.0 \ No newline at end of file diff --git a/services/observability/model_instance_sensitive_data.go b/services/observability/model_instance_sensitive_data.go index d8e5b8dd3..20d059151 100644 --- a/services/observability/model_instance_sensitive_data.go +++ b/services/observability/model_instance_sensitive_data.go @@ -72,33 +72,6 @@ type InstanceSensitiveDataGetClusterArgType = string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSensitiveDataGetClusterRetType = string -/* - types and functions for dashboardUrl -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceSensitiveDataGetDashboardUrlAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceSensitiveDataGetDashboardUrlAttributeTypeOk(arg InstanceSensitiveDataGetDashboardUrlAttributeType) (ret InstanceSensitiveDataGetDashboardUrlRetType, 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 setInstanceSensitiveDataGetDashboardUrlAttributeType(arg *InstanceSensitiveDataGetDashboardUrlAttributeType, val InstanceSensitiveDataGetDashboardUrlRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceSensitiveDataGetDashboardUrlArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceSensitiveDataGetDashboardUrlRetType = string - /* types and functions for grafanaAdminEnabled */ @@ -836,15 +809,11 @@ type InstanceSensitiveData struct { // REQUIRED Cluster InstanceSensitiveDataGetClusterAttributeType `json:"cluster" required:"true"` // REQUIRED - DashboardUrl InstanceSensitiveDataGetDashboardUrlAttributeType `json:"dashboardUrl" required:"true"` - // REQUIRED GrafanaAdminEnabled InstanceSensitiveDatagetGrafanaAdminEnabledAttributeType `json:"grafanaAdminEnabled" required:"true"` // Deprecated: Check the GitHub changelog for alternatives - // REQUIRED - GrafanaAdminPassword InstanceSensitiveDataGetGrafanaAdminPasswordAttributeType `json:"grafanaAdminPassword" required:"true"` + GrafanaAdminPassword InstanceSensitiveDataGetGrafanaAdminPasswordAttributeType `json:"grafanaAdminPassword,omitempty"` // Deprecated: Check the GitHub changelog for alternatives - // REQUIRED - GrafanaAdminUser InstanceSensitiveDataGetGrafanaAdminUserAttributeType `json:"grafanaAdminUser" required:"true"` + GrafanaAdminUser InstanceSensitiveDataGetGrafanaAdminUserAttributeType `json:"grafanaAdminUser,omitempty"` // REQUIRED GrafanaPublicReadAccess InstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType `json:"grafanaPublicReadAccess" required:"true"` // REQUIRED @@ -902,14 +871,11 @@ type _InstanceSensitiveData InstanceSensitiveData // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceSensitiveData(alertingUrl InstanceSensitiveDataGetAlertingUrlArgType, cluster InstanceSensitiveDataGetClusterArgType, dashboardUrl InstanceSensitiveDataGetDashboardUrlArgType, grafanaAdminEnabled InstanceSensitiveDatagetGrafanaAdminEnabledArgType, grafanaAdminPassword InstanceSensitiveDataGetGrafanaAdminPasswordArgType, grafanaAdminUser InstanceSensitiveDataGetGrafanaAdminUserArgType, grafanaPublicReadAccess InstanceSensitiveDatagetGrafanaPublicReadAccessArgType, grafanaUrl InstanceSensitiveDataGetGrafanaUrlArgType, grafanaUseStackitSso InstanceSensitiveDatagetGrafanaUseStackitSsoArgType, instance InstanceSensitiveDataGetInstanceArgType, jaegerHttpUrl InstanceSensitiveDataGetJaegerHttpUrlArgType, jaegerTracesUrl InstanceSensitiveDataGetJaegerTracesUrlArgType, jaegerUiUrl InstanceSensitiveDataGetJaegerUiUrlArgType, logsPushUrl InstanceSensitiveDataGetLogsPushUrlArgType, logsUrl InstanceSensitiveDataGetLogsUrlArgType, metricsEndpointUrl InstanceSensitiveDataGetMetricsEndpointUrlArgType, metricsRetentionTime1h InstanceSensitiveDataGetMetricsRetentionTime1hArgType, metricsRetentionTime5m InstanceSensitiveDataGetMetricsRetentionTime5mArgType, metricsRetentionTimeRaw InstanceSensitiveDataGetMetricsRetentionTimeRawArgType, metricsUrl InstanceSensitiveDataGetMetricsUrlArgType, otlpGrpcTracesUrl InstanceSensitiveDataGetOtlpGrpcTracesUrlArgType, otlpHttpLogsUrl InstanceSensitiveDataGetOtlpHttpLogsUrlArgType, otlpHttpTracesUrl InstanceSensitiveDataGetOtlpHttpTracesUrlArgType, otlpTracesUrl InstanceSensitiveDataGetOtlpTracesUrlArgType, plan InstanceSensitiveDataGetPlanArgType, pushMetricsUrl InstanceSensitiveDataGetPushMetricsUrlArgType, targetsUrl InstanceSensitiveDataGetTargetsUrlArgType, zipkinSpansUrl InstanceSensitiveDataGetZipkinSpansUrlArgType) *InstanceSensitiveData { +func NewInstanceSensitiveData(alertingUrl InstanceSensitiveDataGetAlertingUrlArgType, cluster InstanceSensitiveDataGetClusterArgType, grafanaAdminEnabled InstanceSensitiveDatagetGrafanaAdminEnabledArgType, grafanaPublicReadAccess InstanceSensitiveDatagetGrafanaPublicReadAccessArgType, grafanaUrl InstanceSensitiveDataGetGrafanaUrlArgType, grafanaUseStackitSso InstanceSensitiveDatagetGrafanaUseStackitSsoArgType, instance InstanceSensitiveDataGetInstanceArgType, jaegerHttpUrl InstanceSensitiveDataGetJaegerHttpUrlArgType, jaegerTracesUrl InstanceSensitiveDataGetJaegerTracesUrlArgType, jaegerUiUrl InstanceSensitiveDataGetJaegerUiUrlArgType, logsPushUrl InstanceSensitiveDataGetLogsPushUrlArgType, logsUrl InstanceSensitiveDataGetLogsUrlArgType, metricsEndpointUrl InstanceSensitiveDataGetMetricsEndpointUrlArgType, metricsRetentionTime1h InstanceSensitiveDataGetMetricsRetentionTime1hArgType, metricsRetentionTime5m InstanceSensitiveDataGetMetricsRetentionTime5mArgType, metricsRetentionTimeRaw InstanceSensitiveDataGetMetricsRetentionTimeRawArgType, metricsUrl InstanceSensitiveDataGetMetricsUrlArgType, otlpGrpcTracesUrl InstanceSensitiveDataGetOtlpGrpcTracesUrlArgType, otlpHttpLogsUrl InstanceSensitiveDataGetOtlpHttpLogsUrlArgType, otlpHttpTracesUrl InstanceSensitiveDataGetOtlpHttpTracesUrlArgType, otlpTracesUrl InstanceSensitiveDataGetOtlpTracesUrlArgType, plan InstanceSensitiveDataGetPlanArgType, pushMetricsUrl InstanceSensitiveDataGetPushMetricsUrlArgType, targetsUrl InstanceSensitiveDataGetTargetsUrlArgType, zipkinSpansUrl InstanceSensitiveDataGetZipkinSpansUrlArgType) *InstanceSensitiveData { this := InstanceSensitiveData{} setInstanceSensitiveDataGetAlertingUrlAttributeType(&this.AlertingUrl, alertingUrl) setInstanceSensitiveDataGetClusterAttributeType(&this.Cluster, cluster) - setInstanceSensitiveDataGetDashboardUrlAttributeType(&this.DashboardUrl, dashboardUrl) setInstanceSensitiveDatagetGrafanaAdminEnabledAttributeType(&this.GrafanaAdminEnabled, grafanaAdminEnabled) - setInstanceSensitiveDataGetGrafanaAdminPasswordAttributeType(&this.GrafanaAdminPassword, grafanaAdminPassword) - setInstanceSensitiveDataGetGrafanaAdminUserAttributeType(&this.GrafanaAdminUser, grafanaAdminUser) setInstanceSensitiveDatagetGrafanaPublicReadAccessAttributeType(&this.GrafanaPublicReadAccess, grafanaPublicReadAccess) setInstanceSensitiveDataGetGrafanaUrlAttributeType(&this.GrafanaUrl, grafanaUrl) setInstanceSensitiveDatagetGrafanaUseStackitSsoAttributeType(&this.GrafanaUseStackitSso, grafanaUseStackitSso) @@ -988,26 +954,6 @@ func (o *InstanceSensitiveData) SetCluster(v InstanceSensitiveDataGetClusterRetT setInstanceSensitiveDataGetClusterAttributeType(&o.Cluster, v) } -// GetDashboardUrl returns the DashboardUrl field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceSensitiveData) GetDashboardUrl() (ret InstanceSensitiveDataGetDashboardUrlRetType) { - ret, _ = o.GetDashboardUrlOk() - return ret -} - -// GetDashboardUrlOk returns a tuple with the DashboardUrl field value -// 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 *InstanceSensitiveData) GetDashboardUrlOk() (ret InstanceSensitiveDataGetDashboardUrlRetType, ok bool) { - return getInstanceSensitiveDataGetDashboardUrlAttributeTypeOk(o.DashboardUrl) -} - -// SetDashboardUrl sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceSensitiveData) SetDashboardUrl(v InstanceSensitiveDataGetDashboardUrlRetType) { - setInstanceSensitiveDataGetDashboardUrlAttributeType(&o.DashboardUrl, v) -} - // GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) GetGrafanaAdminEnabled() (ret InstanceSensitiveDatagetGrafanaAdminEnabledRetType) { @@ -1028,41 +974,55 @@ func (o *InstanceSensitiveData) SetGrafanaAdminEnabled(v InstanceSensitiveDatage setInstanceSensitiveDatagetGrafanaAdminEnabledAttributeType(&o.GrafanaAdminEnabled, v) } -// GetGrafanaAdminPassword returns the GrafanaAdminPassword field value +// GetGrafanaAdminPassword returns the GrafanaAdminPassword 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 *InstanceSensitiveData) GetGrafanaAdminPassword() (ret InstanceSensitiveDataGetGrafanaAdminPasswordRetType) { - ret, _ = o.GetGrafanaAdminPasswordOk() - return ret +func (o *InstanceSensitiveData) GetGrafanaAdminPassword() (res InstanceSensitiveDataGetGrafanaAdminPasswordRetType) { + res, _ = o.GetGrafanaAdminPasswordOk() + return } -// GetGrafanaAdminPasswordOk returns a tuple with the GrafanaAdminPassword field value +// GetGrafanaAdminPasswordOk returns a tuple with the GrafanaAdminPassword 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 *InstanceSensitiveData) GetGrafanaAdminPasswordOk() (ret InstanceSensitiveDataGetGrafanaAdminPasswordRetType, ok bool) { return getInstanceSensitiveDataGetGrafanaAdminPasswordAttributeTypeOk(o.GrafanaAdminPassword) } -// SetGrafanaAdminPassword sets field value +// HasGrafanaAdminPassword 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 *InstanceSensitiveData) HasGrafanaAdminPassword() bool { + _, ok := o.GetGrafanaAdminPasswordOk() + return ok +} + +// SetGrafanaAdminPassword gets a reference to the given string and assigns it to the GrafanaAdminPassword field. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaAdminPassword(v InstanceSensitiveDataGetGrafanaAdminPasswordRetType) { setInstanceSensitiveDataGetGrafanaAdminPasswordAttributeType(&o.GrafanaAdminPassword, v) } -// GetGrafanaAdminUser returns the GrafanaAdminUser field value +// GetGrafanaAdminUser returns the GrafanaAdminUser 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 *InstanceSensitiveData) GetGrafanaAdminUser() (ret InstanceSensitiveDataGetGrafanaAdminUserRetType) { - ret, _ = o.GetGrafanaAdminUserOk() - return ret +func (o *InstanceSensitiveData) GetGrafanaAdminUser() (res InstanceSensitiveDataGetGrafanaAdminUserRetType) { + res, _ = o.GetGrafanaAdminUserOk() + return } -// GetGrafanaAdminUserOk returns a tuple with the GrafanaAdminUser field value +// GetGrafanaAdminUserOk returns a tuple with the GrafanaAdminUser 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 *InstanceSensitiveData) GetGrafanaAdminUserOk() (ret InstanceSensitiveDataGetGrafanaAdminUserRetType, ok bool) { return getInstanceSensitiveDataGetGrafanaAdminUserAttributeTypeOk(o.GrafanaAdminUser) } -// SetGrafanaAdminUser sets field value +// HasGrafanaAdminUser 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 *InstanceSensitiveData) HasGrafanaAdminUser() bool { + _, ok := o.GetGrafanaAdminUserOk() + return ok +} + +// SetGrafanaAdminUser gets a reference to the given string and assigns it to the GrafanaAdminUser field. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSensitiveData) SetGrafanaAdminUser(v InstanceSensitiveDataGetGrafanaAdminUserRetType) { setInstanceSensitiveDataGetGrafanaAdminUserAttributeType(&o.GrafanaAdminUser, v) @@ -1571,9 +1531,6 @@ func (o InstanceSensitiveData) ToMap() (map[string]interface{}, error) { if val, ok := getInstanceSensitiveDataGetClusterAttributeTypeOk(o.Cluster); ok { toSerialize["Cluster"] = val } - if val, ok := getInstanceSensitiveDataGetDashboardUrlAttributeTypeOk(o.DashboardUrl); ok { - toSerialize["DashboardUrl"] = val - } if val, ok := getInstanceSensitiveDatagetGrafanaAdminEnabledAttributeTypeOk(o.GrafanaAdminEnabled); ok { toSerialize["GrafanaAdminEnabled"] = val } diff --git a/services/observability/oas_commit b/services/observability/oas_commit index c08a6770d..61b613dbf 100644 --- a/services/observability/oas_commit +++ b/services/observability/oas_commit @@ -1 +1 @@ -4407196dbbef4e53e6798809e856725cbc84ae05 +86c5d1afc6f0abe194346ae18c793cc857b5bc62 diff --git a/services/observability/v1api/model_instance_sensitive_data.go b/services/observability/v1api/model_instance_sensitive_data.go index 7474bd744..b5675f752 100644 --- a/services/observability/v1api/model_instance_sensitive_data.go +++ b/services/observability/v1api/model_instance_sensitive_data.go @@ -23,16 +23,15 @@ var _ MappedNullable = &InstanceSensitiveData{} type InstanceSensitiveData struct { AlertingUrl string `json:"alertingUrl"` Cluster string `json:"cluster"` - DashboardUrl string `json:"dashboardUrl"` GrafanaAdminEnabled bool `json:"grafanaAdminEnabled"` // Deprecated - GrafanaAdminPassword string `json:"grafanaAdminPassword"` + GrafanaAdminPassword *string `json:"grafanaAdminPassword,omitempty"` // Deprecated - GrafanaAdminUser string `json:"grafanaAdminUser"` - GrafanaPublicReadAccess bool `json:"grafanaPublicReadAccess"` - GrafanaUrl string `json:"grafanaUrl"` - GrafanaUseStackitSso bool `json:"grafanaUseStackitSso"` - Instance string `json:"instance"` + GrafanaAdminUser *string `json:"grafanaAdminUser,omitempty"` + GrafanaPublicReadAccess bool `json:"grafanaPublicReadAccess"` + GrafanaUrl string `json:"grafanaUrl"` + GrafanaUseStackitSso bool `json:"grafanaUseStackitSso"` + Instance string `json:"instance"` // Deprecated JaegerHttpTracesUrl *string `json:"jaegerHttpTracesUrl,omitempty"` JaegerHttpUrl string `json:"jaegerHttpUrl"` @@ -63,14 +62,11 @@ type _InstanceSensitiveData InstanceSensitiveData // 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 NewInstanceSensitiveData(alertingUrl string, cluster string, dashboardUrl string, grafanaAdminEnabled bool, grafanaAdminPassword string, grafanaAdminUser string, grafanaPublicReadAccess bool, grafanaUrl string, grafanaUseStackitSso bool, instance string, jaegerHttpUrl string, jaegerTracesUrl string, jaegerUiUrl string, logsPushUrl string, logsUrl string, metricsEndpointUrl string, metricsRetentionTime1h int32, metricsRetentionTime5m int32, metricsRetentionTimeRaw int32, metricsUrl string, otlpGrpcTracesUrl string, otlpHttpLogsUrl string, otlpHttpTracesUrl string, otlpTracesUrl string, plan PlanModel, pushMetricsUrl string, targetsUrl string, zipkinSpansUrl string) *InstanceSensitiveData { +func NewInstanceSensitiveData(alertingUrl string, cluster string, grafanaAdminEnabled bool, grafanaPublicReadAccess bool, grafanaUrl string, grafanaUseStackitSso bool, instance string, jaegerHttpUrl string, jaegerTracesUrl string, jaegerUiUrl string, logsPushUrl string, logsUrl string, metricsEndpointUrl string, metricsRetentionTime1h int32, metricsRetentionTime5m int32, metricsRetentionTimeRaw int32, metricsUrl string, otlpGrpcTracesUrl string, otlpHttpLogsUrl string, otlpHttpTracesUrl string, otlpTracesUrl string, plan PlanModel, pushMetricsUrl string, targetsUrl string, zipkinSpansUrl string) *InstanceSensitiveData { this := InstanceSensitiveData{} this.AlertingUrl = alertingUrl this.Cluster = cluster - this.DashboardUrl = dashboardUrl this.GrafanaAdminEnabled = grafanaAdminEnabled - this.GrafanaAdminPassword = grafanaAdminPassword - this.GrafanaAdminUser = grafanaAdminUser this.GrafanaPublicReadAccess = grafanaPublicReadAccess this.GrafanaUrl = grafanaUrl this.GrafanaUseStackitSso = grafanaUseStackitSso @@ -158,30 +154,6 @@ func (o *InstanceSensitiveData) SetCluster(v string) { o.Cluster = v } -// GetDashboardUrl returns the DashboardUrl field value -func (o *InstanceSensitiveData) GetDashboardUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DashboardUrl -} - -// GetDashboardUrlOk returns a tuple with the DashboardUrl field value -// and a boolean to check if the value has been set. -func (o *InstanceSensitiveData) GetDashboardUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DashboardUrl, true -} - -// SetDashboardUrl sets field value -func (o *InstanceSensitiveData) SetDashboardUrl(v string) { - o.DashboardUrl = v -} - // GetGrafanaAdminEnabled returns the GrafanaAdminEnabled field value func (o *InstanceSensitiveData) GetGrafanaAdminEnabled() bool { if o == nil { @@ -206,58 +178,74 @@ func (o *InstanceSensitiveData) SetGrafanaAdminEnabled(v bool) { o.GrafanaAdminEnabled = v } -// GetGrafanaAdminPassword returns the GrafanaAdminPassword field value +// GetGrafanaAdminPassword returns the GrafanaAdminPassword field value if set, zero value otherwise. // Deprecated func (o *InstanceSensitiveData) GetGrafanaAdminPassword() string { - if o == nil { + if o == nil || IsNil(o.GrafanaAdminPassword) { var ret string return ret } - - return o.GrafanaAdminPassword + return *o.GrafanaAdminPassword } -// GetGrafanaAdminPasswordOk returns a tuple with the GrafanaAdminPassword field value +// GetGrafanaAdminPasswordOk returns a tuple with the GrafanaAdminPassword field value if set, nil otherwise // and a boolean to check if the value has been set. // Deprecated func (o *InstanceSensitiveData) GetGrafanaAdminPasswordOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.GrafanaAdminPassword) { return nil, false } - return &o.GrafanaAdminPassword, true + return o.GrafanaAdminPassword, true } -// SetGrafanaAdminPassword sets field value +// HasGrafanaAdminPassword returns a boolean if a field has been set. +func (o *InstanceSensitiveData) HasGrafanaAdminPassword() bool { + if o != nil && !IsNil(o.GrafanaAdminPassword) { + return true + } + + return false +} + +// SetGrafanaAdminPassword gets a reference to the given string and assigns it to the GrafanaAdminPassword field. // Deprecated func (o *InstanceSensitiveData) SetGrafanaAdminPassword(v string) { - o.GrafanaAdminPassword = v + o.GrafanaAdminPassword = &v } -// GetGrafanaAdminUser returns the GrafanaAdminUser field value +// GetGrafanaAdminUser returns the GrafanaAdminUser field value if set, zero value otherwise. // Deprecated func (o *InstanceSensitiveData) GetGrafanaAdminUser() string { - if o == nil { + if o == nil || IsNil(o.GrafanaAdminUser) { var ret string return ret } - - return o.GrafanaAdminUser + return *o.GrafanaAdminUser } -// GetGrafanaAdminUserOk returns a tuple with the GrafanaAdminUser field value +// GetGrafanaAdminUserOk returns a tuple with the GrafanaAdminUser field value if set, nil otherwise // and a boolean to check if the value has been set. // Deprecated func (o *InstanceSensitiveData) GetGrafanaAdminUserOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.GrafanaAdminUser) { return nil, false } - return &o.GrafanaAdminUser, true + return o.GrafanaAdminUser, true } -// SetGrafanaAdminUser sets field value +// HasGrafanaAdminUser returns a boolean if a field has been set. +func (o *InstanceSensitiveData) HasGrafanaAdminUser() bool { + if o != nil && !IsNil(o.GrafanaAdminUser) { + return true + } + + return false +} + +// SetGrafanaAdminUser gets a reference to the given string and assigns it to the GrafanaAdminUser field. // Deprecated func (o *InstanceSensitiveData) SetGrafanaAdminUser(v string) { - o.GrafanaAdminUser = v + o.GrafanaAdminUser = &v } // GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value @@ -867,10 +855,13 @@ func (o InstanceSensitiveData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["alertingUrl"] = o.AlertingUrl toSerialize["cluster"] = o.Cluster - toSerialize["dashboardUrl"] = o.DashboardUrl toSerialize["grafanaAdminEnabled"] = o.GrafanaAdminEnabled - toSerialize["grafanaAdminPassword"] = o.GrafanaAdminPassword - toSerialize["grafanaAdminUser"] = o.GrafanaAdminUser + if !IsNil(o.GrafanaAdminPassword) { + toSerialize["grafanaAdminPassword"] = o.GrafanaAdminPassword + } + if !IsNil(o.GrafanaAdminUser) { + toSerialize["grafanaAdminUser"] = o.GrafanaAdminUser + } toSerialize["grafanaPublicReadAccess"] = o.GrafanaPublicReadAccess toSerialize["grafanaUrl"] = o.GrafanaUrl toSerialize["grafanaUseStackitSso"] = o.GrafanaUseStackitSso @@ -914,10 +905,7 @@ func (o *InstanceSensitiveData) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "alertingUrl", "cluster", - "dashboardUrl", "grafanaAdminEnabled", - "grafanaAdminPassword", - "grafanaAdminUser", "grafanaPublicReadAccess", "grafanaUrl", "grafanaUseStackitSso", @@ -971,7 +959,6 @@ func (o *InstanceSensitiveData) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "alertingUrl") delete(additionalProperties, "cluster") - delete(additionalProperties, "dashboardUrl") delete(additionalProperties, "grafanaAdminEnabled") delete(additionalProperties, "grafanaAdminPassword") delete(additionalProperties, "grafanaAdminUser")