diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index c77bc120..32ef9e59 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.2.1 (2024-12-17) + +- **Bugfix:** Correctly handle nullable attributes in model types + ## v0.2.0 (2024-10-14) - **Feature:** Add support for nullable models diff --git a/services/observability/model_alert.go b/services/observability/model_alert.go index 93c76ad8..0c22821b 100644 --- a/services/observability/model_alert.go +++ b/services/observability/model_alert.go @@ -114,7 +114,7 @@ func (o *Alert) SetInhibitRules(v *[]InhibitRules) { // GetReceivers returns the Receivers field value func (o *Alert) GetReceivers() *[]Receivers { - if o == nil { + if o == nil || IsNil(o.Receivers) { var ret *[]Receivers return ret } @@ -138,7 +138,7 @@ func (o *Alert) SetReceivers(v *[]Receivers) { // GetRoute returns the Route field value func (o *Alert) GetRoute() *Route { - if o == nil { + if o == nil || IsNil(o.Route) { var ret *Route return ret } diff --git a/services/observability/model_alert_config_receivers_response.go b/services/observability/model_alert_config_receivers_response.go index 4c102999..4e0538ad 100644 --- a/services/observability/model_alert_config_receivers_response.go +++ b/services/observability/model_alert_config_receivers_response.go @@ -48,7 +48,7 @@ func NewAlertConfigReceiversResponseWithDefaults() *AlertConfigReceiversResponse // GetData returns the Data field value func (o *AlertConfigReceiversResponse) GetData() *[]Receivers { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *[]Receivers return ret } @@ -72,7 +72,7 @@ func (o *AlertConfigReceiversResponse) SetData(v *[]Receivers) { // GetMessage returns the Message field value func (o *AlertConfigReceiversResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_alert_config_route_response.go b/services/observability/model_alert_config_route_response.go index b0f9e387..82803ef3 100644 --- a/services/observability/model_alert_config_route_response.go +++ b/services/observability/model_alert_config_route_response.go @@ -48,7 +48,7 @@ func NewAlertConfigRouteResponseWithDefaults() *AlertConfigRouteResponse { // GetData returns the Data field value func (o *AlertConfigRouteResponse) GetData() *Route { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *Route return ret } @@ -72,7 +72,7 @@ func (o *AlertConfigRouteResponse) SetData(v *Route) { // GetMessage returns the Message field value func (o *AlertConfigRouteResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_basic_auth.go b/services/observability/model_basic_auth.go index 2d64b577..f7c67f51 100644 --- a/services/observability/model_basic_auth.go +++ b/services/observability/model_basic_auth.go @@ -48,7 +48,7 @@ func NewBasicAuthWithDefaults() *BasicAuth { // GetPassword returns the Password field value func (o *BasicAuth) GetPassword() *string { - if o == nil { + if o == nil || IsNil(o.Password) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *BasicAuth) SetPassword(v *string) { // GetUsername returns the Username field value func (o *BasicAuth) GetUsername() *string { - if o == nil { + if o == nil || IsNil(o.Username) { var ret *string return ret } diff --git a/services/observability/model_create_alert_config_receiver_payload.go b/services/observability/model_create_alert_config_receiver_payload.go index 0f1a0463..4e461e45 100644 --- a/services/observability/model_create_alert_config_receiver_payload.go +++ b/services/observability/model_create_alert_config_receiver_payload.go @@ -83,7 +83,7 @@ func (o *CreateAlertConfigReceiverPayload) SetEmailConfigs(v *[]CreateAlertConfi // GetName returns the Name field value func (o *CreateAlertConfigReceiverPayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/observability/model_create_alert_config_route_payload.go b/services/observability/model_create_alert_config_route_payload.go index e752c79c..87c5d528 100644 --- a/services/observability/model_create_alert_config_route_payload.go +++ b/services/observability/model_create_alert_config_route_payload.go @@ -266,7 +266,7 @@ func (o *CreateAlertConfigRoutePayload) SetMatchers(v *[]string) { // GetReceiver returns the Receiver field value func (o *CreateAlertConfigRoutePayload) GetReceiver() *string { - if o == nil { + if o == nil || IsNil(o.Receiver) { var ret *string return ret } diff --git a/services/observability/model_create_credentials_response.go b/services/observability/model_create_credentials_response.go index 564722ff..0a1000ad 100644 --- a/services/observability/model_create_credentials_response.go +++ b/services/observability/model_create_credentials_response.go @@ -48,7 +48,7 @@ func NewCreateCredentialsResponseWithDefaults() *CreateCredentialsResponse { // GetCredentials returns the Credentials field value func (o *CreateCredentialsResponse) GetCredentials() *Credentials { - if o == nil { + if o == nil || IsNil(o.Credentials) { var ret *Credentials return ret } @@ -72,7 +72,7 @@ func (o *CreateCredentialsResponse) SetCredentials(v *Credentials) { // GetMessage returns the Message field value func (o *CreateCredentialsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_create_instance_payload.go b/services/observability/model_create_instance_payload.go index 39383c84..610fbc6e 100644 --- a/services/observability/model_create_instance_payload.go +++ b/services/observability/model_create_instance_payload.go @@ -114,7 +114,7 @@ func (o *CreateInstancePayload) SetParameter(v *map[string]interface{}) { // GetPlanId returns the PlanId field value func (o *CreateInstancePayload) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } diff --git a/services/observability/model_create_instance_response.go b/services/observability/model_create_instance_response.go index 5c10a66e..a192cad5 100644 --- a/services/observability/model_create_instance_response.go +++ b/services/observability/model_create_instance_response.go @@ -51,7 +51,7 @@ func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { // GetDashboardUrl returns the DashboardUrl field value func (o *CreateInstanceResponse) GetDashboardUrl() *string { - if o == nil { + if o == nil || IsNil(o.DashboardUrl) { var ret *string return ret } @@ -75,7 +75,7 @@ func (o *CreateInstanceResponse) SetDashboardUrl(v *string) { // GetInstanceId returns the InstanceId field value func (o *CreateInstanceResponse) GetInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.InstanceId) { var ret *string return ret } @@ -99,7 +99,7 @@ func (o *CreateInstanceResponse) SetInstanceId(v *string) { // GetMessage returns the Message field value func (o *CreateInstanceResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_create_scrape_config_payload.go b/services/observability/model_create_scrape_config_payload.go index 696233f4..cf3a9764 100644 --- a/services/observability/model_create_scrape_config_payload.go +++ b/services/observability/model_create_scrape_config_payload.go @@ -253,7 +253,7 @@ func (o *CreateScrapeConfigPayload) SetHttpSdConfigs(v *[]CreateScrapeConfigPayl // GetJobName returns the JobName field value func (o *CreateScrapeConfigPayload) GetJobName() *string { - if o == nil { + if o == nil || IsNil(o.JobName) { var ret *string return ret } @@ -437,7 +437,7 @@ func (o *CreateScrapeConfigPayload) SetSampleLimit(v *float64) { // GetScheme returns the Scheme field value func (o *CreateScrapeConfigPayload) GetScheme() *string { - if o == nil { + if o == nil || IsNil(o.Scheme) { var ret *string return ret } @@ -461,7 +461,7 @@ func (o *CreateScrapeConfigPayload) SetScheme(v *string) { // GetScrapeInterval returns the ScrapeInterval field value func (o *CreateScrapeConfigPayload) GetScrapeInterval() *string { - if o == nil { + if o == nil || IsNil(o.ScrapeInterval) { var ret *string return ret } @@ -485,7 +485,7 @@ func (o *CreateScrapeConfigPayload) SetScrapeInterval(v *string) { // GetScrapeTimeout returns the ScrapeTimeout field value func (o *CreateScrapeConfigPayload) GetScrapeTimeout() *string { - if o == nil { + if o == nil || IsNil(o.ScrapeTimeout) { var ret *string return ret } @@ -509,7 +509,7 @@ func (o *CreateScrapeConfigPayload) SetScrapeTimeout(v *string) { // GetStaticConfigs returns the StaticConfigs field value func (o *CreateScrapeConfigPayload) GetStaticConfigs() *[]CreateScrapeConfigPayloadStaticConfigsInner { - if o == nil { + if o == nil || IsNil(o.StaticConfigs) { var ret *[]CreateScrapeConfigPayloadStaticConfigsInner return ret } diff --git a/services/observability/model_create_scrape_config_payload_http_sd_configs_inner.go b/services/observability/model_create_scrape_config_payload_http_sd_configs_inner.go index 7d9e8eae..5f751ef7 100644 --- a/services/observability/model_create_scrape_config_payload_http_sd_configs_inner.go +++ b/services/observability/model_create_scrape_config_payload_http_sd_configs_inner.go @@ -183,7 +183,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) SetTlsConfig(v *CreateScra // GetUrl returns the Url field value func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetUrl() *string { - if o == nil { + if o == nil || IsNil(o.Url) { var ret *string return ret } diff --git a/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go b/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go index 9a3da8c9..135bcb38 100644 --- a/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go +++ b/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2.go @@ -57,7 +57,7 @@ func NewCreateScrapeConfigPayloadHttpSdConfigsInnerOauth2WithDefaults() *CreateS // GetClientId returns the ClientId field value func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetClientId() *string { - if o == nil { + if o == nil || IsNil(o.ClientId) { var ret *string return ret } @@ -81,7 +81,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetClientId(v *strin // GetClientSecret returns the ClientSecret field value func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetClientSecret() *string { - if o == nil { + if o == nil || IsNil(o.ClientSecret) { var ret *string return ret } @@ -169,7 +169,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) SetTlsConfig(v *Crea // GetTokenUrl returns the TokenUrl field value func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetTokenUrl() *string { - if o == nil { + if o == nil || IsNil(o.TokenUrl) { var ret *string return ret } diff --git a/services/observability/model_create_scrape_config_payload_static_configs_inner.go b/services/observability/model_create_scrape_config_payload_static_configs_inner.go index 5b13e08e..19e955e8 100644 --- a/services/observability/model_create_scrape_config_payload_static_configs_inner.go +++ b/services/observability/model_create_scrape_config_payload_static_configs_inner.go @@ -80,7 +80,7 @@ func (o *CreateScrapeConfigPayloadStaticConfigsInner) SetLabels(v *map[string]in // GetTargets returns the Targets field value func (o *CreateScrapeConfigPayloadStaticConfigsInner) GetTargets() *[]string { - if o == nil { + if o == nil || IsNil(o.Targets) { var ret *[]string return ret } diff --git a/services/observability/model_credentials.go b/services/observability/model_credentials.go index 8b03edbf..225ba8ec 100644 --- a/services/observability/model_credentials.go +++ b/services/observability/model_credentials.go @@ -48,7 +48,7 @@ func NewCredentialsWithDefaults() *Credentials { // GetPassword returns the Password field value func (o *Credentials) GetPassword() *string { - if o == nil { + if o == nil || IsNil(o.Password) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *Credentials) SetPassword(v *string) { // GetUsername returns the Username field value func (o *Credentials) GetUsername() *string { - if o == nil { + if o == nil || IsNil(o.Username) { var ret *string return ret } diff --git a/services/observability/model_credentials_remote_write_config.go b/services/observability/model_credentials_remote_write_config.go index 338987e2..a122c4f6 100644 --- a/services/observability/model_credentials_remote_write_config.go +++ b/services/observability/model_credentials_remote_write_config.go @@ -51,7 +51,7 @@ func NewCredentialsRemoteWriteConfigWithDefaults() *CredentialsRemoteWriteConfig // GetCredentialsMaxLimit returns the CredentialsMaxLimit field value func (o *CredentialsRemoteWriteConfig) GetCredentialsMaxLimit() *int64 { - if o == nil { + if o == nil || IsNil(o.CredentialsMaxLimit) { var ret *int64 return ret } @@ -75,7 +75,7 @@ func (o *CredentialsRemoteWriteConfig) SetCredentialsMaxLimit(v *int64) { // GetMaxLimit returns the MaxLimit field value func (o *CredentialsRemoteWriteConfig) GetMaxLimit() *int64 { - if o == nil { + if o == nil || IsNil(o.MaxLimit) { var ret *int64 return ret } @@ -99,7 +99,7 @@ func (o *CredentialsRemoteWriteConfig) SetMaxLimit(v *int64) { // GetMessage returns the Message field value func (o *CredentialsRemoteWriteConfig) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_credentials_remote_write_delete_response.go b/services/observability/model_credentials_remote_write_delete_response.go index 82185e1b..16f857ca 100644 --- a/services/observability/model_credentials_remote_write_delete_response.go +++ b/services/observability/model_credentials_remote_write_delete_response.go @@ -48,7 +48,7 @@ func NewCredentialsRemoteWriteDeleteResponseWithDefaults() *CredentialsRemoteWri // GetMaxLimit returns the MaxLimit field value func (o *CredentialsRemoteWriteDeleteResponse) GetMaxLimit() *int64 { - if o == nil { + if o == nil || IsNil(o.MaxLimit) { var ret *int64 return ret } @@ -72,7 +72,7 @@ func (o *CredentialsRemoteWriteDeleteResponse) SetMaxLimit(v *int64) { // GetMessage returns the Message field value func (o *CredentialsRemoteWriteDeleteResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_delete_scrape_config_response.go b/services/observability/model_delete_scrape_config_response.go index 219601d3..f6fe0d2c 100644 --- a/services/observability/model_delete_scrape_config_response.go +++ b/services/observability/model_delete_scrape_config_response.go @@ -48,7 +48,7 @@ func NewDeleteScrapeConfigResponseWithDefaults() *DeleteScrapeConfigResponse { // GetData returns the Data field value func (o *DeleteScrapeConfigResponse) GetData() *[]Job { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *[]Job return ret } @@ -72,7 +72,7 @@ func (o *DeleteScrapeConfigResponse) SetData(v *[]Job) { // GetMessage returns the Message field value func (o *DeleteScrapeConfigResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_email_config.go b/services/observability/model_email_config.go index eafdb97a..e97e8dd5 100644 --- a/services/observability/model_email_config.go +++ b/services/observability/model_email_config.go @@ -247,7 +247,7 @@ func (o *EmailConfig) SetSmarthost(v *string) { // GetTo returns the To field value func (o *EmailConfig) GetTo() *string { - if o == nil { + if o == nil || IsNil(o.To) { var ret *string return ret } diff --git a/services/observability/model_error.go b/services/observability/model_error.go index ff3932cb..67bf7f51 100644 --- a/services/observability/model_error.go +++ b/services/observability/model_error.go @@ -78,7 +78,7 @@ func (o *Error) SetErrors(v *[]map[string]string) { // GetMessage returns the Message field value func (o *Error) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_get_alert_configs_response.go b/services/observability/model_get_alert_configs_response.go index 54e7b590..e9678eec 100644 --- a/services/observability/model_get_alert_configs_response.go +++ b/services/observability/model_get_alert_configs_response.go @@ -48,7 +48,7 @@ func NewGetAlertConfigsResponseWithDefaults() *GetAlertConfigsResponse { // GetData returns the Data field value func (o *GetAlertConfigsResponse) GetData() *Alert { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *Alert return ret } @@ -72,7 +72,7 @@ func (o *GetAlertConfigsResponse) SetData(v *Alert) { // GetMessage returns the Message field value func (o *GetAlertConfigsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_get_credentials_response.go b/services/observability/model_get_credentials_response.go index d62844ef..41c02dfa 100644 --- a/services/observability/model_get_credentials_response.go +++ b/services/observability/model_get_credentials_response.go @@ -84,7 +84,7 @@ func (o *GetCredentialsResponse) SetCredentialsInfo(v *map[string]string) { // GetId returns the Id field value func (o *GetCredentialsResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -108,7 +108,7 @@ func (o *GetCredentialsResponse) SetId(v *string) { // GetMessage returns the Message field value func (o *GetCredentialsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -132,7 +132,7 @@ func (o *GetCredentialsResponse) SetMessage(v *string) { // GetName returns the Name field value func (o *GetCredentialsResponse) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/observability/model_get_instance_response.go b/services/observability/model_get_instance_response.go index 94394a30..e83e78fe 100644 --- a/services/observability/model_get_instance_response.go +++ b/services/observability/model_get_instance_response.go @@ -79,7 +79,7 @@ func NewGetInstanceResponseWithDefaults() *GetInstanceResponse { // GetDashboardUrl returns the DashboardUrl field value func (o *GetInstanceResponse) GetDashboardUrl() *string { - if o == nil { + if o == nil || IsNil(o.DashboardUrl) { var ret *string return ret } @@ -103,7 +103,7 @@ func (o *GetInstanceResponse) SetDashboardUrl(v *string) { // GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GetInstanceResponse) GetError() *string { - if o == nil || IsNil(o.Error.Get()) { + if o == nil || IsNil(o.Error) || IsNil(o.Error.Get()) { var ret *string return ret } @@ -114,7 +114,7 @@ func (o *GetInstanceResponse) GetError() *string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *GetInstanceResponse) GetErrorOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error.Get(), o.Error.IsSet() @@ -122,7 +122,7 @@ func (o *GetInstanceResponse) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *GetInstanceResponse) HasError() bool { - if o != nil && o.Error.IsSet() { + if o != nil && !IsNil(o.Error) && o.Error.IsSet() { return true } @@ -131,22 +131,31 @@ func (o *GetInstanceResponse) HasError() bool { // SetError gets a reference to the given string and assigns it to the Error field. func (o *GetInstanceResponse) SetError(v *string) { + if IsNil(o.Error) { + o.Error = new(NullableString) + } o.Error.Set(v) } // SetErrorNil sets the value for Error to be an explicit nil func (o *GetInstanceResponse) SetErrorNil() { + if IsNil(o.Error) { + o.Error = new(NullableString) + } o.Error.Set(nil) } // UnsetError ensures that no value is present for Error, not even an explicit nil func (o *GetInstanceResponse) UnsetError() { + if IsNil(o.Error) { + o.Error = new(NullableString) + } o.Error.Unset() } // GetId returns the Id field value func (o *GetInstanceResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -170,7 +179,7 @@ func (o *GetInstanceResponse) SetId(v *string) { // GetInstance returns the Instance field value func (o *GetInstanceResponse) GetInstance() *InstanceSensitiveData { - if o == nil { + if o == nil || IsNil(o.Instance) { var ret *InstanceSensitiveData return ret } @@ -226,7 +235,7 @@ func (o *GetInstanceResponse) SetIsUpdatable(v *bool) { // GetMessage returns the Message field value func (o *GetInstanceResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -314,7 +323,7 @@ func (o *GetInstanceResponse) SetParameters(v *map[string]string) { // GetPlanId returns the PlanId field value func (o *GetInstanceResponse) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } @@ -338,7 +347,7 @@ func (o *GetInstanceResponse) SetPlanId(v *string) { // GetPlanName returns the PlanName field value func (o *GetInstanceResponse) GetPlanName() *string { - if o == nil { + if o == nil || IsNil(o.PlanName) { var ret *string return ret } @@ -394,7 +403,7 @@ func (o *GetInstanceResponse) SetPlanSchema(v *string) { // GetServiceName returns the ServiceName field value func (o *GetInstanceResponse) GetServiceName() *string { - if o == nil { + if o == nil || IsNil(o.ServiceName) { var ret *string return ret } @@ -418,7 +427,7 @@ func (o *GetInstanceResponse) SetServiceName(v *string) { // GetStatus returns the Status field value func (o *GetInstanceResponse) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } diff --git a/services/observability/model_get_metrics_storage_retention_response.go b/services/observability/model_get_metrics_storage_retention_response.go index 79c5c7ae..9a7be62d 100644 --- a/services/observability/model_get_metrics_storage_retention_response.go +++ b/services/observability/model_get_metrics_storage_retention_response.go @@ -54,7 +54,7 @@ func NewGetMetricsStorageRetentionResponseWithDefaults() *GetMetricsStorageReten // GetMessage returns the Message field value func (o *GetMetricsStorageRetentionResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -78,7 +78,7 @@ func (o *GetMetricsStorageRetentionResponse) SetMessage(v *string) { // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime1h() *string { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime1h) { var ret *string return ret } @@ -102,7 +102,7 @@ func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTime1h(v *string // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTime5m() *string { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime5m) { var ret *string return ret } @@ -126,7 +126,7 @@ func (o *GetMetricsStorageRetentionResponse) SetMetricsRetentionTime5m(v *string // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value func (o *GetMetricsStorageRetentionResponse) GetMetricsRetentionTimeRaw() *string { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTimeRaw) { var ret *string return ret } diff --git a/services/observability/model_get_scrape_config_response.go b/services/observability/model_get_scrape_config_response.go index e910bccf..2b0ed5f9 100644 --- a/services/observability/model_get_scrape_config_response.go +++ b/services/observability/model_get_scrape_config_response.go @@ -48,7 +48,7 @@ func NewGetScrapeConfigResponseWithDefaults() *GetScrapeConfigResponse { // GetData returns the Data field value func (o *GetScrapeConfigResponse) GetData() *Job { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *Job return ret } @@ -72,7 +72,7 @@ func (o *GetScrapeConfigResponse) SetData(v *Job) { // GetMessage returns the Message field value func (o *GetScrapeConfigResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_grafana_configs.go b/services/observability/model_grafana_configs.go index 07caf927..ce8b4b2a 100644 --- a/services/observability/model_grafana_configs.go +++ b/services/observability/model_grafana_configs.go @@ -80,7 +80,7 @@ func (o *GrafanaConfigs) SetGenericOauth(v *GrafanaOauth) { // GetMessage returns the Message field value func (o *GrafanaConfigs) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_grafana_oauth.go b/services/observability/model_grafana_oauth.go index fb0d764c..b268d78f 100644 --- a/services/observability/model_grafana_oauth.go +++ b/services/observability/model_grafana_oauth.go @@ -75,7 +75,7 @@ func NewGrafanaOauthWithDefaults() *GrafanaOauth { // GetApiUrl returns the ApiUrl field value func (o *GrafanaOauth) GetApiUrl() *string { - if o == nil { + if o == nil || IsNil(o.ApiUrl) { var ret *string return ret } @@ -99,7 +99,7 @@ func (o *GrafanaOauth) SetApiUrl(v *string) { // GetAuthUrl returns the AuthUrl field value func (o *GrafanaOauth) GetAuthUrl() *string { - if o == nil { + if o == nil || IsNil(o.AuthUrl) { var ret *string return ret } @@ -123,7 +123,7 @@ func (o *GrafanaOauth) SetAuthUrl(v *string) { // GetEnabled returns the Enabled field value func (o *GrafanaOauth) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -179,7 +179,7 @@ func (o *GrafanaOauth) SetName(v *string) { // GetOauthClientId returns the OauthClientId field value func (o *GrafanaOauth) GetOauthClientId() *string { - if o == nil { + if o == nil || IsNil(o.OauthClientId) { var ret *string return ret } @@ -203,7 +203,7 @@ func (o *GrafanaOauth) SetOauthClientId(v *string) { // GetOauthClientSecret returns the OauthClientSecret field value func (o *GrafanaOauth) GetOauthClientSecret() *string { - if o == nil { + if o == nil || IsNil(o.OauthClientSecret) { var ret *string return ret } @@ -227,7 +227,7 @@ func (o *GrafanaOauth) SetOauthClientSecret(v *string) { // GetRoleAttributePath returns the RoleAttributePath field value func (o *GrafanaOauth) GetRoleAttributePath() *string { - if o == nil { + if o == nil || IsNil(o.RoleAttributePath) { var ret *string return ret } @@ -315,7 +315,7 @@ func (o *GrafanaOauth) SetScopes(v *string) { // GetTokenUrl returns the TokenUrl field value func (o *GrafanaOauth) GetTokenUrl() *string { - if o == nil { + if o == nil || IsNil(o.TokenUrl) { var ret *string return ret } diff --git a/services/observability/model_http_service_sd.go b/services/observability/model_http_service_sd.go index a8942742..fb80fe3d 100644 --- a/services/observability/model_http_service_sd.go +++ b/services/observability/model_http_service_sd.go @@ -181,7 +181,7 @@ func (o *HTTPServiceSD) SetTlsConfig(v *TLSConfig) { // GetUrl returns the Url field value func (o *HTTPServiceSD) GetUrl() *string { - if o == nil { + if o == nil || IsNil(o.Url) { var ret *string return ret } diff --git a/services/observability/model_instance.go b/services/observability/model_instance.go index 20ea53d1..d2d35306 100644 --- a/services/observability/model_instance.go +++ b/services/observability/model_instance.go @@ -68,7 +68,7 @@ func NewInstanceWithDefaults() *Instance { // GetCluster returns the Cluster field value func (o *Instance) GetCluster() *string { - if o == nil { + if o == nil || IsNil(o.Cluster) { var ret *string return ret } @@ -92,7 +92,7 @@ func (o *Instance) SetCluster(v *string) { // GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value func (o *Instance) GetGrafanaPublicReadAccess() *bool { - if o == nil { + if o == nil || IsNil(o.GrafanaPublicReadAccess) { var ret *bool return ret } @@ -116,7 +116,7 @@ func (o *Instance) SetGrafanaPublicReadAccess(v *bool) { // GetGrafanaUseStackitSso returns the GrafanaUseStackitSso field value func (o *Instance) GetGrafanaUseStackitSso() *bool { - if o == nil { + if o == nil || IsNil(o.GrafanaUseStackitSso) { var ret *bool return ret } @@ -140,7 +140,7 @@ func (o *Instance) SetGrafanaUseStackitSso(v *bool) { // GetInstance returns the Instance field value func (o *Instance) GetInstance() *string { - if o == nil { + if o == nil || IsNil(o.Instance) { var ret *string return ret } @@ -164,7 +164,7 @@ func (o *Instance) SetInstance(v *string) { // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value func (o *Instance) GetMetricsRetentionTime1h() *int64 { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime1h) { var ret *int64 return ret } @@ -188,7 +188,7 @@ func (o *Instance) SetMetricsRetentionTime1h(v *int64) { // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value func (o *Instance) GetMetricsRetentionTime5m() *int64 { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime5m) { var ret *int64 return ret } @@ -212,7 +212,7 @@ func (o *Instance) SetMetricsRetentionTime5m(v *int64) { // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value func (o *Instance) GetMetricsRetentionTimeRaw() *int64 { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTimeRaw) { var ret *int64 return ret } @@ -268,7 +268,7 @@ func (o *Instance) SetName(v *string) { // GetPlan returns the Plan field value func (o *Instance) GetPlan() *PlanModel { - if o == nil { + if o == nil || IsNil(o.Plan) { var ret *PlanModel return ret } diff --git a/services/observability/model_instance_response.go b/services/observability/model_instance_response.go index 27f7f8fd..b7dae372 100644 --- a/services/observability/model_instance_response.go +++ b/services/observability/model_instance_response.go @@ -45,7 +45,7 @@ func NewInstanceResponseWithDefaults() *InstanceResponse { // GetMessage returns the Message field value func (o *InstanceResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_instance_sensitive_data.go b/services/observability/model_instance_sensitive_data.go index 3d684719..695b353e 100644 --- a/services/observability/model_instance_sensitive_data.go +++ b/services/observability/model_instance_sensitive_data.go @@ -113,7 +113,7 @@ func NewInstanceSensitiveDataWithDefaults() *InstanceSensitiveData { // GetAlertingUrl returns the AlertingUrl field value func (o *InstanceSensitiveData) GetAlertingUrl() *string { - if o == nil { + if o == nil || IsNil(o.AlertingUrl) { var ret *string return ret } @@ -137,7 +137,7 @@ func (o *InstanceSensitiveData) SetAlertingUrl(v *string) { // GetCluster returns the Cluster field value func (o *InstanceSensitiveData) GetCluster() *string { - if o == nil { + if o == nil || IsNil(o.Cluster) { var ret *string return ret } @@ -161,7 +161,7 @@ func (o *InstanceSensitiveData) SetCluster(v *string) { // GetDashboardUrl returns the DashboardUrl field value func (o *InstanceSensitiveData) GetDashboardUrl() *string { - if o == nil { + if o == nil || IsNil(o.DashboardUrl) { var ret *string return ret } @@ -185,7 +185,7 @@ func (o *InstanceSensitiveData) SetDashboardUrl(v *string) { // GetGrafanaAdminPassword returns the GrafanaAdminPassword field value func (o *InstanceSensitiveData) GetGrafanaAdminPassword() *string { - if o == nil { + if o == nil || IsNil(o.GrafanaAdminPassword) { var ret *string return ret } @@ -209,7 +209,7 @@ func (o *InstanceSensitiveData) SetGrafanaAdminPassword(v *string) { // GetGrafanaAdminUser returns the GrafanaAdminUser field value func (o *InstanceSensitiveData) GetGrafanaAdminUser() *string { - if o == nil { + if o == nil || IsNil(o.GrafanaAdminUser) { var ret *string return ret } @@ -233,7 +233,7 @@ func (o *InstanceSensitiveData) SetGrafanaAdminUser(v *string) { // GetGrafanaPublicReadAccess returns the GrafanaPublicReadAccess field value func (o *InstanceSensitiveData) GetGrafanaPublicReadAccess() *bool { - if o == nil { + if o == nil || IsNil(o.GrafanaPublicReadAccess) { var ret *bool return ret } @@ -257,7 +257,7 @@ func (o *InstanceSensitiveData) SetGrafanaPublicReadAccess(v *bool) { // GetGrafanaUrl returns the GrafanaUrl field value func (o *InstanceSensitiveData) GetGrafanaUrl() *string { - if o == nil { + if o == nil || IsNil(o.GrafanaUrl) { var ret *string return ret } @@ -281,7 +281,7 @@ func (o *InstanceSensitiveData) SetGrafanaUrl(v *string) { // GetGrafanaUseStackitSso returns the GrafanaUseStackitSso field value func (o *InstanceSensitiveData) GetGrafanaUseStackitSso() *bool { - if o == nil { + if o == nil || IsNil(o.GrafanaUseStackitSso) { var ret *bool return ret } @@ -305,7 +305,7 @@ func (o *InstanceSensitiveData) SetGrafanaUseStackitSso(v *bool) { // GetInstance returns the Instance field value func (o *InstanceSensitiveData) GetInstance() *string { - if o == nil { + if o == nil || IsNil(o.Instance) { var ret *string return ret } @@ -329,7 +329,7 @@ func (o *InstanceSensitiveData) SetInstance(v *string) { // GetJaegerTracesUrl returns the JaegerTracesUrl field value func (o *InstanceSensitiveData) GetJaegerTracesUrl() *string { - if o == nil { + if o == nil || IsNil(o.JaegerTracesUrl) { var ret *string return ret } @@ -353,7 +353,7 @@ func (o *InstanceSensitiveData) SetJaegerTracesUrl(v *string) { // GetJaegerUiUrl returns the JaegerUiUrl field value func (o *InstanceSensitiveData) GetJaegerUiUrl() *string { - if o == nil { + if o == nil || IsNil(o.JaegerUiUrl) { var ret *string return ret } @@ -377,7 +377,7 @@ func (o *InstanceSensitiveData) SetJaegerUiUrl(v *string) { // GetLogsPushUrl returns the LogsPushUrl field value func (o *InstanceSensitiveData) GetLogsPushUrl() *string { - if o == nil { + if o == nil || IsNil(o.LogsPushUrl) { var ret *string return ret } @@ -401,7 +401,7 @@ func (o *InstanceSensitiveData) SetLogsPushUrl(v *string) { // GetLogsUrl returns the LogsUrl field value func (o *InstanceSensitiveData) GetLogsUrl() *string { - if o == nil { + if o == nil || IsNil(o.LogsUrl) { var ret *string return ret } @@ -425,7 +425,7 @@ func (o *InstanceSensitiveData) SetLogsUrl(v *string) { // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value func (o *InstanceSensitiveData) GetMetricsRetentionTime1h() *int64 { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime1h) { var ret *int64 return ret } @@ -449,7 +449,7 @@ func (o *InstanceSensitiveData) SetMetricsRetentionTime1h(v *int64) { // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value func (o *InstanceSensitiveData) GetMetricsRetentionTime5m() *int64 { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime5m) { var ret *int64 return ret } @@ -473,7 +473,7 @@ func (o *InstanceSensitiveData) SetMetricsRetentionTime5m(v *int64) { // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value func (o *InstanceSensitiveData) GetMetricsRetentionTimeRaw() *int64 { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTimeRaw) { var ret *int64 return ret } @@ -497,7 +497,7 @@ func (o *InstanceSensitiveData) SetMetricsRetentionTimeRaw(v *int64) { // GetMetricsUrl returns the MetricsUrl field value func (o *InstanceSensitiveData) GetMetricsUrl() *string { - if o == nil { + if o == nil || IsNil(o.MetricsUrl) { var ret *string return ret } @@ -553,7 +553,7 @@ func (o *InstanceSensitiveData) SetName(v *string) { // GetOtlpTracesUrl returns the OtlpTracesUrl field value func (o *InstanceSensitiveData) GetOtlpTracesUrl() *string { - if o == nil { + if o == nil || IsNil(o.OtlpTracesUrl) { var ret *string return ret } @@ -577,7 +577,7 @@ func (o *InstanceSensitiveData) SetOtlpTracesUrl(v *string) { // GetPlan returns the Plan field value func (o *InstanceSensitiveData) GetPlan() *PlanModel { - if o == nil { + if o == nil || IsNil(o.Plan) { var ret *PlanModel return ret } @@ -601,7 +601,7 @@ func (o *InstanceSensitiveData) SetPlan(v *PlanModel) { // GetPushMetricsUrl returns the PushMetricsUrl field value func (o *InstanceSensitiveData) GetPushMetricsUrl() *string { - if o == nil { + if o == nil || IsNil(o.PushMetricsUrl) { var ret *string return ret } @@ -625,7 +625,7 @@ func (o *InstanceSensitiveData) SetPushMetricsUrl(v *string) { // GetTargetsUrl returns the TargetsUrl field value func (o *InstanceSensitiveData) GetTargetsUrl() *string { - if o == nil { + if o == nil || IsNil(o.TargetsUrl) { var ret *string return ret } @@ -649,7 +649,7 @@ func (o *InstanceSensitiveData) SetTargetsUrl(v *string) { // GetZipkinSpansUrl returns the ZipkinSpansUrl field value func (o *InstanceSensitiveData) GetZipkinSpansUrl() *string { - if o == nil { + if o == nil || IsNil(o.ZipkinSpansUrl) { var ret *string return ret } diff --git a/services/observability/model_job.go b/services/observability/model_job.go index ed6597b1..fec7c904 100644 --- a/services/observability/model_job.go +++ b/services/observability/model_job.go @@ -242,7 +242,7 @@ func (o *Job) SetHttpSdConfigs(v *[]HTTPServiceSD) { // GetJobName returns the JobName field value func (o *Job) GetJobName() *string { - if o == nil { + if o == nil || IsNil(o.JobName) { var ret *string return ret } @@ -458,7 +458,7 @@ func (o *Job) SetScheme(v *string) { // GetScrapeInterval returns the ScrapeInterval field value func (o *Job) GetScrapeInterval() *string { - if o == nil { + if o == nil || IsNil(o.ScrapeInterval) { var ret *string return ret } @@ -482,7 +482,7 @@ func (o *Job) SetScrapeInterval(v *string) { // GetScrapeTimeout returns the ScrapeTimeout field value func (o *Job) GetScrapeTimeout() *string { - if o == nil { + if o == nil || IsNil(o.ScrapeTimeout) { var ret *string return ret } @@ -506,7 +506,7 @@ func (o *Job) SetScrapeTimeout(v *string) { // GetStaticConfigs returns the StaticConfigs field value func (o *Job) GetStaticConfigs() *[]StaticConfigs { - if o == nil { + if o == nil || IsNil(o.StaticConfigs) { var ret *[]StaticConfigs return ret } diff --git a/services/observability/model_list_acl_response.go b/services/observability/model_list_acl_response.go index 6e9696b2..4d0af339 100644 --- a/services/observability/model_list_acl_response.go +++ b/services/observability/model_list_acl_response.go @@ -48,7 +48,7 @@ func NewListACLResponseWithDefaults() *ListACLResponse { // GetAcl returns the Acl field value func (o *ListACLResponse) GetAcl() *[]string { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *[]string return ret } @@ -72,7 +72,7 @@ func (o *ListACLResponse) SetAcl(v *[]string) { // GetMessage returns the Message field value func (o *ListACLResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_list_credentials_response.go b/services/observability/model_list_credentials_response.go index c370646b..ee7c7f1a 100644 --- a/services/observability/model_list_credentials_response.go +++ b/services/observability/model_list_credentials_response.go @@ -48,7 +48,7 @@ func NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { // GetCredentials returns the Credentials field value func (o *ListCredentialsResponse) GetCredentials() *[]ServiceKeysList { - if o == nil { + if o == nil || IsNil(o.Credentials) { var ret *[]ServiceKeysList return ret } @@ -72,7 +72,7 @@ func (o *ListCredentialsResponse) SetCredentials(v *[]ServiceKeysList) { // GetMessage returns the Message field value func (o *ListCredentialsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_list_instances_response.go b/services/observability/model_list_instances_response.go index 56c544e4..258d05e2 100644 --- a/services/observability/model_list_instances_response.go +++ b/services/observability/model_list_instances_response.go @@ -48,7 +48,7 @@ func NewListInstancesResponseWithDefaults() *ListInstancesResponse { // GetInstances returns the Instances field value func (o *ListInstancesResponse) GetInstances() *[]ProjectInstanceFull { - if o == nil { + if o == nil || IsNil(o.Instances) { var ret *[]ProjectInstanceFull return ret } @@ -72,7 +72,7 @@ func (o *ListInstancesResponse) SetInstances(v *[]ProjectInstanceFull) { // GetMessage returns the Message field value func (o *ListInstancesResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_list_scrape_configs_response.go b/services/observability/model_list_scrape_configs_response.go index 4bea64ad..b084287e 100644 --- a/services/observability/model_list_scrape_configs_response.go +++ b/services/observability/model_list_scrape_configs_response.go @@ -48,7 +48,7 @@ func NewListScrapeConfigsResponseWithDefaults() *ListScrapeConfigsResponse { // GetData returns the Data field value func (o *ListScrapeConfigsResponse) GetData() *[]Job { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *[]Job return ret } @@ -72,7 +72,7 @@ func (o *ListScrapeConfigsResponse) SetData(v *[]Job) { // GetMessage returns the Message field value func (o *ListScrapeConfigsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_message.go b/services/observability/model_message.go index 3002d0dd..408404da 100644 --- a/services/observability/model_message.go +++ b/services/observability/model_message.go @@ -45,7 +45,7 @@ func NewMessageWithDefaults() *Message { // GetMessage returns the Message field value func (o *Message) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_metrics_relabel_config.go b/services/observability/model_metrics_relabel_config.go index dadb0df4..63a235d5 100644 --- a/services/observability/model_metrics_relabel_config.go +++ b/services/observability/model_metrics_relabel_config.go @@ -227,7 +227,7 @@ func (o *MetricsRelabelConfig) SetSeparator(v *string) { // GetSourceLabels returns the SourceLabels field value func (o *MetricsRelabelConfig) GetSourceLabels() *[]string { - if o == nil { + if o == nil || IsNil(o.SourceLabels) { var ret *[]string return ret } diff --git a/services/observability/model_o_auth2.go b/services/observability/model_o_auth2.go index e5df143a..54142d5a 100644 --- a/services/observability/model_o_auth2.go +++ b/services/observability/model_o_auth2.go @@ -53,7 +53,7 @@ func NewOAuth2WithDefaults() *OAuth2 { // GetClientId returns the ClientId field value func (o *OAuth2) GetClientId() *string { - if o == nil { + if o == nil || IsNil(o.ClientId) { var ret *string return ret } @@ -77,7 +77,7 @@ func (o *OAuth2) SetClientId(v *string) { // GetClientSecret returns the ClientSecret field value func (o *OAuth2) GetClientSecret() *string { - if o == nil { + if o == nil || IsNil(o.ClientSecret) { var ret *string return ret } @@ -165,7 +165,7 @@ func (o *OAuth2) SetTlsConfig(v *TLSConfig) { // GetTokenUrl returns the TokenUrl field value func (o *OAuth2) GetTokenUrl() *string { - if o == nil { + if o == nil || IsNil(o.TokenUrl) { var ret *string return ret } diff --git a/services/observability/model_permission_denied.go b/services/observability/model_permission_denied.go index 8a57d2a7..ff34192f 100644 --- a/services/observability/model_permission_denied.go +++ b/services/observability/model_permission_denied.go @@ -45,7 +45,7 @@ func NewPermissionDeniedWithDefaults() *PermissionDenied { // GetDetail returns the Detail field value func (o *PermissionDenied) GetDetail() *string { - if o == nil { + if o == nil || IsNil(o.Detail) { var ret *string return ret } diff --git a/services/observability/model_plan.go b/services/observability/model_plan.go index dceb6fe1..26d0a653 100644 --- a/services/observability/model_plan.go +++ b/services/observability/model_plan.go @@ -108,7 +108,7 @@ func NewPlanWithDefaults() *Plan { // GetAlertMatchers returns the AlertMatchers field value func (o *Plan) GetAlertMatchers() *int64 { - if o == nil { + if o == nil || IsNil(o.AlertMatchers) { var ret *int64 return ret } @@ -132,7 +132,7 @@ func (o *Plan) SetAlertMatchers(v *int64) { // GetAlertReceivers returns the AlertReceivers field value func (o *Plan) GetAlertReceivers() *int64 { - if o == nil { + if o == nil || IsNil(o.AlertReceivers) { var ret *int64 return ret } @@ -156,7 +156,7 @@ func (o *Plan) SetAlertReceivers(v *int64) { // GetAlertRules returns the AlertRules field value func (o *Plan) GetAlertRules() *int64 { - if o == nil { + if o == nil || IsNil(o.AlertRules) { var ret *int64 return ret } @@ -212,7 +212,7 @@ func (o *Plan) SetAmount(v *float64) { // GetBucketSize returns the BucketSize field value func (o *Plan) GetBucketSize() *int64 { - if o == nil { + if o == nil || IsNil(o.BucketSize) { var ret *int64 return ret } @@ -268,7 +268,7 @@ func (o *Plan) SetDescription(v *string) { // GetGrafanaGlobalDashboards returns the GrafanaGlobalDashboards field value func (o *Plan) GetGrafanaGlobalDashboards() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalDashboards) { var ret *int64 return ret } @@ -292,7 +292,7 @@ func (o *Plan) SetGrafanaGlobalDashboards(v *int64) { // GetGrafanaGlobalOrgs returns the GrafanaGlobalOrgs field value func (o *Plan) GetGrafanaGlobalOrgs() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalOrgs) { var ret *int64 return ret } @@ -316,7 +316,7 @@ func (o *Plan) SetGrafanaGlobalOrgs(v *int64) { // GetGrafanaGlobalSessions returns the GrafanaGlobalSessions field value func (o *Plan) GetGrafanaGlobalSessions() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalSessions) { var ret *int64 return ret } @@ -340,7 +340,7 @@ func (o *Plan) SetGrafanaGlobalSessions(v *int64) { // GetGrafanaGlobalUsers returns the GrafanaGlobalUsers field value func (o *Plan) GetGrafanaGlobalUsers() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalUsers) { var ret *int64 return ret } @@ -364,7 +364,7 @@ func (o *Plan) SetGrafanaGlobalUsers(v *int64) { // GetId returns the Id field value func (o *Plan) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -452,7 +452,7 @@ func (o *Plan) SetIsPublic(v *bool) { // GetLogsAlert returns the LogsAlert field value func (o *Plan) GetLogsAlert() *int64 { - if o == nil { + if o == nil || IsNil(o.LogsAlert) { var ret *int64 return ret } @@ -476,7 +476,7 @@ func (o *Plan) SetLogsAlert(v *int64) { // GetLogsStorage returns the LogsStorage field value func (o *Plan) GetLogsStorage() *int64 { - if o == nil { + if o == nil || IsNil(o.LogsStorage) { var ret *int64 return ret } @@ -532,7 +532,7 @@ func (o *Plan) SetName(v *string) { // GetPlanId returns the PlanId field value func (o *Plan) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } @@ -556,7 +556,7 @@ func (o *Plan) SetPlanId(v *string) { // GetSamplesPerScrape returns the SamplesPerScrape field value func (o *Plan) GetSamplesPerScrape() *int64 { - if o == nil { + if o == nil || IsNil(o.SamplesPerScrape) { var ret *int64 return ret } @@ -612,7 +612,7 @@ func (o *Plan) SetSchema(v *string) { // GetTargetNumber returns the TargetNumber field value func (o *Plan) GetTargetNumber() *int64 { - if o == nil { + if o == nil || IsNil(o.TargetNumber) { var ret *int64 return ret } @@ -636,7 +636,7 @@ func (o *Plan) SetTargetNumber(v *int64) { // GetTotalMetricSamples returns the TotalMetricSamples field value func (o *Plan) GetTotalMetricSamples() *int64 { - if o == nil { + if o == nil || IsNil(o.TotalMetricSamples) { var ret *int64 return ret } @@ -660,7 +660,7 @@ func (o *Plan) SetTotalMetricSamples(v *int64) { // GetTracesStorage returns the TracesStorage field value func (o *Plan) GetTracesStorage() *int64 { - if o == nil { + if o == nil || IsNil(o.TracesStorage) { var ret *int64 return ret } diff --git a/services/observability/model_plan_model.go b/services/observability/model_plan_model.go index 172915ab..29fef5e7 100644 --- a/services/observability/model_plan_model.go +++ b/services/observability/model_plan_model.go @@ -93,7 +93,7 @@ func NewPlanModelWithDefaults() *PlanModel { // GetAlertMatchers returns the AlertMatchers field value func (o *PlanModel) GetAlertMatchers() *int64 { - if o == nil { + if o == nil || IsNil(o.AlertMatchers) { var ret *int64 return ret } @@ -117,7 +117,7 @@ func (o *PlanModel) SetAlertMatchers(v *int64) { // GetAlertReceivers returns the AlertReceivers field value func (o *PlanModel) GetAlertReceivers() *int64 { - if o == nil { + if o == nil || IsNil(o.AlertReceivers) { var ret *int64 return ret } @@ -141,7 +141,7 @@ func (o *PlanModel) SetAlertReceivers(v *int64) { // GetAlertRules returns the AlertRules field value func (o *PlanModel) GetAlertRules() *int64 { - if o == nil { + if o == nil || IsNil(o.AlertRules) { var ret *int64 return ret } @@ -197,7 +197,7 @@ func (o *PlanModel) SetAmount(v *float64) { // GetBucketSize returns the BucketSize field value func (o *PlanModel) GetBucketSize() *int64 { - if o == nil { + if o == nil || IsNil(o.BucketSize) { var ret *int64 return ret } @@ -253,7 +253,7 @@ func (o *PlanModel) SetDescription(v *string) { // GetGrafanaGlobalDashboards returns the GrafanaGlobalDashboards field value func (o *PlanModel) GetGrafanaGlobalDashboards() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalDashboards) { var ret *int64 return ret } @@ -277,7 +277,7 @@ func (o *PlanModel) SetGrafanaGlobalDashboards(v *int64) { // GetGrafanaGlobalOrgs returns the GrafanaGlobalOrgs field value func (o *PlanModel) GetGrafanaGlobalOrgs() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalOrgs) { var ret *int64 return ret } @@ -301,7 +301,7 @@ func (o *PlanModel) SetGrafanaGlobalOrgs(v *int64) { // GetGrafanaGlobalSessions returns the GrafanaGlobalSessions field value func (o *PlanModel) GetGrafanaGlobalSessions() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalSessions) { var ret *int64 return ret } @@ -325,7 +325,7 @@ func (o *PlanModel) SetGrafanaGlobalSessions(v *int64) { // GetGrafanaGlobalUsers returns the GrafanaGlobalUsers field value func (o *PlanModel) GetGrafanaGlobalUsers() *int64 { - if o == nil { + if o == nil || IsNil(o.GrafanaGlobalUsers) { var ret *int64 return ret } @@ -349,7 +349,7 @@ func (o *PlanModel) SetGrafanaGlobalUsers(v *int64) { // GetId returns the Id field value func (o *PlanModel) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -373,7 +373,7 @@ func (o *PlanModel) SetId(v *string) { // GetLogsAlert returns the LogsAlert field value func (o *PlanModel) GetLogsAlert() *int64 { - if o == nil { + if o == nil || IsNil(o.LogsAlert) { var ret *int64 return ret } @@ -397,7 +397,7 @@ func (o *PlanModel) SetLogsAlert(v *int64) { // GetLogsStorage returns the LogsStorage field value func (o *PlanModel) GetLogsStorage() *int64 { - if o == nil { + if o == nil || IsNil(o.LogsStorage) { var ret *int64 return ret } @@ -453,7 +453,7 @@ func (o *PlanModel) SetName(v *string) { // GetPlanId returns the PlanId field value func (o *PlanModel) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } @@ -477,7 +477,7 @@ func (o *PlanModel) SetPlanId(v *string) { // GetSamplesPerScrape returns the SamplesPerScrape field value func (o *PlanModel) GetSamplesPerScrape() *int64 { - if o == nil { + if o == nil || IsNil(o.SamplesPerScrape) { var ret *int64 return ret } @@ -501,7 +501,7 @@ func (o *PlanModel) SetSamplesPerScrape(v *int64) { // GetTargetNumber returns the TargetNumber field value func (o *PlanModel) GetTargetNumber() *int64 { - if o == nil { + if o == nil || IsNil(o.TargetNumber) { var ret *int64 return ret } @@ -525,7 +525,7 @@ func (o *PlanModel) SetTargetNumber(v *int64) { // GetTotalMetricSamples returns the TotalMetricSamples field value func (o *PlanModel) GetTotalMetricSamples() *int64 { - if o == nil { + if o == nil || IsNil(o.TotalMetricSamples) { var ret *int64 return ret } @@ -549,7 +549,7 @@ func (o *PlanModel) SetTotalMetricSamples(v *int64) { // GetTracesStorage returns the TracesStorage field value func (o *PlanModel) GetTracesStorage() *int64 { - if o == nil { + if o == nil || IsNil(o.TracesStorage) { var ret *int64 return ret } diff --git a/services/observability/model_plans_response.go b/services/observability/model_plans_response.go index bef6b9a4..076fb663 100644 --- a/services/observability/model_plans_response.go +++ b/services/observability/model_plans_response.go @@ -48,7 +48,7 @@ func NewPlansResponseWithDefaults() *PlansResponse { // GetMessage returns the Message field value func (o *PlansResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *PlansResponse) SetMessage(v *string) { // GetPlans returns the Plans field value func (o *PlansResponse) GetPlans() *[]Plan { - if o == nil { + if o == nil || IsNil(o.Plans) { var ret *[]Plan return ret } diff --git a/services/observability/model_project_instance_full.go b/services/observability/model_project_instance_full.go index 7391184e..952cca61 100644 --- a/services/observability/model_project_instance_full.go +++ b/services/observability/model_project_instance_full.go @@ -59,7 +59,7 @@ func NewProjectInstanceFullWithDefaults() *ProjectInstanceFull { // GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProjectInstanceFull) GetError() *string { - if o == nil || IsNil(o.Error.Get()) { + if o == nil || IsNil(o.Error) || IsNil(o.Error.Get()) { var ret *string return ret } @@ -70,7 +70,7 @@ func (o *ProjectInstanceFull) GetError() *string { // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ProjectInstanceFull) GetErrorOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error.Get(), o.Error.IsSet() @@ -78,7 +78,7 @@ func (o *ProjectInstanceFull) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *ProjectInstanceFull) HasError() bool { - if o != nil && o.Error.IsSet() { + if o != nil && !IsNil(o.Error) && o.Error.IsSet() { return true } @@ -87,22 +87,31 @@ func (o *ProjectInstanceFull) HasError() bool { // SetError gets a reference to the given string and assigns it to the Error field. func (o *ProjectInstanceFull) SetError(v *string) { + if IsNil(o.Error) { + o.Error = new(NullableString) + } o.Error.Set(v) } // SetErrorNil sets the value for Error to be an explicit nil func (o *ProjectInstanceFull) SetErrorNil() { + if IsNil(o.Error) { + o.Error = new(NullableString) + } o.Error.Set(nil) } // UnsetError ensures that no value is present for Error, not even an explicit nil func (o *ProjectInstanceFull) UnsetError() { + if IsNil(o.Error) { + o.Error = new(NullableString) + } o.Error.Unset() } // GetId returns the Id field value func (o *ProjectInstanceFull) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -126,7 +135,7 @@ func (o *ProjectInstanceFull) SetId(v *string) { // GetInstance returns the Instance field value func (o *ProjectInstanceFull) GetInstance() *string { - if o == nil { + if o == nil || IsNil(o.Instance) { var ret *string return ret } @@ -182,7 +191,7 @@ func (o *ProjectInstanceFull) SetName(v *string) { // GetPlanName returns the PlanName field value func (o *ProjectInstanceFull) GetPlanName() *string { - if o == nil { + if o == nil || IsNil(o.PlanName) { var ret *string return ret } @@ -206,7 +215,7 @@ func (o *ProjectInstanceFull) SetPlanName(v *string) { // GetServiceName returns the ServiceName field value func (o *ProjectInstanceFull) GetServiceName() *string { - if o == nil { + if o == nil || IsNil(o.ServiceName) { var ret *string return ret } @@ -230,7 +239,7 @@ func (o *ProjectInstanceFull) SetServiceName(v *string) { // GetStatus returns the Status field value func (o *ProjectInstanceFull) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } diff --git a/services/observability/model_receiver.go b/services/observability/model_receiver.go index 8ad00a15..9d07f0b9 100644 --- a/services/observability/model_receiver.go +++ b/services/observability/model_receiver.go @@ -48,7 +48,7 @@ func NewReceiverWithDefaults() *Receiver { // GetData returns the Data field value func (o *Receiver) GetData() *Receivers { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *Receivers return ret } @@ -72,7 +72,7 @@ func (o *Receiver) SetData(v *Receivers) { // GetMessage returns the Message field value func (o *Receiver) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_receivers.go b/services/observability/model_receivers.go index bbac735a..f7804655 100644 --- a/services/observability/model_receivers.go +++ b/services/observability/model_receivers.go @@ -80,7 +80,7 @@ func (o *Receivers) SetEmailConfigs(v *[]EmailConfig) { // GetName returns the Name field value func (o *Receivers) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/observability/model_route.go b/services/observability/model_route.go index 0502f880..e790a42d 100644 --- a/services/observability/model_route.go +++ b/services/observability/model_route.go @@ -261,7 +261,7 @@ func (o *Route) SetMatchRe(v *map[string]string) { // GetReceiver returns the Receiver field value func (o *Route) GetReceiver() *string { - if o == nil { + if o == nil || IsNil(o.Receiver) { var ret *string return ret } diff --git a/services/observability/model_route_serializer.go b/services/observability/model_route_serializer.go index ae5ab89f..21c5bb14 100644 --- a/services/observability/model_route_serializer.go +++ b/services/observability/model_route_serializer.go @@ -294,7 +294,7 @@ func (o *RouteSerializer) SetMatchers(v *[]string) { // GetReceiver returns the Receiver field value func (o *RouteSerializer) GetReceiver() *string { - if o == nil { + if o == nil || IsNil(o.Receiver) { var ret *string return ret } diff --git a/services/observability/model_scrape_configs_response.go b/services/observability/model_scrape_configs_response.go index 9a51df2a..b58fa3a3 100644 --- a/services/observability/model_scrape_configs_response.go +++ b/services/observability/model_scrape_configs_response.go @@ -48,7 +48,7 @@ func NewScrapeConfigsResponseWithDefaults() *ScrapeConfigsResponse { // GetData returns the Data field value func (o *ScrapeConfigsResponse) GetData() *[]Job { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *[]Job return ret } @@ -72,7 +72,7 @@ func (o *ScrapeConfigsResponse) SetData(v *[]Job) { // GetMessage returns the Message field value func (o *ScrapeConfigsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_service_keys_list.go b/services/observability/model_service_keys_list.go index 7c62d4c0..423be80c 100644 --- a/services/observability/model_service_keys_list.go +++ b/services/observability/model_service_keys_list.go @@ -81,7 +81,7 @@ func (o *ServiceKeysList) SetCredentialsInfo(v *map[string]string) { // GetId returns the Id field value func (o *ServiceKeysList) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -105,7 +105,7 @@ func (o *ServiceKeysList) SetId(v *string) { // GetName returns the Name field value func (o *ServiceKeysList) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/observability/model_static_configs.go b/services/observability/model_static_configs.go index 1b4bcf18..0264a913 100644 --- a/services/observability/model_static_configs.go +++ b/services/observability/model_static_configs.go @@ -78,7 +78,7 @@ func (o *StaticConfigs) SetLabels(v *map[string]string) { // GetTargets returns the Targets field value func (o *StaticConfigs) GetTargets() *[]string { - if o == nil { + if o == nil || IsNil(o.Targets) { var ret *[]string return ret } diff --git a/services/observability/model_update_acl_payload.go b/services/observability/model_update_acl_payload.go index 025b6548..68975d0c 100644 --- a/services/observability/model_update_acl_payload.go +++ b/services/observability/model_update_acl_payload.go @@ -46,7 +46,7 @@ func NewUpdateACLPayloadWithDefaults() *UpdateACLPayload { // GetAcl returns the Acl field value func (o *UpdateACLPayload) GetAcl() *[]string { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *[]string return ret } diff --git a/services/observability/model_update_alert_config_receiver_payload.go b/services/observability/model_update_alert_config_receiver_payload.go index 7e6b7eb8..05eb1c26 100644 --- a/services/observability/model_update_alert_config_receiver_payload.go +++ b/services/observability/model_update_alert_config_receiver_payload.go @@ -83,7 +83,7 @@ func (o *UpdateAlertConfigReceiverPayload) SetEmailConfigs(v *[]CreateAlertConfi // GetName returns the Name field value func (o *UpdateAlertConfigReceiverPayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/observability/model_update_alert_config_route_payload.go b/services/observability/model_update_alert_config_route_payload.go index 4e24e289..901e36f5 100644 --- a/services/observability/model_update_alert_config_route_payload.go +++ b/services/observability/model_update_alert_config_route_payload.go @@ -266,7 +266,7 @@ func (o *UpdateAlertConfigRoutePayload) SetMatchers(v *[]string) { // GetReceiver returns the Receiver field value func (o *UpdateAlertConfigRoutePayload) GetReceiver() *string { - if o == nil { + if o == nil || IsNil(o.Receiver) { var ret *string return ret } diff --git a/services/observability/model_update_alert_configs_payload.go b/services/observability/model_update_alert_configs_payload.go index 18fa5b5a..2ec65a67 100644 --- a/services/observability/model_update_alert_configs_payload.go +++ b/services/observability/model_update_alert_configs_payload.go @@ -115,7 +115,7 @@ func (o *UpdateAlertConfigsPayload) SetInhibitRules(v *UpdateAlertConfigsPayload // GetReceivers returns the Receivers field value func (o *UpdateAlertConfigsPayload) GetReceivers() *[]UpdateAlertConfigsPayloadReceiversInner { - if o == nil { + if o == nil || IsNil(o.Receivers) { var ret *[]UpdateAlertConfigsPayloadReceiversInner return ret } @@ -139,7 +139,7 @@ func (o *UpdateAlertConfigsPayload) SetReceivers(v *[]UpdateAlertConfigsPayloadR // GetRoute returns the Route field value func (o *UpdateAlertConfigsPayload) GetRoute() *UpdateAlertConfigsPayloadRoute { - if o == nil { + if o == nil || IsNil(o.Route) { var ret *UpdateAlertConfigsPayloadRoute return ret } diff --git a/services/observability/model_update_alert_configs_payload_receivers_inner.go b/services/observability/model_update_alert_configs_payload_receivers_inner.go index 391ac1bd..28fda414 100644 --- a/services/observability/model_update_alert_configs_payload_receivers_inner.go +++ b/services/observability/model_update_alert_configs_payload_receivers_inner.go @@ -83,7 +83,7 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) SetEmailConfigs(v *[]CreateAle // GetName returns the Name field value func (o *UpdateAlertConfigsPayloadReceiversInner) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/observability/model_update_alert_configs_payload_route.go b/services/observability/model_update_alert_configs_payload_route.go index 2c302713..86da108c 100644 --- a/services/observability/model_update_alert_configs_payload_route.go +++ b/services/observability/model_update_alert_configs_payload_route.go @@ -266,7 +266,7 @@ func (o *UpdateAlertConfigsPayloadRoute) SetMatchers(v *[]string) { // GetReceiver returns the Receiver field value func (o *UpdateAlertConfigsPayloadRoute) GetReceiver() *string { - if o == nil { + if o == nil || IsNil(o.Receiver) { var ret *string return ret } diff --git a/services/observability/model_update_alert_configs_response.go b/services/observability/model_update_alert_configs_response.go index fd0bce82..0f38bff7 100644 --- a/services/observability/model_update_alert_configs_response.go +++ b/services/observability/model_update_alert_configs_response.go @@ -48,7 +48,7 @@ func NewUpdateAlertConfigsResponseWithDefaults() *UpdateAlertConfigsResponse { // GetData returns the Data field value func (o *UpdateAlertConfigsResponse) GetData() *Alert { - if o == nil { + if o == nil || IsNil(o.Data) { var ret *Alert return ret } @@ -72,7 +72,7 @@ func (o *UpdateAlertConfigsResponse) SetData(v *Alert) { // GetMessage returns the Message field value func (o *UpdateAlertConfigsResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } diff --git a/services/observability/model_update_grafana_configs_payload_generic_oauth.go b/services/observability/model_update_grafana_configs_payload_generic_oauth.go index c2785d36..3a779477 100644 --- a/services/observability/model_update_grafana_configs_payload_generic_oauth.go +++ b/services/observability/model_update_grafana_configs_payload_generic_oauth.go @@ -86,7 +86,7 @@ func NewUpdateGrafanaConfigsPayloadGenericOauthWithDefaults() *UpdateGrafanaConf // GetApiUrl returns the ApiUrl field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetApiUrl() *string { - if o == nil { + if o == nil || IsNil(o.ApiUrl) { var ret *string return ret } @@ -110,7 +110,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetApiUrl(v *string) { // GetAuthUrl returns the AuthUrl field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetAuthUrl() *string { - if o == nil { + if o == nil || IsNil(o.AuthUrl) { var ret *string return ret } @@ -134,7 +134,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetAuthUrl(v *string) { // GetEnabled returns the Enabled field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -190,7 +190,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetName(v *string) { // GetOauthClientId returns the OauthClientId field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientId() *string { - if o == nil { + if o == nil || IsNil(o.OauthClientId) { var ret *string return ret } @@ -214,7 +214,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetOauthClientId(v *string) { // GetOauthClientSecret returns the OauthClientSecret field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetOauthClientSecret() *string { - if o == nil { + if o == nil || IsNil(o.OauthClientSecret) { var ret *string return ret } @@ -238,7 +238,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetOauthClientSecret(v *string // GetRoleAttributePath returns the RoleAttributePath field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributePath() *string { - if o == nil { + if o == nil || IsNil(o.RoleAttributePath) { var ret *string return ret } @@ -326,7 +326,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) SetScopes(v *string) { // GetTokenUrl returns the TokenUrl field value func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetTokenUrl() *string { - if o == nil { + if o == nil || IsNil(o.TokenUrl) { var ret *string return ret } diff --git a/services/observability/model_update_instance_payload.go b/services/observability/model_update_instance_payload.go index 49a7a2b6..598d1290 100644 --- a/services/observability/model_update_instance_payload.go +++ b/services/observability/model_update_instance_payload.go @@ -114,7 +114,7 @@ func (o *UpdateInstancePayload) SetParameter(v *map[string]interface{}) { // GetPlanId returns the PlanId field value func (o *UpdateInstancePayload) GetPlanId() *string { - if o == nil { + if o == nil || IsNil(o.PlanId) { var ret *string return ret } diff --git a/services/observability/model_update_metrics_storage_retention_payload.go b/services/observability/model_update_metrics_storage_retention_payload.go index 2b6c8273..002fd850 100644 --- a/services/observability/model_update_metrics_storage_retention_payload.go +++ b/services/observability/model_update_metrics_storage_retention_payload.go @@ -54,7 +54,7 @@ func NewUpdateMetricsStorageRetentionPayloadWithDefaults() *UpdateMetricsStorage // GetMetricsRetentionTime1h returns the MetricsRetentionTime1h field value func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime1h() *string { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime1h) { var ret *string return ret } @@ -78,7 +78,7 @@ func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTime1h(v *stri // GetMetricsRetentionTime5m returns the MetricsRetentionTime5m field value func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTime5m() *string { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTime5m) { var ret *string return ret } @@ -102,7 +102,7 @@ func (o *UpdateMetricsStorageRetentionPayload) SetMetricsRetentionTime5m(v *stri // GetMetricsRetentionTimeRaw returns the MetricsRetentionTimeRaw field value func (o *UpdateMetricsStorageRetentionPayload) GetMetricsRetentionTimeRaw() *string { - if o == nil { + if o == nil || IsNil(o.MetricsRetentionTimeRaw) { var ret *string return ret } diff --git a/services/observability/model_update_scrape_config_payload.go b/services/observability/model_update_scrape_config_payload.go index 364f7841..438a5e0e 100644 --- a/services/observability/model_update_scrape_config_payload.go +++ b/services/observability/model_update_scrape_config_payload.go @@ -214,7 +214,7 @@ func (o *UpdateScrapeConfigPayload) SetHonorTimeStamps(v *bool) { // GetMetricsPath returns the MetricsPath field value func (o *UpdateScrapeConfigPayload) GetMetricsPath() *string { - if o == nil { + if o == nil || IsNil(o.MetricsPath) { var ret *string return ret } @@ -334,7 +334,7 @@ func (o *UpdateScrapeConfigPayload) SetSampleLimit(v *float64) { // GetScheme returns the Scheme field value func (o *UpdateScrapeConfigPayload) GetScheme() *string { - if o == nil { + if o == nil || IsNil(o.Scheme) { var ret *string return ret } @@ -358,7 +358,7 @@ func (o *UpdateScrapeConfigPayload) SetScheme(v *string) { // GetScrapeInterval returns the ScrapeInterval field value func (o *UpdateScrapeConfigPayload) GetScrapeInterval() *string { - if o == nil { + if o == nil || IsNil(o.ScrapeInterval) { var ret *string return ret } @@ -382,7 +382,7 @@ func (o *UpdateScrapeConfigPayload) SetScrapeInterval(v *string) { // GetScrapeTimeout returns the ScrapeTimeout field value func (o *UpdateScrapeConfigPayload) GetScrapeTimeout() *string { - if o == nil { + if o == nil || IsNil(o.ScrapeTimeout) { var ret *string return ret } @@ -406,7 +406,7 @@ func (o *UpdateScrapeConfigPayload) SetScrapeTimeout(v *string) { // GetStaticConfigs returns the StaticConfigs field value func (o *UpdateScrapeConfigPayload) GetStaticConfigs() *[]UpdateScrapeConfigPayloadStaticConfigsInner { - if o == nil { + if o == nil || IsNil(o.StaticConfigs) { var ret *[]UpdateScrapeConfigPayloadStaticConfigsInner return ret } diff --git a/services/observability/model_update_scrape_config_payload_static_configs_inner.go b/services/observability/model_update_scrape_config_payload_static_configs_inner.go index ad67023b..969fb184 100644 --- a/services/observability/model_update_scrape_config_payload_static_configs_inner.go +++ b/services/observability/model_update_scrape_config_payload_static_configs_inner.go @@ -80,7 +80,7 @@ func (o *UpdateScrapeConfigPayloadStaticConfigsInner) SetLabels(v *map[string]in // GetTargets returns the Targets field value func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetTargets() *[]string { - if o == nil { + if o == nil || IsNil(o.Targets) { var ret *[]string return ret } diff --git a/services/observability/model_web_hook.go b/services/observability/model_web_hook.go index 0babf106..b7192696 100644 --- a/services/observability/model_web_hook.go +++ b/services/observability/model_web_hook.go @@ -119,7 +119,7 @@ func (o *WebHook) SetSendResolved(v *bool) { // GetUrl returns the Url field value func (o *WebHook) GetUrl() *string { - if o == nil { + if o == nil || IsNil(o.Url) { var ret *string return ret }