Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/iaasalpha/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/stackitcloud/stackit-sdk-go/core v0.14.0
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.6-alpha
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.8-alpha
)

require (
Expand Down
4 changes: 2 additions & 2 deletions examples/iaasalpha/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ 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.14.0 h1:oBwwzrEHDTlZpRoQwmMQpNA8bWciTrtGkiN29nx14Z0=
github.com/stackitcloud/stackit-sdk-go/core v0.14.0/go.mod h1:mDX1mSTsB3mP+tNBGcFNx6gH1mGBN4T+dVt+lcw7nlw=
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.6-alpha h1:XUYncbRKaqbG76OzoSugfvPHp6+0A86JJxW2T3CLT2E=
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.6-alpha/go.mod h1:b4KR6r+yWS2hsDkz6ebRqxgadB+ZsAZcG0oDfv5jeaY=
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.8-alpha h1:s7HprLITChqzYk1sO605q0Ivhge7oNmZ4sVBfySlgw8=
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.8-alpha/go.mod h1:b4KR6r+yWS2hsDkz6ebRqxgadB+ZsAZcG0oDfv5jeaY=
4 changes: 2 additions & 2 deletions examples/iaasalpha/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ func main() {
fmt.Printf("[iaasalpha API] Server %q has been successfully created.\n", *server.Id)

// Update a server
updateServerPayload := iaasalpha.V1alpha1UpdateServerPayload{
updateServerPayload := iaasalpha.UpdateServerPayload{
Name: utils.Ptr("renamed"),
}
server, err = iaasalphaClient.V1alpha1UpdateServer(context.Background(), projectId, *server.Id).V1alpha1UpdateServerPayload(updateServerPayload).Execute()
server, err = iaasalphaClient.UpdateServer(context.Background(), projectId, *server.Id).UpdateServerPayload(updateServerPayload).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "[iaasalpha API] Error when calling `UpdateServer`: %v\n", err)
}
Expand Down
Loading
Loading