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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
- `v1beta2api`: New package which can be used for communication with the cdn v1 beta2 API
- **Deprecation:** The contents in the root of this SDK module including the `wait` package are marked as deprecated and will be removed after 2026-09-30. Switch to the new packages for the available API versions instead.
- **Dependencies:** Bump STACKIT SDK core module from `v0.21.1` to `v0.22.0`
- `logme`: [v0.26.0](services/logme/CHANGELOG.md#v0260)
- **Feature:** Introduction of multi API version support for the logme SDK module. For more details please see the announcement on GitHub: https://github.com/stackitcloud/stackit-sdk-go/discussions/5062
- `v1api`: New package which should be used for communication with the STACKIT logme API in the future
- **Deprecation:** The contents in the root of this SDK module including the `wait` package are marked as deprecated and will be removed after 2026-09-30. Switch to the new `v0api` package instead.
- **Dependencies:** Bump STACKIT SDK core module from `v0.21.1` to `v0.22.0`

## Release (2026-02-20)
- `core`: [v0.21.1](core/CHANGELOG.md#v0211)
Expand Down
5 changes: 4 additions & 1 deletion examples/logme/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ module github.com/stackitcloud/stackit-sdk-go/examples/logme

go 1.21

// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub.
replace github.com/stackitcloud/stackit-sdk-go/services/logme => ../../services/logme

require (
github.com/stackitcloud/stackit-sdk-go/core v0.21.1
github.com/stackitcloud/stackit-sdk-go/core v0.22.0
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.6
)

Expand Down
6 changes: 2 additions & 4 deletions examples/logme/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +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.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts=
github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.6 h1:4x30lC+YBmo7XpsAzTn0W+C/oP5flnLVgIh5u3O/P0o=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.6/go.mod h1:ewaYUiZcBTSS6urE5zEJBPCqxu70w2IjnBHCvnKdFKE=
github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c=
github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI=
17 changes: 8 additions & 9 deletions examples/logme/logme.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import (
"os"

"github.com/stackitcloud/stackit-sdk-go/core/config"
"github.com/stackitcloud/stackit-sdk-go/core/utils"
"github.com/stackitcloud/stackit-sdk-go/services/logme"
logme "github.com/stackitcloud/stackit-sdk-go/services/logme/v1api"
)

func main() {
Expand All @@ -24,15 +23,15 @@ func main() {
}

// Get the logme instances for your project
getInstancesResp, err := logmeClient.ListInstances(context.Background(), projectId).Execute()
getInstancesResp, err := logmeClient.DefaultAPI.ListInstances(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GetInstances`: %v\n", err)
} else {
fmt.Printf("Number of instances: %v\n", len(*getInstancesResp.Instances))
fmt.Printf("Number of instances: %v\n", len(getInstancesResp.Instances))
}

// Get the logme offerings for your project
getOfferingsResp, err := logmeClient.ListOfferings(context.Background(), projectId).Execute()
getOfferingsResp, err := logmeClient.DefaultAPI.ListOfferings(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GetOfferings`: %v\n", err)
} else {
Expand All @@ -41,14 +40,14 @@ func main() {

// Create a logme Instance
createInstancePayload := logme.CreateInstancePayload{
InstanceName: utils.Ptr("exampleInstance"),
InstanceName: "exampleInstance",
Parameters: &logme.InstanceParameters{},
PlanId: utils.Ptr(planId),
PlanId: planId,
}
createInstanceResp, err := logmeClient.CreateInstance(context.Background(), projectId).CreateInstancePayload(createInstancePayload).Execute()
createInstanceResp, err := logmeClient.DefaultAPI.CreateInstance(context.Background(), projectId).CreateInstancePayload(createInstancePayload).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CreateInstance`: %v\n", err)
} else {
fmt.Printf("Created instance with instance id \"%s\".\n", *createInstanceResp.InstanceId)
fmt.Printf("Created instance with instance id \"%s\".\n", createInstanceResp.InstanceId)
}
}
6 changes: 6 additions & 0 deletions services/logme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.26.0
- **Feature:** Introduction of multi API version support for the logme SDK module. For more details please see the announcement on GitHub: https://github.com/stackitcloud/stackit-sdk-go/discussions/5062
- `v1api`: New package which should be used for communication with the STACKIT logme API in the future
- **Deprecation:** The contents in the root of this SDK module including the `wait` package are marked as deprecated and will be removed after 2026-09-30. Switch to the new `v0api` package instead.
- **Dependencies:** Bump STACKIT SDK core module from `v0.21.1` to `v0.22.0`

## v0.25.6
- Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1`

Expand Down
2 changes: 1 addition & 1 deletion services/logme/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.25.6
v0.26.0
Loading
Loading