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_cluster.go b/services/ske/model_cluster.go index 05d06a851..23538cbb0 100644 --- a/services/ske/model_cluster.go +++ b/services/ske/model_cluster.go @@ -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 } @@ -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 } diff --git a/services/ske/model_create_or_update_cluster_payload.go b/services/ske/model_create_or_update_cluster_payload.go index a6fed5fc5..2e64551a0 100644 --- a/services/ske/model_create_or_update_cluster_payload.go +++ b/services/ske/model_create_or_update_cluster_payload.go @@ -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 } @@ -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 } diff --git a/services/ske/model_dns.go b/services/ske/model_dns.go index 401a4d9a9..7bd71dc70 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 } 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..01dec8e29 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 } 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_kubernetes.go b/services/ske/model_kubernetes.go index bc0eed645..b96db2e25 100644 --- a/services/ske/model_kubernetes.go +++ b/services/ske/model_kubernetes.go @@ -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_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_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_nodepool.go b/services/ske/model_nodepool.go index 8508e1f92..fe7811f5d 100644 --- a/services/ske/model_nodepool.go +++ b/services/ske/model_nodepool.go @@ -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 } @@ -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 } @@ -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 } @@ -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_taint.go b/services/ske/model_taint.go index 29150df93..1357f0430 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 } 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..9964c8781 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 }