From a5699898f2a2f19e49261ba1e9b664f235de2841 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 18 Dec 2024 13:31:09 +0000 Subject: [PATCH 1/2] Generate postgresflex --- .../model_create_instance_payload.go | 16 ++++++++-------- .../model_update_backup_schedule_payload.go | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/services/postgresflex/model_create_instance_payload.go b/services/postgresflex/model_create_instance_payload.go index 8c2508be..8b1e1483 100644 --- a/services/postgresflex/model_create_instance_payload.go +++ b/services/postgresflex/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 } @@ -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/postgresflex/model_update_backup_schedule_payload.go b/services/postgresflex/model_update_backup_schedule_payload.go index 7c2286c7..2d85cd31 100644 --- a/services/postgresflex/model_update_backup_schedule_payload.go +++ b/services/postgresflex/model_update_backup_schedule_payload.go @@ -45,7 +45,7 @@ func NewUpdateBackupSchedulePayloadWithDefaults() *UpdateBackupSchedulePayload { // GetBackupSchedule returns the BackupSchedule field value func (o *UpdateBackupSchedulePayload) GetBackupSchedule() *string { - if o == nil { + if o == nil || IsNil(o.BackupSchedule) { var ret *string return ret } From 2fee22be428efc2823d2d2ae1096909e150d01e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Schmitz?= Date: Thu, 19 Dec 2024 09:28:44 +0100 Subject: [PATCH 2/2] chore: update changelogs --- CHANGELOG.md | 4 ++++ services/postgresflex/CHANGELOG.md | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc0fcd0c..3918a75f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Release (2025-xx-yy) +- `postgresflex`: [0.16.1](services/postgresflex/CHANGELOG.md#v0161-2025-xx-yy) + - **Bugfix:** Correctly handle nullable attributes in model types + ## Release (2024-12-17) > [!WARNING] diff --git a/services/postgresflex/CHANGELOG.md b/services/postgresflex/CHANGELOG.md index bccde67f..43667b56 100644 --- a/services/postgresflex/CHANGELOG.md +++ b/services/postgresflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.16.1 (2025-xx-yy) +- **Bugfix:** Correctly handle nullable attributes in model types + ## v0.16.0 (2024-10-14) - **Feature:** Add support for nullable models