From 0e3411b6654512aa9dda84668cdcd6ebc30c0991 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 8 Sep 2026 10:09:36 +0000 Subject: [PATCH] Generate postgresflex --- services/postgresflex/oas_commit | 2 +- services/postgresflex/v3alpha1api/model_replicas.go | 6 +++--- services/postgresflex/v3alpha1api/model_replicas_opt.go | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/services/postgresflex/oas_commit b/services/postgresflex/oas_commit index 3df2932d2..84fb2776f 100644 --- a/services/postgresflex/oas_commit +++ b/services/postgresflex/oas_commit @@ -1 +1 @@ -1fdef398bea59d49731a7d9ac39394ba5b6bb72c +3fc1363ce4ead752c576a30ee9cf0e1b5836ae35 diff --git a/services/postgresflex/v3alpha1api/model_replicas.go b/services/postgresflex/v3alpha1api/model_replicas.go index d8a967668..c30d008da 100644 --- a/services/postgresflex/v3alpha1api/model_replicas.go +++ b/services/postgresflex/v3alpha1api/model_replicas.go @@ -17,7 +17,7 @@ import ( ) // Replicas Deprecated: Use flavorId instead, -replica in flavorId means 3 replicas. How many replicas the instance should have. -type Replicas uint32 +type Replicas int32 // List of replicas const ( @@ -34,7 +34,7 @@ var AllowedReplicasEnumValues = []Replicas{ } func (v *Replicas) UnmarshalJSON(src []byte) error { - var value uint32 + var value int32 err := json.Unmarshal(src, &value) if err != nil { return err @@ -53,7 +53,7 @@ func (v *Replicas) UnmarshalJSON(src []byte) error { // NewReplicasFromValue returns a pointer to a valid Replicas // for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewReplicasFromValue(v uint32) (*Replicas, error) { +func NewReplicasFromValue(v int32) (*Replicas, error) { ev := Replicas(v) if ev.IsValid() { return &ev, nil diff --git a/services/postgresflex/v3alpha1api/model_replicas_opt.go b/services/postgresflex/v3alpha1api/model_replicas_opt.go index 6e966deb1..c85dedfdb 100644 --- a/services/postgresflex/v3alpha1api/model_replicas_opt.go +++ b/services/postgresflex/v3alpha1api/model_replicas_opt.go @@ -17,7 +17,7 @@ import ( ) // ReplicasOpt Deprecated: Use flavorId instead, -replica in flavorId means 3 replicas. How many replicas the instance should have. -type ReplicasOpt uint32 +type ReplicasOpt int32 // List of replicas.opt const ( @@ -34,7 +34,7 @@ var AllowedReplicasOptEnumValues = []ReplicasOpt{ } func (v *ReplicasOpt) UnmarshalJSON(src []byte) error { - var value uint32 + var value int32 err := json.Unmarshal(src, &value) if err != nil { return err @@ -53,7 +53,7 @@ func (v *ReplicasOpt) UnmarshalJSON(src []byte) error { // NewReplicasOptFromValue returns a pointer to a valid ReplicasOpt // for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewReplicasOptFromValue(v uint32) (*ReplicasOpt, error) { +func NewReplicasOptFromValue(v int32) (*ReplicasOpt, error) { ev := ReplicasOpt(v) if ev.IsValid() { return &ev, nil