From 00c956a5d7ee4a2d919dd139260b13fcf5ea5146 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 15:00:17 +0000 Subject: [PATCH] Generate mongodbflex --- services/mongodbflex/model_acl.go | 2 +- services/mongodbflex/model_backup.go | 16 +++++++-------- services/mongodbflex/model_backup_schedule.go | 12 +++++------ .../model_clone_instance_payload.go | 4 ++-- .../model_clone_instance_response.go | 2 +- .../model_create_instance_payload.go | 18 ++++++++--------- .../model_create_instance_response.go | 2 +- .../mongodbflex/model_create_user_payload.go | 6 +++--- .../mongodbflex/model_create_user_response.go | 2 +- services/mongodbflex/model_data_point.go | 4 ++-- services/mongodbflex/model_error.go | 8 ++++---- services/mongodbflex/model_flavor.go | 8 ++++---- .../mongodbflex/model_get_backup_response.go | 2 +- .../model_get_instance_response.go | 2 +- .../mongodbflex/model_get_user_response.go | 2 +- .../model_handlers_infra_flavor.go | 10 +++++----- ...del_handlers_infra_get_flavors_response.go | 2 +- ...andlers_instances_get_instance_response.go | 2 +- ...andlers_instances_slow_queries_response.go | 2 +- ...rs_instances_suggested_indexes_response.go | 4 ++-- services/mongodbflex/model_host.go | 4 ++-- services/mongodbflex/model_host_metric.go | 6 +++--- services/mongodbflex/model_instance.go | 20 +++++++++---------- .../model_instance_list_instance.go | 6 +++--- .../model_instance_response_user.go | 12 +++++------ .../model_list_backups_response.go | 4 ++-- .../model_list_flavors_response.go | 2 +- .../model_list_instances_response.go | 4 ++-- .../model_list_metrics_response.go | 2 +- .../model_list_restore_jobs_response.go | 2 +- .../model_list_storages_response.go | 4 ++-- services/mongodbflex/model_list_user.go | 4 ++-- .../mongodbflex/model_list_users_response.go | 4 ++-- .../model_list_versions_response.go | 2 +- .../model_mongodbatlas_operation.go | 6 +++--- .../model_mongodbatlas_operation_stats.go | 8 ++++---- .../mongodbflex/model_mongodbatlas_stats.go | 8 ++++---- .../model_partial_update_instance_payload.go | 18 ++++++++--------- .../model_partial_update_user_payload.go | 4 ++-- .../model_restore_instance_payload.go | 4 ++-- .../model_restore_instance_response.go | 2 +- .../model_restore_instance_status.go | 10 +++++----- services/mongodbflex/model_shape.go | 12 +++++------ services/mongodbflex/model_slow_query.go | 4 ++-- services/mongodbflex/model_storage.go | 4 ++-- services/mongodbflex/model_storage_range.go | 4 ++-- services/mongodbflex/model_suggested_index.go | 10 +++++----- .../model_update_backup_schedule_payload.go | 12 +++++------ .../model_update_instance_payload.go | 18 ++++++++--------- .../model_update_instance_response.go | 2 +- .../mongodbflex/model_update_user_payload.go | 4 ++-- services/mongodbflex/model_user.go | 16 +++++++-------- 52 files changed, 166 insertions(+), 166 deletions(-) diff --git a/services/mongodbflex/model_acl.go b/services/mongodbflex/model_acl.go index a33179267..9a6982ce3 100644 --- a/services/mongodbflex/model_acl.go +++ b/services/mongodbflex/model_acl.go @@ -59,7 +59,7 @@ func (o *ACL) GetItemsOk() (*[]string, bool) { // HasItems returns a boolean if a field has been set. func (o *ACL) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/mongodbflex/model_backup.go b/services/mongodbflex/model_backup.go index 4afa30ab2..dfb01dec4 100644 --- a/services/mongodbflex/model_backup.go +++ b/services/mongodbflex/model_backup.go @@ -66,7 +66,7 @@ func (o *Backup) GetEndTimeOk() (*string, bool) { // HasEndTime returns a boolean if a field has been set. func (o *Backup) HasEndTime() bool { - if o != nil && !IsNil(o.EndTime) { + if o != nil && !IsNil(o.EndTime) && !IsNil(o.EndTime) { return true } @@ -98,7 +98,7 @@ func (o *Backup) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *Backup) HasError() bool { - if o != nil && !IsNil(o.Error) { + if o != nil && !IsNil(o.Error) && !IsNil(o.Error) { return true } @@ -130,7 +130,7 @@ func (o *Backup) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Backup) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -162,7 +162,7 @@ func (o *Backup) GetLabelsOk() (*[]string, bool) { // HasLabels returns a boolean if a field has been set. func (o *Backup) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -194,7 +194,7 @@ func (o *Backup) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *Backup) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -226,7 +226,7 @@ func (o *Backup) GetOptionsOk() (*map[string]string, bool) { // HasOptions returns a boolean if a field has been set. func (o *Backup) HasOptions() bool { - if o != nil && !IsNil(o.Options) { + if o != nil && !IsNil(o.Options) && !IsNil(o.Options) { return true } @@ -258,7 +258,7 @@ func (o *Backup) GetSizeOk() (*int64, bool) { // HasSize returns a boolean if a field has been set. func (o *Backup) HasSize() bool { - if o != nil && !IsNil(o.Size) { + if o != nil && !IsNil(o.Size) && !IsNil(o.Size) { return true } @@ -290,7 +290,7 @@ func (o *Backup) GetStartTimeOk() (*string, bool) { // HasStartTime returns a boolean if a field has been set. func (o *Backup) HasStartTime() bool { - if o != nil && !IsNil(o.StartTime) { + if o != nil && !IsNil(o.StartTime) && !IsNil(o.StartTime) { return true } diff --git a/services/mongodbflex/model_backup_schedule.go b/services/mongodbflex/model_backup_schedule.go index eee12a95e..80174970b 100644 --- a/services/mongodbflex/model_backup_schedule.go +++ b/services/mongodbflex/model_backup_schedule.go @@ -64,7 +64,7 @@ func (o *BackupSchedule) GetBackupScheduleOk() (*string, bool) { // HasBackupSchedule returns a boolean if a field has been set. func (o *BackupSchedule) HasBackupSchedule() bool { - if o != nil && !IsNil(o.BackupSchedule) { + if o != nil && !IsNil(o.BackupSchedule) && !IsNil(o.BackupSchedule) { return true } @@ -96,7 +96,7 @@ func (o *BackupSchedule) GetDailySnapshotRetentionDaysOk() (*int64, bool) { // HasDailySnapshotRetentionDays returns a boolean if a field has been set. func (o *BackupSchedule) HasDailySnapshotRetentionDays() bool { - if o != nil && !IsNil(o.DailySnapshotRetentionDays) { + if o != nil && !IsNil(o.DailySnapshotRetentionDays) && !IsNil(o.DailySnapshotRetentionDays) { return true } @@ -128,7 +128,7 @@ func (o *BackupSchedule) GetMonthlySnapshotRetentionMonthsOk() (*int64, bool) { // HasMonthlySnapshotRetentionMonths returns a boolean if a field has been set. func (o *BackupSchedule) HasMonthlySnapshotRetentionMonths() bool { - if o != nil && !IsNil(o.MonthlySnapshotRetentionMonths) { + if o != nil && !IsNil(o.MonthlySnapshotRetentionMonths) && !IsNil(o.MonthlySnapshotRetentionMonths) { return true } @@ -160,7 +160,7 @@ func (o *BackupSchedule) GetPointInTimeWindowHoursOk() (*int64, bool) { // HasPointInTimeWindowHours returns a boolean if a field has been set. func (o *BackupSchedule) HasPointInTimeWindowHours() bool { - if o != nil && !IsNil(o.PointInTimeWindowHours) { + if o != nil && !IsNil(o.PointInTimeWindowHours) && !IsNil(o.PointInTimeWindowHours) { return true } @@ -192,7 +192,7 @@ func (o *BackupSchedule) GetSnapshotRetentionDaysOk() (*int64, bool) { // HasSnapshotRetentionDays returns a boolean if a field has been set. func (o *BackupSchedule) HasSnapshotRetentionDays() bool { - if o != nil && !IsNil(o.SnapshotRetentionDays) { + if o != nil && !IsNil(o.SnapshotRetentionDays) && !IsNil(o.SnapshotRetentionDays) { return true } @@ -224,7 +224,7 @@ func (o *BackupSchedule) GetWeeklySnapshotRetentionWeeksOk() (*int64, bool) { // HasWeeklySnapshotRetentionWeeks returns a boolean if a field has been set. func (o *BackupSchedule) HasWeeklySnapshotRetentionWeeks() bool { - if o != nil && !IsNil(o.WeeklySnapshotRetentionWeeks) { + if o != nil && !IsNil(o.WeeklySnapshotRetentionWeeks) && !IsNil(o.WeeklySnapshotRetentionWeeks) { return true } diff --git a/services/mongodbflex/model_clone_instance_payload.go b/services/mongodbflex/model_clone_instance_payload.go index 4f6784f96..a7d768cab 100644 --- a/services/mongodbflex/model_clone_instance_payload.go +++ b/services/mongodbflex/model_clone_instance_payload.go @@ -46,7 +46,7 @@ func NewCloneInstancePayloadWithDefaults() *CloneInstancePayload { // GetInstanceId returns the InstanceId field value func (o *CloneInstancePayload) GetInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.InstanceId) { var ret *string return ret } @@ -88,7 +88,7 @@ func (o *CloneInstancePayload) GetTimestampOk() (*string, bool) { // HasTimestamp returns a boolean if a field has been set. func (o *CloneInstancePayload) HasTimestamp() bool { - if o != nil && !IsNil(o.Timestamp) { + if o != nil && !IsNil(o.Timestamp) && !IsNil(o.Timestamp) { return true } diff --git a/services/mongodbflex/model_clone_instance_response.go b/services/mongodbflex/model_clone_instance_response.go index d80fcf112..7fb45e76b 100644 --- a/services/mongodbflex/model_clone_instance_response.go +++ b/services/mongodbflex/model_clone_instance_response.go @@ -59,7 +59,7 @@ func (o *CloneInstanceResponse) GetInstanceIdOk() (*string, bool) { // HasInstanceId returns a boolean if a field has been set. func (o *CloneInstanceResponse) HasInstanceId() bool { - if o != nil && !IsNil(o.InstanceId) { + if o != nil && !IsNil(o.InstanceId) && !IsNil(o.InstanceId) { return true } diff --git a/services/mongodbflex/model_create_instance_payload.go b/services/mongodbflex/model_create_instance_payload.go index 552cc0073..0baf15dd6 100644 --- a/services/mongodbflex/model_create_instance_payload.go +++ b/services/mongodbflex/model_create_instance_payload.go @@ -68,7 +68,7 @@ func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { // GetAcl returns the Acl field value func (o *CreateInstancePayload) GetAcl() *ACL { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *ACL return ret } @@ -92,7 +92,7 @@ func (o *CreateInstancePayload) SetAcl(v *ACL) { // GetBackupSchedule returns the BackupSchedule field value func (o *CreateInstancePayload) GetBackupSchedule() *string { - if o == nil { + if o == nil || IsNil(o.BackupSchedule) { var ret *string return ret } @@ -116,7 +116,7 @@ func (o *CreateInstancePayload) SetBackupSchedule(v *string) { // GetFlavorId returns the FlavorId field value func (o *CreateInstancePayload) GetFlavorId() *string { - if o == nil { + if o == nil || IsNil(o.FlavorId) { var ret *string return ret } @@ -158,7 +158,7 @@ func (o *CreateInstancePayload) GetLabelsOk() (*map[string]string, bool) { // HasLabels returns a boolean if a field has been set. func (o *CreateInstancePayload) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -172,7 +172,7 @@ func (o *CreateInstancePayload) SetLabels(v *map[string]string) { // GetName returns the Name field value func (o *CreateInstancePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *CreateInstancePayload) SetName(v *string) { // GetOptions returns the Options field value func (o *CreateInstancePayload) GetOptions() *map[string]string { - if o == nil { + if o == nil || IsNil(o.Options) { var ret *map[string]string return ret } @@ -220,7 +220,7 @@ func (o *CreateInstancePayload) SetOptions(v *map[string]string) { // GetReplicas returns the Replicas field value func (o *CreateInstancePayload) GetReplicas() *int64 { - if o == nil { + if o == nil || IsNil(o.Replicas) { var ret *int64 return ret } @@ -244,7 +244,7 @@ func (o *CreateInstancePayload) SetReplicas(v *int64) { // GetStorage returns the Storage field value func (o *CreateInstancePayload) GetStorage() *Storage { - if o == nil { + if o == nil || IsNil(o.Storage) { var ret *Storage return ret } @@ -268,7 +268,7 @@ func (o *CreateInstancePayload) SetStorage(v *Storage) { // GetVersion returns the Version field value func (o *CreateInstancePayload) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/mongodbflex/model_create_instance_response.go b/services/mongodbflex/model_create_instance_response.go index ac44dbdf9..bf656963a 100644 --- a/services/mongodbflex/model_create_instance_response.go +++ b/services/mongodbflex/model_create_instance_response.go @@ -59,7 +59,7 @@ func (o *CreateInstanceResponse) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *CreateInstanceResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } diff --git a/services/mongodbflex/model_create_user_payload.go b/services/mongodbflex/model_create_user_payload.go index 6a69edd15..c8fdd9825 100644 --- a/services/mongodbflex/model_create_user_payload.go +++ b/services/mongodbflex/model_create_user_payload.go @@ -49,7 +49,7 @@ func NewCreateUserPayloadWithDefaults() *CreateUserPayload { // GetDatabase returns the Database field value func (o *CreateUserPayload) GetDatabase() *string { - if o == nil { + if o == nil || IsNil(o.Database) { var ret *string return ret } @@ -73,7 +73,7 @@ func (o *CreateUserPayload) SetDatabase(v *string) { // GetRoles returns the Roles field value func (o *CreateUserPayload) GetRoles() *[]string { - if o == nil { + if o == nil || IsNil(o.Roles) { var ret *[]string return ret } @@ -115,7 +115,7 @@ func (o *CreateUserPayload) GetUsernameOk() (*string, bool) { // HasUsername returns a boolean if a field has been set. func (o *CreateUserPayload) HasUsername() bool { - if o != nil && !IsNil(o.Username) { + if o != nil && !IsNil(o.Username) && !IsNil(o.Username) { return true } diff --git a/services/mongodbflex/model_create_user_response.go b/services/mongodbflex/model_create_user_response.go index 741482aa9..434a121d2 100644 --- a/services/mongodbflex/model_create_user_response.go +++ b/services/mongodbflex/model_create_user_response.go @@ -59,7 +59,7 @@ func (o *CreateUserResponse) GetItemOk() (*User, bool) { // HasItem returns a boolean if a field has been set. func (o *CreateUserResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_data_point.go b/services/mongodbflex/model_data_point.go index 536464ba0..434580644 100644 --- a/services/mongodbflex/model_data_point.go +++ b/services/mongodbflex/model_data_point.go @@ -60,7 +60,7 @@ func (o *DataPoint) GetTimestampOk() (*string, bool) { // HasTimestamp returns a boolean if a field has been set. func (o *DataPoint) HasTimestamp() bool { - if o != nil && !IsNil(o.Timestamp) { + if o != nil && !IsNil(o.Timestamp) && !IsNil(o.Timestamp) { return true } @@ -92,7 +92,7 @@ func (o *DataPoint) GetValueOk() (*float64, bool) { // HasValue returns a boolean if a field has been set. func (o *DataPoint) HasValue() bool { - if o != nil && !IsNil(o.Value) { + if o != nil && !IsNil(o.Value) && !IsNil(o.Value) { return true } diff --git a/services/mongodbflex/model_error.go b/services/mongodbflex/model_error.go index 525121388..a95a13213 100644 --- a/services/mongodbflex/model_error.go +++ b/services/mongodbflex/model_error.go @@ -62,7 +62,7 @@ func (o *Error) GetCodeOk() (*int64, bool) { // HasCode returns a boolean if a field has been set. func (o *Error) 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 *Error) GetFieldsOk() (*map[string][]string, bool) { // HasFields returns a boolean if a field has been set. func (o *Error) HasFields() bool { - if o != nil && !IsNil(o.Fields) { + if o != nil && !IsNil(o.Fields) && !IsNil(o.Fields) { return true } @@ -126,7 +126,7 @@ func (o *Error) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *Error) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } @@ -158,7 +158,7 @@ func (o *Error) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Error) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true } diff --git a/services/mongodbflex/model_flavor.go b/services/mongodbflex/model_flavor.go index ab91dadd9..33c96c6ae 100644 --- a/services/mongodbflex/model_flavor.go +++ b/services/mongodbflex/model_flavor.go @@ -62,7 +62,7 @@ func (o *Flavor) GetCpuOk() (*int64, bool) { // HasCpu returns a boolean if a field has been set. func (o *Flavor) HasCpu() bool { - if o != nil && !IsNil(o.Cpu) { + if o != nil && !IsNil(o.Cpu) && !IsNil(o.Cpu) { return true } @@ -94,7 +94,7 @@ func (o *Flavor) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Flavor) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -126,7 +126,7 @@ func (o *Flavor) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Flavor) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -158,7 +158,7 @@ func (o *Flavor) GetMemoryOk() (*int64, bool) { // HasMemory returns a boolean if a field has been set. func (o *Flavor) HasMemory() bool { - if o != nil && !IsNil(o.Memory) { + if o != nil && !IsNil(o.Memory) && !IsNil(o.Memory) { return true } diff --git a/services/mongodbflex/model_get_backup_response.go b/services/mongodbflex/model_get_backup_response.go index 98aa18088..19303efaf 100644 --- a/services/mongodbflex/model_get_backup_response.go +++ b/services/mongodbflex/model_get_backup_response.go @@ -59,7 +59,7 @@ func (o *GetBackupResponse) GetItemOk() (*Backup, bool) { // HasItem returns a boolean if a field has been set. func (o *GetBackupResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_get_instance_response.go b/services/mongodbflex/model_get_instance_response.go index 98b8cb444..b8a14961b 100644 --- a/services/mongodbflex/model_get_instance_response.go +++ b/services/mongodbflex/model_get_instance_response.go @@ -59,7 +59,7 @@ func (o *GetInstanceResponse) GetItemOk() (*Instance, bool) { // HasItem returns a boolean if a field has been set. func (o *GetInstanceResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_get_user_response.go b/services/mongodbflex/model_get_user_response.go index e618f9853..c0c9495e7 100644 --- a/services/mongodbflex/model_get_user_response.go +++ b/services/mongodbflex/model_get_user_response.go @@ -59,7 +59,7 @@ func (o *GetUserResponse) GetItemOk() (*InstanceResponseUser, bool) { // HasItem returns a boolean if a field has been set. func (o *GetUserResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_handlers_infra_flavor.go b/services/mongodbflex/model_handlers_infra_flavor.go index 9a7240acd..02f373578 100644 --- a/services/mongodbflex/model_handlers_infra_flavor.go +++ b/services/mongodbflex/model_handlers_infra_flavor.go @@ -63,7 +63,7 @@ func (o *HandlersInfraFlavor) GetCategoriesOk() (*[]string, bool) { // HasCategories returns a boolean if a field has been set. func (o *HandlersInfraFlavor) HasCategories() bool { - if o != nil && !IsNil(o.Categories) { + if o != nil && !IsNil(o.Categories) && !IsNil(o.Categories) { return true } @@ -95,7 +95,7 @@ func (o *HandlersInfraFlavor) GetCpuOk() (*int64, bool) { // HasCpu returns a boolean if a field has been set. func (o *HandlersInfraFlavor) 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 *HandlersInfraFlavor) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *HandlersInfraFlavor) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -159,7 +159,7 @@ func (o *HandlersInfraFlavor) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *HandlersInfraFlavor) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -191,7 +191,7 @@ func (o *HandlersInfraFlavor) GetMemoryOk() (*int64, bool) { // HasMemory returns a boolean if a field has been set. func (o *HandlersInfraFlavor) HasMemory() bool { - if o != nil && !IsNil(o.Memory) { + if o != nil && !IsNil(o.Memory) && !IsNil(o.Memory) { return true } diff --git a/services/mongodbflex/model_handlers_infra_get_flavors_response.go b/services/mongodbflex/model_handlers_infra_get_flavors_response.go index aafa411bc..492301db6 100644 --- a/services/mongodbflex/model_handlers_infra_get_flavors_response.go +++ b/services/mongodbflex/model_handlers_infra_get_flavors_response.go @@ -59,7 +59,7 @@ func (o *HandlersInfraGetFlavorsResponse) GetFlavorsOk() (*[]HandlersInfraFlavor // HasFlavors returns a boolean if a field has been set. func (o *HandlersInfraGetFlavorsResponse) HasFlavors() bool { - if o != nil && !IsNil(o.Flavors) { + if o != nil && !IsNil(o.Flavors) && !IsNil(o.Flavors) { return true } diff --git a/services/mongodbflex/model_handlers_instances_get_instance_response.go b/services/mongodbflex/model_handlers_instances_get_instance_response.go index de049b133..0e7ecbf9c 100644 --- a/services/mongodbflex/model_handlers_instances_get_instance_response.go +++ b/services/mongodbflex/model_handlers_instances_get_instance_response.go @@ -59,7 +59,7 @@ func (o *HandlersInstancesGetInstanceResponse) GetItemOk() (*Instance, bool) { // HasItem returns a boolean if a field has been set. func (o *HandlersInstancesGetInstanceResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_handlers_instances_slow_queries_response.go b/services/mongodbflex/model_handlers_instances_slow_queries_response.go index 7c21fe6be..7e1607820 100644 --- a/services/mongodbflex/model_handlers_instances_slow_queries_response.go +++ b/services/mongodbflex/model_handlers_instances_slow_queries_response.go @@ -60,7 +60,7 @@ func (o *HandlersInstancesSlowQueriesResponse) GetSlowQueriesOk() (*[]SlowQuery, // HasSlowQueries returns a boolean if a field has been set. func (o *HandlersInstancesSlowQueriesResponse) HasSlowQueries() bool { - if o != nil && !IsNil(o.SlowQueries) { + if o != nil && !IsNil(o.SlowQueries) && !IsNil(o.SlowQueries) { return true } diff --git a/services/mongodbflex/model_handlers_instances_suggested_indexes_response.go b/services/mongodbflex/model_handlers_instances_suggested_indexes_response.go index 000b808da..436247dec 100644 --- a/services/mongodbflex/model_handlers_instances_suggested_indexes_response.go +++ b/services/mongodbflex/model_handlers_instances_suggested_indexes_response.go @@ -62,7 +62,7 @@ func (o *HandlersInstancesSuggestedIndexesResponse) GetShapesOk() (*[]Shape, boo // HasShapes returns a boolean if a field has been set. func (o *HandlersInstancesSuggestedIndexesResponse) HasShapes() bool { - if o != nil && !IsNil(o.Shapes) { + if o != nil && !IsNil(o.Shapes) && !IsNil(o.Shapes) { return true } @@ -94,7 +94,7 @@ func (o *HandlersInstancesSuggestedIndexesResponse) GetSuggestedIndexesOk() (*[] // HasSuggestedIndexes returns a boolean if a field has been set. func (o *HandlersInstancesSuggestedIndexesResponse) HasSuggestedIndexes() bool { - if o != nil && !IsNil(o.SuggestedIndexes) { + if o != nil && !IsNil(o.SuggestedIndexes) && !IsNil(o.SuggestedIndexes) { return true } diff --git a/services/mongodbflex/model_host.go b/services/mongodbflex/model_host.go index 108bf3b24..f68558109 100644 --- a/services/mongodbflex/model_host.go +++ b/services/mongodbflex/model_host.go @@ -60,7 +60,7 @@ func (o *Host) GetHostMetricsOk() (*[]HostMetric, bool) { // HasHostMetrics returns a boolean if a field has been set. func (o *Host) HasHostMetrics() bool { - if o != nil && !IsNil(o.HostMetrics) { + if o != nil && !IsNil(o.HostMetrics) && !IsNil(o.HostMetrics) { return true } @@ -92,7 +92,7 @@ func (o *Host) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Host) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } diff --git a/services/mongodbflex/model_host_metric.go b/services/mongodbflex/model_host_metric.go index ac5a8602c..acbee4e53 100644 --- a/services/mongodbflex/model_host_metric.go +++ b/services/mongodbflex/model_host_metric.go @@ -61,7 +61,7 @@ func (o *HostMetric) GetDatapointsOk() (*[]DataPoint, bool) { // HasDatapoints returns a boolean if a field has been set. func (o *HostMetric) HasDatapoints() bool { - if o != nil && !IsNil(o.Datapoints) { + if o != nil && !IsNil(o.Datapoints) && !IsNil(o.Datapoints) { return true } @@ -93,7 +93,7 @@ func (o *HostMetric) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *HostMetric) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -125,7 +125,7 @@ func (o *HostMetric) GetUnitsOk() (*string, bool) { // HasUnits returns a boolean if a field has been set. func (o *HostMetric) HasUnits() bool { - if o != nil && !IsNil(o.Units) { + if o != nil && !IsNil(o.Units) && !IsNil(o.Units) { return true } diff --git a/services/mongodbflex/model_instance.go b/services/mongodbflex/model_instance.go index 395013e80..4ca61feeb 100644 --- a/services/mongodbflex/model_instance.go +++ b/services/mongodbflex/model_instance.go @@ -68,7 +68,7 @@ func (o *Instance) GetAclOk() (*ACL, bool) { // HasAcl returns a boolean if a field has been set. func (o *Instance) HasAcl() bool { - if o != nil && !IsNil(o.Acl) { + if o != nil && !IsNil(o.Acl) && !IsNil(o.Acl) { return true } @@ -100,7 +100,7 @@ func (o *Instance) GetBackupScheduleOk() (*string, bool) { // HasBackupSchedule returns a boolean if a field has been set. func (o *Instance) HasBackupSchedule() bool { - if o != nil && !IsNil(o.BackupSchedule) { + if o != nil && !IsNil(o.BackupSchedule) && !IsNil(o.BackupSchedule) { return true } @@ -132,7 +132,7 @@ func (o *Instance) GetFlavorOk() (*Flavor, bool) { // HasFlavor returns a boolean if a field has been set. func (o *Instance) HasFlavor() bool { - if o != nil && !IsNil(o.Flavor) { + if o != nil && !IsNil(o.Flavor) && !IsNil(o.Flavor) { return true } @@ -164,7 +164,7 @@ func (o *Instance) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Instance) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -196,7 +196,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 } @@ -228,7 +228,7 @@ func (o *Instance) GetOptionsOk() (*map[string]string, bool) { // HasOptions returns a boolean if a field has been set. func (o *Instance) HasOptions() bool { - if o != nil && !IsNil(o.Options) { + if o != nil && !IsNil(o.Options) && !IsNil(o.Options) { return true } @@ -260,7 +260,7 @@ func (o *Instance) GetReplicasOk() (*int64, bool) { // HasReplicas returns a boolean if a field has been set. func (o *Instance) HasReplicas() bool { - if o != nil && !IsNil(o.Replicas) { + if o != nil && !IsNil(o.Replicas) && !IsNil(o.Replicas) { return true } @@ -292,7 +292,7 @@ func (o *Instance) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *Instance) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } @@ -324,7 +324,7 @@ func (o *Instance) GetStorageOk() (*Storage, bool) { // HasStorage returns a boolean if a field has been set. func (o *Instance) HasStorage() bool { - if o != nil && !IsNil(o.Storage) { + if o != nil && !IsNil(o.Storage) && !IsNil(o.Storage) { return true } @@ -356,7 +356,7 @@ func (o *Instance) GetVersionOk() (*string, bool) { // HasVersion returns a boolean if a field has been set. func (o *Instance) HasVersion() bool { - if o != nil && !IsNil(o.Version) { + if o != nil && !IsNil(o.Version) && !IsNil(o.Version) { return true } diff --git a/services/mongodbflex/model_instance_list_instance.go b/services/mongodbflex/model_instance_list_instance.go index 38ae2ea14..f49bc3642 100644 --- a/services/mongodbflex/model_instance_list_instance.go +++ b/services/mongodbflex/model_instance_list_instance.go @@ -61,7 +61,7 @@ func (o *InstanceListInstance) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *InstanceListInstance) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -93,7 +93,7 @@ func (o *InstanceListInstance) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *InstanceListInstance) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -125,7 +125,7 @@ func (o *InstanceListInstance) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *InstanceListInstance) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/mongodbflex/model_instance_response_user.go b/services/mongodbflex/model_instance_response_user.go index b29de9978..23d817a72 100644 --- a/services/mongodbflex/model_instance_response_user.go +++ b/services/mongodbflex/model_instance_response_user.go @@ -64,7 +64,7 @@ func (o *InstanceResponseUser) GetDatabaseOk() (*string, bool) { // HasDatabase returns a boolean if a field has been set. func (o *InstanceResponseUser) HasDatabase() bool { - if o != nil && !IsNil(o.Database) { + if o != nil && !IsNil(o.Database) && !IsNil(o.Database) { return true } @@ -96,7 +96,7 @@ func (o *InstanceResponseUser) GetHostOk() (*string, bool) { // HasHost returns a boolean if a field has been set. func (o *InstanceResponseUser) HasHost() bool { - if o != nil && !IsNil(o.Host) { + if o != nil && !IsNil(o.Host) && !IsNil(o.Host) { return true } @@ -128,7 +128,7 @@ func (o *InstanceResponseUser) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *InstanceResponseUser) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -160,7 +160,7 @@ func (o *InstanceResponseUser) GetPortOk() (*int64, bool) { // HasPort returns a boolean if a field has been set. func (o *InstanceResponseUser) HasPort() bool { - if o != nil && !IsNil(o.Port) { + if o != nil && !IsNil(o.Port) && !IsNil(o.Port) { return true } @@ -192,7 +192,7 @@ func (o *InstanceResponseUser) GetRolesOk() (*[]string, bool) { // HasRoles returns a boolean if a field has been set. func (o *InstanceResponseUser) HasRoles() bool { - if o != nil && !IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) && !IsNil(o.Roles) { return true } @@ -224,7 +224,7 @@ func (o *InstanceResponseUser) GetUsernameOk() (*string, bool) { // HasUsername returns a boolean if a field has been set. func (o *InstanceResponseUser) HasUsername() bool { - if o != nil && !IsNil(o.Username) { + if o != nil && !IsNil(o.Username) && !IsNil(o.Username) { return true } diff --git a/services/mongodbflex/model_list_backups_response.go b/services/mongodbflex/model_list_backups_response.go index e53dd33a9..e6223f8d4 100644 --- a/services/mongodbflex/model_list_backups_response.go +++ b/services/mongodbflex/model_list_backups_response.go @@ -60,7 +60,7 @@ func (o *ListBackupsResponse) GetCountOk() (*int64, bool) { // HasCount returns a boolean if a field has been set. func (o *ListBackupsResponse) HasCount() bool { - if o != nil && !IsNil(o.Count) { + if o != nil && !IsNil(o.Count) && !IsNil(o.Count) { return true } @@ -92,7 +92,7 @@ func (o *ListBackupsResponse) GetItemsOk() (*[]Backup, bool) { // HasItems returns a boolean if a field has been set. func (o *ListBackupsResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/mongodbflex/model_list_flavors_response.go b/services/mongodbflex/model_list_flavors_response.go index 3ee76b4cc..2c36d0421 100644 --- a/services/mongodbflex/model_list_flavors_response.go +++ b/services/mongodbflex/model_list_flavors_response.go @@ -59,7 +59,7 @@ func (o *ListFlavorsResponse) GetFlavorsOk() (*[]HandlersInfraFlavor, bool) { // HasFlavors returns a boolean if a field has been set. func (o *ListFlavorsResponse) HasFlavors() bool { - if o != nil && !IsNil(o.Flavors) { + if o != nil && !IsNil(o.Flavors) && !IsNil(o.Flavors) { return true } diff --git a/services/mongodbflex/model_list_instances_response.go b/services/mongodbflex/model_list_instances_response.go index 7effc027b..7bb0d25a6 100644 --- a/services/mongodbflex/model_list_instances_response.go +++ b/services/mongodbflex/model_list_instances_response.go @@ -60,7 +60,7 @@ func (o *ListInstancesResponse) GetCountOk() (*int64, bool) { // HasCount returns a boolean if a field has been set. func (o *ListInstancesResponse) HasCount() bool { - if o != nil && !IsNil(o.Count) { + if o != nil && !IsNil(o.Count) && !IsNil(o.Count) { return true } @@ -92,7 +92,7 @@ func (o *ListInstancesResponse) GetItemsOk() (*[]InstanceListInstance, bool) { // HasItems returns a boolean if a field has been set. func (o *ListInstancesResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/mongodbflex/model_list_metrics_response.go b/services/mongodbflex/model_list_metrics_response.go index c13024581..996edae9e 100644 --- a/services/mongodbflex/model_list_metrics_response.go +++ b/services/mongodbflex/model_list_metrics_response.go @@ -59,7 +59,7 @@ func (o *ListMetricsResponse) GetHostsOk() (*[]Host, bool) { // HasHosts returns a boolean if a field has been set. func (o *ListMetricsResponse) HasHosts() bool { - if o != nil && !IsNil(o.Hosts) { + if o != nil && !IsNil(o.Hosts) && !IsNil(o.Hosts) { return true } diff --git a/services/mongodbflex/model_list_restore_jobs_response.go b/services/mongodbflex/model_list_restore_jobs_response.go index 5e6d44db5..8687dc954 100644 --- a/services/mongodbflex/model_list_restore_jobs_response.go +++ b/services/mongodbflex/model_list_restore_jobs_response.go @@ -59,7 +59,7 @@ func (o *ListRestoreJobsResponse) GetItemsOk() (*[]RestoreInstanceStatus, bool) // HasItems returns a boolean if a field has been set. func (o *ListRestoreJobsResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/mongodbflex/model_list_storages_response.go b/services/mongodbflex/model_list_storages_response.go index 58920acfa..8119619ef 100644 --- a/services/mongodbflex/model_list_storages_response.go +++ b/services/mongodbflex/model_list_storages_response.go @@ -60,7 +60,7 @@ func (o *ListStoragesResponse) GetStorageClassesOk() (*[]string, bool) { // HasStorageClasses returns a boolean if a field has been set. func (o *ListStoragesResponse) HasStorageClasses() bool { - if o != nil && !IsNil(o.StorageClasses) { + if o != nil && !IsNil(o.StorageClasses) && !IsNil(o.StorageClasses) { return true } @@ -92,7 +92,7 @@ func (o *ListStoragesResponse) GetStorageRangeOk() (*StorageRange, bool) { // HasStorageRange returns a boolean if a field has been set. func (o *ListStoragesResponse) HasStorageRange() bool { - if o != nil && !IsNil(o.StorageRange) { + if o != nil && !IsNil(o.StorageRange) && !IsNil(o.StorageRange) { return true } diff --git a/services/mongodbflex/model_list_user.go b/services/mongodbflex/model_list_user.go index bbbc06b4e..65d0ee658 100644 --- a/services/mongodbflex/model_list_user.go +++ b/services/mongodbflex/model_list_user.go @@ -60,7 +60,7 @@ func (o *ListUser) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *ListUser) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -92,7 +92,7 @@ func (o *ListUser) GetUsernameOk() (*string, bool) { // HasUsername returns a boolean if a field has been set. func (o *ListUser) HasUsername() bool { - if o != nil && !IsNil(o.Username) { + if o != nil && !IsNil(o.Username) && !IsNil(o.Username) { return true } diff --git a/services/mongodbflex/model_list_users_response.go b/services/mongodbflex/model_list_users_response.go index e38c9432a..f33caa0d5 100644 --- a/services/mongodbflex/model_list_users_response.go +++ b/services/mongodbflex/model_list_users_response.go @@ -60,7 +60,7 @@ func (o *ListUsersResponse) GetCountOk() (*int64, bool) { // HasCount returns a boolean if a field has been set. func (o *ListUsersResponse) HasCount() bool { - if o != nil && !IsNil(o.Count) { + if o != nil && !IsNil(o.Count) && !IsNil(o.Count) { return true } @@ -92,7 +92,7 @@ func (o *ListUsersResponse) GetItemsOk() (*[]ListUser, bool) { // HasItems returns a boolean if a field has been set. func (o *ListUsersResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/mongodbflex/model_list_versions_response.go b/services/mongodbflex/model_list_versions_response.go index 9245e3ebe..2d9c81a63 100644 --- a/services/mongodbflex/model_list_versions_response.go +++ b/services/mongodbflex/model_list_versions_response.go @@ -59,7 +59,7 @@ func (o *ListVersionsResponse) GetVersionsOk() (*[]string, bool) { // HasVersions returns a boolean if a field has been set. func (o *ListVersionsResponse) HasVersions() bool { - if o != nil && !IsNil(o.Versions) { + if o != nil && !IsNil(o.Versions) && !IsNil(o.Versions) { return true } diff --git a/services/mongodbflex/model_mongodbatlas_operation.go b/services/mongodbflex/model_mongodbatlas_operation.go index 654b66c23..de6073738 100644 --- a/services/mongodbflex/model_mongodbatlas_operation.go +++ b/services/mongodbflex/model_mongodbatlas_operation.go @@ -63,7 +63,7 @@ func (o *MongodbatlasOperation) GetPredicatesOk() (*[]map[string]interface{}, bo // HasPredicates returns a boolean if a field has been set. func (o *MongodbatlasOperation) HasPredicates() bool { - if o != nil && !IsNil(o.Predicates) { + if o != nil && !IsNil(o.Predicates) && !IsNil(o.Predicates) { return true } @@ -95,7 +95,7 @@ func (o *MongodbatlasOperation) GetRawOk() (*string, bool) { // HasRaw returns a boolean if a field has been set. func (o *MongodbatlasOperation) HasRaw() bool { - if o != nil && !IsNil(o.Raw) { + if o != nil && !IsNil(o.Raw) && !IsNil(o.Raw) { return true } @@ -127,7 +127,7 @@ func (o *MongodbatlasOperation) GetStatsOk() (*MongodbatlasOperationStats, bool) // HasStats returns a boolean if a field has been set. func (o *MongodbatlasOperation) HasStats() bool { - if o != nil && !IsNil(o.Stats) { + if o != nil && !IsNil(o.Stats) && !IsNil(o.Stats) { return true } diff --git a/services/mongodbflex/model_mongodbatlas_operation_stats.go b/services/mongodbflex/model_mongodbatlas_operation_stats.go index 61827ce48..bd58a204f 100644 --- a/services/mongodbflex/model_mongodbatlas_operation_stats.go +++ b/services/mongodbflex/model_mongodbatlas_operation_stats.go @@ -66,7 +66,7 @@ func (o *MongodbatlasOperationStats) GetMsOk() (*float64, bool) { // HasMs returns a boolean if a field has been set. func (o *MongodbatlasOperationStats) HasMs() bool { - if o != nil && !IsNil(o.Ms) { + if o != nil && !IsNil(o.Ms) && !IsNil(o.Ms) { return true } @@ -98,7 +98,7 @@ func (o *MongodbatlasOperationStats) GetNReturnedOk() (*int64, bool) { // HasNReturned returns a boolean if a field has been set. func (o *MongodbatlasOperationStats) HasNReturned() bool { - if o != nil && !IsNil(o.NReturned) { + if o != nil && !IsNil(o.NReturned) && !IsNil(o.NReturned) { return true } @@ -130,7 +130,7 @@ func (o *MongodbatlasOperationStats) GetNScannedOk() (*int64, bool) { // HasNScanned returns a boolean if a field has been set. func (o *MongodbatlasOperationStats) HasNScanned() bool { - if o != nil && !IsNil(o.NScanned) { + if o != nil && !IsNil(o.NScanned) && !IsNil(o.NScanned) { return true } @@ -162,7 +162,7 @@ func (o *MongodbatlasOperationStats) GetTsOk() (*int64, bool) { // HasTs returns a boolean if a field has been set. func (o *MongodbatlasOperationStats) HasTs() bool { - if o != nil && !IsNil(o.Ts) { + if o != nil && !IsNil(o.Ts) && !IsNil(o.Ts) { return true } diff --git a/services/mongodbflex/model_mongodbatlas_stats.go b/services/mongodbflex/model_mongodbatlas_stats.go index 61f5fe682..900013ff6 100644 --- a/services/mongodbflex/model_mongodbatlas_stats.go +++ b/services/mongodbflex/model_mongodbatlas_stats.go @@ -66,7 +66,7 @@ func (o *MongodbatlasStats) GetMsOk() (*float64, bool) { // HasMs returns a boolean if a field has been set. func (o *MongodbatlasStats) HasMs() bool { - if o != nil && !IsNil(o.Ms) { + if o != nil && !IsNil(o.Ms) && !IsNil(o.Ms) { return true } @@ -98,7 +98,7 @@ func (o *MongodbatlasStats) GetNReturnedOk() (*int64, bool) { // HasNReturned returns a boolean if a field has been set. func (o *MongodbatlasStats) HasNReturned() bool { - if o != nil && !IsNil(o.NReturned) { + if o != nil && !IsNil(o.NReturned) && !IsNil(o.NReturned) { return true } @@ -130,7 +130,7 @@ func (o *MongodbatlasStats) GetNScannedOk() (*int64, bool) { // HasNScanned returns a boolean if a field has been set. func (o *MongodbatlasStats) HasNScanned() bool { - if o != nil && !IsNil(o.NScanned) { + if o != nil && !IsNil(o.NScanned) && !IsNil(o.NScanned) { return true } @@ -162,7 +162,7 @@ func (o *MongodbatlasStats) GetTsOk() (*int64, bool) { // HasTs returns a boolean if a field has been set. func (o *MongodbatlasStats) HasTs() bool { - if o != nil && !IsNil(o.Ts) { + if o != nil && !IsNil(o.Ts) && !IsNil(o.Ts) { return true } diff --git a/services/mongodbflex/model_partial_update_instance_payload.go b/services/mongodbflex/model_partial_update_instance_payload.go index c1f0f2b28..3d1ee30c3 100644 --- a/services/mongodbflex/model_partial_update_instance_payload.go +++ b/services/mongodbflex/model_partial_update_instance_payload.go @@ -68,7 +68,7 @@ func (o *PartialUpdateInstancePayload) GetAclOk() (*ACL, bool) { // HasAcl returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasAcl() bool { - if o != nil && !IsNil(o.Acl) { + if o != nil && !IsNil(o.Acl) && !IsNil(o.Acl) { return true } @@ -100,7 +100,7 @@ func (o *PartialUpdateInstancePayload) GetBackupScheduleOk() (*string, bool) { // HasBackupSchedule returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasBackupSchedule() bool { - if o != nil && !IsNil(o.BackupSchedule) { + if o != nil && !IsNil(o.BackupSchedule) && !IsNil(o.BackupSchedule) { return true } @@ -132,7 +132,7 @@ func (o *PartialUpdateInstancePayload) GetFlavorIdOk() (*string, bool) { // HasFlavorId returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasFlavorId() bool { - if o != nil && !IsNil(o.FlavorId) { + if o != nil && !IsNil(o.FlavorId) && !IsNil(o.FlavorId) { return true } @@ -164,7 +164,7 @@ func (o *PartialUpdateInstancePayload) GetLabelsOk() (*map[string]string, bool) // HasLabels returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -196,7 +196,7 @@ func (o *PartialUpdateInstancePayload) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -228,7 +228,7 @@ func (o *PartialUpdateInstancePayload) GetOptionsOk() (*map[string]string, bool) // HasOptions returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasOptions() bool { - if o != nil && !IsNil(o.Options) { + if o != nil && !IsNil(o.Options) && !IsNil(o.Options) { return true } @@ -260,7 +260,7 @@ func (o *PartialUpdateInstancePayload) GetReplicasOk() (*int64, bool) { // HasReplicas returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasReplicas() bool { - if o != nil && !IsNil(o.Replicas) { + if o != nil && !IsNil(o.Replicas) && !IsNil(o.Replicas) { return true } @@ -292,7 +292,7 @@ func (o *PartialUpdateInstancePayload) GetStorageOk() (*Storage, bool) { // HasStorage returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasStorage() bool { - if o != nil && !IsNil(o.Storage) { + if o != nil && !IsNil(o.Storage) && !IsNil(o.Storage) { return true } @@ -324,7 +324,7 @@ func (o *PartialUpdateInstancePayload) GetVersionOk() (*string, bool) { // HasVersion returns a boolean if a field has been set. func (o *PartialUpdateInstancePayload) HasVersion() bool { - if o != nil && !IsNil(o.Version) { + if o != nil && !IsNil(o.Version) && !IsNil(o.Version) { return true } diff --git a/services/mongodbflex/model_partial_update_user_payload.go b/services/mongodbflex/model_partial_update_user_payload.go index bf28aa96b..6c4e4db4b 100644 --- a/services/mongodbflex/model_partial_update_user_payload.go +++ b/services/mongodbflex/model_partial_update_user_payload.go @@ -60,7 +60,7 @@ func (o *PartialUpdateUserPayload) GetDatabaseOk() (*string, bool) { // HasDatabase returns a boolean if a field has been set. func (o *PartialUpdateUserPayload) HasDatabase() bool { - if o != nil && !IsNil(o.Database) { + if o != nil && !IsNil(o.Database) && !IsNil(o.Database) { return true } @@ -92,7 +92,7 @@ func (o *PartialUpdateUserPayload) GetRolesOk() (*[]string, bool) { // HasRoles returns a boolean if a field has been set. func (o *PartialUpdateUserPayload) HasRoles() bool { - if o != nil && !IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) && !IsNil(o.Roles) { return true } diff --git a/services/mongodbflex/model_restore_instance_payload.go b/services/mongodbflex/model_restore_instance_payload.go index 89310cb13..a5f5f196d 100644 --- a/services/mongodbflex/model_restore_instance_payload.go +++ b/services/mongodbflex/model_restore_instance_payload.go @@ -48,7 +48,7 @@ func NewRestoreInstancePayloadWithDefaults() *RestoreInstancePayload { // GetBackupId returns the BackupId field value func (o *RestoreInstancePayload) GetBackupId() *string { - if o == nil { + if o == nil || IsNil(o.BackupId) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *RestoreInstancePayload) SetBackupId(v *string) { // GetInstanceId returns the InstanceId field value func (o *RestoreInstancePayload) GetInstanceId() *string { - if o == nil { + if o == nil || IsNil(o.InstanceId) { var ret *string return ret } diff --git a/services/mongodbflex/model_restore_instance_response.go b/services/mongodbflex/model_restore_instance_response.go index fee79067b..29acaaf6b 100644 --- a/services/mongodbflex/model_restore_instance_response.go +++ b/services/mongodbflex/model_restore_instance_response.go @@ -59,7 +59,7 @@ func (o *RestoreInstanceResponse) GetItemOk() (*RestoreInstanceStatus, bool) { // HasItem returns a boolean if a field has been set. func (o *RestoreInstanceResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_restore_instance_status.go b/services/mongodbflex/model_restore_instance_status.go index 0f9c9fbcb..cfbd3a23f 100644 --- a/services/mongodbflex/model_restore_instance_status.go +++ b/services/mongodbflex/model_restore_instance_status.go @@ -63,7 +63,7 @@ func (o *RestoreInstanceStatus) GetBackupIDOk() (*string, bool) { // HasBackupID returns a boolean if a field has been set. func (o *RestoreInstanceStatus) HasBackupID() bool { - if o != nil && !IsNil(o.BackupID) { + if o != nil && !IsNil(o.BackupID) && !IsNil(o.BackupID) { return true } @@ -95,7 +95,7 @@ func (o *RestoreInstanceStatus) GetDateOk() (*string, bool) { // HasDate returns a boolean if a field has been set. func (o *RestoreInstanceStatus) HasDate() bool { - if o != nil && !IsNil(o.Date) { + if o != nil && !IsNil(o.Date) && !IsNil(o.Date) { return true } @@ -127,7 +127,7 @@ func (o *RestoreInstanceStatus) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *RestoreInstanceStatus) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -159,7 +159,7 @@ func (o *RestoreInstanceStatus) GetInstanceIdOk() (*string, bool) { // HasInstanceId returns a boolean if a field has been set. func (o *RestoreInstanceStatus) HasInstanceId() bool { - if o != nil && !IsNil(o.InstanceId) { + if o != nil && !IsNil(o.InstanceId) && !IsNil(o.InstanceId) { return true } @@ -191,7 +191,7 @@ func (o *RestoreInstanceStatus) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *RestoreInstanceStatus) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/mongodbflex/model_shape.go b/services/mongodbflex/model_shape.go index 1ce0ce228..876c689e4 100644 --- a/services/mongodbflex/model_shape.go +++ b/services/mongodbflex/model_shape.go @@ -70,7 +70,7 @@ func (o *Shape) GetAvgMsOk() (*float64, bool) { // HasAvgMs returns a boolean if a field has been set. func (o *Shape) HasAvgMs() bool { - if o != nil && !IsNil(o.AvgMs) { + if o != nil && !IsNil(o.AvgMs) && !IsNil(o.AvgMs) { return true } @@ -102,7 +102,7 @@ func (o *Shape) GetCountOk() (*int64, bool) { // HasCount returns a boolean if a field has been set. func (o *Shape) HasCount() bool { - if o != nil && !IsNil(o.Count) { + if o != nil && !IsNil(o.Count) && !IsNil(o.Count) { return true } @@ -134,7 +134,7 @@ func (o *Shape) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *Shape) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -166,7 +166,7 @@ func (o *Shape) GetInefficiencyScoreOk() (*int64, bool) { // HasInefficiencyScore returns a boolean if a field has been set. func (o *Shape) HasInefficiencyScore() bool { - if o != nil && !IsNil(o.InefficiencyScore) { + if o != nil && !IsNil(o.InefficiencyScore) && !IsNil(o.InefficiencyScore) { return true } @@ -198,7 +198,7 @@ func (o *Shape) GetNamespaceOk() (*string, bool) { // HasNamespace returns a boolean if a field has been set. func (o *Shape) HasNamespace() bool { - if o != nil && !IsNil(o.Namespace) { + if o != nil && !IsNil(o.Namespace) && !IsNil(o.Namespace) { return true } @@ -230,7 +230,7 @@ func (o *Shape) GetOperationsOk() (*[]MongodbatlasOperation, bool) { // HasOperations returns a boolean if a field has been set. func (o *Shape) HasOperations() bool { - if o != nil && !IsNil(o.Operations) { + if o != nil && !IsNil(o.Operations) && !IsNil(o.Operations) { return true } diff --git a/services/mongodbflex/model_slow_query.go b/services/mongodbflex/model_slow_query.go index 06a832ef9..9d2bab21f 100644 --- a/services/mongodbflex/model_slow_query.go +++ b/services/mongodbflex/model_slow_query.go @@ -62,7 +62,7 @@ func (o *SlowQuery) GetLineOk() (*string, bool) { // HasLine returns a boolean if a field has been set. func (o *SlowQuery) HasLine() bool { - if o != nil && !IsNil(o.Line) { + if o != nil && !IsNil(o.Line) && !IsNil(o.Line) { return true } @@ -94,7 +94,7 @@ func (o *SlowQuery) GetNamespaceOk() (*string, bool) { // HasNamespace returns a boolean if a field has been set. func (o *SlowQuery) HasNamespace() bool { - if o != nil && !IsNil(o.Namespace) { + if o != nil && !IsNil(o.Namespace) && !IsNil(o.Namespace) { return true } diff --git a/services/mongodbflex/model_storage.go b/services/mongodbflex/model_storage.go index 8a22c78ee..efc873ec4 100644 --- a/services/mongodbflex/model_storage.go +++ b/services/mongodbflex/model_storage.go @@ -60,7 +60,7 @@ func (o *Storage) GetClassOk() (*string, bool) { // HasClass returns a boolean if a field has been set. func (o *Storage) HasClass() bool { - if o != nil && !IsNil(o.Class) { + if o != nil && !IsNil(o.Class) && !IsNil(o.Class) { return true } @@ -92,7 +92,7 @@ func (o *Storage) GetSizeOk() (*int64, bool) { // HasSize returns a boolean if a field has been set. func (o *Storage) HasSize() bool { - if o != nil && !IsNil(o.Size) { + if o != nil && !IsNil(o.Size) && !IsNil(o.Size) { return true } diff --git a/services/mongodbflex/model_storage_range.go b/services/mongodbflex/model_storage_range.go index ca660aada..9dbffe87b 100644 --- a/services/mongodbflex/model_storage_range.go +++ b/services/mongodbflex/model_storage_range.go @@ -60,7 +60,7 @@ func (o *StorageRange) GetMaxOk() (*int64, bool) { // HasMax returns a boolean if a field has been set. func (o *StorageRange) HasMax() bool { - if o != nil && !IsNil(o.Max) { + if o != nil && !IsNil(o.Max) && !IsNil(o.Max) { return true } @@ -92,7 +92,7 @@ func (o *StorageRange) GetMinOk() (*int64, bool) { // HasMin returns a boolean if a field has been set. func (o *StorageRange) HasMin() bool { - if o != nil && !IsNil(o.Min) { + if o != nil && !IsNil(o.Min) && !IsNil(o.Min) { return true } diff --git a/services/mongodbflex/model_suggested_index.go b/services/mongodbflex/model_suggested_index.go index 3d94e89ad..f88625661 100644 --- a/services/mongodbflex/model_suggested_index.go +++ b/services/mongodbflex/model_suggested_index.go @@ -68,7 +68,7 @@ func (o *SuggestedIndex) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *SuggestedIndex) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -100,7 +100,7 @@ func (o *SuggestedIndex) GetImpactOk() (*[]string, bool) { // HasImpact returns a boolean if a field has been set. func (o *SuggestedIndex) HasImpact() bool { - if o != nil && !IsNil(o.Impact) { + if o != nil && !IsNil(o.Impact) && !IsNil(o.Impact) { return true } @@ -132,7 +132,7 @@ func (o *SuggestedIndex) GetIndexOk() (*[]map[string]int32, bool) { // HasIndex returns a boolean if a field has been set. func (o *SuggestedIndex) HasIndex() bool { - if o != nil && !IsNil(o.Index) { + if o != nil && !IsNil(o.Index) && !IsNil(o.Index) { return true } @@ -164,7 +164,7 @@ func (o *SuggestedIndex) GetNamespaceOk() (*string, bool) { // HasNamespace returns a boolean if a field has been set. func (o *SuggestedIndex) HasNamespace() bool { - if o != nil && !IsNil(o.Namespace) { + if o != nil && !IsNil(o.Namespace) && !IsNil(o.Namespace) { return true } @@ -196,7 +196,7 @@ func (o *SuggestedIndex) GetWeightOk() (*float64, bool) { // HasWeight returns a boolean if a field has been set. func (o *SuggestedIndex) HasWeight() bool { - if o != nil && !IsNil(o.Weight) { + if o != nil && !IsNil(o.Weight) && !IsNil(o.Weight) { return true } diff --git a/services/mongodbflex/model_update_backup_schedule_payload.go b/services/mongodbflex/model_update_backup_schedule_payload.go index 07fdec948..7dbef2616 100644 --- a/services/mongodbflex/model_update_backup_schedule_payload.go +++ b/services/mongodbflex/model_update_backup_schedule_payload.go @@ -64,7 +64,7 @@ func (o *UpdateBackupSchedulePayload) GetBackupScheduleOk() (*string, bool) { // HasBackupSchedule returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasBackupSchedule() bool { - if o != nil && !IsNil(o.BackupSchedule) { + if o != nil && !IsNil(o.BackupSchedule) && !IsNil(o.BackupSchedule) { return true } @@ -96,7 +96,7 @@ func (o *UpdateBackupSchedulePayload) GetDailySnapshotRetentionDaysOk() (*int64, // HasDailySnapshotRetentionDays returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasDailySnapshotRetentionDays() bool { - if o != nil && !IsNil(o.DailySnapshotRetentionDays) { + if o != nil && !IsNil(o.DailySnapshotRetentionDays) && !IsNil(o.DailySnapshotRetentionDays) { return true } @@ -128,7 +128,7 @@ func (o *UpdateBackupSchedulePayload) GetMonthlySnapshotRetentionMonthsOk() (*in // HasMonthlySnapshotRetentionMonths returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasMonthlySnapshotRetentionMonths() bool { - if o != nil && !IsNil(o.MonthlySnapshotRetentionMonths) { + if o != nil && !IsNil(o.MonthlySnapshotRetentionMonths) && !IsNil(o.MonthlySnapshotRetentionMonths) { return true } @@ -160,7 +160,7 @@ func (o *UpdateBackupSchedulePayload) GetPointInTimeWindowHoursOk() (*int64, boo // HasPointInTimeWindowHours returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasPointInTimeWindowHours() bool { - if o != nil && !IsNil(o.PointInTimeWindowHours) { + if o != nil && !IsNil(o.PointInTimeWindowHours) && !IsNil(o.PointInTimeWindowHours) { return true } @@ -192,7 +192,7 @@ func (o *UpdateBackupSchedulePayload) GetSnapshotRetentionDaysOk() (*int64, bool // HasSnapshotRetentionDays returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasSnapshotRetentionDays() bool { - if o != nil && !IsNil(o.SnapshotRetentionDays) { + if o != nil && !IsNil(o.SnapshotRetentionDays) && !IsNil(o.SnapshotRetentionDays) { return true } @@ -224,7 +224,7 @@ func (o *UpdateBackupSchedulePayload) GetWeeklySnapshotRetentionWeeksOk() (*int6 // HasWeeklySnapshotRetentionWeeks returns a boolean if a field has been set. func (o *UpdateBackupSchedulePayload) HasWeeklySnapshotRetentionWeeks() bool { - if o != nil && !IsNil(o.WeeklySnapshotRetentionWeeks) { + if o != nil && !IsNil(o.WeeklySnapshotRetentionWeeks) && !IsNil(o.WeeklySnapshotRetentionWeeks) { return true } diff --git a/services/mongodbflex/model_update_instance_payload.go b/services/mongodbflex/model_update_instance_payload.go index ee6118869..cbd558669 100644 --- a/services/mongodbflex/model_update_instance_payload.go +++ b/services/mongodbflex/model_update_instance_payload.go @@ -68,7 +68,7 @@ func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { // GetAcl returns the Acl field value func (o *UpdateInstancePayload) GetAcl() *ACL { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *ACL return ret } @@ -92,7 +92,7 @@ func (o *UpdateInstancePayload) SetAcl(v *ACL) { // GetBackupSchedule returns the BackupSchedule field value func (o *UpdateInstancePayload) GetBackupSchedule() *string { - if o == nil { + if o == nil || IsNil(o.BackupSchedule) { var ret *string return ret } @@ -116,7 +116,7 @@ func (o *UpdateInstancePayload) SetBackupSchedule(v *string) { // GetFlavorId returns the FlavorId field value func (o *UpdateInstancePayload) GetFlavorId() *string { - if o == nil { + if o == nil || IsNil(o.FlavorId) { var ret *string return ret } @@ -158,7 +158,7 @@ func (o *UpdateInstancePayload) GetLabelsOk() (*map[string]string, bool) { // HasLabels returns a boolean if a field has been set. func (o *UpdateInstancePayload) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -172,7 +172,7 @@ func (o *UpdateInstancePayload) SetLabels(v *map[string]string) { // GetName returns the Name field value func (o *UpdateInstancePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -196,7 +196,7 @@ func (o *UpdateInstancePayload) SetName(v *string) { // GetOptions returns the Options field value func (o *UpdateInstancePayload) GetOptions() *map[string]string { - if o == nil { + if o == nil || IsNil(o.Options) { var ret *map[string]string return ret } @@ -220,7 +220,7 @@ func (o *UpdateInstancePayload) SetOptions(v *map[string]string) { // GetReplicas returns the Replicas field value func (o *UpdateInstancePayload) GetReplicas() *int64 { - if o == nil { + if o == nil || IsNil(o.Replicas) { var ret *int64 return ret } @@ -244,7 +244,7 @@ func (o *UpdateInstancePayload) SetReplicas(v *int64) { // GetStorage returns the Storage field value func (o *UpdateInstancePayload) GetStorage() *Storage { - if o == nil { + if o == nil || IsNil(o.Storage) { var ret *Storage return ret } @@ -268,7 +268,7 @@ func (o *UpdateInstancePayload) SetStorage(v *Storage) { // GetVersion returns the Version field value func (o *UpdateInstancePayload) GetVersion() *string { - if o == nil { + if o == nil || IsNil(o.Version) { var ret *string return ret } diff --git a/services/mongodbflex/model_update_instance_response.go b/services/mongodbflex/model_update_instance_response.go index bad477a4d..2be431929 100644 --- a/services/mongodbflex/model_update_instance_response.go +++ b/services/mongodbflex/model_update_instance_response.go @@ -59,7 +59,7 @@ func (o *UpdateInstanceResponse) GetItemOk() (*Instance, bool) { // HasItem returns a boolean if a field has been set. func (o *UpdateInstanceResponse) HasItem() bool { - if o != nil && !IsNil(o.Item) { + if o != nil && !IsNil(o.Item) && !IsNil(o.Item) { return true } diff --git a/services/mongodbflex/model_update_user_payload.go b/services/mongodbflex/model_update_user_payload.go index 9f984f812..1f5ba0e3d 100644 --- a/services/mongodbflex/model_update_user_payload.go +++ b/services/mongodbflex/model_update_user_payload.go @@ -48,7 +48,7 @@ func NewUpdateUserPayloadWithDefaults() *UpdateUserPayload { // GetDatabase returns the Database field value func (o *UpdateUserPayload) GetDatabase() *string { - if o == nil { + if o == nil || IsNil(o.Database) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *UpdateUserPayload) SetDatabase(v *string) { // GetRoles returns the Roles field value func (o *UpdateUserPayload) GetRoles() *[]string { - if o == nil { + if o == nil || IsNil(o.Roles) { var ret *[]string return ret } diff --git a/services/mongodbflex/model_user.go b/services/mongodbflex/model_user.go index b80e5b298..2cf263f38 100644 --- a/services/mongodbflex/model_user.go +++ b/services/mongodbflex/model_user.go @@ -66,7 +66,7 @@ func (o *User) GetDatabaseOk() (*string, bool) { // HasDatabase returns a boolean if a field has been set. func (o *User) HasDatabase() bool { - if o != nil && !IsNil(o.Database) { + if o != nil && !IsNil(o.Database) && !IsNil(o.Database) { return true } @@ -98,7 +98,7 @@ func (o *User) GetHostOk() (*string, bool) { // HasHost returns a boolean if a field has been set. func (o *User) HasHost() bool { - if o != nil && !IsNil(o.Host) { + if o != nil && !IsNil(o.Host) && !IsNil(o.Host) { return true } @@ -130,7 +130,7 @@ func (o *User) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *User) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -162,7 +162,7 @@ func (o *User) GetPasswordOk() (*string, bool) { // HasPassword returns a boolean if a field has been set. func (o *User) HasPassword() bool { - if o != nil && !IsNil(o.Password) { + if o != nil && !IsNil(o.Password) && !IsNil(o.Password) { return true } @@ -194,7 +194,7 @@ func (o *User) GetPortOk() (*int64, bool) { // HasPort returns a boolean if a field has been set. func (o *User) HasPort() bool { - if o != nil && !IsNil(o.Port) { + if o != nil && !IsNil(o.Port) && !IsNil(o.Port) { return true } @@ -226,7 +226,7 @@ func (o *User) GetRolesOk() (*[]string, bool) { // HasRoles returns a boolean if a field has been set. func (o *User) HasRoles() bool { - if o != nil && !IsNil(o.Roles) { + if o != nil && !IsNil(o.Roles) && !IsNil(o.Roles) { return true } @@ -258,7 +258,7 @@ func (o *User) GetUriOk() (*string, bool) { // HasUri returns a boolean if a field has been set. func (o *User) HasUri() bool { - if o != nil && !IsNil(o.Uri) { + if o != nil && !IsNil(o.Uri) && !IsNil(o.Uri) { return true } @@ -290,7 +290,7 @@ func (o *User) GetUsernameOk() (*string, bool) { // HasUsername returns a boolean if a field has been set. func (o *User) HasUsername() bool { - if o != nil && !IsNil(o.Username) { + if o != nil && !IsNil(o.Username) && !IsNil(o.Username) { return true }