From 4d440ed9b6163d199d76f39e353e908f5a9bec87 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 15:00:39 +0000 Subject: [PATCH] Generate observability --- services/observability/model_alert.go | 8 ++-- .../model_alert_config_receivers_response.go | 4 +- .../model_alert_config_route_response.go | 4 +- services/observability/model_basic_auth.go | 4 +- ...el_create_alert_config_receiver_payload.go | 8 ++-- ...ig_receiver_payload_email_configs_inner.go | 12 ++--- ...receiver_payload_opsgenie_configs_inner.go | 6 +-- ...receiver_payload_web_hook_configs_inner.go | 4 +- ...model_create_alert_config_route_payload.go | 18 ++++---- ...alert_config_route_payload_routes_inner.go | 16 +++---- .../model_create_credentials_response.go | 4 +- .../model_create_instance_payload.go | 6 +-- .../model_create_instance_response.go | 6 +-- .../model_create_scrape_config_payload.go | 32 ++++++------- ...create_scrape_config_payload_basic_auth.go | 4 +- ...pe_config_payload_http_sd_configs_inner.go | 10 ++-- ...ig_payload_http_sd_configs_inner_oauth2.go | 10 ++-- ...http_sd_configs_inner_oauth2_tls_config.go | 2 +- ...g_payload_metrics_relabel_configs_inner.go | 14 +++--- ...ape_config_payload_static_configs_inner.go | 4 +- services/observability/model_credentials.go | 4 +- .../model_credentials_remote_write_config.go | 6 +-- ...redentials_remote_write_delete_response.go | 4 +- .../model_delete_scrape_config_response.go | 4 +- services/observability/model_email_config.go | 14 +++--- services/observability/model_error.go | 4 +- .../model_get_alert_configs_response.go | 4 +- .../model_get_credentials_response.go | 8 ++-- .../model_get_instance_response.go | 39 ++++++++++------ ..._get_metrics_storage_retention_response.go | 8 ++-- .../model_get_scrape_config_response.go | 4 +- services/observability/model_global.go | 16 +++---- .../observability/model_grafana_configs.go | 8 ++-- services/observability/model_grafana_oauth.go | 22 ++++----- .../observability/model_http_service_sd.go | 10 ++-- services/observability/model_inhibit_rules.go | 14 +++--- services/observability/model_instance.go | 20 ++++---- .../observability/model_instance_response.go | 2 +- .../model_instance_sensitive_data.go | 46 +++++++++---------- services/observability/model_job.go | 32 ++++++------- .../observability/model_list_acl_response.go | 4 +- .../model_list_credentials_response.go | 4 +- .../model_list_instances_response.go | 4 +- .../model_list_scrape_configs_response.go | 4 +- services/observability/model_message.go | 2 +- .../model_metrics_relabel_config.go | 14 +++--- services/observability/model_o_auth2.go | 10 ++-- .../observability/model_opsgenie_config.go | 10 ++-- .../observability/model_permission_denied.go | 2 +- services/observability/model_plan.go | 44 +++++++++--------- services/observability/model_plan_model.go | 38 +++++++-------- .../observability/model_plans_response.go | 4 +- .../model_project_instance_full.go | 27 +++++++---- services/observability/model_receiver.go | 4 +- services/observability/model_receivers.go | 8 ++-- services/observability/model_route.go | 18 ++++---- .../observability/model_route_serializer.go | 20 ++++---- .../model_scrape_configs_response.go | 4 +- .../observability/model_service_keys_list.go | 6 +-- .../observability/model_static_configs.go | 4 +- services/observability/model_tls_config.go | 2 +- .../observability/model_update_acl_payload.go | 2 +- ...el_update_alert_config_receiver_payload.go | 8 ++-- ...model_update_alert_config_route_payload.go | 18 ++++---- .../model_update_alert_configs_payload.go | 8 ++-- ...del_update_alert_configs_payload_global.go | 16 +++---- ...ate_alert_configs_payload_inhibit_rules.go | 10 ++-- ...e_alert_configs_payload_receivers_inner.go | 8 ++-- ...odel_update_alert_configs_payload_route.go | 18 ++++---- .../model_update_alert_configs_response.go | 4 +- ...credentials_remote_write_config_payload.go | 2 +- .../model_update_grafana_configs_payload.go | 6 +-- ...e_grafana_configs_payload_generic_oauth.go | 22 ++++----- .../model_update_instance_payload.go | 6 +-- ...pdate_metrics_storage_retention_payload.go | 6 +-- .../model_update_scrape_config_payload.go | 26 +++++------ ...ape_config_payload_static_configs_inner.go | 4 +- services/observability/model_web_hook.go | 6 +-- 78 files changed, 433 insertions(+), 415 deletions(-) diff --git a/services/observability/model_alert.go b/services/observability/model_alert.go index 93c76ad82..fc88c96e2 100644 --- a/services/observability/model_alert.go +++ b/services/observability/model_alert.go @@ -68,7 +68,7 @@ func (o *Alert) GetGlobalOk() (*Global, bool) { // HasGlobal returns a boolean if a field has been set. func (o *Alert) HasGlobal() bool { - if o != nil && !IsNil(o.Global) { + if o != nil && !IsNil(o.Global) && !IsNil(o.Global) { return true } @@ -100,7 +100,7 @@ func (o *Alert) GetInhibitRulesOk() (*[]InhibitRules, bool) { // HasInhibitRules returns a boolean if a field has been set. func (o *Alert) HasInhibitRules() bool { - if o != nil && !IsNil(o.InhibitRules) { + if o != nil && !IsNil(o.InhibitRules) && !IsNil(o.InhibitRules) { return true } @@ -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 4c102999d..4e0538ad1 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 b0f9e3876..82803ef3a 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 2d64b5772..f7c67f51e 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 0f1a04630..ec47db83b 100644 --- a/services/observability/model_create_alert_config_receiver_payload.go +++ b/services/observability/model_create_alert_config_receiver_payload.go @@ -69,7 +69,7 @@ func (o *CreateAlertConfigReceiverPayload) GetEmailConfigsOk() (*[]CreateAlertCo // HasEmailConfigs returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayload) HasEmailConfigs() bool { - if o != nil && !IsNil(o.EmailConfigs) { + if o != nil && !IsNil(o.EmailConfigs) && !IsNil(o.EmailConfigs) { return true } @@ -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 } @@ -125,7 +125,7 @@ func (o *CreateAlertConfigReceiverPayload) GetOpsgenieConfigsOk() (*[]CreateAler // HasOpsgenieConfigs returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayload) HasOpsgenieConfigs() bool { - if o != nil && !IsNil(o.OpsgenieConfigs) { + if o != nil && !IsNil(o.OpsgenieConfigs) && !IsNil(o.OpsgenieConfigs) { return true } @@ -157,7 +157,7 @@ func (o *CreateAlertConfigReceiverPayload) GetWebHookConfigsOk() (*[]CreateAlert // HasWebHookConfigs returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayload) HasWebHookConfigs() bool { - if o != nil && !IsNil(o.WebHookConfigs) { + if o != nil && !IsNil(o.WebHookConfigs) && !IsNil(o.WebHookConfigs) { return true } diff --git a/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go index faf1ead00..1e5682b57 100644 --- a/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_email_configs_inner.go @@ -70,7 +70,7 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthIdentityOk() // HasAuthIdentity returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthIdentity() bool { - if o != nil && !IsNil(o.AuthIdentity) { + if o != nil && !IsNil(o.AuthIdentity) && !IsNil(o.AuthIdentity) { return true } @@ -102,7 +102,7 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthPasswordOk() // HasAuthPassword returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthPassword() bool { - if o != nil && !IsNil(o.AuthPassword) { + if o != nil && !IsNil(o.AuthPassword) && !IsNil(o.AuthPassword) { return true } @@ -134,7 +134,7 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetAuthUsernameOk() // HasAuthUsername returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasAuthUsername() bool { - if o != nil && !IsNil(o.AuthUsername) { + if o != nil && !IsNil(o.AuthUsername) && !IsNil(o.AuthUsername) { return true } @@ -166,7 +166,7 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetFromOk() (*string // HasFrom returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasFrom() bool { - if o != nil && !IsNil(o.From) { + if o != nil && !IsNil(o.From) && !IsNil(o.From) { return true } @@ -198,7 +198,7 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetSmarthostOk() (*s // HasSmarthost returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasSmarthost() bool { - if o != nil && !IsNil(o.Smarthost) { + if o != nil && !IsNil(o.Smarthost) && !IsNil(o.Smarthost) { return true } @@ -230,7 +230,7 @@ func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) GetToOk() (*string, // HasTo returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadEmailConfigsInner) HasTo() bool { - if o != nil && !IsNil(o.To) { + if o != nil && !IsNil(o.To) && !IsNil(o.To) { return true } diff --git a/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go index 39ba9905b..ba62de37f 100644 --- a/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_opsgenie_configs_inner.go @@ -64,7 +64,7 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiKeyOk() (*s // HasApiKey returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiKey() bool { - if o != nil && !IsNil(o.ApiKey) { + if o != nil && !IsNil(o.ApiKey) && !IsNil(o.ApiKey) { return true } @@ -96,7 +96,7 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetApiUrlOk() (*s // HasApiUrl returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasApiUrl() bool { - if o != nil && !IsNil(o.ApiUrl) { + if o != nil && !IsNil(o.ApiUrl) && !IsNil(o.ApiUrl) { return true } @@ -128,7 +128,7 @@ func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) GetTagsOk() (*str // HasTags returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadOpsgenieConfigsInner) HasTags() bool { - if o != nil && !IsNil(o.Tags) { + if o != nil && !IsNil(o.Tags) && !IsNil(o.Tags) { return true } diff --git a/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go index 576f40c0c..85f93d0b6 100644 --- a/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go @@ -66,7 +66,7 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeamsOk() (*b // HasMsTeams returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasMsTeams() bool { - if o != nil && !IsNil(o.MsTeams) { + if o != nil && !IsNil(o.MsTeams) && !IsNil(o.MsTeams) { return true } @@ -98,7 +98,7 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetUrlOk() (*strin // HasUrl returns a boolean if a field has been set. func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasUrl() bool { - if o != nil && !IsNil(o.Url) { + if o != nil && !IsNil(o.Url) && !IsNil(o.Url) { return true } diff --git a/services/observability/model_create_alert_config_route_payload.go b/services/observability/model_create_alert_config_route_payload.go index e752c79ca..51f5ef9e4 100644 --- a/services/observability/model_create_alert_config_route_payload.go +++ b/services/observability/model_create_alert_config_route_payload.go @@ -92,7 +92,7 @@ func (o *CreateAlertConfigRoutePayload) GetGroupByOk() (*[]string, bool) { // HasGroupBy returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasGroupBy() bool { - if o != nil && !IsNil(o.GroupBy) { + if o != nil && !IsNil(o.GroupBy) && !IsNil(o.GroupBy) { return true } @@ -124,7 +124,7 @@ func (o *CreateAlertConfigRoutePayload) GetGroupIntervalOk() (*string, bool) { // HasGroupInterval returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasGroupInterval() bool { - if o != nil && !IsNil(o.GroupInterval) { + if o != nil && !IsNil(o.GroupInterval) && !IsNil(o.GroupInterval) { return true } @@ -156,7 +156,7 @@ func (o *CreateAlertConfigRoutePayload) GetGroupWaitOk() (*string, bool) { // HasGroupWait returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasGroupWait() bool { - if o != nil && !IsNil(o.GroupWait) { + if o != nil && !IsNil(o.GroupWait) && !IsNil(o.GroupWait) { return true } @@ -188,7 +188,7 @@ func (o *CreateAlertConfigRoutePayload) GetMatchOk() (*map[string]interface{}, b // HasMatch returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasMatch() bool { - if o != nil && !IsNil(o.Match) { + if o != nil && !IsNil(o.Match) && !IsNil(o.Match) { return true } @@ -220,7 +220,7 @@ func (o *CreateAlertConfigRoutePayload) GetMatchReOk() (*map[string]interface{}, // HasMatchRe returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasMatchRe() bool { - if o != nil && !IsNil(o.MatchRe) { + if o != nil && !IsNil(o.MatchRe) && !IsNil(o.MatchRe) { return true } @@ -252,7 +252,7 @@ func (o *CreateAlertConfigRoutePayload) GetMatchersOk() (*[]string, bool) { // HasMatchers returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasMatchers() bool { - if o != nil && !IsNil(o.Matchers) { + if o != nil && !IsNil(o.Matchers) && !IsNil(o.Matchers) { return true } @@ -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 } @@ -308,7 +308,7 @@ func (o *CreateAlertConfigRoutePayload) GetRepeatIntervalOk() (*string, bool) { // HasRepeatInterval returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasRepeatInterval() bool { - if o != nil && !IsNil(o.RepeatInterval) { + if o != nil && !IsNil(o.RepeatInterval) && !IsNil(o.RepeatInterval) { return true } @@ -340,7 +340,7 @@ func (o *CreateAlertConfigRoutePayload) GetRoutesOk() (*[]CreateAlertConfigRoute // HasRoutes returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayload) HasRoutes() bool { - if o != nil && !IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) && !IsNil(o.Routes) { return true } diff --git a/services/observability/model_create_alert_config_route_payload_routes_inner.go b/services/observability/model_create_alert_config_route_payload_routes_inner.go index d382cb0a4..d8fd65e61 100644 --- a/services/observability/model_create_alert_config_route_payload_routes_inner.go +++ b/services/observability/model_create_alert_config_route_payload_routes_inner.go @@ -73,7 +73,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupByOk() (*[]string, bo // HasGroupBy returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupBy() bool { - if o != nil && !IsNil(o.GroupBy) { + if o != nil && !IsNil(o.GroupBy) && !IsNil(o.GroupBy) { return true } @@ -105,7 +105,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupIntervalOk() (*string // HasGroupInterval returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupInterval() bool { - if o != nil && !IsNil(o.GroupInterval) { + if o != nil && !IsNil(o.GroupInterval) && !IsNil(o.GroupInterval) { return true } @@ -137,7 +137,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetGroupWaitOk() (*string, bo // HasGroupWait returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasGroupWait() bool { - if o != nil && !IsNil(o.GroupWait) { + if o != nil && !IsNil(o.GroupWait) && !IsNil(o.GroupWait) { return true } @@ -169,7 +169,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchOk() (*map[string]int // HasMatch returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatch() bool { - if o != nil && !IsNil(o.Match) { + if o != nil && !IsNil(o.Match) && !IsNil(o.Match) { return true } @@ -201,7 +201,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetMatchReOk() (*map[string]i // HasMatchRe returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasMatchRe() bool { - if o != nil && !IsNil(o.MatchRe) { + if o != nil && !IsNil(o.MatchRe) && !IsNil(o.MatchRe) { return true } @@ -233,7 +233,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetReceiverOk() (*string, boo // HasReceiver returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasReceiver() bool { - if o != nil && !IsNil(o.Receiver) { + if o != nil && !IsNil(o.Receiver) && !IsNil(o.Receiver) { return true } @@ -265,7 +265,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRepeatIntervalOk() (*strin // HasRepeatInterval returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasRepeatInterval() bool { - if o != nil && !IsNil(o.RepeatInterval) { + if o != nil && !IsNil(o.RepeatInterval) && !IsNil(o.RepeatInterval) { return true } @@ -297,7 +297,7 @@ func (o *CreateAlertConfigRoutePayloadRoutesInner) GetRoutesOk() (*[]map[string] // HasRoutes returns a boolean if a field has been set. func (o *CreateAlertConfigRoutePayloadRoutesInner) HasRoutes() bool { - if o != nil && !IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) && !IsNil(o.Routes) { return true } diff --git a/services/observability/model_create_credentials_response.go b/services/observability/model_create_credentials_response.go index 564722ff7..0a1000ad1 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 39383c845..56485a7ee 100644 --- a/services/observability/model_create_instance_payload.go +++ b/services/observability/model_create_instance_payload.go @@ -68,7 +68,7 @@ func (o *CreateInstancePayload) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CreateInstancePayload) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -100,7 +100,7 @@ func (o *CreateInstancePayload) GetParameterOk() (*map[string]interface{}, bool) // HasParameter returns a boolean if a field has been set. func (o *CreateInstancePayload) HasParameter() bool { - if o != nil && !IsNil(o.Parameter) { + if o != nil && !IsNil(o.Parameter) && !IsNil(o.Parameter) { return true } @@ -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 5c10a66ed..a192cad5f 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 696233f4b..fa321901d 100644 --- a/services/observability/model_create_scrape_config_payload.go +++ b/services/observability/model_create_scrape_config_payload.go @@ -111,7 +111,7 @@ func (o *CreateScrapeConfigPayload) GetBasicAuthOk() (*CreateScrapeConfigPayload // HasBasicAuth returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasBasicAuth() bool { - if o != nil && !IsNil(o.BasicAuth) { + if o != nil && !IsNil(o.BasicAuth) && !IsNil(o.BasicAuth) { return true } @@ -143,7 +143,7 @@ func (o *CreateScrapeConfigPayload) GetBearerTokenOk() (*string, bool) { // HasBearerToken returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasBearerToken() bool { - if o != nil && !IsNil(o.BearerToken) { + if o != nil && !IsNil(o.BearerToken) && !IsNil(o.BearerToken) { return true } @@ -175,7 +175,7 @@ func (o *CreateScrapeConfigPayload) GetHonorLabelsOk() (*bool, bool) { // HasHonorLabels returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasHonorLabels() bool { - if o != nil && !IsNil(o.HonorLabels) { + if o != nil && !IsNil(o.HonorLabels) && !IsNil(o.HonorLabels) { return true } @@ -207,7 +207,7 @@ func (o *CreateScrapeConfigPayload) GetHonorTimeStampsOk() (*bool, bool) { // HasHonorTimeStamps returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasHonorTimeStamps() bool { - if o != nil && !IsNil(o.HonorTimeStamps) { + if o != nil && !IsNil(o.HonorTimeStamps) && !IsNil(o.HonorTimeStamps) { return true } @@ -239,7 +239,7 @@ func (o *CreateScrapeConfigPayload) GetHttpSdConfigsOk() (*[]CreateScrapeConfigP // HasHttpSdConfigs returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasHttpSdConfigs() bool { - if o != nil && !IsNil(o.HttpSdConfigs) { + if o != nil && !IsNil(o.HttpSdConfigs) && !IsNil(o.HttpSdConfigs) { return true } @@ -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 } @@ -295,7 +295,7 @@ func (o *CreateScrapeConfigPayload) GetMetricsPathOk() (*string, bool) { // HasMetricsPath returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasMetricsPath() bool { - if o != nil && !IsNil(o.MetricsPath) { + if o != nil && !IsNil(o.MetricsPath) && !IsNil(o.MetricsPath) { return true } @@ -327,7 +327,7 @@ func (o *CreateScrapeConfigPayload) GetMetricsRelabelConfigsOk() (*[]CreateScrap // HasMetricsRelabelConfigs returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasMetricsRelabelConfigs() bool { - if o != nil && !IsNil(o.MetricsRelabelConfigs) { + if o != nil && !IsNil(o.MetricsRelabelConfigs) && !IsNil(o.MetricsRelabelConfigs) { return true } @@ -359,7 +359,7 @@ func (o *CreateScrapeConfigPayload) GetOauth2Ok() (*CreateScrapeConfigPayloadHtt // HasOauth2 returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasOauth2() bool { - if o != nil && !IsNil(o.Oauth2) { + if o != nil && !IsNil(o.Oauth2) && !IsNil(o.Oauth2) { return true } @@ -391,7 +391,7 @@ func (o *CreateScrapeConfigPayload) GetParamsOk() (*map[string]interface{}, bool // HasParams returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasParams() bool { - if o != nil && !IsNil(o.Params) { + if o != nil && !IsNil(o.Params) && !IsNil(o.Params) { return true } @@ -423,7 +423,7 @@ func (o *CreateScrapeConfigPayload) GetSampleLimitOk() (*float64, bool) { // HasSampleLimit returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasSampleLimit() bool { - if o != nil && !IsNil(o.SampleLimit) { + if o != nil && !IsNil(o.SampleLimit) && !IsNil(o.SampleLimit) { return true } @@ -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 } @@ -551,7 +551,7 @@ func (o *CreateScrapeConfigPayload) GetTlsConfigOk() (*CreateScrapeConfigPayload // HasTlsConfig returns a boolean if a field has been set. func (o *CreateScrapeConfigPayload) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } diff --git a/services/observability/model_create_scrape_config_payload_basic_auth.go b/services/observability/model_create_scrape_config_payload_basic_auth.go index b0c02403f..4fd3636bd 100644 --- a/services/observability/model_create_scrape_config_payload_basic_auth.go +++ b/services/observability/model_create_scrape_config_payload_basic_auth.go @@ -62,7 +62,7 @@ func (o *CreateScrapeConfigPayloadBasicAuth) GetPasswordOk() (*string, bool) { // HasPassword returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadBasicAuth) HasPassword() bool { - if o != nil && !IsNil(o.Password) { + if o != nil && !IsNil(o.Password) && !IsNil(o.Password) { return true } @@ -94,7 +94,7 @@ func (o *CreateScrapeConfigPayloadBasicAuth) GetUsernameOk() (*string, bool) { // HasUsername returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadBasicAuth) HasUsername() bool { - if o != nil && !IsNil(o.Username) { + if o != nil && !IsNil(o.Username) && !IsNil(o.Username) { return true } 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 7d9e8eae3..4c488a39c 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 @@ -73,7 +73,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetBasicAuthOk() (*CreateS // HasBasicAuth returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasBasicAuth() bool { - if o != nil && !IsNil(o.BasicAuth) { + if o != nil && !IsNil(o.BasicAuth) && !IsNil(o.BasicAuth) { return true } @@ -105,7 +105,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetOauth2Ok() (*CreateScra // HasOauth2 returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasOauth2() bool { - if o != nil && !IsNil(o.Oauth2) { + if o != nil && !IsNil(o.Oauth2) && !IsNil(o.Oauth2) { return true } @@ -137,7 +137,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetRefreshIntervalOk() (*s // HasRefreshInterval returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasRefreshInterval() bool { - if o != nil && !IsNil(o.RefreshInterval) { + if o != nil && !IsNil(o.RefreshInterval) && !IsNil(o.RefreshInterval) { return true } @@ -169,7 +169,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) GetTlsConfigOk() (*CreateS // HasTlsConfig returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInner) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } @@ -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 9a3da8c9a..39ec442b8 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 } @@ -123,7 +123,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetScopesOk() (*[]st // HasScopes returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { + if o != nil && !IsNil(o.Scopes) && !IsNil(o.Scopes) { return true } @@ -155,7 +155,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) GetTlsConfigOk() (*C // HasTlsConfig returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } @@ -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_http_sd_configs_inner_oauth2_tls_config.go b/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go index c3a2c03a9..433224e45 100644 --- a/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go +++ b/services/observability/model_create_scrape_config_payload_http_sd_configs_inner_oauth2_tls_config.go @@ -64,7 +64,7 @@ func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) GetInsecure // HasInsecureSkipVerify returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadHttpSdConfigsInnerOauth2TlsConfig) HasInsecureSkipVerify() bool { - if o != nil && !IsNil(o.InsecureSkipVerify) { + if o != nil && !IsNil(o.InsecureSkipVerify) && !IsNil(o.InsecureSkipVerify) { return true } diff --git a/services/observability/model_create_scrape_config_payload_metrics_relabel_configs_inner.go b/services/observability/model_create_scrape_config_payload_metrics_relabel_configs_inner.go index 4fdfc5b99..f9e9c11a1 100644 --- a/services/observability/model_create_scrape_config_payload_metrics_relabel_configs_inner.go +++ b/services/observability/model_create_scrape_config_payload_metrics_relabel_configs_inner.go @@ -88,7 +88,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetActionOk() (*st // HasAction returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasAction() bool { - if o != nil && !IsNil(o.Action) { + if o != nil && !IsNil(o.Action) && !IsNil(o.Action) { return true } @@ -120,7 +120,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetModulusOk() (*f // HasModulus returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasModulus() bool { - if o != nil && !IsNil(o.Modulus) { + if o != nil && !IsNil(o.Modulus) && !IsNil(o.Modulus) { return true } @@ -152,7 +152,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetRegexOk() (*str // HasRegex returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasRegex() bool { - if o != nil && !IsNil(o.Regex) { + if o != nil && !IsNil(o.Regex) && !IsNil(o.Regex) { return true } @@ -184,7 +184,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetReplacementOk() // HasReplacement returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasReplacement() bool { - if o != nil && !IsNil(o.Replacement) { + if o != nil && !IsNil(o.Replacement) && !IsNil(o.Replacement) { return true } @@ -216,7 +216,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSeparatorOk() ( // HasSeparator returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasSeparator() bool { - if o != nil && !IsNil(o.Separator) { + if o != nil && !IsNil(o.Separator) && !IsNil(o.Separator) { return true } @@ -248,7 +248,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetSourceLabelsOk( // HasSourceLabels returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasSourceLabels() bool { - if o != nil && !IsNil(o.SourceLabels) { + if o != nil && !IsNil(o.SourceLabels) && !IsNil(o.SourceLabels) { return true } @@ -280,7 +280,7 @@ func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) GetTargetLabelOk() // HasTargetLabel returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadMetricsRelabelConfigsInner) HasTargetLabel() bool { - if o != nil && !IsNil(o.TargetLabel) { + if o != nil && !IsNil(o.TargetLabel) && !IsNil(o.TargetLabel) { return true } 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 5b13e08ea..8a02a7802 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 @@ -66,7 +66,7 @@ func (o *CreateScrapeConfigPayloadStaticConfigsInner) GetLabelsOk() (*map[string // HasLabels returns a boolean if a field has been set. func (o *CreateScrapeConfigPayloadStaticConfigsInner) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -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 8b03edbfc..225ba8ecb 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 338987e2c..a122c4f61 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 82185e1b1..16f857ca0 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 219601d3b..f6fe0d2c7 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 eafdb97a6..591acbc3c 100644 --- a/services/observability/model_email_config.go +++ b/services/observability/model_email_config.go @@ -73,7 +73,7 @@ func (o *EmailConfig) GetAuthIdentityOk() (*string, bool) { // HasAuthIdentity returns a boolean if a field has been set. func (o *EmailConfig) HasAuthIdentity() bool { - if o != nil && !IsNil(o.AuthIdentity) { + if o != nil && !IsNil(o.AuthIdentity) && !IsNil(o.AuthIdentity) { return true } @@ -105,7 +105,7 @@ func (o *EmailConfig) GetAuthPasswordOk() (*string, bool) { // HasAuthPassword returns a boolean if a field has been set. func (o *EmailConfig) HasAuthPassword() bool { - if o != nil && !IsNil(o.AuthPassword) { + if o != nil && !IsNil(o.AuthPassword) && !IsNil(o.AuthPassword) { return true } @@ -137,7 +137,7 @@ func (o *EmailConfig) GetAuthUsernameOk() (*string, bool) { // HasAuthUsername returns a boolean if a field has been set. func (o *EmailConfig) HasAuthUsername() bool { - if o != nil && !IsNil(o.AuthUsername) { + if o != nil && !IsNil(o.AuthUsername) && !IsNil(o.AuthUsername) { return true } @@ -169,7 +169,7 @@ func (o *EmailConfig) GetFromOk() (*string, bool) { // HasFrom returns a boolean if a field has been set. func (o *EmailConfig) HasFrom() bool { - if o != nil && !IsNil(o.From) { + if o != nil && !IsNil(o.From) && !IsNil(o.From) { return true } @@ -201,7 +201,7 @@ func (o *EmailConfig) GetSendResolvedOk() (*bool, bool) { // HasSendResolved returns a boolean if a field has been set. func (o *EmailConfig) HasSendResolved() bool { - if o != nil && !IsNil(o.SendResolved) { + if o != nil && !IsNil(o.SendResolved) && !IsNil(o.SendResolved) { return true } @@ -233,7 +233,7 @@ func (o *EmailConfig) GetSmarthostOk() (*string, bool) { // HasSmarthost returns a boolean if a field has been set. func (o *EmailConfig) HasSmarthost() bool { - if o != nil && !IsNil(o.Smarthost) { + if o != nil && !IsNil(o.Smarthost) && !IsNil(o.Smarthost) { return true } @@ -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 ff3932cb4..669a38f77 100644 --- a/services/observability/model_error.go +++ b/services/observability/model_error.go @@ -64,7 +64,7 @@ func (o *Error) GetErrorsOk() (*[]map[string]string, bool) { // HasErrors returns a boolean if a field has been set. func (o *Error) HasErrors() bool { - if o != nil && !IsNil(o.Errors) { + if o != nil && !IsNil(o.Errors) && !IsNil(o.Errors) { return true } @@ -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 54e7b5909..e9678eec3 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 d62844ef6..57434eb6b 100644 --- a/services/observability/model_get_credentials_response.go +++ b/services/observability/model_get_credentials_response.go @@ -70,7 +70,7 @@ func (o *GetCredentialsResponse) GetCredentialsInfoOk() (*map[string]string, boo // HasCredentialsInfo returns a boolean if a field has been set. func (o *GetCredentialsResponse) HasCredentialsInfo() bool { - if o != nil && !IsNil(o.CredentialsInfo) { + if o != nil && !IsNil(o.CredentialsInfo) && !IsNil(o.CredentialsInfo) { return true } @@ -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 94394a308..75d095d7f 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) && !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 } @@ -212,7 +221,7 @@ func (o *GetInstanceResponse) GetIsUpdatableOk() (*bool, bool) { // HasIsUpdatable returns a boolean if a field has been set. func (o *GetInstanceResponse) HasIsUpdatable() bool { - if o != nil && !IsNil(o.IsUpdatable) { + if o != nil && !IsNil(o.IsUpdatable) && !IsNil(o.IsUpdatable) { return true } @@ -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 } @@ -268,7 +277,7 @@ func (o *GetInstanceResponse) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *GetInstanceResponse) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -300,7 +309,7 @@ func (o *GetInstanceResponse) GetParametersOk() (*map[string]string, bool) { // HasParameters returns a boolean if a field has been set. func (o *GetInstanceResponse) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) && !IsNil(o.Parameters) { return true } @@ -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 } @@ -380,7 +389,7 @@ func (o *GetInstanceResponse) GetPlanSchemaOk() (*string, bool) { // HasPlanSchema returns a boolean if a field has been set. func (o *GetInstanceResponse) HasPlanSchema() bool { - if o != nil && !IsNil(o.PlanSchema) { + if o != nil && !IsNil(o.PlanSchema) && !IsNil(o.PlanSchema) { return true } @@ -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 79c5c7aef..9a7be62d5 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 e910bccf2..2b0ed5f9a 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_global.go b/services/observability/model_global.go index ca673ade2..22dcfe7f8 100644 --- a/services/observability/model_global.go +++ b/services/observability/model_global.go @@ -70,7 +70,7 @@ func (o *Global) GetOpsgenieApiKeyOk() (*string, bool) { // HasOpsgenieApiKey returns a boolean if a field has been set. func (o *Global) HasOpsgenieApiKey() bool { - if o != nil && !IsNil(o.OpsgenieApiKey) { + if o != nil && !IsNil(o.OpsgenieApiKey) && !IsNil(o.OpsgenieApiKey) { return true } @@ -102,7 +102,7 @@ func (o *Global) GetOpsgenieApiUrlOk() (*string, bool) { // HasOpsgenieApiUrl returns a boolean if a field has been set. func (o *Global) HasOpsgenieApiUrl() bool { - if o != nil && !IsNil(o.OpsgenieApiUrl) { + if o != nil && !IsNil(o.OpsgenieApiUrl) && !IsNil(o.OpsgenieApiUrl) { return true } @@ -134,7 +134,7 @@ func (o *Global) GetResolveTimeoutOk() (*string, bool) { // HasResolveTimeout returns a boolean if a field has been set. func (o *Global) HasResolveTimeout() bool { - if o != nil && !IsNil(o.ResolveTimeout) { + if o != nil && !IsNil(o.ResolveTimeout) && !IsNil(o.ResolveTimeout) { return true } @@ -166,7 +166,7 @@ func (o *Global) GetSmtpAuthIdentityOk() (*string, bool) { // HasSmtpAuthIdentity returns a boolean if a field has been set. func (o *Global) HasSmtpAuthIdentity() bool { - if o != nil && !IsNil(o.SmtpAuthIdentity) { + if o != nil && !IsNil(o.SmtpAuthIdentity) && !IsNil(o.SmtpAuthIdentity) { return true } @@ -198,7 +198,7 @@ func (o *Global) GetSmtpAuthPasswordOk() (*string, bool) { // HasSmtpAuthPassword returns a boolean if a field has been set. func (o *Global) HasSmtpAuthPassword() bool { - if o != nil && !IsNil(o.SmtpAuthPassword) { + if o != nil && !IsNil(o.SmtpAuthPassword) && !IsNil(o.SmtpAuthPassword) { return true } @@ -230,7 +230,7 @@ func (o *Global) GetSmtpAuthUsernameOk() (*string, bool) { // HasSmtpAuthUsername returns a boolean if a field has been set. func (o *Global) HasSmtpAuthUsername() bool { - if o != nil && !IsNil(o.SmtpAuthUsername) { + if o != nil && !IsNil(o.SmtpAuthUsername) && !IsNil(o.SmtpAuthUsername) { return true } @@ -262,7 +262,7 @@ func (o *Global) GetSmtpFromOk() (*string, bool) { // HasSmtpFrom returns a boolean if a field has been set. func (o *Global) HasSmtpFrom() bool { - if o != nil && !IsNil(o.SmtpFrom) { + if o != nil && !IsNil(o.SmtpFrom) && !IsNil(o.SmtpFrom) { return true } @@ -294,7 +294,7 @@ func (o *Global) GetSmtpSmarthostOk() (*string, bool) { // HasSmtpSmarthost returns a boolean if a field has been set. func (o *Global) HasSmtpSmarthost() bool { - if o != nil && !IsNil(o.SmtpSmarthost) { + if o != nil && !IsNil(o.SmtpSmarthost) && !IsNil(o.SmtpSmarthost) { return true } diff --git a/services/observability/model_grafana_configs.go b/services/observability/model_grafana_configs.go index 07caf9273..3964af544 100644 --- a/services/observability/model_grafana_configs.go +++ b/services/observability/model_grafana_configs.go @@ -66,7 +66,7 @@ func (o *GrafanaConfigs) GetGenericOauthOk() (*GrafanaOauth, bool) { // HasGenericOauth returns a boolean if a field has been set. func (o *GrafanaConfigs) HasGenericOauth() bool { - if o != nil && !IsNil(o.GenericOauth) { + if o != nil && !IsNil(o.GenericOauth) && !IsNil(o.GenericOauth) { return true } @@ -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 } @@ -122,7 +122,7 @@ func (o *GrafanaConfigs) GetPublicReadAccessOk() (*bool, bool) { // HasPublicReadAccess returns a boolean if a field has been set. func (o *GrafanaConfigs) HasPublicReadAccess() bool { - if o != nil && !IsNil(o.PublicReadAccess) { + if o != nil && !IsNil(o.PublicReadAccess) && !IsNil(o.PublicReadAccess) { return true } @@ -154,7 +154,7 @@ func (o *GrafanaConfigs) GetUseStackitSsoOk() (*bool, bool) { // HasUseStackitSso returns a boolean if a field has been set. func (o *GrafanaConfigs) HasUseStackitSso() bool { - if o != nil && !IsNil(o.UseStackitSso) { + if o != nil && !IsNil(o.UseStackitSso) && !IsNil(o.UseStackitSso) { return true } diff --git a/services/observability/model_grafana_oauth.go b/services/observability/model_grafana_oauth.go index fb0d764c1..147550827 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 } @@ -165,7 +165,7 @@ func (o *GrafanaOauth) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *GrafanaOauth) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 } @@ -269,7 +269,7 @@ func (o *GrafanaOauth) GetRoleAttributeStrictOk() (*bool, bool) { // HasRoleAttributeStrict returns a boolean if a field has been set. func (o *GrafanaOauth) HasRoleAttributeStrict() bool { - if o != nil && !IsNil(o.RoleAttributeStrict) { + if o != nil && !IsNil(o.RoleAttributeStrict) && !IsNil(o.RoleAttributeStrict) { return true } @@ -301,7 +301,7 @@ func (o *GrafanaOauth) GetScopesOk() (*string, bool) { // HasScopes returns a boolean if a field has been set. func (o *GrafanaOauth) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { + if o != nil && !IsNil(o.Scopes) && !IsNil(o.Scopes) { return true } @@ -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 } @@ -357,7 +357,7 @@ func (o *GrafanaOauth) GetUsePkceOk() (*bool, bool) { // HasUsePkce returns a boolean if a field has been set. func (o *GrafanaOauth) HasUsePkce() bool { - if o != nil && !IsNil(o.UsePkce) { + if o != nil && !IsNil(o.UsePkce) && !IsNil(o.UsePkce) { return true } diff --git a/services/observability/model_http_service_sd.go b/services/observability/model_http_service_sd.go index a89427428..01de62f02 100644 --- a/services/observability/model_http_service_sd.go +++ b/services/observability/model_http_service_sd.go @@ -71,7 +71,7 @@ func (o *HTTPServiceSD) GetBasicAuthOk() (*BasicAuth, bool) { // HasBasicAuth returns a boolean if a field has been set. func (o *HTTPServiceSD) HasBasicAuth() bool { - if o != nil && !IsNil(o.BasicAuth) { + if o != nil && !IsNil(o.BasicAuth) && !IsNil(o.BasicAuth) { return true } @@ -103,7 +103,7 @@ func (o *HTTPServiceSD) GetOauth2Ok() (*OAuth2, bool) { // HasOauth2 returns a boolean if a field has been set. func (o *HTTPServiceSD) HasOauth2() bool { - if o != nil && !IsNil(o.Oauth2) { + if o != nil && !IsNil(o.Oauth2) && !IsNil(o.Oauth2) { return true } @@ -135,7 +135,7 @@ func (o *HTTPServiceSD) GetRefreshIntervalOk() (*string, bool) { // HasRefreshInterval returns a boolean if a field has been set. func (o *HTTPServiceSD) HasRefreshInterval() bool { - if o != nil && !IsNil(o.RefreshInterval) { + if o != nil && !IsNil(o.RefreshInterval) && !IsNil(o.RefreshInterval) { return true } @@ -167,7 +167,7 @@ func (o *HTTPServiceSD) GetTlsConfigOk() (*TLSConfig, bool) { // HasTlsConfig returns a boolean if a field has been set. func (o *HTTPServiceSD) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } @@ -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_inhibit_rules.go b/services/observability/model_inhibit_rules.go index 18e0c2a5a..58b85ea7a 100644 --- a/services/observability/model_inhibit_rules.go +++ b/services/observability/model_inhibit_rules.go @@ -65,7 +65,7 @@ func (o *InhibitRules) GetEqualOk() (*[]string, bool) { // HasEqual returns a boolean if a field has been set. func (o *InhibitRules) HasEqual() bool { - if o != nil && !IsNil(o.Equal) { + if o != nil && !IsNil(o.Equal) && !IsNil(o.Equal) { return true } @@ -97,7 +97,7 @@ func (o *InhibitRules) GetSourceMatchOk() (*map[string]string, bool) { // HasSourceMatch returns a boolean if a field has been set. func (o *InhibitRules) HasSourceMatch() bool { - if o != nil && !IsNil(o.SourceMatch) { + if o != nil && !IsNil(o.SourceMatch) && !IsNil(o.SourceMatch) { return true } @@ -129,7 +129,7 @@ func (o *InhibitRules) GetSourceMatchReOk() (*map[string]string, bool) { // HasSourceMatchRe returns a boolean if a field has been set. func (o *InhibitRules) HasSourceMatchRe() bool { - if o != nil && !IsNil(o.SourceMatchRe) { + if o != nil && !IsNil(o.SourceMatchRe) && !IsNil(o.SourceMatchRe) { return true } @@ -161,7 +161,7 @@ func (o *InhibitRules) GetSourceMatchersOk() (*[]string, bool) { // HasSourceMatchers returns a boolean if a field has been set. func (o *InhibitRules) HasSourceMatchers() bool { - if o != nil && !IsNil(o.SourceMatchers) { + if o != nil && !IsNil(o.SourceMatchers) && !IsNil(o.SourceMatchers) { return true } @@ -193,7 +193,7 @@ func (o *InhibitRules) GetTargetMatchOk() (*map[string]string, bool) { // HasTargetMatch returns a boolean if a field has been set. func (o *InhibitRules) HasTargetMatch() bool { - if o != nil && !IsNil(o.TargetMatch) { + if o != nil && !IsNil(o.TargetMatch) && !IsNil(o.TargetMatch) { return true } @@ -225,7 +225,7 @@ func (o *InhibitRules) GetTargetMatchReOk() (*map[string]string, bool) { // HasTargetMatchRe returns a boolean if a field has been set. func (o *InhibitRules) HasTargetMatchRe() bool { - if o != nil && !IsNil(o.TargetMatchRe) { + if o != nil && !IsNil(o.TargetMatchRe) && !IsNil(o.TargetMatchRe) { return true } @@ -257,7 +257,7 @@ func (o *InhibitRules) GetTargetMatchersOk() (*[]string, bool) { // HasTargetMatchers returns a boolean if a field has been set. func (o *InhibitRules) HasTargetMatchers() bool { - if o != nil && !IsNil(o.TargetMatchers) { + if o != nil && !IsNil(o.TargetMatchers) && !IsNil(o.TargetMatchers) { return true } diff --git a/services/observability/model_instance.go b/services/observability/model_instance.go index 20ea53d13..1905f6e86 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 } @@ -254,7 +254,7 @@ func (o *Instance) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Instance) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 } @@ -310,7 +310,7 @@ func (o *Instance) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *Instance) HasState() bool { - if o != nil && !IsNil(o.State) { + if o != nil && !IsNil(o.State) && !IsNil(o.State) { return true } diff --git a/services/observability/model_instance_response.go b/services/observability/model_instance_response.go index 27f7f8fdf..b7dae3720 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 3d6847196..04c45ed66 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 } @@ -539,7 +539,7 @@ func (o *InstanceSensitiveData) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *InstanceSensitiveData) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 ed6597b11..a77dd7fda 100644 --- a/services/observability/model_job.go +++ b/services/observability/model_job.go @@ -100,7 +100,7 @@ func (o *Job) GetBasicAuthOk() (*BasicAuth, bool) { // HasBasicAuth returns a boolean if a field has been set. func (o *Job) HasBasicAuth() bool { - if o != nil && !IsNil(o.BasicAuth) { + if o != nil && !IsNil(o.BasicAuth) && !IsNil(o.BasicAuth) { return true } @@ -132,7 +132,7 @@ func (o *Job) GetBearerTokenOk() (*string, bool) { // HasBearerToken returns a boolean if a field has been set. func (o *Job) HasBearerToken() bool { - if o != nil && !IsNil(o.BearerToken) { + if o != nil && !IsNil(o.BearerToken) && !IsNil(o.BearerToken) { return true } @@ -164,7 +164,7 @@ func (o *Job) GetHonorLabelsOk() (*bool, bool) { // HasHonorLabels returns a boolean if a field has been set. func (o *Job) HasHonorLabels() bool { - if o != nil && !IsNil(o.HonorLabels) { + if o != nil && !IsNil(o.HonorLabels) && !IsNil(o.HonorLabels) { return true } @@ -196,7 +196,7 @@ func (o *Job) GetHonorTimeStampsOk() (*bool, bool) { // HasHonorTimeStamps returns a boolean if a field has been set. func (o *Job) HasHonorTimeStamps() bool { - if o != nil && !IsNil(o.HonorTimeStamps) { + if o != nil && !IsNil(o.HonorTimeStamps) && !IsNil(o.HonorTimeStamps) { return true } @@ -228,7 +228,7 @@ func (o *Job) GetHttpSdConfigsOk() (*[]HTTPServiceSD, bool) { // HasHttpSdConfigs returns a boolean if a field has been set. func (o *Job) HasHttpSdConfigs() bool { - if o != nil && !IsNil(o.HttpSdConfigs) { + if o != nil && !IsNil(o.HttpSdConfigs) && !IsNil(o.HttpSdConfigs) { return true } @@ -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 } @@ -284,7 +284,7 @@ func (o *Job) GetMetricsPathOk() (*string, bool) { // HasMetricsPath returns a boolean if a field has been set. func (o *Job) HasMetricsPath() bool { - if o != nil && !IsNil(o.MetricsPath) { + if o != nil && !IsNil(o.MetricsPath) && !IsNil(o.MetricsPath) { return true } @@ -316,7 +316,7 @@ func (o *Job) GetMetricsRelabelConfigsOk() (*[]MetricsRelabelConfig, bool) { // HasMetricsRelabelConfigs returns a boolean if a field has been set. func (o *Job) HasMetricsRelabelConfigs() bool { - if o != nil && !IsNil(o.MetricsRelabelConfigs) { + if o != nil && !IsNil(o.MetricsRelabelConfigs) && !IsNil(o.MetricsRelabelConfigs) { return true } @@ -348,7 +348,7 @@ func (o *Job) GetOauth2Ok() (*OAuth2, bool) { // HasOauth2 returns a boolean if a field has been set. func (o *Job) HasOauth2() bool { - if o != nil && !IsNil(o.Oauth2) { + if o != nil && !IsNil(o.Oauth2) && !IsNil(o.Oauth2) { return true } @@ -380,7 +380,7 @@ func (o *Job) GetParamsOk() (*map[string][]string, bool) { // HasParams returns a boolean if a field has been set. func (o *Job) HasParams() bool { - if o != nil && !IsNil(o.Params) { + if o != nil && !IsNil(o.Params) && !IsNil(o.Params) { return true } @@ -412,7 +412,7 @@ func (o *Job) GetSampleLimitOk() (*int64, bool) { // HasSampleLimit returns a boolean if a field has been set. func (o *Job) HasSampleLimit() bool { - if o != nil && !IsNil(o.SampleLimit) { + if o != nil && !IsNil(o.SampleLimit) && !IsNil(o.SampleLimit) { return true } @@ -444,7 +444,7 @@ func (o *Job) GetSchemeOk() (*string, bool) { // HasScheme returns a boolean if a field has been set. func (o *Job) HasScheme() bool { - if o != nil && !IsNil(o.Scheme) { + if o != nil && !IsNil(o.Scheme) && !IsNil(o.Scheme) { return true } @@ -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 } @@ -548,7 +548,7 @@ func (o *Job) GetTlsConfigOk() (*TLSConfig, bool) { // HasTlsConfig returns a boolean if a field has been set. func (o *Job) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } diff --git a/services/observability/model_list_acl_response.go b/services/observability/model_list_acl_response.go index 6e9696b27..4d0af3398 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 c370646b7..ee7c7f1a2 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 56c544e4f..258d05e2e 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 4bea64ad0..b084287eb 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 3002d0dd2..408404dae 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 dadb0df4e..5cdd948d9 100644 --- a/services/observability/model_metrics_relabel_config.go +++ b/services/observability/model_metrics_relabel_config.go @@ -85,7 +85,7 @@ func (o *MetricsRelabelConfig) GetActionOk() (*string, bool) { // HasAction returns a boolean if a field has been set. func (o *MetricsRelabelConfig) HasAction() bool { - if o != nil && !IsNil(o.Action) { + if o != nil && !IsNil(o.Action) && !IsNil(o.Action) { return true } @@ -117,7 +117,7 @@ func (o *MetricsRelabelConfig) GetModulusOk() (*int64, bool) { // HasModulus returns a boolean if a field has been set. func (o *MetricsRelabelConfig) HasModulus() bool { - if o != nil && !IsNil(o.Modulus) { + if o != nil && !IsNil(o.Modulus) && !IsNil(o.Modulus) { return true } @@ -149,7 +149,7 @@ func (o *MetricsRelabelConfig) GetRegexOk() (*string, bool) { // HasRegex returns a boolean if a field has been set. func (o *MetricsRelabelConfig) HasRegex() bool { - if o != nil && !IsNil(o.Regex) { + if o != nil && !IsNil(o.Regex) && !IsNil(o.Regex) { return true } @@ -181,7 +181,7 @@ func (o *MetricsRelabelConfig) GetReplacementOk() (*string, bool) { // HasReplacement returns a boolean if a field has been set. func (o *MetricsRelabelConfig) HasReplacement() bool { - if o != nil && !IsNil(o.Replacement) { + if o != nil && !IsNil(o.Replacement) && !IsNil(o.Replacement) { return true } @@ -213,7 +213,7 @@ func (o *MetricsRelabelConfig) GetSeparatorOk() (*string, bool) { // HasSeparator returns a boolean if a field has been set. func (o *MetricsRelabelConfig) HasSeparator() bool { - if o != nil && !IsNil(o.Separator) { + if o != nil && !IsNil(o.Separator) && !IsNil(o.Separator) { return true } @@ -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 } @@ -269,7 +269,7 @@ func (o *MetricsRelabelConfig) GetTargetLabelOk() (*string, bool) { // HasTargetLabel returns a boolean if a field has been set. func (o *MetricsRelabelConfig) HasTargetLabel() bool { - if o != nil && !IsNil(o.TargetLabel) { + if o != nil && !IsNil(o.TargetLabel) && !IsNil(o.TargetLabel) { return true } diff --git a/services/observability/model_o_auth2.go b/services/observability/model_o_auth2.go index e5df143a4..b6862e8d4 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 } @@ -119,7 +119,7 @@ func (o *OAuth2) GetScopesOk() (*[]string, bool) { // HasScopes returns a boolean if a field has been set. func (o *OAuth2) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { + if o != nil && !IsNil(o.Scopes) && !IsNil(o.Scopes) { return true } @@ -151,7 +151,7 @@ func (o *OAuth2) GetTlsConfigOk() (*TLSConfig, bool) { // HasTlsConfig returns a boolean if a field has been set. func (o *OAuth2) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } @@ -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_opsgenie_config.go b/services/observability/model_opsgenie_config.go index ca8f7d2ab..4749915de 100644 --- a/services/observability/model_opsgenie_config.go +++ b/services/observability/model_opsgenie_config.go @@ -67,7 +67,7 @@ func (o *OpsgenieConfig) GetApiKeyOk() (*string, bool) { // HasApiKey returns a boolean if a field has been set. func (o *OpsgenieConfig) HasApiKey() bool { - if o != nil && !IsNil(o.ApiKey) { + if o != nil && !IsNil(o.ApiKey) && !IsNil(o.ApiKey) { return true } @@ -99,7 +99,7 @@ func (o *OpsgenieConfig) GetApiUrlOk() (*string, bool) { // HasApiUrl returns a boolean if a field has been set. func (o *OpsgenieConfig) HasApiUrl() bool { - if o != nil && !IsNil(o.ApiUrl) { + if o != nil && !IsNil(o.ApiUrl) && !IsNil(o.ApiUrl) { return true } @@ -131,7 +131,7 @@ func (o *OpsgenieConfig) GetPriorityOk() (*string, bool) { // HasPriority returns a boolean if a field has been set. func (o *OpsgenieConfig) HasPriority() bool { - if o != nil && !IsNil(o.Priority) { + if o != nil && !IsNil(o.Priority) && !IsNil(o.Priority) { return true } @@ -163,7 +163,7 @@ func (o *OpsgenieConfig) GetSendResolvedOk() (*bool, bool) { // HasSendResolved returns a boolean if a field has been set. func (o *OpsgenieConfig) HasSendResolved() bool { - if o != nil && !IsNil(o.SendResolved) { + if o != nil && !IsNil(o.SendResolved) && !IsNil(o.SendResolved) { return true } @@ -195,7 +195,7 @@ func (o *OpsgenieConfig) GetTagsOk() (*string, bool) { // HasTags returns a boolean if a field has been set. func (o *OpsgenieConfig) HasTags() bool { - if o != nil && !IsNil(o.Tags) { + if o != nil && !IsNil(o.Tags) && !IsNil(o.Tags) { return true } diff --git a/services/observability/model_permission_denied.go b/services/observability/model_permission_denied.go index 8a57d2a74..ff34192fb 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 dceb6fe11..e89c83d13 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 } @@ -198,7 +198,7 @@ func (o *Plan) GetAmountOk() (*float64, bool) { // HasAmount returns a boolean if a field has been set. func (o *Plan) HasAmount() bool { - if o != nil && !IsNil(o.Amount) { + if o != nil && !IsNil(o.Amount) && !IsNil(o.Amount) { return true } @@ -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 } @@ -254,7 +254,7 @@ func (o *Plan) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Plan) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -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 } @@ -406,7 +406,7 @@ func (o *Plan) GetIsFreeOk() (*bool, bool) { // HasIsFree returns a boolean if a field has been set. func (o *Plan) HasIsFree() bool { - if o != nil && !IsNil(o.IsFree) { + if o != nil && !IsNil(o.IsFree) && !IsNil(o.IsFree) { return true } @@ -438,7 +438,7 @@ func (o *Plan) GetIsPublicOk() (*bool, bool) { // HasIsPublic returns a boolean if a field has been set. func (o *Plan) HasIsPublic() bool { - if o != nil && !IsNil(o.IsPublic) { + if o != nil && !IsNil(o.IsPublic) && !IsNil(o.IsPublic) { return true } @@ -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 } @@ -518,7 +518,7 @@ func (o *Plan) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Plan) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 } @@ -598,7 +598,7 @@ func (o *Plan) GetSchemaOk() (*string, bool) { // HasSchema returns a boolean if a field has been set. func (o *Plan) HasSchema() bool { - if o != nil && !IsNil(o.Schema) { + if o != nil && !IsNil(o.Schema) && !IsNil(o.Schema) { return true } @@ -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 172915ab5..ec0cb3c9d 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 } @@ -183,7 +183,7 @@ func (o *PlanModel) GetAmountOk() (*float64, bool) { // HasAmount returns a boolean if a field has been set. func (o *PlanModel) HasAmount() bool { - if o != nil && !IsNil(o.Amount) { + if o != nil && !IsNil(o.Amount) && !IsNil(o.Amount) { return true } @@ -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 } @@ -239,7 +239,7 @@ func (o *PlanModel) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *PlanModel) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -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 } @@ -439,7 +439,7 @@ func (o *PlanModel) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PlanModel) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 bef6b9a4c..076fb663e 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 7391184ea..3a3c1fcab 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) && !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 } @@ -168,7 +177,7 @@ func (o *ProjectInstanceFull) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ProjectInstanceFull) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 8ad00a153..9d07f0b9c 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 bbac735a5..d6c64a6df 100644 --- a/services/observability/model_receivers.go +++ b/services/observability/model_receivers.go @@ -66,7 +66,7 @@ func (o *Receivers) GetEmailConfigsOk() (*[]EmailConfig, bool) { // HasEmailConfigs returns a boolean if a field has been set. func (o *Receivers) HasEmailConfigs() bool { - if o != nil && !IsNil(o.EmailConfigs) { + if o != nil && !IsNil(o.EmailConfigs) && !IsNil(o.EmailConfigs) { return true } @@ -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 } @@ -122,7 +122,7 @@ func (o *Receivers) GetOpsgenieConfigsOk() (*[]OpsgenieConfig, bool) { // HasOpsgenieConfigs returns a boolean if a field has been set. func (o *Receivers) HasOpsgenieConfigs() bool { - if o != nil && !IsNil(o.OpsgenieConfigs) { + if o != nil && !IsNil(o.OpsgenieConfigs) && !IsNil(o.OpsgenieConfigs) { return true } @@ -154,7 +154,7 @@ func (o *Receivers) GetWebHookConfigsOk() (*[]WebHook, bool) { // HasWebHookConfigs returns a boolean if a field has been set. func (o *Receivers) HasWebHookConfigs() bool { - if o != nil && !IsNil(o.WebHookConfigs) { + if o != nil && !IsNil(o.WebHookConfigs) && !IsNil(o.WebHookConfigs) { return true } diff --git a/services/observability/model_route.go b/services/observability/model_route.go index 0502f880f..0a987d2ac 100644 --- a/services/observability/model_route.go +++ b/services/observability/model_route.go @@ -87,7 +87,7 @@ func (o *Route) GetContinueOk() (*bool, bool) { // HasContinue returns a boolean if a field has been set. func (o *Route) HasContinue() bool { - if o != nil && !IsNil(o.Continue) { + if o != nil && !IsNil(o.Continue) && !IsNil(o.Continue) { return true } @@ -119,7 +119,7 @@ func (o *Route) GetGroupByOk() (*[]string, bool) { // HasGroupBy returns a boolean if a field has been set. func (o *Route) HasGroupBy() bool { - if o != nil && !IsNil(o.GroupBy) { + if o != nil && !IsNil(o.GroupBy) && !IsNil(o.GroupBy) { return true } @@ -151,7 +151,7 @@ func (o *Route) GetGroupIntervalOk() (*string, bool) { // HasGroupInterval returns a boolean if a field has been set. func (o *Route) HasGroupInterval() bool { - if o != nil && !IsNil(o.GroupInterval) { + if o != nil && !IsNil(o.GroupInterval) && !IsNil(o.GroupInterval) { return true } @@ -183,7 +183,7 @@ func (o *Route) GetGroupWaitOk() (*string, bool) { // HasGroupWait returns a boolean if a field has been set. func (o *Route) HasGroupWait() bool { - if o != nil && !IsNil(o.GroupWait) { + if o != nil && !IsNil(o.GroupWait) && !IsNil(o.GroupWait) { return true } @@ -215,7 +215,7 @@ func (o *Route) GetMatchOk() (*map[string]string, bool) { // HasMatch returns a boolean if a field has been set. func (o *Route) HasMatch() bool { - if o != nil && !IsNil(o.Match) { + if o != nil && !IsNil(o.Match) && !IsNil(o.Match) { return true } @@ -247,7 +247,7 @@ func (o *Route) GetMatchReOk() (*map[string]string, bool) { // HasMatchRe returns a boolean if a field has been set. func (o *Route) HasMatchRe() bool { - if o != nil && !IsNil(o.MatchRe) { + if o != nil && !IsNil(o.MatchRe) && !IsNil(o.MatchRe) { return true } @@ -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 } @@ -303,7 +303,7 @@ func (o *Route) GetRepeatIntervalOk() (*string, bool) { // HasRepeatInterval returns a boolean if a field has been set. func (o *Route) HasRepeatInterval() bool { - if o != nil && !IsNil(o.RepeatInterval) { + if o != nil && !IsNil(o.RepeatInterval) && !IsNil(o.RepeatInterval) { return true } @@ -335,7 +335,7 @@ func (o *Route) GetRoutesOk() (*[]RouteSerializer, bool) { // HasRoutes returns a boolean if a field has been set. func (o *Route) HasRoutes() bool { - if o != nil && !IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) && !IsNil(o.Routes) { return true } diff --git a/services/observability/model_route_serializer.go b/services/observability/model_route_serializer.go index ae5ab89ff..640fc5648 100644 --- a/services/observability/model_route_serializer.go +++ b/services/observability/model_route_serializer.go @@ -88,7 +88,7 @@ func (o *RouteSerializer) GetContinueOk() (*bool, bool) { // HasContinue returns a boolean if a field has been set. func (o *RouteSerializer) HasContinue() bool { - if o != nil && !IsNil(o.Continue) { + if o != nil && !IsNil(o.Continue) && !IsNil(o.Continue) { return true } @@ -120,7 +120,7 @@ func (o *RouteSerializer) GetGroupByOk() (*[]string, bool) { // HasGroupBy returns a boolean if a field has been set. func (o *RouteSerializer) HasGroupBy() bool { - if o != nil && !IsNil(o.GroupBy) { + if o != nil && !IsNil(o.GroupBy) && !IsNil(o.GroupBy) { return true } @@ -152,7 +152,7 @@ func (o *RouteSerializer) GetGroupIntervalOk() (*string, bool) { // HasGroupInterval returns a boolean if a field has been set. func (o *RouteSerializer) HasGroupInterval() bool { - if o != nil && !IsNil(o.GroupInterval) { + if o != nil && !IsNil(o.GroupInterval) && !IsNil(o.GroupInterval) { return true } @@ -184,7 +184,7 @@ func (o *RouteSerializer) GetGroupWaitOk() (*string, bool) { // HasGroupWait returns a boolean if a field has been set. func (o *RouteSerializer) HasGroupWait() bool { - if o != nil && !IsNil(o.GroupWait) { + if o != nil && !IsNil(o.GroupWait) && !IsNil(o.GroupWait) { return true } @@ -216,7 +216,7 @@ func (o *RouteSerializer) GetMatchOk() (*map[string]string, bool) { // HasMatch returns a boolean if a field has been set. func (o *RouteSerializer) HasMatch() bool { - if o != nil && !IsNil(o.Match) { + if o != nil && !IsNil(o.Match) && !IsNil(o.Match) { return true } @@ -248,7 +248,7 @@ func (o *RouteSerializer) GetMatchReOk() (*map[string]string, bool) { // HasMatchRe returns a boolean if a field has been set. func (o *RouteSerializer) HasMatchRe() bool { - if o != nil && !IsNil(o.MatchRe) { + if o != nil && !IsNil(o.MatchRe) && !IsNil(o.MatchRe) { return true } @@ -280,7 +280,7 @@ func (o *RouteSerializer) GetMatchersOk() (*[]string, bool) { // HasMatchers returns a boolean if a field has been set. func (o *RouteSerializer) HasMatchers() bool { - if o != nil && !IsNil(o.Matchers) { + if o != nil && !IsNil(o.Matchers) && !IsNil(o.Matchers) { return true } @@ -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 } @@ -336,7 +336,7 @@ func (o *RouteSerializer) GetRepeatIntervalOk() (*string, bool) { // HasRepeatInterval returns a boolean if a field has been set. func (o *RouteSerializer) HasRepeatInterval() bool { - if o != nil && !IsNil(o.RepeatInterval) { + if o != nil && !IsNil(o.RepeatInterval) && !IsNil(o.RepeatInterval) { return true } @@ -368,7 +368,7 @@ func (o *RouteSerializer) GetRoutesOk() (*[]map[string]string, bool) { // HasRoutes returns a boolean if a field has been set. func (o *RouteSerializer) HasRoutes() bool { - if o != nil && !IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) && !IsNil(o.Routes) { return true } diff --git a/services/observability/model_scrape_configs_response.go b/services/observability/model_scrape_configs_response.go index 9a51df2a6..b58fa3a37 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 7c62d4c0d..f11c6b70a 100644 --- a/services/observability/model_service_keys_list.go +++ b/services/observability/model_service_keys_list.go @@ -67,7 +67,7 @@ func (o *ServiceKeysList) GetCredentialsInfoOk() (*map[string]string, bool) { // HasCredentialsInfo returns a boolean if a field has been set. func (o *ServiceKeysList) HasCredentialsInfo() bool { - if o != nil && !IsNil(o.CredentialsInfo) { + if o != nil && !IsNil(o.CredentialsInfo) && !IsNil(o.CredentialsInfo) { return true } @@ -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 1b4bcf187..35a680c56 100644 --- a/services/observability/model_static_configs.go +++ b/services/observability/model_static_configs.go @@ -64,7 +64,7 @@ func (o *StaticConfigs) GetLabelsOk() (*map[string]string, bool) { // HasLabels returns a boolean if a field has been set. func (o *StaticConfigs) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -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_tls_config.go b/services/observability/model_tls_config.go index ff47b7e6f..be1782426 100644 --- a/services/observability/model_tls_config.go +++ b/services/observability/model_tls_config.go @@ -63,7 +63,7 @@ func (o *TLSConfig) GetInsecureSkipVerifyOk() (*bool, bool) { // HasInsecureSkipVerify returns a boolean if a field has been set. func (o *TLSConfig) HasInsecureSkipVerify() bool { - if o != nil && !IsNil(o.InsecureSkipVerify) { + if o != nil && !IsNil(o.InsecureSkipVerify) && !IsNil(o.InsecureSkipVerify) { return true } diff --git a/services/observability/model_update_acl_payload.go b/services/observability/model_update_acl_payload.go index 025b6548e..68975d0c4 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 7e6b7eb8d..785de4875 100644 --- a/services/observability/model_update_alert_config_receiver_payload.go +++ b/services/observability/model_update_alert_config_receiver_payload.go @@ -69,7 +69,7 @@ func (o *UpdateAlertConfigReceiverPayload) GetEmailConfigsOk() (*[]CreateAlertCo // HasEmailConfigs returns a boolean if a field has been set. func (o *UpdateAlertConfigReceiverPayload) HasEmailConfigs() bool { - if o != nil && !IsNil(o.EmailConfigs) { + if o != nil && !IsNil(o.EmailConfigs) && !IsNil(o.EmailConfigs) { return true } @@ -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 } @@ -125,7 +125,7 @@ func (o *UpdateAlertConfigReceiverPayload) GetOpsgenieConfigsOk() (*[]CreateAler // HasOpsgenieConfigs returns a boolean if a field has been set. func (o *UpdateAlertConfigReceiverPayload) HasOpsgenieConfigs() bool { - if o != nil && !IsNil(o.OpsgenieConfigs) { + if o != nil && !IsNil(o.OpsgenieConfigs) && !IsNil(o.OpsgenieConfigs) { return true } @@ -157,7 +157,7 @@ func (o *UpdateAlertConfigReceiverPayload) GetWebHookConfigsOk() (*[]CreateAlert // HasWebHookConfigs returns a boolean if a field has been set. func (o *UpdateAlertConfigReceiverPayload) HasWebHookConfigs() bool { - if o != nil && !IsNil(o.WebHookConfigs) { + if o != nil && !IsNil(o.WebHookConfigs) && !IsNil(o.WebHookConfigs) { return true } diff --git a/services/observability/model_update_alert_config_route_payload.go b/services/observability/model_update_alert_config_route_payload.go index 4e24e289b..489f78182 100644 --- a/services/observability/model_update_alert_config_route_payload.go +++ b/services/observability/model_update_alert_config_route_payload.go @@ -92,7 +92,7 @@ func (o *UpdateAlertConfigRoutePayload) GetGroupByOk() (*[]string, bool) { // HasGroupBy returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasGroupBy() bool { - if o != nil && !IsNil(o.GroupBy) { + if o != nil && !IsNil(o.GroupBy) && !IsNil(o.GroupBy) { return true } @@ -124,7 +124,7 @@ func (o *UpdateAlertConfigRoutePayload) GetGroupIntervalOk() (*string, bool) { // HasGroupInterval returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasGroupInterval() bool { - if o != nil && !IsNil(o.GroupInterval) { + if o != nil && !IsNil(o.GroupInterval) && !IsNil(o.GroupInterval) { return true } @@ -156,7 +156,7 @@ func (o *UpdateAlertConfigRoutePayload) GetGroupWaitOk() (*string, bool) { // HasGroupWait returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasGroupWait() bool { - if o != nil && !IsNil(o.GroupWait) { + if o != nil && !IsNil(o.GroupWait) && !IsNil(o.GroupWait) { return true } @@ -188,7 +188,7 @@ func (o *UpdateAlertConfigRoutePayload) GetMatchOk() (*map[string]interface{}, b // HasMatch returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasMatch() bool { - if o != nil && !IsNil(o.Match) { + if o != nil && !IsNil(o.Match) && !IsNil(o.Match) { return true } @@ -220,7 +220,7 @@ func (o *UpdateAlertConfigRoutePayload) GetMatchReOk() (*map[string]interface{}, // HasMatchRe returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasMatchRe() bool { - if o != nil && !IsNil(o.MatchRe) { + if o != nil && !IsNil(o.MatchRe) && !IsNil(o.MatchRe) { return true } @@ -252,7 +252,7 @@ func (o *UpdateAlertConfigRoutePayload) GetMatchersOk() (*[]string, bool) { // HasMatchers returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasMatchers() bool { - if o != nil && !IsNil(o.Matchers) { + if o != nil && !IsNil(o.Matchers) && !IsNil(o.Matchers) { return true } @@ -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 } @@ -308,7 +308,7 @@ func (o *UpdateAlertConfigRoutePayload) GetRepeatIntervalOk() (*string, bool) { // HasRepeatInterval returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasRepeatInterval() bool { - if o != nil && !IsNil(o.RepeatInterval) { + if o != nil && !IsNil(o.RepeatInterval) && !IsNil(o.RepeatInterval) { return true } @@ -340,7 +340,7 @@ func (o *UpdateAlertConfigRoutePayload) GetRoutesOk() (*[]CreateAlertConfigRoute // HasRoutes returns a boolean if a field has been set. func (o *UpdateAlertConfigRoutePayload) HasRoutes() bool { - if o != nil && !IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) && !IsNil(o.Routes) { return true } diff --git a/services/observability/model_update_alert_configs_payload.go b/services/observability/model_update_alert_configs_payload.go index 18fa5b5a7..a815c0ee6 100644 --- a/services/observability/model_update_alert_configs_payload.go +++ b/services/observability/model_update_alert_configs_payload.go @@ -69,7 +69,7 @@ func (o *UpdateAlertConfigsPayload) GetGlobalOk() (*UpdateAlertConfigsPayloadGlo // HasGlobal returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayload) HasGlobal() bool { - if o != nil && !IsNil(o.Global) { + if o != nil && !IsNil(o.Global) && !IsNil(o.Global) { return true } @@ -101,7 +101,7 @@ func (o *UpdateAlertConfigsPayload) GetInhibitRulesOk() (*UpdateAlertConfigsPayl // HasInhibitRules returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayload) HasInhibitRules() bool { - if o != nil && !IsNil(o.InhibitRules) { + if o != nil && !IsNil(o.InhibitRules) && !IsNil(o.InhibitRules) { return true } @@ -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_global.go b/services/observability/model_update_alert_configs_payload_global.go index b2d135b4c..7d0fff746 100644 --- a/services/observability/model_update_alert_configs_payload_global.go +++ b/services/observability/model_update_alert_configs_payload_global.go @@ -78,7 +78,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiKeyOk() (*string, bool) // HasOpsgenieApiKey returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasOpsgenieApiKey() bool { - if o != nil && !IsNil(o.OpsgenieApiKey) { + if o != nil && !IsNil(o.OpsgenieApiKey) && !IsNil(o.OpsgenieApiKey) { return true } @@ -110,7 +110,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetOpsgenieApiUrlOk() (*string, bool) // HasOpsgenieApiUrl returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasOpsgenieApiUrl() bool { - if o != nil && !IsNil(o.OpsgenieApiUrl) { + if o != nil && !IsNil(o.OpsgenieApiUrl) && !IsNil(o.OpsgenieApiUrl) { return true } @@ -142,7 +142,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetResolveTimeoutOk() (*string, bool) // HasResolveTimeout returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasResolveTimeout() bool { - if o != nil && !IsNil(o.ResolveTimeout) { + if o != nil && !IsNil(o.ResolveTimeout) && !IsNil(o.ResolveTimeout) { return true } @@ -174,7 +174,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthIdentityOk() (*string, bool // HasSmtpAuthIdentity returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthIdentity() bool { - if o != nil && !IsNil(o.SmtpAuthIdentity) { + if o != nil && !IsNil(o.SmtpAuthIdentity) && !IsNil(o.SmtpAuthIdentity) { return true } @@ -206,7 +206,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthPasswordOk() (*string, bool // HasSmtpAuthPassword returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthPassword() bool { - if o != nil && !IsNil(o.SmtpAuthPassword) { + if o != nil && !IsNil(o.SmtpAuthPassword) && !IsNil(o.SmtpAuthPassword) { return true } @@ -238,7 +238,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpAuthUsernameOk() (*string, bool // HasSmtpAuthUsername returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpAuthUsername() bool { - if o != nil && !IsNil(o.SmtpAuthUsername) { + if o != nil && !IsNil(o.SmtpAuthUsername) && !IsNil(o.SmtpAuthUsername) { return true } @@ -270,7 +270,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpFromOk() (*string, bool) { // HasSmtpFrom returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpFrom() bool { - if o != nil && !IsNil(o.SmtpFrom) { + if o != nil && !IsNil(o.SmtpFrom) && !IsNil(o.SmtpFrom) { return true } @@ -302,7 +302,7 @@ func (o *UpdateAlertConfigsPayloadGlobal) GetSmtpSmarthostOk() (*string, bool) { // HasSmtpSmarthost returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadGlobal) HasSmtpSmarthost() bool { - if o != nil && !IsNil(o.SmtpSmarthost) { + if o != nil && !IsNil(o.SmtpSmarthost) && !IsNil(o.SmtpSmarthost) { return true } diff --git a/services/observability/model_update_alert_configs_payload_inhibit_rules.go b/services/observability/model_update_alert_configs_payload_inhibit_rules.go index 2bebf6514..e0b01dc82 100644 --- a/services/observability/model_update_alert_configs_payload_inhibit_rules.go +++ b/services/observability/model_update_alert_configs_payload_inhibit_rules.go @@ -68,7 +68,7 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetEqualOk() (*[]string, bool) { // HasEqual returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadInhibitRules) HasEqual() bool { - if o != nil && !IsNil(o.Equal) { + if o != nil && !IsNil(o.Equal) && !IsNil(o.Equal) { return true } @@ -100,7 +100,7 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchOk() (*map[string] // HasSourceMatch returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadInhibitRules) HasSourceMatch() bool { - if o != nil && !IsNil(o.SourceMatch) { + if o != nil && !IsNil(o.SourceMatch) && !IsNil(o.SourceMatch) { return true } @@ -132,7 +132,7 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetSourceMatchReOk() (*map[strin // HasSourceMatchRe returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadInhibitRules) HasSourceMatchRe() bool { - if o != nil && !IsNil(o.SourceMatchRe) { + if o != nil && !IsNil(o.SourceMatchRe) && !IsNil(o.SourceMatchRe) { return true } @@ -164,7 +164,7 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchOk() (*map[string] // HasTargetMatch returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadInhibitRules) HasTargetMatch() bool { - if o != nil && !IsNil(o.TargetMatch) { + if o != nil && !IsNil(o.TargetMatch) && !IsNil(o.TargetMatch) { return true } @@ -196,7 +196,7 @@ func (o *UpdateAlertConfigsPayloadInhibitRules) GetTargetMatchReOk() (*map[strin // HasTargetMatchRe returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadInhibitRules) HasTargetMatchRe() bool { - if o != nil && !IsNil(o.TargetMatchRe) { + if o != nil && !IsNil(o.TargetMatchRe) && !IsNil(o.TargetMatchRe) { return true } 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 391ac1bda..b385ea097 100644 --- a/services/observability/model_update_alert_configs_payload_receivers_inner.go +++ b/services/observability/model_update_alert_configs_payload_receivers_inner.go @@ -69,7 +69,7 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetEmailConfigsOk() (*[]Create // HasEmailConfigs returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadReceiversInner) HasEmailConfigs() bool { - if o != nil && !IsNil(o.EmailConfigs) { + if o != nil && !IsNil(o.EmailConfigs) && !IsNil(o.EmailConfigs) { return true } @@ -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 } @@ -125,7 +125,7 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetOpsgenieConfigsOk() (*[]Cre // HasOpsgenieConfigs returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadReceiversInner) HasOpsgenieConfigs() bool { - if o != nil && !IsNil(o.OpsgenieConfigs) { + if o != nil && !IsNil(o.OpsgenieConfigs) && !IsNil(o.OpsgenieConfigs) { return true } @@ -157,7 +157,7 @@ func (o *UpdateAlertConfigsPayloadReceiversInner) GetWebHookConfigsOk() (*[]Crea // HasWebHookConfigs returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadReceiversInner) HasWebHookConfigs() bool { - if o != nil && !IsNil(o.WebHookConfigs) { + if o != nil && !IsNil(o.WebHookConfigs) && !IsNil(o.WebHookConfigs) { return true } diff --git a/services/observability/model_update_alert_configs_payload_route.go b/services/observability/model_update_alert_configs_payload_route.go index 2c3027137..3e160c124 100644 --- a/services/observability/model_update_alert_configs_payload_route.go +++ b/services/observability/model_update_alert_configs_payload_route.go @@ -92,7 +92,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetGroupByOk() (*[]string, bool) { // HasGroupBy returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasGroupBy() bool { - if o != nil && !IsNil(o.GroupBy) { + if o != nil && !IsNil(o.GroupBy) && !IsNil(o.GroupBy) { return true } @@ -124,7 +124,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetGroupIntervalOk() (*string, bool) { // HasGroupInterval returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasGroupInterval() bool { - if o != nil && !IsNil(o.GroupInterval) { + if o != nil && !IsNil(o.GroupInterval) && !IsNil(o.GroupInterval) { return true } @@ -156,7 +156,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetGroupWaitOk() (*string, bool) { // HasGroupWait returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasGroupWait() bool { - if o != nil && !IsNil(o.GroupWait) { + if o != nil && !IsNil(o.GroupWait) && !IsNil(o.GroupWait) { return true } @@ -188,7 +188,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetMatchOk() (*map[string]interface{}, // HasMatch returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasMatch() bool { - if o != nil && !IsNil(o.Match) { + if o != nil && !IsNil(o.Match) && !IsNil(o.Match) { return true } @@ -220,7 +220,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetMatchReOk() (*map[string]interface{} // HasMatchRe returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasMatchRe() bool { - if o != nil && !IsNil(o.MatchRe) { + if o != nil && !IsNil(o.MatchRe) && !IsNil(o.MatchRe) { return true } @@ -252,7 +252,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetMatchersOk() (*[]string, bool) { // HasMatchers returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasMatchers() bool { - if o != nil && !IsNil(o.Matchers) { + if o != nil && !IsNil(o.Matchers) && !IsNil(o.Matchers) { return true } @@ -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 } @@ -308,7 +308,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetRepeatIntervalOk() (*string, bool) { // HasRepeatInterval returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasRepeatInterval() bool { - if o != nil && !IsNil(o.RepeatInterval) { + if o != nil && !IsNil(o.RepeatInterval) && !IsNil(o.RepeatInterval) { return true } @@ -340,7 +340,7 @@ func (o *UpdateAlertConfigsPayloadRoute) GetRoutesOk() (*[]CreateAlertConfigRout // HasRoutes returns a boolean if a field has been set. func (o *UpdateAlertConfigsPayloadRoute) HasRoutes() bool { - if o != nil && !IsNil(o.Routes) { + if o != nil && !IsNil(o.Routes) && !IsNil(o.Routes) { return true } diff --git a/services/observability/model_update_alert_configs_response.go b/services/observability/model_update_alert_configs_response.go index fd0bce826..0f38bff72 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_credentials_remote_write_config_payload.go b/services/observability/model_update_credentials_remote_write_config_payload.go index d4bc5aee8..0d2eb55a1 100644 --- a/services/observability/model_update_credentials_remote_write_config_payload.go +++ b/services/observability/model_update_credentials_remote_write_config_payload.go @@ -60,7 +60,7 @@ func (o *UpdateCredentialsRemoteWriteConfigPayload) GetMaxLimitOk() (*float64, b // HasMaxLimit returns a boolean if a field has been set. func (o *UpdateCredentialsRemoteWriteConfigPayload) HasMaxLimit() bool { - if o != nil && !IsNil(o.MaxLimit) { + if o != nil && !IsNil(o.MaxLimit) && !IsNil(o.MaxLimit) { return true } diff --git a/services/observability/model_update_grafana_configs_payload.go b/services/observability/model_update_grafana_configs_payload.go index 33c90e16f..4535e782a 100644 --- a/services/observability/model_update_grafana_configs_payload.go +++ b/services/observability/model_update_grafana_configs_payload.go @@ -63,7 +63,7 @@ func (o *UpdateGrafanaConfigsPayload) GetGenericOauthOk() (*UpdateGrafanaConfigs // HasGenericOauth returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayload) HasGenericOauth() bool { - if o != nil && !IsNil(o.GenericOauth) { + if o != nil && !IsNil(o.GenericOauth) && !IsNil(o.GenericOauth) { return true } @@ -95,7 +95,7 @@ func (o *UpdateGrafanaConfigsPayload) GetPublicReadAccessOk() (*bool, bool) { // HasPublicReadAccess returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayload) HasPublicReadAccess() bool { - if o != nil && !IsNil(o.PublicReadAccess) { + if o != nil && !IsNil(o.PublicReadAccess) && !IsNil(o.PublicReadAccess) { return true } @@ -127,7 +127,7 @@ func (o *UpdateGrafanaConfigsPayload) GetUseStackitSsoOk() (*bool, bool) { // HasUseStackitSso returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayload) HasUseStackitSso() bool { - if o != nil && !IsNil(o.UseStackitSso) { + if o != nil && !IsNil(o.UseStackitSso) && !IsNil(o.UseStackitSso) { return true } 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 c2785d36f..57b470c7f 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 } @@ -176,7 +176,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -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 } @@ -280,7 +280,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetRoleAttributeStrictOk() (*b // HasRoleAttributeStrict returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasRoleAttributeStrict() bool { - if o != nil && !IsNil(o.RoleAttributeStrict) { + if o != nil && !IsNil(o.RoleAttributeStrict) && !IsNil(o.RoleAttributeStrict) { return true } @@ -312,7 +312,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetScopesOk() (*string, bool) // HasScopes returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { + if o != nil && !IsNil(o.Scopes) && !IsNil(o.Scopes) { return true } @@ -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 } @@ -368,7 +368,7 @@ func (o *UpdateGrafanaConfigsPayloadGenericOauth) GetUsePkceOk() (*bool, bool) { // HasUsePkce returns a boolean if a field has been set. func (o *UpdateGrafanaConfigsPayloadGenericOauth) HasUsePkce() bool { - if o != nil && !IsNil(o.UsePkce) { + if o != nil && !IsNil(o.UsePkce) && !IsNil(o.UsePkce) { return true } diff --git a/services/observability/model_update_instance_payload.go b/services/observability/model_update_instance_payload.go index 49a7a2b69..2e8748ce1 100644 --- a/services/observability/model_update_instance_payload.go +++ b/services/observability/model_update_instance_payload.go @@ -68,7 +68,7 @@ func (o *UpdateInstancePayload) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *UpdateInstancePayload) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -100,7 +100,7 @@ func (o *UpdateInstancePayload) GetParameterOk() (*map[string]interface{}, bool) // HasParameter returns a boolean if a field has been set. func (o *UpdateInstancePayload) HasParameter() bool { - if o != nil && !IsNil(o.Parameter) { + if o != nil && !IsNil(o.Parameter) && !IsNil(o.Parameter) { return true } @@ -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 2b6c82734..002fd8504 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 364f78415..20248bae2 100644 --- a/services/observability/model_update_scrape_config_payload.go +++ b/services/observability/model_update_scrape_config_payload.go @@ -104,7 +104,7 @@ func (o *UpdateScrapeConfigPayload) GetBasicAuthOk() (*CreateScrapeConfigPayload // HasBasicAuth returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasBasicAuth() bool { - if o != nil && !IsNil(o.BasicAuth) { + if o != nil && !IsNil(o.BasicAuth) && !IsNil(o.BasicAuth) { return true } @@ -136,7 +136,7 @@ func (o *UpdateScrapeConfigPayload) GetBearerTokenOk() (*string, bool) { // HasBearerToken returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasBearerToken() bool { - if o != nil && !IsNil(o.BearerToken) { + if o != nil && !IsNil(o.BearerToken) && !IsNil(o.BearerToken) { return true } @@ -168,7 +168,7 @@ func (o *UpdateScrapeConfigPayload) GetHonorLabelsOk() (*bool, bool) { // HasHonorLabels returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasHonorLabels() bool { - if o != nil && !IsNil(o.HonorLabels) { + if o != nil && !IsNil(o.HonorLabels) && !IsNil(o.HonorLabels) { return true } @@ -200,7 +200,7 @@ func (o *UpdateScrapeConfigPayload) GetHonorTimeStampsOk() (*bool, bool) { // HasHonorTimeStamps returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasHonorTimeStamps() bool { - if o != nil && !IsNil(o.HonorTimeStamps) { + if o != nil && !IsNil(o.HonorTimeStamps) && !IsNil(o.HonorTimeStamps) { return true } @@ -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 } @@ -256,7 +256,7 @@ func (o *UpdateScrapeConfigPayload) GetMetricsRelabelConfigsOk() (*[]CreateScrap // HasMetricsRelabelConfigs returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasMetricsRelabelConfigs() bool { - if o != nil && !IsNil(o.MetricsRelabelConfigs) { + if o != nil && !IsNil(o.MetricsRelabelConfigs) && !IsNil(o.MetricsRelabelConfigs) { return true } @@ -288,7 +288,7 @@ func (o *UpdateScrapeConfigPayload) GetParamsOk() (*map[string]interface{}, bool // HasParams returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasParams() bool { - if o != nil && !IsNil(o.Params) { + if o != nil && !IsNil(o.Params) && !IsNil(o.Params) { return true } @@ -320,7 +320,7 @@ func (o *UpdateScrapeConfigPayload) GetSampleLimitOk() (*float64, bool) { // HasSampleLimit returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasSampleLimit() bool { - if o != nil && !IsNil(o.SampleLimit) { + if o != nil && !IsNil(o.SampleLimit) && !IsNil(o.SampleLimit) { return true } @@ -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 } @@ -448,7 +448,7 @@ func (o *UpdateScrapeConfigPayload) GetTlsConfigOk() (*CreateScrapeConfigPayload // HasTlsConfig returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayload) HasTlsConfig() bool { - if o != nil && !IsNil(o.TlsConfig) { + if o != nil && !IsNil(o.TlsConfig) && !IsNil(o.TlsConfig) { return true } 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 ad67023bb..ecad250f6 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 @@ -66,7 +66,7 @@ func (o *UpdateScrapeConfigPayloadStaticConfigsInner) GetLabelsOk() (*map[string // HasLabels returns a boolean if a field has been set. func (o *UpdateScrapeConfigPayloadStaticConfigsInner) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -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 0babf106f..30777751e 100644 --- a/services/observability/model_web_hook.go +++ b/services/observability/model_web_hook.go @@ -73,7 +73,7 @@ func (o *WebHook) GetMsTeamsOk() (*bool, bool) { // HasMsTeams returns a boolean if a field has been set. func (o *WebHook) HasMsTeams() bool { - if o != nil && !IsNil(o.MsTeams) { + if o != nil && !IsNil(o.MsTeams) && !IsNil(o.MsTeams) { return true } @@ -105,7 +105,7 @@ func (o *WebHook) GetSendResolvedOk() (*bool, bool) { // HasSendResolved returns a boolean if a field has been set. func (o *WebHook) HasSendResolved() bool { - if o != nil && !IsNil(o.SendResolved) { + if o != nil && !IsNil(o.SendResolved) && !IsNil(o.SendResolved) { return true } @@ -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 }