diff --git a/services/ske/model_acl.go b/services/ske/model_acl.go index 2daeaf4a3..4f1368fc1 100644 --- a/services/ske/model_acl.go +++ b/services/ske/model_acl.go @@ -50,7 +50,7 @@ func NewACLWithDefaults() *ACL { // GetAllowedCidrs returns the AllowedCidrs field value func (o *ACL) GetAllowedCidrs() *[]string { - if o == nil { + if o == nil || IsNil(o.AllowedCidrs) { var ret *[]string return ret } @@ -74,7 +74,7 @@ func (o *ACL) SetAllowedCidrs(v *[]string) { // GetEnabled returns the Enabled field value func (o *ACL) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } diff --git a/services/ske/model_argus.go b/services/ske/model_argus.go index 22cf06e75..c54ba13cf 100644 --- a/services/ske/model_argus.go +++ b/services/ske/model_argus.go @@ -50,7 +50,7 @@ func NewArgusWithDefaults() *Argus { // GetArgusInstanceId returns the ArgusInstanceId field value func (o *Argus) GetArgusInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.ArgusInstanceId) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *Argus) SetArgusInstanceId(v *string) { // GetEnabled returns the Enabled field value func (o *Argus) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } diff --git a/services/ske/model_availability_zone.go b/services/ske/model_availability_zone.go index 44aab4893..ee3377203 100644 --- a/services/ske/model_availability_zone.go +++ b/services/ske/model_availability_zone.go @@ -59,7 +59,7 @@ func (o *AvailabilityZone) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *AvailabilityZone) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } diff --git a/services/ske/model_cluster.go b/services/ske/model_cluster.go index 05d06a851..b936349b3 100644 --- a/services/ske/model_cluster.go +++ b/services/ske/model_cluster.go @@ -72,7 +72,7 @@ func (o *Cluster) GetExtensionsOk() (*Extension, bool) { // HasExtensions returns a boolean if a field has been set. func (o *Cluster) HasExtensions() bool { - if o != nil && !IsNil(o.Extensions) { + if o != nil && !IsNil(o.Extensions) && !IsNil(o.Extensions) { return true } @@ -104,7 +104,7 @@ func (o *Cluster) GetHibernationOk() (*Hibernation, bool) { // HasHibernation returns a boolean if a field has been set. func (o *Cluster) HasHibernation() bool { - if o != nil && !IsNil(o.Hibernation) { + if o != nil && !IsNil(o.Hibernation) && !IsNil(o.Hibernation) { return true } @@ -118,7 +118,7 @@ func (o *Cluster) SetHibernation(v *Hibernation) { // GetKubernetes returns the Kubernetes field value func (o *Cluster) GetKubernetes() *Kubernetes { - if o == nil { + if o == nil || IsNil(o.Kubernetes) { var ret *Kubernetes return ret } @@ -160,7 +160,7 @@ func (o *Cluster) GetMaintenanceOk() (*Maintenance, bool) { // HasMaintenance returns a boolean if a field has been set. func (o *Cluster) HasMaintenance() bool { - if o != nil && !IsNil(o.Maintenance) { + if o != nil && !IsNil(o.Maintenance) && !IsNil(o.Maintenance) { return true } @@ -192,7 +192,7 @@ func (o *Cluster) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Cluster) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -224,7 +224,7 @@ func (o *Cluster) GetNetworkOk() (*Network, bool) { // HasNetwork returns a boolean if a field has been set. func (o *Cluster) HasNetwork() bool { - if o != nil && !IsNil(o.Network) { + if o != nil && !IsNil(o.Network) && !IsNil(o.Network) { return true } @@ -238,7 +238,7 @@ func (o *Cluster) SetNetwork(v *Network) { // GetNodepools returns the Nodepools field value func (o *Cluster) GetNodepools() *[]Nodepool { - if o == nil { + if o == nil || IsNil(o.Nodepools) { var ret *[]Nodepool return ret } @@ -280,7 +280,7 @@ func (o *Cluster) GetStatusOk() (*ClusterStatus, bool) { // HasStatus returns a boolean if a field has been set. func (o *Cluster) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/ske/model_cluster_status.go b/services/ske/model_cluster_status.go index 87f3bafdd..0837a736e 100644 --- a/services/ske/model_cluster_status.go +++ b/services/ske/model_cluster_status.go @@ -68,7 +68,7 @@ func (o *ClusterStatus) GetAggregatedOk() (*ClusterStatusState, bool) { // HasAggregated returns a boolean if a field has been set. func (o *ClusterStatus) HasAggregated() bool { - if o != nil && !IsNil(o.Aggregated) { + if o != nil && !IsNil(o.Aggregated) && !IsNil(o.Aggregated) { return true } @@ -100,7 +100,7 @@ func (o *ClusterStatus) GetCreationTimeOk() (*string, bool) { // HasCreationTime returns a boolean if a field has been set. func (o *ClusterStatus) HasCreationTime() bool { - if o != nil && !IsNil(o.CreationTime) { + if o != nil && !IsNil(o.CreationTime) && !IsNil(o.CreationTime) { return true } @@ -132,7 +132,7 @@ func (o *ClusterStatus) GetCredentialsRotationOk() (*CredentialsRotationState, b // HasCredentialsRotation returns a boolean if a field has been set. func (o *ClusterStatus) HasCredentialsRotation() bool { - if o != nil && !IsNil(o.CredentialsRotation) { + if o != nil && !IsNil(o.CredentialsRotation) && !IsNil(o.CredentialsRotation) { return true } @@ -164,7 +164,7 @@ func (o *ClusterStatus) GetErrorOk() (*RuntimeError, bool) { // HasError returns a boolean if a field has been set. func (o *ClusterStatus) HasError() bool { - if o != nil && !IsNil(o.Error) { + if o != nil && !IsNil(o.Error) && !IsNil(o.Error) { return true } @@ -196,7 +196,7 @@ func (o *ClusterStatus) GetHibernatedOk() (*bool, bool) { // HasHibernated returns a boolean if a field has been set. func (o *ClusterStatus) HasHibernated() bool { - if o != nil && !IsNil(o.Hibernated) { + if o != nil && !IsNil(o.Hibernated) && !IsNil(o.Hibernated) { return true } diff --git a/services/ske/model_create_kubeconfig_payload.go b/services/ske/model_create_kubeconfig_payload.go index 7af3b81a0..504b1acbe 100644 --- a/services/ske/model_create_kubeconfig_payload.go +++ b/services/ske/model_create_kubeconfig_payload.go @@ -59,7 +59,7 @@ func (o *CreateKubeconfigPayload) GetExpirationSecondsOk() (*string, bool) { // HasExpirationSeconds returns a boolean if a field has been set. func (o *CreateKubeconfigPayload) HasExpirationSeconds() bool { - if o != nil && !IsNil(o.ExpirationSeconds) { + if o != nil && !IsNil(o.ExpirationSeconds) && !IsNil(o.ExpirationSeconds) { return true } diff --git a/services/ske/model_create_or_update_cluster_payload.go b/services/ske/model_create_or_update_cluster_payload.go index a6fed5fc5..9228dc551 100644 --- a/services/ske/model_create_or_update_cluster_payload.go +++ b/services/ske/model_create_or_update_cluster_payload.go @@ -71,7 +71,7 @@ func (o *CreateOrUpdateClusterPayload) GetExtensionsOk() (*Extension, bool) { // HasExtensions returns a boolean if a field has been set. func (o *CreateOrUpdateClusterPayload) HasExtensions() bool { - if o != nil && !IsNil(o.Extensions) { + if o != nil && !IsNil(o.Extensions) && !IsNil(o.Extensions) { return true } @@ -103,7 +103,7 @@ func (o *CreateOrUpdateClusterPayload) GetHibernationOk() (*Hibernation, bool) { // HasHibernation returns a boolean if a field has been set. func (o *CreateOrUpdateClusterPayload) HasHibernation() bool { - if o != nil && !IsNil(o.Hibernation) { + if o != nil && !IsNil(o.Hibernation) && !IsNil(o.Hibernation) { return true } @@ -117,7 +117,7 @@ func (o *CreateOrUpdateClusterPayload) SetHibernation(v *Hibernation) { // GetKubernetes returns the Kubernetes field value func (o *CreateOrUpdateClusterPayload) GetKubernetes() *Kubernetes { - if o == nil { + if o == nil || IsNil(o.Kubernetes) { var ret *Kubernetes return ret } @@ -159,7 +159,7 @@ func (o *CreateOrUpdateClusterPayload) GetMaintenanceOk() (*Maintenance, bool) { // HasMaintenance returns a boolean if a field has been set. func (o *CreateOrUpdateClusterPayload) HasMaintenance() bool { - if o != nil && !IsNil(o.Maintenance) { + if o != nil && !IsNil(o.Maintenance) && !IsNil(o.Maintenance) { return true } @@ -191,7 +191,7 @@ func (o *CreateOrUpdateClusterPayload) GetNetworkOk() (*Network, bool) { // HasNetwork returns a boolean if a field has been set. func (o *CreateOrUpdateClusterPayload) HasNetwork() bool { - if o != nil && !IsNil(o.Network) { + if o != nil && !IsNil(o.Network) && !IsNil(o.Network) { return true } @@ -205,7 +205,7 @@ func (o *CreateOrUpdateClusterPayload) SetNetwork(v *Network) { // GetNodepools returns the Nodepools field value func (o *CreateOrUpdateClusterPayload) GetNodepools() *[]Nodepool { - if o == nil { + if o == nil || IsNil(o.Nodepools) { var ret *[]Nodepool return ret } @@ -247,7 +247,7 @@ func (o *CreateOrUpdateClusterPayload) GetStatusOk() (*ClusterStatus, bool) { // HasStatus returns a boolean if a field has been set. func (o *CreateOrUpdateClusterPayload) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/ske/model_credentials.go b/services/ske/model_credentials.go index d574f2d88..0dbea538e 100644 --- a/services/ske/model_credentials.go +++ b/services/ske/model_credentials.go @@ -63,7 +63,7 @@ func (o *Credentials) GetCertificateAuthorityDataOk() (*string, bool) { // HasCertificateAuthorityData returns a boolean if a field has been set. func (o *Credentials) HasCertificateAuthorityData() bool { - if o != nil && !IsNil(o.CertificateAuthorityData) { + if o != nil && !IsNil(o.CertificateAuthorityData) && !IsNil(o.CertificateAuthorityData) { return true } @@ -95,7 +95,7 @@ func (o *Credentials) GetKubeconfigOk() (*string, bool) { // HasKubeconfig returns a boolean if a field has been set. func (o *Credentials) HasKubeconfig() bool { - if o != nil && !IsNil(o.Kubeconfig) { + if o != nil && !IsNil(o.Kubeconfig) && !IsNil(o.Kubeconfig) { return true } @@ -127,7 +127,7 @@ func (o *Credentials) GetServerOk() (*string, bool) { // HasServer returns a boolean if a field has been set. func (o *Credentials) HasServer() bool { - if o != nil && !IsNil(o.Server) { + if o != nil && !IsNil(o.Server) && !IsNil(o.Server) { return true } @@ -159,7 +159,7 @@ func (o *Credentials) GetTokenOk() (*string, bool) { // HasToken returns a boolean if a field has been set. func (o *Credentials) HasToken() bool { - if o != nil && !IsNil(o.Token) { + if o != nil && !IsNil(o.Token) && !IsNil(o.Token) { return true } diff --git a/services/ske/model_credentials_rotation_state.go b/services/ske/model_credentials_rotation_state.go index e77ca6c93..aa8bdab5c 100644 --- a/services/ske/model_credentials_rotation_state.go +++ b/services/ske/model_credentials_rotation_state.go @@ -64,7 +64,7 @@ func (o *CredentialsRotationState) GetLastCompletionTimeOk() (*string, bool) { // HasLastCompletionTime returns a boolean if a field has been set. func (o *CredentialsRotationState) HasLastCompletionTime() bool { - if o != nil && !IsNil(o.LastCompletionTime) { + if o != nil && !IsNil(o.LastCompletionTime) && !IsNil(o.LastCompletionTime) { return true } @@ -96,7 +96,7 @@ func (o *CredentialsRotationState) GetLastInitiationTimeOk() (*string, bool) { // HasLastInitiationTime returns a boolean if a field has been set. func (o *CredentialsRotationState) HasLastInitiationTime() bool { - if o != nil && !IsNil(o.LastInitiationTime) { + if o != nil && !IsNil(o.LastInitiationTime) && !IsNil(o.LastInitiationTime) { return true } @@ -128,7 +128,7 @@ func (o *CredentialsRotationState) GetPhaseOk() (*string, bool) { // HasPhase returns a boolean if a field has been set. func (o *CredentialsRotationState) HasPhase() bool { - if o != nil && !IsNil(o.Phase) { + if o != nil && !IsNil(o.Phase) && !IsNil(o.Phase) { return true } diff --git a/services/ske/model_cri.go b/services/ske/model_cri.go index 702234e8e..66cce2862 100644 --- a/services/ske/model_cri.go +++ b/services/ske/model_cri.go @@ -59,7 +59,7 @@ func (o *CRI) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CRI) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } diff --git a/services/ske/model_dns.go b/services/ske/model_dns.go index 401a4d9a9..6182e1cf7 100644 --- a/services/ske/model_dns.go +++ b/services/ske/model_dns.go @@ -48,7 +48,7 @@ func NewDNSWithDefaults() *DNS { // GetEnabled returns the Enabled field value func (o *DNS) GetEnabled() *bool { - if o == nil { + if o == nil || IsNil(o.Enabled) { var ret *bool return ret } @@ -90,7 +90,7 @@ func (o *DNS) GetZonesOk() (*[]string, bool) { // HasZones returns a boolean if a field has been set. func (o *DNS) HasZones() bool { - if o != nil && !IsNil(o.Zones) { + if o != nil && !IsNil(o.Zones) && !IsNil(o.Zones) { return true } diff --git a/services/ske/model_extension.go b/services/ske/model_extension.go index 190cb3f86..305a4f56e 100644 --- a/services/ske/model_extension.go +++ b/services/ske/model_extension.go @@ -61,7 +61,7 @@ func (o *Extension) GetAclOk() (*ACL, bool) { // HasAcl returns a boolean if a field has been set. func (o *Extension) HasAcl() bool { - if o != nil && !IsNil(o.Acl) { + if o != nil && !IsNil(o.Acl) && !IsNil(o.Acl) { return true } @@ -93,7 +93,7 @@ func (o *Extension) GetArgusOk() (*Argus, bool) { // HasArgus returns a boolean if a field has been set. func (o *Extension) HasArgus() bool { - if o != nil && !IsNil(o.Argus) { + if o != nil && !IsNil(o.Argus) && !IsNil(o.Argus) { return true } @@ -125,7 +125,7 @@ func (o *Extension) GetDnsOk() (*DNS, bool) { // HasDns returns a boolean if a field has been set. func (o *Extension) HasDns() bool { - if o != nil && !IsNil(o.Dns) { + if o != nil && !IsNil(o.Dns) && !IsNil(o.Dns) { return true } diff --git a/services/ske/model_hibernation.go b/services/ske/model_hibernation.go index b26dded29..5d6b655e5 100644 --- a/services/ske/model_hibernation.go +++ b/services/ske/model_hibernation.go @@ -45,7 +45,7 @@ func NewHibernationWithDefaults() *Hibernation { // GetSchedules returns the Schedules field value func (o *Hibernation) GetSchedules() *[]HibernationSchedule { - if o == nil { + if o == nil || IsNil(o.Schedules) { var ret *[]HibernationSchedule return ret } diff --git a/services/ske/model_hibernation_schedule.go b/services/ske/model_hibernation_schedule.go index b2cfbe573..8f705b4c8 100644 --- a/services/ske/model_hibernation_schedule.go +++ b/services/ske/model_hibernation_schedule.go @@ -49,7 +49,7 @@ func NewHibernationScheduleWithDefaults() *HibernationSchedule { // GetEnd returns the End field value func (o *HibernationSchedule) GetEnd() *string { - if o == nil { + if o == nil || IsNil(o.End) { var ret *string return ret } @@ -73,7 +73,7 @@ func (o *HibernationSchedule) SetEnd(v *string) { // GetStart returns the Start field value func (o *HibernationSchedule) GetStart() *string { - if o == nil { + if o == nil || IsNil(o.Start) { var ret *string return ret } @@ -115,7 +115,7 @@ func (o *HibernationSchedule) GetTimezoneOk() (*string, bool) { // HasTimezone returns a boolean if a field has been set. func (o *HibernationSchedule) HasTimezone() bool { - if o != nil && !IsNil(o.Timezone) { + if o != nil && !IsNil(o.Timezone) && !IsNil(o.Timezone) { return true } diff --git a/services/ske/model_image.go b/services/ske/model_image.go index 219220c85..46ac16e46 100644 --- a/services/ske/model_image.go +++ b/services/ske/model_image.go @@ -48,7 +48,7 @@ func NewImageWithDefaults() *Image { // GetName returns the Name field value func (o *Image) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *Image) SetName(v *string) { // GetVersion returns the Version field value func (o *Image) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/ske/model_kubeconfig.go b/services/ske/model_kubeconfig.go index a347eb05d..28c38b7d1 100644 --- a/services/ske/model_kubeconfig.go +++ b/services/ske/model_kubeconfig.go @@ -60,7 +60,7 @@ func (o *Kubeconfig) GetExpirationTimestampOk() (*string, bool) { // HasExpirationTimestamp returns a boolean if a field has been set. func (o *Kubeconfig) HasExpirationTimestamp() bool { - if o != nil && !IsNil(o.ExpirationTimestamp) { + if o != nil && !IsNil(o.ExpirationTimestamp) && !IsNil(o.ExpirationTimestamp) { return true } @@ -92,7 +92,7 @@ func (o *Kubeconfig) GetKubeconfigOk() (*string, bool) { // HasKubeconfig returns a boolean if a field has been set. func (o *Kubeconfig) HasKubeconfig() bool { - if o != nil && !IsNil(o.Kubeconfig) { + if o != nil && !IsNil(o.Kubeconfig) && !IsNil(o.Kubeconfig) { return true } diff --git a/services/ske/model_kubernetes.go b/services/ske/model_kubernetes.go index bc0eed645..fb9438803 100644 --- a/services/ske/model_kubernetes.go +++ b/services/ske/model_kubernetes.go @@ -65,7 +65,7 @@ func (o *Kubernetes) GetAllowPrivilegedContainersOk() (*bool, bool) { // HasAllowPrivilegedContainers returns a boolean if a field has been set. func (o *Kubernetes) HasAllowPrivilegedContainers() bool { - if o != nil && !IsNil(o.AllowPrivilegedContainers) { + if o != nil && !IsNil(o.AllowPrivilegedContainers) && !IsNil(o.AllowPrivilegedContainers) { return true } @@ -79,7 +79,7 @@ func (o *Kubernetes) SetAllowPrivilegedContainers(v *bool) { // GetVersion returns the Version field value func (o *Kubernetes) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/ske/model_kubernetes_version.go b/services/ske/model_kubernetes_version.go index 281781e2f..5337a023f 100644 --- a/services/ske/model_kubernetes_version.go +++ b/services/ske/model_kubernetes_version.go @@ -62,7 +62,7 @@ func (o *KubernetesVersion) GetExpirationDateOk() (*string, bool) { // HasExpirationDate returns a boolean if a field has been set. func (o *KubernetesVersion) HasExpirationDate() bool { - if o != nil && !IsNil(o.ExpirationDate) { + if o != nil && !IsNil(o.ExpirationDate) && !IsNil(o.ExpirationDate) { return true } @@ -94,7 +94,7 @@ func (o *KubernetesVersion) GetFeatureGatesOk() (*map[string]string, bool) { // HasFeatureGates returns a boolean if a field has been set. func (o *KubernetesVersion) HasFeatureGates() bool { - if o != nil && !IsNil(o.FeatureGates) { + if o != nil && !IsNil(o.FeatureGates) && !IsNil(o.FeatureGates) { return true } @@ -126,7 +126,7 @@ func (o *KubernetesVersion) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *KubernetesVersion) HasState() bool { - if o != nil && !IsNil(o.State) { + if o != nil && !IsNil(o.State) && !IsNil(o.State) { return true } @@ -158,7 +158,7 @@ func (o *KubernetesVersion) GetVersionOk() (*string, bool) { // HasVersion returns a boolean if a field has been set. func (o *KubernetesVersion) HasVersion() bool { - if o != nil && !IsNil(o.Version) { + if o != nil && !IsNil(o.Version) && !IsNil(o.Version) { return true } diff --git a/services/ske/model_list_clusters_response.go b/services/ske/model_list_clusters_response.go index 967540e75..2ebf8d8e5 100644 --- a/services/ske/model_list_clusters_response.go +++ b/services/ske/model_list_clusters_response.go @@ -59,7 +59,7 @@ func (o *ListClustersResponse) GetItemsOk() (*[]Cluster, bool) { // HasItems returns a boolean if a field has been set. func (o *ListClustersResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/ske/model_login_kubeconfig.go b/services/ske/model_login_kubeconfig.go index 238bb7d42..553b1fbb4 100644 --- a/services/ske/model_login_kubeconfig.go +++ b/services/ske/model_login_kubeconfig.go @@ -59,7 +59,7 @@ func (o *LoginKubeconfig) GetKubeconfigOk() (*string, bool) { // HasKubeconfig returns a boolean if a field has been set. func (o *LoginKubeconfig) HasKubeconfig() bool { - if o != nil && !IsNil(o.Kubeconfig) { + if o != nil && !IsNil(o.Kubeconfig) && !IsNil(o.Kubeconfig) { return true } diff --git a/services/ske/model_machine.go b/services/ske/model_machine.go index 76833af5f..08eb6058e 100644 --- a/services/ske/model_machine.go +++ b/services/ske/model_machine.go @@ -49,7 +49,7 @@ func NewMachineWithDefaults() *Machine { // GetImage returns the Image field value func (o *Machine) GetImage() *Image { - if o == nil { + if o == nil || IsNil(o.Image) { var ret *Image return ret } @@ -73,7 +73,7 @@ func (o *Machine) SetImage(v *Image) { // GetType returns the Type field value func (o *Machine) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/ske/model_machine_image.go b/services/ske/model_machine_image.go index a36194d6f..5b8a2a854 100644 --- a/services/ske/model_machine_image.go +++ b/services/ske/model_machine_image.go @@ -60,7 +60,7 @@ func (o *MachineImage) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *MachineImage) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -92,7 +92,7 @@ func (o *MachineImage) GetVersionsOk() (*[]MachineImageVersion, bool) { // HasVersions returns a boolean if a field has been set. func (o *MachineImage) HasVersions() bool { - if o != nil && !IsNil(o.Versions) { + if o != nil && !IsNil(o.Versions) && !IsNil(o.Versions) { return true } diff --git a/services/ske/model_machine_image_version.go b/services/ske/model_machine_image_version.go index 3286333a7..6a619de25 100644 --- a/services/ske/model_machine_image_version.go +++ b/services/ske/model_machine_image_version.go @@ -62,7 +62,7 @@ func (o *MachineImageVersion) GetCriOk() (*[]CRI, bool) { // HasCri returns a boolean if a field has been set. func (o *MachineImageVersion) HasCri() bool { - if o != nil && !IsNil(o.Cri) { + if o != nil && !IsNil(o.Cri) && !IsNil(o.Cri) { return true } @@ -94,7 +94,7 @@ func (o *MachineImageVersion) GetExpirationDateOk() (*string, bool) { // HasExpirationDate returns a boolean if a field has been set. func (o *MachineImageVersion) HasExpirationDate() bool { - if o != nil && !IsNil(o.ExpirationDate) { + if o != nil && !IsNil(o.ExpirationDate) && !IsNil(o.ExpirationDate) { return true } @@ -126,7 +126,7 @@ func (o *MachineImageVersion) GetStateOk() (*string, bool) { // HasState returns a boolean if a field has been set. func (o *MachineImageVersion) HasState() bool { - if o != nil && !IsNil(o.State) { + if o != nil && !IsNil(o.State) && !IsNil(o.State) { return true } @@ -158,7 +158,7 @@ func (o *MachineImageVersion) GetVersionOk() (*string, bool) { // HasVersion returns a boolean if a field has been set. func (o *MachineImageVersion) HasVersion() bool { - if o != nil && !IsNil(o.Version) { + if o != nil && !IsNil(o.Version) && !IsNil(o.Version) { return true } diff --git a/services/ske/model_machine_type.go b/services/ske/model_machine_type.go index d96892935..c6e0c8fc3 100644 --- a/services/ske/model_machine_type.go +++ b/services/ske/model_machine_type.go @@ -63,7 +63,7 @@ func (o *MachineType) GetArchitectureOk() (*string, bool) { // HasArchitecture returns a boolean if a field has been set. func (o *MachineType) HasArchitecture() bool { - if o != nil && !IsNil(o.Architecture) { + if o != nil && !IsNil(o.Architecture) && !IsNil(o.Architecture) { return true } @@ -95,7 +95,7 @@ func (o *MachineType) GetCpuOk() (*int64, bool) { // HasCpu returns a boolean if a field has been set. func (o *MachineType) HasCpu() bool { - if o != nil && !IsNil(o.Cpu) { + if o != nil && !IsNil(o.Cpu) && !IsNil(o.Cpu) { return true } @@ -127,7 +127,7 @@ func (o *MachineType) GetGpuOk() (*int64, bool) { // HasGpu returns a boolean if a field has been set. func (o *MachineType) HasGpu() bool { - if o != nil && !IsNil(o.Gpu) { + if o != nil && !IsNil(o.Gpu) && !IsNil(o.Gpu) { return true } @@ -159,7 +159,7 @@ func (o *MachineType) GetMemoryOk() (*int64, bool) { // HasMemory returns a boolean if a field has been set. func (o *MachineType) HasMemory() bool { - if o != nil && !IsNil(o.Memory) { + if o != nil && !IsNil(o.Memory) && !IsNil(o.Memory) { return true } @@ -191,7 +191,7 @@ func (o *MachineType) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *MachineType) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } diff --git a/services/ske/model_maintenance.go b/services/ske/model_maintenance.go index 531236b44..78dcd7adf 100644 --- a/services/ske/model_maintenance.go +++ b/services/ske/model_maintenance.go @@ -48,7 +48,7 @@ func NewMaintenanceWithDefaults() *Maintenance { // GetAutoUpdate returns the AutoUpdate field value func (o *Maintenance) GetAutoUpdate() *MaintenanceAutoUpdate { - if o == nil { + if o == nil || IsNil(o.AutoUpdate) { var ret *MaintenanceAutoUpdate return ret } @@ -72,7 +72,7 @@ func (o *Maintenance) SetAutoUpdate(v *MaintenanceAutoUpdate) { // GetTimeWindow returns the TimeWindow field value func (o *Maintenance) GetTimeWindow() *TimeWindow { - if o == nil { + if o == nil || IsNil(o.TimeWindow) { var ret *TimeWindow return ret } diff --git a/services/ske/model_maintenance_auto_update.go b/services/ske/model_maintenance_auto_update.go index d9d4dfc00..c3b252cfe 100644 --- a/services/ske/model_maintenance_auto_update.go +++ b/services/ske/model_maintenance_auto_update.go @@ -60,7 +60,7 @@ func (o *MaintenanceAutoUpdate) GetKubernetesVersionOk() (*bool, bool) { // HasKubernetesVersion returns a boolean if a field has been set. func (o *MaintenanceAutoUpdate) HasKubernetesVersion() bool { - if o != nil && !IsNil(o.KubernetesVersion) { + if o != nil && !IsNil(o.KubernetesVersion) && !IsNil(o.KubernetesVersion) { return true } @@ -92,7 +92,7 @@ func (o *MaintenanceAutoUpdate) GetMachineImageVersionOk() (*bool, bool) { // HasMachineImageVersion returns a boolean if a field has been set. func (o *MaintenanceAutoUpdate) HasMachineImageVersion() bool { - if o != nil && !IsNil(o.MachineImageVersion) { + if o != nil && !IsNil(o.MachineImageVersion) && !IsNil(o.MachineImageVersion) { return true } diff --git a/services/ske/model_network.go b/services/ske/model_network.go index e07afe096..f27ae9d09 100644 --- a/services/ske/model_network.go +++ b/services/ske/model_network.go @@ -59,7 +59,7 @@ func (o *Network) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Network) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } diff --git a/services/ske/model_nodepool.go b/services/ske/model_nodepool.go index 8508e1f92..952133b1e 100644 --- a/services/ske/model_nodepool.go +++ b/services/ske/model_nodepool.go @@ -86,7 +86,7 @@ func (o *Nodepool) GetAllowSystemComponentsOk() (*bool, bool) { // HasAllowSystemComponents returns a boolean if a field has been set. func (o *Nodepool) HasAllowSystemComponents() bool { - if o != nil && !IsNil(o.AllowSystemComponents) { + if o != nil && !IsNil(o.AllowSystemComponents) && !IsNil(o.AllowSystemComponents) { return true } @@ -100,7 +100,7 @@ func (o *Nodepool) SetAllowSystemComponents(v *bool) { // GetAvailabilityZones returns the AvailabilityZones field value func (o *Nodepool) GetAvailabilityZones() *[]string { - if o == nil { + if o == nil || IsNil(o.AvailabilityZones) { var ret *[]string return ret } @@ -142,7 +142,7 @@ func (o *Nodepool) GetCriOk() (*CRI, bool) { // HasCri returns a boolean if a field has been set. func (o *Nodepool) HasCri() bool { - if o != nil && !IsNil(o.Cri) { + if o != nil && !IsNil(o.Cri) && !IsNil(o.Cri) { return true } @@ -174,7 +174,7 @@ func (o *Nodepool) GetLabelsOk() (*map[string]string, bool) { // HasLabels returns a boolean if a field has been set. func (o *Nodepool) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -188,7 +188,7 @@ func (o *Nodepool) SetLabels(v *map[string]string) { // GetMachine returns the Machine field value func (o *Nodepool) GetMachine() *Machine { - if o == nil { + if o == nil || IsNil(o.Machine) { var ret *Machine return ret } @@ -230,7 +230,7 @@ func (o *Nodepool) GetMaxSurgeOk() (*int64, bool) { // HasMaxSurge returns a boolean if a field has been set. func (o *Nodepool) HasMaxSurge() bool { - if o != nil && !IsNil(o.MaxSurge) { + if o != nil && !IsNil(o.MaxSurge) && !IsNil(o.MaxSurge) { return true } @@ -262,7 +262,7 @@ func (o *Nodepool) GetMaxUnavailableOk() (*int64, bool) { // HasMaxUnavailable returns a boolean if a field has been set. func (o *Nodepool) HasMaxUnavailable() bool { - if o != nil && !IsNil(o.MaxUnavailable) { + if o != nil && !IsNil(o.MaxUnavailable) && !IsNil(o.MaxUnavailable) { return true } @@ -276,7 +276,7 @@ func (o *Nodepool) SetMaxUnavailable(v *int64) { // GetMaximum returns the Maximum field value func (o *Nodepool) GetMaximum() *int64 { - if o == nil { + if o == nil || IsNil(o.Maximum) { var ret *int64 return ret } @@ -300,7 +300,7 @@ func (o *Nodepool) SetMaximum(v *int64) { // GetMinimum returns the Minimum field value func (o *Nodepool) GetMinimum() *int64 { - if o == nil { + if o == nil || IsNil(o.Minimum) { var ret *int64 return ret } @@ -324,7 +324,7 @@ func (o *Nodepool) SetMinimum(v *int64) { // GetName returns the Name field value func (o *Nodepool) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -366,7 +366,7 @@ func (o *Nodepool) GetTaintsOk() (*[]Taint, bool) { // HasTaints returns a boolean if a field has been set. func (o *Nodepool) HasTaints() bool { - if o != nil && !IsNil(o.Taints) { + if o != nil && !IsNil(o.Taints) && !IsNil(o.Taints) { return true } @@ -380,7 +380,7 @@ func (o *Nodepool) SetTaints(v *[]Taint) { // GetVolume returns the Volume field value func (o *Nodepool) GetVolume() *Volume { - if o == nil { + if o == nil || IsNil(o.Volume) { var ret *Volume return ret } diff --git a/services/ske/model_project_response.go b/services/ske/model_project_response.go index fd7276b79..c607ec5ec 100644 --- a/services/ske/model_project_response.go +++ b/services/ske/model_project_response.go @@ -64,7 +64,7 @@ func (o *ProjectResponse) GetProjectIdOk() (*string, bool) { // HasProjectId returns a boolean if a field has been set. func (o *ProjectResponse) HasProjectId() bool { - if o != nil && !IsNil(o.ProjectId) { + if o != nil && !IsNil(o.ProjectId) && !IsNil(o.ProjectId) { return true } @@ -96,7 +96,7 @@ func (o *ProjectResponse) GetStateOk() (*ProjectState, bool) { // HasState returns a boolean if a field has been set. func (o *ProjectResponse) HasState() bool { - if o != nil && !IsNil(o.State) { + if o != nil && !IsNil(o.State) && !IsNil(o.State) { return true } diff --git a/services/ske/model_provider_options.go b/services/ske/model_provider_options.go index a68522dc1..5340e94ac 100644 --- a/services/ske/model_provider_options.go +++ b/services/ske/model_provider_options.go @@ -63,7 +63,7 @@ func (o *ProviderOptions) GetAvailabilityZonesOk() (*[]AvailabilityZone, bool) { // HasAvailabilityZones returns a boolean if a field has been set. func (o *ProviderOptions) HasAvailabilityZones() bool { - if o != nil && !IsNil(o.AvailabilityZones) { + if o != nil && !IsNil(o.AvailabilityZones) && !IsNil(o.AvailabilityZones) { return true } @@ -95,7 +95,7 @@ func (o *ProviderOptions) GetKubernetesVersionsOk() (*[]KubernetesVersion, bool) // HasKubernetesVersions returns a boolean if a field has been set. func (o *ProviderOptions) HasKubernetesVersions() bool { - if o != nil && !IsNil(o.KubernetesVersions) { + if o != nil && !IsNil(o.KubernetesVersions) && !IsNil(o.KubernetesVersions) { return true } @@ -127,7 +127,7 @@ func (o *ProviderOptions) GetMachineImagesOk() (*[]MachineImage, bool) { // HasMachineImages returns a boolean if a field has been set. func (o *ProviderOptions) HasMachineImages() bool { - if o != nil && !IsNil(o.MachineImages) { + if o != nil && !IsNil(o.MachineImages) && !IsNil(o.MachineImages) { return true } @@ -159,7 +159,7 @@ func (o *ProviderOptions) GetMachineTypesOk() (*[]MachineType, bool) { // HasMachineTypes returns a boolean if a field has been set. func (o *ProviderOptions) HasMachineTypes() bool { - if o != nil && !IsNil(o.MachineTypes) { + if o != nil && !IsNil(o.MachineTypes) && !IsNil(o.MachineTypes) { return true } @@ -191,7 +191,7 @@ func (o *ProviderOptions) GetVolumeTypesOk() (*[]VolumeType, bool) { // HasVolumeTypes returns a boolean if a field has been set. func (o *ProviderOptions) HasVolumeTypes() bool { - if o != nil && !IsNil(o.VolumeTypes) { + if o != nil && !IsNil(o.VolumeTypes) && !IsNil(o.VolumeTypes) { return true } diff --git a/services/ske/model_runtime_error.go b/services/ske/model_runtime_error.go index 4c63a7e71..cfad7121a 100644 --- a/services/ske/model_runtime_error.go +++ b/services/ske/model_runtime_error.go @@ -62,7 +62,7 @@ func (o *RuntimeError) GetCodeOk() (*string, bool) { // HasCode returns a boolean if a field has been set. func (o *RuntimeError) HasCode() bool { - if o != nil && !IsNil(o.Code) { + if o != nil && !IsNil(o.Code) && !IsNil(o.Code) { return true } @@ -94,7 +94,7 @@ func (o *RuntimeError) GetDetailsOk() (*string, bool) { // HasDetails returns a boolean if a field has been set. func (o *RuntimeError) HasDetails() bool { - if o != nil && !IsNil(o.Details) { + if o != nil && !IsNil(o.Details) && !IsNil(o.Details) { return true } @@ -126,7 +126,7 @@ func (o *RuntimeError) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *RuntimeError) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/ske/model_taint.go b/services/ske/model_taint.go index 29150df93..11f3d4d43 100644 --- a/services/ske/model_taint.go +++ b/services/ske/model_taint.go @@ -49,7 +49,7 @@ func NewTaintWithDefaults() *Taint { // GetEffect returns the Effect field value func (o *Taint) GetEffect() *string { - if o == nil { + if o == nil || IsNil(o.Effect) { var ret *string return ret } @@ -73,7 +73,7 @@ func (o *Taint) SetEffect(v *string) { // GetKey returns the Key field value func (o *Taint) GetKey() *string { - if o == nil { + if o == nil || IsNil(o.Key) { var ret *string return ret } @@ -115,7 +115,7 @@ func (o *Taint) GetValueOk() (*string, bool) { // HasValue returns a boolean if a field has been set. func (o *Taint) HasValue() bool { - if o != nil && !IsNil(o.Value) { + if o != nil && !IsNil(o.Value) && !IsNil(o.Value) { return true } diff --git a/services/ske/model_time_window.go b/services/ske/model_time_window.go index 4c5685af5..934158297 100644 --- a/services/ske/model_time_window.go +++ b/services/ske/model_time_window.go @@ -48,7 +48,7 @@ func NewTimeWindowWithDefaults() *TimeWindow { // GetEnd returns the End field value func (o *TimeWindow) GetEnd() *string { - if o == nil { + if o == nil || IsNil(o.End) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *TimeWindow) SetEnd(v *string) { // GetStart returns the Start field value func (o *TimeWindow) GetStart() *string { - if o == nil { + if o == nil || IsNil(o.Start) { var ret *string return ret } diff --git a/services/ske/model_volume.go b/services/ske/model_volume.go index 5f011c075..51f8fc317 100644 --- a/services/ske/model_volume.go +++ b/services/ske/model_volume.go @@ -47,7 +47,7 @@ func NewVolumeWithDefaults() *Volume { // GetSize returns the Size field value func (o *Volume) GetSize() *int64 { - if o == nil { + if o == nil || IsNil(o.Size) { var ret *int64 return ret } @@ -89,7 +89,7 @@ func (o *Volume) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Volume) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true } diff --git a/services/ske/model_volume_type.go b/services/ske/model_volume_type.go index 58b91721a..564478606 100644 --- a/services/ske/model_volume_type.go +++ b/services/ske/model_volume_type.go @@ -59,7 +59,7 @@ func (o *VolumeType) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *VolumeType) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true }