From d58b41213add5075cc07792f74b402ab3c25f065 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 14:58:47 +0000 Subject: [PATCH] Generate dns --- services/dns/model_clone_zone_payload.go | 8 +-- services/dns/model_create_label_payload.go | 4 +- services/dns/model_create_label_response.go | 4 +- .../dns/model_create_record_set_payload.go | 10 ++-- services/dns/model_create_zone_payload.go | 26 +++++----- services/dns/model_delete_label_response.go | 4 +- services/dns/model_error_message.go | 4 +- .../dns/model_export_record_sets_payload.go | 4 +- .../dns/model_import_record_sets_payload.go | 2 +- .../dns/model_import_record_sets_response.go | 4 +- services/dns/model_import_summary.go | 12 ++--- services/dns/model_label.go | 4 +- services/dns/model_list_labels_response.go | 4 +- .../dns/model_list_record_sets_response.go | 10 ++-- services/dns/model_list_zones_response.go | 10 ++-- services/dns/model_message.go | 2 +- services/dns/model_move_code_response.go | 6 +-- services/dns/model_move_zone_payload.go | 4 +- .../model_partial_update_record_payload.go | 4 +- ...model_partial_update_record_set_payload.go | 8 +-- .../dns/model_partial_update_zone_payload.go | 20 +++---- services/dns/model_record.go | 4 +- services/dns/model_record_data_exchange.go | 10 ++-- services/dns/model_record_payload.go | 2 +- services/dns/model_record_set.go | 26 +++++----- services/dns/model_record_set_response.go | 4 +- .../dns/model_validate_move_code_payload.go | 2 +- services/dns/model_zone.go | 52 +++++++++---------- services/dns/model_zone_data_exchange.go | 2 +- .../model_zone_models_import_record_model.go | 10 ++-- .../dns/model_zone_models_import_zone_json.go | 2 +- services/dns/model_zone_response.go | 4 +- 32 files changed, 136 insertions(+), 136 deletions(-) diff --git a/services/dns/model_clone_zone_payload.go b/services/dns/model_clone_zone_payload.go index 3e12e066c..c93c6e23f 100644 --- a/services/dns/model_clone_zone_payload.go +++ b/services/dns/model_clone_zone_payload.go @@ -70,7 +70,7 @@ func (o *CloneZonePayload) GetAdjustRecordsOk() (*bool, bool) { // HasAdjustRecords returns a boolean if a field has been set. func (o *CloneZonePayload) HasAdjustRecords() bool { - if o != nil && !IsNil(o.AdjustRecords) { + if o != nil && !IsNil(o.AdjustRecords) && !IsNil(o.AdjustRecords) { return true } @@ -102,7 +102,7 @@ func (o *CloneZonePayload) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *CloneZonePayload) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -116,7 +116,7 @@ func (o *CloneZonePayload) SetDescription(v *string) { // GetDnsName returns the DnsName field value func (o *CloneZonePayload) GetDnsName() *string { - if o == nil { + if o == nil || IsNil(o.DnsName) { var ret *string return ret } @@ -158,7 +158,7 @@ func (o *CloneZonePayload) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CloneZonePayload) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } diff --git a/services/dns/model_create_label_payload.go b/services/dns/model_create_label_payload.go index adcfabcf8..ffdb3b336 100644 --- a/services/dns/model_create_label_payload.go +++ b/services/dns/model_create_label_payload.go @@ -48,7 +48,7 @@ func NewCreateLabelPayloadWithDefaults() *CreateLabelPayload { // GetKey returns the Key field value func (o *CreateLabelPayload) GetKey() *string { - if o == nil { + if o == nil || IsNil(o.Key) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *CreateLabelPayload) SetKey(v *string) { // GetValue returns the Value field value func (o *CreateLabelPayload) GetValue() *string { - if o == nil { + if o == nil || IsNil(o.Value) { var ret *string return ret } diff --git a/services/dns/model_create_label_response.go b/services/dns/model_create_label_response.go index 13e4d0c62..ad4983eb8 100644 --- a/services/dns/model_create_label_response.go +++ b/services/dns/model_create_label_response.go @@ -60,7 +60,7 @@ func (o *CreateLabelResponse) GetLabelOk() (*Label, bool) { // HasLabel returns a boolean if a field has been set. func (o *CreateLabelResponse) HasLabel() bool { - if o != nil && !IsNil(o.Label) { + if o != nil && !IsNil(o.Label) && !IsNil(o.Label) { return true } @@ -92,7 +92,7 @@ func (o *CreateLabelResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *CreateLabelResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/dns/model_create_record_set_payload.go b/services/dns/model_create_record_set_payload.go index c5fd310fe..44d9ef982 100644 --- a/services/dns/model_create_record_set_payload.go +++ b/services/dns/model_create_record_set_payload.go @@ -76,7 +76,7 @@ func (o *CreateRecordSetPayload) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *CreateRecordSetPayload) HasComment() bool { - if o != nil && !IsNil(o.Comment) { + if o != nil && !IsNil(o.Comment) && !IsNil(o.Comment) { return true } @@ -90,7 +90,7 @@ func (o *CreateRecordSetPayload) SetComment(v *string) { // GetName returns the Name field value func (o *CreateRecordSetPayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -114,7 +114,7 @@ func (o *CreateRecordSetPayload) SetName(v *string) { // GetRecords returns the Records field value func (o *CreateRecordSetPayload) GetRecords() *[]RecordPayload { - if o == nil { + if o == nil || IsNil(o.Records) { var ret *[]RecordPayload return ret } @@ -156,7 +156,7 @@ func (o *CreateRecordSetPayload) GetTtlOk() (*int64, bool) { // HasTtl returns a boolean if a field has been set. func (o *CreateRecordSetPayload) HasTtl() bool { - if o != nil && !IsNil(o.Ttl) { + if o != nil && !IsNil(o.Ttl) && !IsNil(o.Ttl) { return true } @@ -170,7 +170,7 @@ func (o *CreateRecordSetPayload) SetTtl(v *int64) { // GetType returns the Type field value func (o *CreateRecordSetPayload) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } diff --git a/services/dns/model_create_zone_payload.go b/services/dns/model_create_zone_payload.go index 8d2536e53..8918786ab 100644 --- a/services/dns/model_create_zone_payload.go +++ b/services/dns/model_create_zone_payload.go @@ -106,7 +106,7 @@ func (o *CreateZonePayload) GetAclOk() (*string, bool) { // HasAcl returns a boolean if a field has been set. func (o *CreateZonePayload) HasAcl() bool { - if o != nil && !IsNil(o.Acl) { + if o != nil && !IsNil(o.Acl) && !IsNil(o.Acl) { return true } @@ -138,7 +138,7 @@ func (o *CreateZonePayload) GetContactEmailOk() (*string, bool) { // HasContactEmail returns a boolean if a field has been set. func (o *CreateZonePayload) HasContactEmail() bool { - if o != nil && !IsNil(o.ContactEmail) { + if o != nil && !IsNil(o.ContactEmail) && !IsNil(o.ContactEmail) { return true } @@ -170,7 +170,7 @@ func (o *CreateZonePayload) GetDefaultTTLOk() (*int64, bool) { // HasDefaultTTL returns a boolean if a field has been set. func (o *CreateZonePayload) HasDefaultTTL() bool { - if o != nil && !IsNil(o.DefaultTTL) { + if o != nil && !IsNil(o.DefaultTTL) && !IsNil(o.DefaultTTL) { return true } @@ -202,7 +202,7 @@ func (o *CreateZonePayload) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *CreateZonePayload) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -216,7 +216,7 @@ func (o *CreateZonePayload) SetDescription(v *string) { // GetDnsName returns the DnsName field value func (o *CreateZonePayload) GetDnsName() *string { - if o == nil { + if o == nil || IsNil(o.DnsName) { var ret *string return ret } @@ -258,7 +258,7 @@ func (o *CreateZonePayload) GetExpireTimeOk() (*int64, bool) { // HasExpireTime returns a boolean if a field has been set. func (o *CreateZonePayload) HasExpireTime() bool { - if o != nil && !IsNil(o.ExpireTime) { + if o != nil && !IsNil(o.ExpireTime) && !IsNil(o.ExpireTime) { return true } @@ -290,7 +290,7 @@ func (o *CreateZonePayload) GetIsReverseZoneOk() (*bool, bool) { // HasIsReverseZone returns a boolean if a field has been set. func (o *CreateZonePayload) HasIsReverseZone() bool { - if o != nil && !IsNil(o.IsReverseZone) { + if o != nil && !IsNil(o.IsReverseZone) && !IsNil(o.IsReverseZone) { return true } @@ -304,7 +304,7 @@ func (o *CreateZonePayload) SetIsReverseZone(v *bool) { // GetName returns the Name field value func (o *CreateZonePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -346,7 +346,7 @@ func (o *CreateZonePayload) GetNegativeCacheOk() (*int64, bool) { // HasNegativeCache returns a boolean if a field has been set. func (o *CreateZonePayload) HasNegativeCache() bool { - if o != nil && !IsNil(o.NegativeCache) { + if o != nil && !IsNil(o.NegativeCache) && !IsNil(o.NegativeCache) { return true } @@ -378,7 +378,7 @@ func (o *CreateZonePayload) GetPrimariesOk() (*[]string, bool) { // HasPrimaries returns a boolean if a field has been set. func (o *CreateZonePayload) HasPrimaries() bool { - if o != nil && !IsNil(o.Primaries) { + if o != nil && !IsNil(o.Primaries) && !IsNil(o.Primaries) { return true } @@ -410,7 +410,7 @@ func (o *CreateZonePayload) GetRefreshTimeOk() (*int64, bool) { // HasRefreshTime returns a boolean if a field has been set. func (o *CreateZonePayload) HasRefreshTime() bool { - if o != nil && !IsNil(o.RefreshTime) { + if o != nil && !IsNil(o.RefreshTime) && !IsNil(o.RefreshTime) { return true } @@ -442,7 +442,7 @@ func (o *CreateZonePayload) GetRetryTimeOk() (*int64, bool) { // HasRetryTime returns a boolean if a field has been set. func (o *CreateZonePayload) HasRetryTime() bool { - if o != nil && !IsNil(o.RetryTime) { + if o != nil && !IsNil(o.RetryTime) && !IsNil(o.RetryTime) { return true } @@ -474,7 +474,7 @@ func (o *CreateZonePayload) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *CreateZonePayload) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true } diff --git a/services/dns/model_delete_label_response.go b/services/dns/model_delete_label_response.go index 3a8ee2f78..908eb4aa5 100644 --- a/services/dns/model_delete_label_response.go +++ b/services/dns/model_delete_label_response.go @@ -60,7 +60,7 @@ func (o *DeleteLabelResponse) GetLabelOk() (*Label, bool) { // HasLabel returns a boolean if a field has been set. func (o *DeleteLabelResponse) HasLabel() bool { - if o != nil && !IsNil(o.Label) { + if o != nil && !IsNil(o.Label) && !IsNil(o.Label) { return true } @@ -92,7 +92,7 @@ func (o *DeleteLabelResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *DeleteLabelResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/dns/model_error_message.go b/services/dns/model_error_message.go index 88f8a5504..f263952bb 100644 --- a/services/dns/model_error_message.go +++ b/services/dns/model_error_message.go @@ -60,7 +60,7 @@ func (o *ErrorMessage) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *ErrorMessage) HasError() bool { - if o != nil && !IsNil(o.Error) { + if o != nil && !IsNil(o.Error) && !IsNil(o.Error) { return true } @@ -92,7 +92,7 @@ func (o *ErrorMessage) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ErrorMessage) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/dns/model_export_record_sets_payload.go b/services/dns/model_export_record_sets_payload.go index 97e955335..0aa93b3e8 100644 --- a/services/dns/model_export_record_sets_payload.go +++ b/services/dns/model_export_record_sets_payload.go @@ -68,7 +68,7 @@ func (o *ExportRecordSetsPayload) GetExportAsFQDNOk() (*bool, bool) { // HasExportAsFQDN returns a boolean if a field has been set. func (o *ExportRecordSetsPayload) HasExportAsFQDN() bool { - if o != nil && !IsNil(o.ExportAsFQDN) { + if o != nil && !IsNil(o.ExportAsFQDN) && !IsNil(o.ExportAsFQDN) { return true } @@ -100,7 +100,7 @@ func (o *ExportRecordSetsPayload) GetFormatOk() (*string, bool) { // HasFormat returns a boolean if a field has been set. func (o *ExportRecordSetsPayload) HasFormat() bool { - if o != nil && !IsNil(o.Format) { + if o != nil && !IsNil(o.Format) && !IsNil(o.Format) { return true } diff --git a/services/dns/model_import_record_sets_payload.go b/services/dns/model_import_record_sets_payload.go index 8b7fc0375..b2f6937f5 100644 --- a/services/dns/model_import_record_sets_payload.go +++ b/services/dns/model_import_record_sets_payload.go @@ -59,7 +59,7 @@ func (o *ImportRecordSetsPayload) GetRrSetsOk() (*[]ZoneModelsImportRecordModel, // HasRrSets returns a boolean if a field has been set. func (o *ImportRecordSetsPayload) HasRrSets() bool { - if o != nil && !IsNil(o.RrSets) { + if o != nil && !IsNil(o.RrSets) && !IsNil(o.RrSets) { return true } diff --git a/services/dns/model_import_record_sets_response.go b/services/dns/model_import_record_sets_response.go index 9a45f4196..83dc102ff 100644 --- a/services/dns/model_import_record_sets_response.go +++ b/services/dns/model_import_record_sets_response.go @@ -64,7 +64,7 @@ func (o *ImportRecordSetsResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ImportRecordSetsResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } @@ -78,7 +78,7 @@ func (o *ImportRecordSetsResponse) SetMessage(v *string) { // GetSummary returns the Summary field value func (o *ImportRecordSetsResponse) GetSummary() *ImportSummary { - if o == nil { + if o == nil || IsNil(o.Summary) { var ret *ImportSummary return ret } diff --git a/services/dns/model_import_summary.go b/services/dns/model_import_summary.go index ae15dcb01..fa13acbb8 100644 --- a/services/dns/model_import_summary.go +++ b/services/dns/model_import_summary.go @@ -64,7 +64,7 @@ func (o *ImportSummary) GetCreatedRRSetsOk() (*int64, bool) { // HasCreatedRRSets returns a boolean if a field has been set. func (o *ImportSummary) HasCreatedRRSets() bool { - if o != nil && !IsNil(o.CreatedRRSets) { + if o != nil && !IsNil(o.CreatedRRSets) && !IsNil(o.CreatedRRSets) { return true } @@ -96,7 +96,7 @@ func (o *ImportSummary) GetCreatedRecordsOk() (*int64, bool) { // HasCreatedRecords returns a boolean if a field has been set. func (o *ImportSummary) HasCreatedRecords() bool { - if o != nil && !IsNil(o.CreatedRecords) { + if o != nil && !IsNil(o.CreatedRecords) && !IsNil(o.CreatedRecords) { return true } @@ -128,7 +128,7 @@ func (o *ImportSummary) GetDeletedRRSetsOk() (*int64, bool) { // HasDeletedRRSets returns a boolean if a field has been set. func (o *ImportSummary) HasDeletedRRSets() bool { - if o != nil && !IsNil(o.DeletedRRSets) { + if o != nil && !IsNil(o.DeletedRRSets) && !IsNil(o.DeletedRRSets) { return true } @@ -160,7 +160,7 @@ func (o *ImportSummary) GetDeletedRecordsOk() (*int64, bool) { // HasDeletedRecords returns a boolean if a field has been set. func (o *ImportSummary) HasDeletedRecords() bool { - if o != nil && !IsNil(o.DeletedRecords) { + if o != nil && !IsNil(o.DeletedRecords) && !IsNil(o.DeletedRecords) { return true } @@ -192,7 +192,7 @@ func (o *ImportSummary) GetUpdatedRRSetsOk() (*int64, bool) { // HasUpdatedRRSets returns a boolean if a field has been set. func (o *ImportSummary) HasUpdatedRRSets() bool { - if o != nil && !IsNil(o.UpdatedRRSets) { + if o != nil && !IsNil(o.UpdatedRRSets) && !IsNil(o.UpdatedRRSets) { return true } @@ -224,7 +224,7 @@ func (o *ImportSummary) GetUpdatedRecordsOk() (*int64, bool) { // HasUpdatedRecords returns a boolean if a field has been set. func (o *ImportSummary) HasUpdatedRecords() bool { - if o != nil && !IsNil(o.UpdatedRecords) { + if o != nil && !IsNil(o.UpdatedRecords) && !IsNil(o.UpdatedRecords) { return true } diff --git a/services/dns/model_label.go b/services/dns/model_label.go index d228500e9..3d2a0fb0d 100644 --- a/services/dns/model_label.go +++ b/services/dns/model_label.go @@ -48,7 +48,7 @@ func NewLabelWithDefaults() *Label { // GetKey returns the Key field value func (o *Label) GetKey() *string { - if o == nil { + if o == nil || IsNil(o.Key) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *Label) SetKey(v *string) { // GetValue returns the Value field value func (o *Label) GetValue() *string { - if o == nil { + if o == nil || IsNil(o.Value) { var ret *string return ret } diff --git a/services/dns/model_list_labels_response.go b/services/dns/model_list_labels_response.go index 30531d4b1..179a8fcf0 100644 --- a/services/dns/model_list_labels_response.go +++ b/services/dns/model_list_labels_response.go @@ -60,7 +60,7 @@ func (o *ListLabelsResponse) GetLabelsOk() (*[]Label, bool) { // HasLabels returns a boolean if a field has been set. func (o *ListLabelsResponse) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -92,7 +92,7 @@ func (o *ListLabelsResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ListLabelsResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/dns/model_list_record_sets_response.go b/services/dns/model_list_record_sets_response.go index 36dec98eb..fb387944b 100644 --- a/services/dns/model_list_record_sets_response.go +++ b/services/dns/model_list_record_sets_response.go @@ -55,7 +55,7 @@ func NewListRecordSetsResponseWithDefaults() *ListRecordSetsResponse { // GetItemsPerPage returns the ItemsPerPage field value func (o *ListRecordSetsResponse) GetItemsPerPage() *int64 { - if o == nil { + if o == nil || IsNil(o.ItemsPerPage) { var ret *int64 return ret } @@ -97,7 +97,7 @@ func (o *ListRecordSetsResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ListRecordSetsResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } @@ -111,7 +111,7 @@ func (o *ListRecordSetsResponse) SetMessage(v *string) { // GetRrSets returns the RrSets field value func (o *ListRecordSetsResponse) GetRrSets() *[]RecordSet { - if o == nil { + if o == nil || IsNil(o.RrSets) { var ret *[]RecordSet return ret } @@ -135,7 +135,7 @@ func (o *ListRecordSetsResponse) SetRrSets(v *[]RecordSet) { // GetTotalItems returns the TotalItems field value func (o *ListRecordSetsResponse) GetTotalItems() *int64 { - if o == nil { + if o == nil || IsNil(o.TotalItems) { var ret *int64 return ret } @@ -159,7 +159,7 @@ func (o *ListRecordSetsResponse) SetTotalItems(v *int64) { // GetTotalPages returns the TotalPages field value func (o *ListRecordSetsResponse) GetTotalPages() *int64 { - if o == nil { + if o == nil || IsNil(o.TotalPages) { var ret *int64 return ret } diff --git a/services/dns/model_list_zones_response.go b/services/dns/model_list_zones_response.go index ac8da81d4..250f867b4 100644 --- a/services/dns/model_list_zones_response.go +++ b/services/dns/model_list_zones_response.go @@ -55,7 +55,7 @@ func NewListZonesResponseWithDefaults() *ListZonesResponse { // GetItemsPerPage returns the ItemsPerPage field value func (o *ListZonesResponse) GetItemsPerPage() *int64 { - if o == nil { + if o == nil || IsNil(o.ItemsPerPage) { var ret *int64 return ret } @@ -97,7 +97,7 @@ func (o *ListZonesResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ListZonesResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } @@ -111,7 +111,7 @@ func (o *ListZonesResponse) SetMessage(v *string) { // GetTotalItems returns the TotalItems field value func (o *ListZonesResponse) GetTotalItems() *int64 { - if o == nil { + if o == nil || IsNil(o.TotalItems) { var ret *int64 return ret } @@ -135,7 +135,7 @@ func (o *ListZonesResponse) SetTotalItems(v *int64) { // GetTotalPages returns the TotalPages field value func (o *ListZonesResponse) GetTotalPages() *int64 { - if o == nil { + if o == nil || IsNil(o.TotalPages) { var ret *int64 return ret } @@ -159,7 +159,7 @@ func (o *ListZonesResponse) SetTotalPages(v *int64) { // GetZones returns the Zones field value func (o *ListZonesResponse) GetZones() *[]Zone { - if o == nil { + if o == nil || IsNil(o.Zones) { var ret *[]Zone return ret } diff --git a/services/dns/model_message.go b/services/dns/model_message.go index 7a8daac3e..33fc7e1ea 100644 --- a/services/dns/model_message.go +++ b/services/dns/model_message.go @@ -59,7 +59,7 @@ func (o *Message) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *Message) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/dns/model_move_code_response.go b/services/dns/model_move_code_response.go index 33fd6e8b6..4b4d38ff4 100644 --- a/services/dns/model_move_code_response.go +++ b/services/dns/model_move_code_response.go @@ -52,7 +52,7 @@ func NewMoveCodeResponseWithDefaults() *MoveCodeResponse { // GetCode returns the Code field value func (o *MoveCodeResponse) GetCode() *string { - if o == nil { + if o == nil || IsNil(o.Code) { var ret *string return ret } @@ -76,7 +76,7 @@ func (o *MoveCodeResponse) SetCode(v *string) { // GetExpiresAt returns the ExpiresAt field value func (o *MoveCodeResponse) GetExpiresAt() *string { - if o == nil { + if o == nil || IsNil(o.ExpiresAt) { var ret *string return ret } @@ -118,7 +118,7 @@ func (o *MoveCodeResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *MoveCodeResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } diff --git a/services/dns/model_move_zone_payload.go b/services/dns/model_move_zone_payload.go index 0c7a97bb1..1e1b8a88c 100644 --- a/services/dns/model_move_zone_payload.go +++ b/services/dns/model_move_zone_payload.go @@ -50,7 +50,7 @@ func NewMoveZonePayloadWithDefaults() *MoveZonePayload { // GetCode returns the Code field value func (o *MoveZonePayload) GetCode() *string { - if o == nil { + if o == nil || IsNil(o.Code) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *MoveZonePayload) SetCode(v *string) { // GetZoneDnsName returns the ZoneDnsName field value func (o *MoveZonePayload) GetZoneDnsName() *string { - if o == nil { + if o == nil || IsNil(o.ZoneDnsName) { var ret *string return ret } diff --git a/services/dns/model_partial_update_record_payload.go b/services/dns/model_partial_update_record_payload.go index 25c072739..d315057dc 100644 --- a/services/dns/model_partial_update_record_payload.go +++ b/services/dns/model_partial_update_record_payload.go @@ -49,7 +49,7 @@ func NewPartialUpdateRecordPayloadWithDefaults() *PartialUpdateRecordPayload { // GetAction returns the Action field value func (o *PartialUpdateRecordPayload) GetAction() *string { - if o == nil { + if o == nil || IsNil(o.Action) { var ret *string return ret } @@ -73,7 +73,7 @@ func (o *PartialUpdateRecordPayload) SetAction(v *string) { // GetRecords returns the Records field value func (o *PartialUpdateRecordPayload) GetRecords() *[]RecordPayload { - if o == nil { + if o == nil || IsNil(o.Records) { var ret *[]RecordPayload return ret } diff --git a/services/dns/model_partial_update_record_set_payload.go b/services/dns/model_partial_update_record_set_payload.go index 685ad266a..d84bfc9c7 100644 --- a/services/dns/model_partial_update_record_set_payload.go +++ b/services/dns/model_partial_update_record_set_payload.go @@ -66,7 +66,7 @@ func (o *PartialUpdateRecordSetPayload) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *PartialUpdateRecordSetPayload) HasComment() bool { - if o != nil && !IsNil(o.Comment) { + if o != nil && !IsNil(o.Comment) && !IsNil(o.Comment) { return true } @@ -98,7 +98,7 @@ func (o *PartialUpdateRecordSetPayload) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PartialUpdateRecordSetPayload) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -130,7 +130,7 @@ func (o *PartialUpdateRecordSetPayload) GetRecordsOk() (*[]RecordPayload, bool) // HasRecords returns a boolean if a field has been set. func (o *PartialUpdateRecordSetPayload) HasRecords() bool { - if o != nil && !IsNil(o.Records) { + if o != nil && !IsNil(o.Records) && !IsNil(o.Records) { return true } @@ -162,7 +162,7 @@ func (o *PartialUpdateRecordSetPayload) GetTtlOk() (*int64, bool) { // HasTtl returns a boolean if a field has been set. func (o *PartialUpdateRecordSetPayload) HasTtl() bool { - if o != nil && !IsNil(o.Ttl) { + if o != nil && !IsNil(o.Ttl) && !IsNil(o.Ttl) { return true } diff --git a/services/dns/model_partial_update_zone_payload.go b/services/dns/model_partial_update_zone_payload.go index fee7a6b73..1a7fdf29b 100644 --- a/services/dns/model_partial_update_zone_payload.go +++ b/services/dns/model_partial_update_zone_payload.go @@ -86,7 +86,7 @@ func (o *PartialUpdateZonePayload) GetAclOk() (*string, bool) { // HasAcl returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasAcl() bool { - if o != nil && !IsNil(o.Acl) { + if o != nil && !IsNil(o.Acl) && !IsNil(o.Acl) { return true } @@ -118,7 +118,7 @@ func (o *PartialUpdateZonePayload) GetContactEmailOk() (*string, bool) { // HasContactEmail returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasContactEmail() bool { - if o != nil && !IsNil(o.ContactEmail) { + if o != nil && !IsNil(o.ContactEmail) && !IsNil(o.ContactEmail) { return true } @@ -150,7 +150,7 @@ func (o *PartialUpdateZonePayload) GetDefaultTTLOk() (*int64, bool) { // HasDefaultTTL returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasDefaultTTL() bool { - if o != nil && !IsNil(o.DefaultTTL) { + if o != nil && !IsNil(o.DefaultTTL) && !IsNil(o.DefaultTTL) { return true } @@ -182,7 +182,7 @@ func (o *PartialUpdateZonePayload) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -214,7 +214,7 @@ func (o *PartialUpdateZonePayload) GetExpireTimeOk() (*int64, bool) { // HasExpireTime returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasExpireTime() bool { - if o != nil && !IsNil(o.ExpireTime) { + if o != nil && !IsNil(o.ExpireTime) && !IsNil(o.ExpireTime) { return true } @@ -246,7 +246,7 @@ func (o *PartialUpdateZonePayload) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -278,7 +278,7 @@ func (o *PartialUpdateZonePayload) GetNegativeCacheOk() (*int64, bool) { // HasNegativeCache returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasNegativeCache() bool { - if o != nil && !IsNil(o.NegativeCache) { + if o != nil && !IsNil(o.NegativeCache) && !IsNil(o.NegativeCache) { return true } @@ -310,7 +310,7 @@ func (o *PartialUpdateZonePayload) GetPrimariesOk() (*[]string, bool) { // HasPrimaries returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasPrimaries() bool { - if o != nil && !IsNil(o.Primaries) { + if o != nil && !IsNil(o.Primaries) && !IsNil(o.Primaries) { return true } @@ -342,7 +342,7 @@ func (o *PartialUpdateZonePayload) GetRefreshTimeOk() (*int64, bool) { // HasRefreshTime returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasRefreshTime() bool { - if o != nil && !IsNil(o.RefreshTime) { + if o != nil && !IsNil(o.RefreshTime) && !IsNil(o.RefreshTime) { return true } @@ -374,7 +374,7 @@ func (o *PartialUpdateZonePayload) GetRetryTimeOk() (*int64, bool) { // HasRetryTime returns a boolean if a field has been set. func (o *PartialUpdateZonePayload) HasRetryTime() bool { - if o != nil && !IsNil(o.RetryTime) { + if o != nil && !IsNil(o.RetryTime) && !IsNil(o.RetryTime) { return true } diff --git a/services/dns/model_record.go b/services/dns/model_record.go index 7e00f59c0..44eb1d96a 100644 --- a/services/dns/model_record.go +++ b/services/dns/model_record.go @@ -50,7 +50,7 @@ func NewRecordWithDefaults() *Record { // GetContent returns the Content field value func (o *Record) GetContent() *string { - if o == nil { + if o == nil || IsNil(o.Content) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *Record) SetContent(v *string) { // GetId returns the Id field value func (o *Record) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } diff --git a/services/dns/model_record_data_exchange.go b/services/dns/model_record_data_exchange.go index f69ea488a..0c22e9624 100644 --- a/services/dns/model_record_data_exchange.go +++ b/services/dns/model_record_data_exchange.go @@ -63,7 +63,7 @@ func (o *RecordDataExchange) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *RecordDataExchange) HasComment() bool { - if o != nil && !IsNil(o.Comment) { + if o != nil && !IsNil(o.Comment) && !IsNil(o.Comment) { return true } @@ -95,7 +95,7 @@ func (o *RecordDataExchange) GetContentOk() (*[]string, bool) { // HasContent returns a boolean if a field has been set. func (o *RecordDataExchange) HasContent() bool { - if o != nil && !IsNil(o.Content) { + if o != nil && !IsNil(o.Content) && !IsNil(o.Content) { return true } @@ -127,7 +127,7 @@ func (o *RecordDataExchange) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *RecordDataExchange) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -159,7 +159,7 @@ func (o *RecordDataExchange) GetTtlOk() (*int64, bool) { // HasTtl returns a boolean if a field has been set. func (o *RecordDataExchange) HasTtl() bool { - if o != nil && !IsNil(o.Ttl) { + if o != nil && !IsNil(o.Ttl) && !IsNil(o.Ttl) { return true } @@ -191,7 +191,7 @@ func (o *RecordDataExchange) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *RecordDataExchange) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true } diff --git a/services/dns/model_record_payload.go b/services/dns/model_record_payload.go index c191d7c05..cf387bab4 100644 --- a/services/dns/model_record_payload.go +++ b/services/dns/model_record_payload.go @@ -46,7 +46,7 @@ func NewRecordPayloadWithDefaults() *RecordPayload { // GetContent returns the Content field value func (o *RecordPayload) GetContent() *string { - if o == nil { + if o == nil || IsNil(o.Content) { var ret *string return ret } diff --git a/services/dns/model_record_set.go b/services/dns/model_record_set.go index c9b2289dd..889729981 100644 --- a/services/dns/model_record_set.go +++ b/services/dns/model_record_set.go @@ -106,7 +106,7 @@ func (o *RecordSet) GetActiveOk() (*bool, bool) { // HasActive returns a boolean if a field has been set. func (o *RecordSet) HasActive() bool { - if o != nil && !IsNil(o.Active) { + if o != nil && !IsNil(o.Active) && !IsNil(o.Active) { return true } @@ -138,7 +138,7 @@ func (o *RecordSet) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *RecordSet) HasComment() bool { - if o != nil && !IsNil(o.Comment) { + if o != nil && !IsNil(o.Comment) && !IsNil(o.Comment) { return true } @@ -152,7 +152,7 @@ func (o *RecordSet) SetComment(v *string) { // GetCreationFinished returns the CreationFinished field value func (o *RecordSet) GetCreationFinished() *string { - if o == nil { + if o == nil || IsNil(o.CreationFinished) { var ret *string return ret } @@ -176,7 +176,7 @@ func (o *RecordSet) SetCreationFinished(v *string) { // GetCreationStarted returns the CreationStarted field value func (o *RecordSet) GetCreationStarted() *string { - if o == nil { + if o == nil || IsNil(o.CreationStarted) { var ret *string return ret } @@ -218,7 +218,7 @@ func (o *RecordSet) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *RecordSet) HasError() bool { - if o != nil && !IsNil(o.Error) { + if o != nil && !IsNil(o.Error) && !IsNil(o.Error) { return true } @@ -232,7 +232,7 @@ func (o *RecordSet) SetError(v *string) { // GetId returns the Id field value func (o *RecordSet) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -256,7 +256,7 @@ func (o *RecordSet) SetId(v *string) { // GetName returns the Name field value func (o *RecordSet) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -280,7 +280,7 @@ func (o *RecordSet) SetName(v *string) { // GetRecords returns the Records field value func (o *RecordSet) GetRecords() *[]Record { - if o == nil { + if o == nil || IsNil(o.Records) { var ret *[]Record return ret } @@ -304,7 +304,7 @@ func (o *RecordSet) SetRecords(v *[]Record) { // GetState returns the State field value func (o *RecordSet) GetState() *string { - if o == nil { + if o == nil || IsNil(o.State) { var ret *string return ret } @@ -328,7 +328,7 @@ func (o *RecordSet) SetState(v *string) { // GetTtl returns the Ttl field value func (o *RecordSet) GetTtl() *int64 { - if o == nil { + if o == nil || IsNil(o.Ttl) { var ret *int64 return ret } @@ -352,7 +352,7 @@ func (o *RecordSet) SetTtl(v *int64) { // GetType returns the Type field value func (o *RecordSet) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } @@ -376,7 +376,7 @@ func (o *RecordSet) SetType(v *string) { // GetUpdateFinished returns the UpdateFinished field value func (o *RecordSet) GetUpdateFinished() *string { - if o == nil { + if o == nil || IsNil(o.UpdateFinished) { var ret *string return ret } @@ -400,7 +400,7 @@ func (o *RecordSet) SetUpdateFinished(v *string) { // GetUpdateStarted returns the UpdateStarted field value func (o *RecordSet) GetUpdateStarted() *string { - if o == nil { + if o == nil || IsNil(o.UpdateStarted) { var ret *string return ret } diff --git a/services/dns/model_record_set_response.go b/services/dns/model_record_set_response.go index a17475b54..cc2b46f59 100644 --- a/services/dns/model_record_set_response.go +++ b/services/dns/model_record_set_response.go @@ -64,7 +64,7 @@ func (o *RecordSetResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *RecordSetResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } @@ -78,7 +78,7 @@ func (o *RecordSetResponse) SetMessage(v *string) { // GetRrset returns the Rrset field value func (o *RecordSetResponse) GetRrset() *RecordSet { - if o == nil { + if o == nil || IsNil(o.Rrset) { var ret *RecordSet return ret } diff --git a/services/dns/model_validate_move_code_payload.go b/services/dns/model_validate_move_code_payload.go index 2949988aa..5a31af517 100644 --- a/services/dns/model_validate_move_code_payload.go +++ b/services/dns/model_validate_move_code_payload.go @@ -46,7 +46,7 @@ func NewValidateMoveCodePayloadWithDefaults() *ValidateMoveCodePayload { // GetCode returns the Code field value func (o *ValidateMoveCodePayload) GetCode() *string { - if o == nil { + if o == nil || IsNil(o.Code) { var ret *string return ret } diff --git a/services/dns/model_zone.go b/services/dns/model_zone.go index ad2e47fb3..832981ab6 100644 --- a/services/dns/model_zone.go +++ b/services/dns/model_zone.go @@ -128,7 +128,7 @@ func NewZoneWithDefaults() *Zone { // GetAcl returns the Acl field value func (o *Zone) GetAcl() *string { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *string return ret } @@ -170,7 +170,7 @@ func (o *Zone) GetActiveOk() (*bool, bool) { // HasActive returns a boolean if a field has been set. func (o *Zone) HasActive() bool { - if o != nil && !IsNil(o.Active) { + if o != nil && !IsNil(o.Active) && !IsNil(o.Active) { return true } @@ -202,7 +202,7 @@ func (o *Zone) GetContactEmailOk() (*string, bool) { // HasContactEmail returns a boolean if a field has been set. func (o *Zone) HasContactEmail() bool { - if o != nil && !IsNil(o.ContactEmail) { + if o != nil && !IsNil(o.ContactEmail) && !IsNil(o.ContactEmail) { return true } @@ -216,7 +216,7 @@ func (o *Zone) SetContactEmail(v *string) { // GetCreationFinished returns the CreationFinished field value func (o *Zone) GetCreationFinished() *string { - if o == nil { + if o == nil || IsNil(o.CreationFinished) { var ret *string return ret } @@ -240,7 +240,7 @@ func (o *Zone) SetCreationFinished(v *string) { // GetCreationStarted returns the CreationStarted field value func (o *Zone) GetCreationStarted() *string { - if o == nil { + if o == nil || IsNil(o.CreationStarted) { var ret *string return ret } @@ -264,7 +264,7 @@ func (o *Zone) SetCreationStarted(v *string) { // GetDefaultTTL returns the DefaultTTL field value func (o *Zone) GetDefaultTTL() *int64 { - if o == nil { + if o == nil || IsNil(o.DefaultTTL) { var ret *int64 return ret } @@ -306,7 +306,7 @@ func (o *Zone) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Zone) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -320,7 +320,7 @@ func (o *Zone) SetDescription(v *string) { // GetDnsName returns the DnsName field value func (o *Zone) GetDnsName() *string { - if o == nil { + if o == nil || IsNil(o.DnsName) { var ret *string return ret } @@ -362,7 +362,7 @@ func (o *Zone) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *Zone) HasError() bool { - if o != nil && !IsNil(o.Error) { + if o != nil && !IsNil(o.Error) && !IsNil(o.Error) { return true } @@ -376,7 +376,7 @@ func (o *Zone) SetError(v *string) { // GetExpireTime returns the ExpireTime field value func (o *Zone) GetExpireTime() *int64 { - if o == nil { + if o == nil || IsNil(o.ExpireTime) { var ret *int64 return ret } @@ -400,7 +400,7 @@ func (o *Zone) SetExpireTime(v *int64) { // GetId returns the Id field value func (o *Zone) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -442,7 +442,7 @@ func (o *Zone) GetIsReverseZoneOk() (*bool, bool) { // HasIsReverseZone returns a boolean if a field has been set. func (o *Zone) HasIsReverseZone() bool { - if o != nil && !IsNil(o.IsReverseZone) { + if o != nil && !IsNil(o.IsReverseZone) && !IsNil(o.IsReverseZone) { return true } @@ -474,7 +474,7 @@ func (o *Zone) GetLabelsOk() (*[]Label, bool) { // HasLabels returns a boolean if a field has been set. func (o *Zone) HasLabels() bool { - if o != nil && !IsNil(o.Labels) { + if o != nil && !IsNil(o.Labels) && !IsNil(o.Labels) { return true } @@ -488,7 +488,7 @@ func (o *Zone) SetLabels(v *[]Label) { // GetName returns the Name field value func (o *Zone) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -512,7 +512,7 @@ func (o *Zone) SetName(v *string) { // GetNegativeCache returns the NegativeCache field value func (o *Zone) GetNegativeCache() *int64 { - if o == nil { + if o == nil || IsNil(o.NegativeCache) { var ret *int64 return ret } @@ -554,7 +554,7 @@ func (o *Zone) GetPrimariesOk() (*[]string, bool) { // HasPrimaries returns a boolean if a field has been set. func (o *Zone) HasPrimaries() bool { - if o != nil && !IsNil(o.Primaries) { + if o != nil && !IsNil(o.Primaries) && !IsNil(o.Primaries) { return true } @@ -568,7 +568,7 @@ func (o *Zone) SetPrimaries(v *[]string) { // GetPrimaryNameServer returns the PrimaryNameServer field value func (o *Zone) GetPrimaryNameServer() *string { - if o == nil { + if o == nil || IsNil(o.PrimaryNameServer) { var ret *string return ret } @@ -610,7 +610,7 @@ func (o *Zone) GetRecordCountOk() (*int64, bool) { // HasRecordCount returns a boolean if a field has been set. func (o *Zone) HasRecordCount() bool { - if o != nil && !IsNil(o.RecordCount) { + if o != nil && !IsNil(o.RecordCount) && !IsNil(o.RecordCount) { return true } @@ -624,7 +624,7 @@ func (o *Zone) SetRecordCount(v *int64) { // GetRefreshTime returns the RefreshTime field value func (o *Zone) GetRefreshTime() *int64 { - if o == nil { + if o == nil || IsNil(o.RefreshTime) { var ret *int64 return ret } @@ -648,7 +648,7 @@ func (o *Zone) SetRefreshTime(v *int64) { // GetRetryTime returns the RetryTime field value func (o *Zone) GetRetryTime() *int64 { - if o == nil { + if o == nil || IsNil(o.RetryTime) { var ret *int64 return ret } @@ -672,7 +672,7 @@ func (o *Zone) SetRetryTime(v *int64) { // GetSerialNumber returns the SerialNumber field value func (o *Zone) GetSerialNumber() *int64 { - if o == nil { + if o == nil || IsNil(o.SerialNumber) { var ret *int64 return ret } @@ -696,7 +696,7 @@ func (o *Zone) SetSerialNumber(v *int64) { // GetState returns the State field value func (o *Zone) GetState() *string { - if o == nil { + if o == nil || IsNil(o.State) { var ret *string return ret } @@ -720,7 +720,7 @@ func (o *Zone) SetState(v *string) { // GetType returns the Type field value func (o *Zone) GetType() *string { - if o == nil { + if o == nil || IsNil(o.Type) { var ret *string return ret } @@ -744,7 +744,7 @@ func (o *Zone) SetType(v *string) { // GetUpdateFinished returns the UpdateFinished field value func (o *Zone) GetUpdateFinished() *string { - if o == nil { + if o == nil || IsNil(o.UpdateFinished) { var ret *string return ret } @@ -768,7 +768,7 @@ func (o *Zone) SetUpdateFinished(v *string) { // GetUpdateStarted returns the UpdateStarted field value func (o *Zone) GetUpdateStarted() *string { - if o == nil { + if o == nil || IsNil(o.UpdateStarted) { var ret *string return ret } @@ -792,7 +792,7 @@ func (o *Zone) SetUpdateStarted(v *string) { // GetVisibility returns the Visibility field value func (o *Zone) GetVisibility() *string { - if o == nil { + if o == nil || IsNil(o.Visibility) { var ret *string return ret } diff --git a/services/dns/model_zone_data_exchange.go b/services/dns/model_zone_data_exchange.go index c24bb12c3..d914f7ca5 100644 --- a/services/dns/model_zone_data_exchange.go +++ b/services/dns/model_zone_data_exchange.go @@ -59,7 +59,7 @@ func (o *ZoneDataExchange) GetRrSetsOk() (*[]RecordDataExchange, bool) { // HasRrSets returns a boolean if a field has been set. func (o *ZoneDataExchange) HasRrSets() bool { - if o != nil && !IsNil(o.RrSets) { + if o != nil && !IsNil(o.RrSets) && !IsNil(o.RrSets) { return true } diff --git a/services/dns/model_zone_models_import_record_model.go b/services/dns/model_zone_models_import_record_model.go index 7b068fe7c..fe0421995 100644 --- a/services/dns/model_zone_models_import_record_model.go +++ b/services/dns/model_zone_models_import_record_model.go @@ -63,7 +63,7 @@ func (o *ZoneModelsImportRecordModel) GetCommentOk() (*string, bool) { // HasComment returns a boolean if a field has been set. func (o *ZoneModelsImportRecordModel) HasComment() bool { - if o != nil && !IsNil(o.Comment) { + if o != nil && !IsNil(o.Comment) && !IsNil(o.Comment) { return true } @@ -95,7 +95,7 @@ func (o *ZoneModelsImportRecordModel) GetContentOk() (*[]string, bool) { // HasContent returns a boolean if a field has been set. func (o *ZoneModelsImportRecordModel) HasContent() bool { - if o != nil && !IsNil(o.Content) { + if o != nil && !IsNil(o.Content) && !IsNil(o.Content) { return true } @@ -127,7 +127,7 @@ func (o *ZoneModelsImportRecordModel) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *ZoneModelsImportRecordModel) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -159,7 +159,7 @@ func (o *ZoneModelsImportRecordModel) GetTtlOk() (*int64, bool) { // HasTtl returns a boolean if a field has been set. func (o *ZoneModelsImportRecordModel) HasTtl() bool { - if o != nil && !IsNil(o.Ttl) { + if o != nil && !IsNil(o.Ttl) && !IsNil(o.Ttl) { return true } @@ -191,7 +191,7 @@ func (o *ZoneModelsImportRecordModel) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *ZoneModelsImportRecordModel) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true } diff --git a/services/dns/model_zone_models_import_zone_json.go b/services/dns/model_zone_models_import_zone_json.go index b3c61c1d3..3fadb7311 100644 --- a/services/dns/model_zone_models_import_zone_json.go +++ b/services/dns/model_zone_models_import_zone_json.go @@ -59,7 +59,7 @@ func (o *ZoneModelsImportZoneJson) GetRrSetsOk() (*[]ZoneModelsImportRecordModel // HasRrSets returns a boolean if a field has been set. func (o *ZoneModelsImportZoneJson) HasRrSets() bool { - if o != nil && !IsNil(o.RrSets) { + if o != nil && !IsNil(o.RrSets) && !IsNil(o.RrSets) { return true } diff --git a/services/dns/model_zone_response.go b/services/dns/model_zone_response.go index 9620a2732..3627fe1be 100644 --- a/services/dns/model_zone_response.go +++ b/services/dns/model_zone_response.go @@ -64,7 +64,7 @@ func (o *ZoneResponse) GetMessageOk() (*string, bool) { // HasMessage returns a boolean if a field has been set. func (o *ZoneResponse) HasMessage() bool { - if o != nil && !IsNil(o.Message) { + if o != nil && !IsNil(o.Message) && !IsNil(o.Message) { return true } @@ -78,7 +78,7 @@ func (o *ZoneResponse) SetMessage(v *string) { // GetZone returns the Zone field value func (o *ZoneResponse) GetZone() *Zone { - if o == nil { + if o == nil || IsNil(o.Zone) { var ret *Zone return ret }