diff --git a/services/postgresflex/go.mod b/services/postgresflex/go.mod index 14727e7be..46130c96a 100644 --- a/services/postgresflex/go.mod +++ b/services/postgresflex/go.mod @@ -4,7 +4,7 @@ go 1.25 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.26.0 + github.com/stackitcloud/stackit-sdk-go/core v0.27.0 ) require ( diff --git a/services/postgresflex/go.sum b/services/postgresflex/go.sum index 3712a0c87..042f4a71a 100644 --- a/services/postgresflex/go.sum +++ b/services/postgresflex/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA= -github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= +github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/postgresflex/oas_commit b/services/postgresflex/oas_commit index 3df2932d2..d5d15003c 100644 --- a/services/postgresflex/oas_commit +++ b/services/postgresflex/oas_commit @@ -1 +1 @@ -1fdef398bea59d49731a7d9ac39394ba5b6bb72c +f385f3b154cb566b3c9e5156c29b28150f2af4a2 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