diff --git a/services/sqlserverflex/CHANGELOG.md b/services/sqlserverflex/CHANGELOG.md index 82dbfea6..7d6dfbe8 100644 --- a/services/sqlserverflex/CHANGELOG.md +++ b/services/sqlserverflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.8.1 (2024-12-17) + +- **Bugfix:** Correctly handle nullable attributes in model types + ## v0.8.0 (2024-10-14) - **Feature:** Add support for nullable models diff --git a/services/sqlserverflex/model_create_database_payload.go b/services/sqlserverflex/model_create_database_payload.go index 6c3ba8df..8df357eb 100644 --- a/services/sqlserverflex/model_create_database_payload.go +++ b/services/sqlserverflex/model_create_database_payload.go @@ -48,7 +48,7 @@ func NewCreateDatabasePayloadWithDefaults() *CreateDatabasePayload { // GetName returns the Name field value func (o *CreateDatabasePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -72,7 +72,7 @@ func (o *CreateDatabasePayload) SetName(v *string) { // GetOptions returns the Options field value func (o *CreateDatabasePayload) GetOptions() *DatabaseDocumentationCreateDatabaseRequestOptions { - if o == nil { + if o == nil || IsNil(o.Options) { var ret *DatabaseDocumentationCreateDatabaseRequestOptions return ret } diff --git a/services/sqlserverflex/model_create_instance_payload.go b/services/sqlserverflex/model_create_instance_payload.go index db9502da..70d7d94d 100644 --- a/services/sqlserverflex/model_create_instance_payload.go +++ b/services/sqlserverflex/model_create_instance_payload.go @@ -126,7 +126,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 } @@ -182,7 +182,7 @@ func (o *CreateInstancePayload) SetLabels(v *map[string]interface{}) { // 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 } diff --git a/services/sqlserverflex/model_create_user_payload.go b/services/sqlserverflex/model_create_user_payload.go index 3b35e00f..5d946f82 100644 --- a/services/sqlserverflex/model_create_user_payload.go +++ b/services/sqlserverflex/model_create_user_payload.go @@ -81,7 +81,7 @@ func (o *CreateUserPayload) SetDefaultDatabase(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 } @@ -105,7 +105,7 @@ func (o *CreateUserPayload) SetRoles(v *[]string) { // GetUsername returns the Username field value func (o *CreateUserPayload) GetUsername() *string { - if o == nil { + if o == nil || IsNil(o.Username) { var ret *string return ret } diff --git a/services/sqlserverflex/model_database_documentation_create_database_request_options.go b/services/sqlserverflex/model_database_documentation_create_database_request_options.go index d2eceb9d..1c38f76f 100644 --- a/services/sqlserverflex/model_database_documentation_create_database_request_options.go +++ b/services/sqlserverflex/model_database_documentation_create_database_request_options.go @@ -114,7 +114,7 @@ func (o *DatabaseDocumentationCreateDatabaseRequestOptions) SetCompatibilityLeve // GetOwner returns the Owner field value func (o *DatabaseDocumentationCreateDatabaseRequestOptions) GetOwner() *string { - if o == nil { + if o == nil || IsNil(o.Owner) { var ret *string return ret } diff --git a/services/sqlserverflex/model_trigger_database_restore_payload.go b/services/sqlserverflex/model_trigger_database_restore_payload.go index d26710b0..6b5d0b08 100644 --- a/services/sqlserverflex/model_trigger_database_restore_payload.go +++ b/services/sqlserverflex/model_trigger_database_restore_payload.go @@ -50,7 +50,7 @@ func NewTriggerDatabaseRestorePayloadWithDefaults() *TriggerDatabaseRestorePaylo // GetName returns the Name field value func (o *TriggerDatabaseRestorePayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *TriggerDatabaseRestorePayload) SetName(v *string) { // GetRestoreDateTime returns the RestoreDateTime field value func (o *TriggerDatabaseRestorePayload) GetRestoreDateTime() *string { - if o == nil { + if o == nil || IsNil(o.RestoreDateTime) { var ret *string return ret } diff --git a/services/sqlserverflex/model_update_instance_payload.go b/services/sqlserverflex/model_update_instance_payload.go index 50731c57..03599b56 100644 --- a/services/sqlserverflex/model_update_instance_payload.go +++ b/services/sqlserverflex/model_update_instance_payload.go @@ -66,7 +66,7 @@ func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { // GetAcl returns the Acl field value func (o *UpdateInstancePayload) GetAcl() *CreateInstancePayloadAcl { - if o == nil { + if o == nil || IsNil(o.Acl) { var ret *CreateInstancePayloadAcl return ret } @@ -90,7 +90,7 @@ func (o *UpdateInstancePayload) SetAcl(v *CreateInstancePayloadAcl) { // 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 } @@ -114,7 +114,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 } @@ -138,7 +138,7 @@ func (o *UpdateInstancePayload) SetFlavorId(v *string) { // GetLabels returns the Labels field value func (o *UpdateInstancePayload) GetLabels() *map[string]interface{} { - if o == nil { + if o == nil || IsNil(o.Labels) { var ret *map[string]interface{} return ret } @@ -162,7 +162,7 @@ func (o *UpdateInstancePayload) SetLabels(v *map[string]interface{}) { // 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 } @@ -186,7 +186,7 @@ func (o *UpdateInstancePayload) SetName(v *string) { // 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 }