Skip to content

Commit 2b9d1c4

Browse files
Generator: Update SDK /services/postgresflex (#10398)
* Generate postgresflex * chore(postgresflex): Add changelogs Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent f7b248d commit 2b9d1c4

26 files changed

Lines changed: 202 additions & 149 deletions

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,22 @@
250250
- **Breaking Change/Fix:** `ListBackups` operation now returns `[]Backup` instead of `*ListBackupsResponse` (response type also removed)
251251
The go type now correctly models the actual JSON response, this operation was broken beforehand.
252252
- `postgresflex`:
253+
- [v1.13.0](services/postgresflex/CHANGELOG.md#v1130)
254+
- **Breaking Change:** Property `Class` in `CloneInstanceOverrides` and `StorageCreate` is required now
255+
- `v1api`:
256+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
257+
- `v2api`:
258+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
259+
- `v3alpha1api`:
260+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
261+
- **Breaking Change:** `Labels` field of `CreateInstanceRequestPayload`/`GetInstanceResponse`/`UpdateInstancePartiallyRequestPayload`/`UpdateInstanceRequestPayload` changed from `map[string]string` to `map[string]*string`
262+
- `v3api`:
263+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
264+
- **Breaking Change:** Property `Class` in `CloneInstanceOverrides` and `StorageCreate` is required now
265+
- **Breaking Change:** `Labels` field of `CreateInstancePayload`/`GetInstanceResponse`/`PartialUpdateInstancePayload`/`UpdateInstancePayload` changed from `map[string]string` to `map[string]*string`
266+
- `v3beta1api`:
267+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
268+
- **Breaking Change:** `Labels` field of `CreateInstancePayload`/`GetInstanceResponse`/`PartialUpdateInstancePayload`/`UpdateInstancePayload` changed from `map[string]string` to `map[string]*string`
253269
- [v1.12.0](services/postgresflex/CHANGELOG.md#v1120)
254270
- **Breaking Change:** The `v3api` replaces the `v2api`.
255271
- `v3api`: **New:** New package which can be used for communication with the postgresflex v3 API

examples/postgresflex/postgresflex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func main() {
5050
Acl: []string{"1.2.3.4/32"},
5151
},
5252
Storage: postgresflex.StorageCreate{
53-
Class: utils.Ptr("premium-perf2-stackit"),
53+
Class: "premium-perf2-stackit",
5454
Size: 5,
5555
},
5656
}

services/postgresflex/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## v1.13.0
2+
- **Breaking Change:** Property `Class` in `CloneInstanceOverrides` and `StorageCreate` is required now
3+
- `v1api`:
4+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
5+
- `v2api`:
6+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
7+
- `v3alpha1api`:
8+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
9+
- **Breaking Change:** `Labels` field of `CreateInstanceRequestPayload`/`GetInstanceResponse`/`UpdateInstancePartiallyRequestPayload`/`UpdateInstanceRequestPayload` changed from `map[string]string` to `map[string]*string`
10+
- `v3api`:
11+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
12+
- **Breaking Change:** Property `Class` in `CloneInstanceOverrides` and `StorageCreate` is required now
13+
- **Breaking Change:** `Labels` field of `CreateInstancePayload`/`GetInstanceResponse`/`PartialUpdateInstancePayload`/`UpdateInstancePayload` changed from `map[string]string` to `map[string]*string`
14+
- `v3beta1api`:
15+
- **Fix:** Response decoding now supports `*io.Reader` and `*[]byte` target types (previously only `string`, `*os.File`, and JSON were supported)
16+
- **Breaking Change:** `Labels` field of `CreateInstancePayload`/`GetInstanceResponse`/`PartialUpdateInstancePayload`/`UpdateInstancePayload` changed from `map[string]string` to `map[string]*string`
17+
18+
119
## v1.12.0
220
- **Breaking Change:** The `v3api` replaces the `v2api`.
321
- `v3api`: **New:** New package which can be used for communication with the postgresflex v3 API

services/postgresflex/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.12.0
1+
v1.13.0

services/postgresflex/model_clone_instance_overrides.go

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/postgresflex/model_storage_create.go

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/postgresflex/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3743740fd64567e45d0d0136ba9002f4f3c5e495
1+
5549bcd5d5e6597a7ec2f5f32f898082e1a0d833

services/postgresflex/v1api/client.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/postgresflex/v2api/client.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/postgresflex/v3alpha1api/client.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)