Skip to content

Commit 689a67b

Browse files
Generator: Update SDK /services/edge (#4187)
1 parent 88173c0 commit 689a67b

File tree

9 files changed

+542
-537
lines changed

9 files changed

+542
-537
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- **Feature:** added KmsKey model
44
- **Feature:** added KmsKey to Instance, CreateInstancePayload and UpdateInstancePayload
55
- `edge`:
6+
- [v0.3.0](services/edge/CHANGELOG.md#v030)
7+
- **Breaking change:** Rename methods: `PostInstances` to `CreateInstance` and `GetInstances` to `ListInstances`
68
- [v0.2.0](services/edge/CHANGELOG.md#v020)
79
- **Feature:** Add waiter methods for the API
810
- [v0.1.0](services/edge/CHANGELOG.md#v010)

examples/edge/edge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ func main() {
2626

2727
// Create an Edge Instance with default values
2828
var (
29-
payload = edge.NewPostInstancesPayloadWithDefaults()
29+
payload = edge.NewCreateInstancePayloadWithDefaults()
3030
instance *edge.Instance
3131
ctx = context.Background()
3232
)
3333
payload.DisplayName = utils.Ptr("example")
34-
instance, err = client.PostInstances(ctx, projectId, region).PostInstancesPayload(*payload).Execute()
34+
instance, err = client.CreateInstance(ctx, projectId, region).CreateInstancePayload(*payload).Execute()
3535
if err != nil {
3636
fmt.Fprintf(os.Stderr, "[Edge API] Failed to create Instance: %v\n", err)
3737
os.Exit(1)

services/edge/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
## v0.3.0
2+
- **Breaking change:** Rename methods: `PostInstances` to `CreateInstance` and `GetInstances` to `ListInstances`
3+
14
## v0.2.0
2-
- **Feature:** Add waiter methods for the API
5+
- **Feature:** Add waiter methods for the API
36

47
## v0.1.0
58
- **New:** STACKIT Edge Cloud service

services/edge/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.2.0
1+
v0.3.0

0 commit comments

Comments
 (0)