Skip to content

Commit 6874d02

Browse files
committed
fix(sdk): fix examples and services after regenerating sdk
1 parent a645a64 commit 6874d02

9 files changed

Lines changed: 11 additions & 11 deletions

File tree

examples/dremio/dremio.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
)
1313

1414
func main() {
15-
region := string(dremio.LISTDREMIOINSTANCESREGIONIDPARAMETER_EU01) // Region where the resources will be created
16-
projectId := "PROJECT_ID" // Your STACKIT project ID
15+
region := "eu01" // Region where the resources will be created
16+
projectId := "PROJECT_ID" // Your STACKIT project ID
1717

1818
ctx := context.Background()
1919

examples/intake/intake.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
)
1111

1212
func main() {
13-
region := string(intake.LISTINTAKERUNNERSREGIONIDPARAMETER_EU01) // Region where the resources will be created
14-
projectId := "PROJECT_ID" // Your STACKIT project ID
13+
region := "eu01" // Region where the resources will be created
14+
projectId := "PROJECT_ID" // Your STACKIT project ID
1515

1616
dremioCatalogURI := "DREMIO_CATALOG_URI" //nolint:gosec // E.g., "https://my-dremio-catalog.data-platform.stackit.run/iceberg"
1717
dremioTokenEndpoint := "DREMIO_TOKEN_ENDPOINT" //nolint:gosec // E.g., "https://my-dremio.data-platform.stackit.run/oauth/token"

examples/kms/kms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func main() {
1414
projectId := "PROJECT_ID" // the uuid of your STACKIT project
15-
region := string(kms.LISTKEYRINGSREGIONIDPARAMETER_EU01)
15+
region := "eu01"
1616

1717
// Create a new API client, that uses default authentication and configuration
1818
kmsClient, err := kms.NewAPIClient()

examples/logs/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func main() {
1212
ctx := context.Background()
1313

1414
projectId := "PROJECT_ID" // the uuid of your STACKIT project
15-
regionId := string(logs.LISTLOGSINSTANCESREGIONIDPARAMETER_EU01)
15+
regionId := "eu01"
1616

1717
client, err := logs.NewAPIClient()
1818
if err != nil {

examples/telemetrylink/telemetrylink.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515
organizationId := "ORGANIZATION_ID" // the uuid of your STACKIT organization
1616
folderId := "FOLDER_ID" // the uuid of your STACKIT folder
1717
projectId := "PROJECT_ID" // the uuid of your STACKIT project
18-
regionId := string(telemetrylink.GETFOLDERTELEMETRYLINKREGIONIDPARAMETER_EU01)
18+
regionId := "eu01"
1919
telemetryRouterId := "TELEMETRY_ROUTER_ID" // the uuid of your STACKIT TelemetryRouter
2020
telemetryRouterAccessToken := "TELEMETRY_ROUTER_ACCESS_TOKEN" // the access token of your TelemetryRouter
2121

examples/telemetryrouter/telemetryrouter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func main() {
1313
ctx := context.Background()
1414

1515
projectId := "PROJECT_ID" // the uuid of your STACKIT project
16-
regionId := string(telemetryrouter.LISTTELEMETRYROUTERSREGIONIDPARAMETER_EU01)
16+
regionId := "eu01"
1717

1818
client, err := telemetryrouter.NewAPIClient()
1919
if err != nil {

services/intake/v1betaapi/wait/wait_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func newAPIMock(settings *mockSettings) intake.DefaultAPI {
6666
}
6767
}
6868

69-
const regionId = string(intake.LISTINTAKERUNNERSREGIONIDPARAMETER_EU01)
69+
const regionId = "eu01"
7070

7171
var (
7272
projectId = uuid.NewString()

services/kms/v1api/wait/wait_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
const (
20-
testRegion = string(kms.LISTKEYRINGSREGIONIDPARAMETER_EU01)
20+
testRegion = "eu01"
2121
testPublicKey = "i am an invalid public key"
2222
)
2323

services/logs/v1api/wait/wait_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func newAPIMock(settings mockSettings) logs.DefaultAPI {
4141
var projectId = uuid.NewString()
4242
var instanceId = uuid.NewString()
4343

44-
const region = string(logs.LISTLOGSINSTANCESREGIONIDPARAMETER_EU01)
44+
const region = "eu01"
4545

4646
func TestCreateLogsInstanceWaitHandler(t *testing.T) {
4747
tests := []struct {

0 commit comments

Comments
 (0)