From cc13acb91777491f6bc9ffd6dd14b73d519f7555 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:38:21 +0000 Subject: [PATCH 01/29] Generate stackitmarketplace --- .../stackitmarketplace/api_default_test.go | 19 +++++++++---------- services/stackitmarketplace/go.mod | 8 ++++---- services/stackitmarketplace/utils.go | 12 ++++++++++++ 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/services/stackitmarketplace/api_default_test.go b/services/stackitmarketplace/api_default_test.go index a091af679..94fc01716 100644 --- a/services/stackitmarketplace/api_default_test.go +++ b/services/stackitmarketplace/api_default_test.go @@ -18,7 +18,6 @@ import ( "strings" "testing" - "github.com/google/uuid" "github.com/stackitcloud/stackit-sdk-go/core/config" ) @@ -26,9 +25,9 @@ func Test_stackitmarketplace_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ApproveSubscription", func(t *testing.T) { _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - subscriptionIdValue := uuid.NewString() + subscriptionIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"subscriptionId"+"}", url.PathEscape(ParameterValueToString(subscriptionIdValue, "subscriptionId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -75,7 +74,7 @@ func Test_stackitmarketplace_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetCatalogProduct", func(t *testing.T) { _apiUrlPath := "/v1/catalog/products/{productId}" - productIdValue := "productId-value" + productIdValue := randString(10) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"productId"+"}", url.PathEscape(ParameterValueToString(productIdValue, "productId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -127,9 +126,9 @@ func Test_stackitmarketplace_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetVendorSubscription", func(t *testing.T) { _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - subscriptionIdValue := uuid.NewString() + subscriptionIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"subscriptionId"+"}", url.PathEscape(ParameterValueToString(subscriptionIdValue, "subscriptionId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -274,7 +273,7 @@ func Test_stackitmarketplace_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListVendorSubscriptions", func(t *testing.T) { _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -326,7 +325,7 @@ func Test_stackitmarketplace_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ResolveCustomer", func(t *testing.T) { _apiUrlPath := "/v1/vendors/projects/{projectId}/resolve-customer" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -379,9 +378,9 @@ func Test_stackitmarketplace_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService VendorsSubscriptionsReject", func(t *testing.T) { _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - subscriptionIdValue := uuid.NewString() + subscriptionIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"subscriptionId"+"}", url.PathEscape(ParameterValueToString(subscriptionIdValue, "subscriptionId")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/stackitmarketplace/go.mod b/services/stackitmarketplace/go.mod index 2055c5d2c..c6e71d0eb 100644 --- a/services/stackitmarketplace/go.mod +++ b/services/stackitmarketplace/go.mod @@ -2,9 +2,9 @@ module github.com/stackitcloud/stackit-sdk-go/services/stackitmarketplace go 1.21 +require github.com/stackitcloud/stackit-sdk-go/core v0.17.2 + require ( - github.com/google/uuid v1.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.17.2 + github.com/golang-jwt/jwt/v5 v5.2.2 // indirect + github.com/google/uuid v1.6.0 // indirect ) - -require github.com/golang-jwt/jwt/v5 v5.2.2 // indirect diff --git a/services/stackitmarketplace/utils.go b/services/stackitmarketplace/utils.go index 9041f1beb..8677b8e67 100644 --- a/services/stackitmarketplace/utils.go +++ b/services/stackitmarketplace/utils.go @@ -12,6 +12,7 @@ package stackitmarketplace import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 6b68f1096b31b3602d0d841f0d82d897313bad00 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:38:12 +0000 Subject: [PATCH 02/29] Generate sqlserverflex --- services/sqlserverflex/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/sqlserverflex/utils.go b/services/sqlserverflex/utils.go index b7aab5eda..83e0ca3f9 100644 --- a/services/sqlserverflex/utils.go +++ b/services/sqlserverflex/utils.go @@ -12,6 +12,7 @@ package sqlserverflex import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From f7c1a1abed620902effa77d037cea9b6c2291994 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:38:01 +0000 Subject: [PATCH 03/29] Generate ske --- services/ske/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/ske/utils.go b/services/ske/utils.go index 4799ce09d..88d47eabd 100644 --- a/services/ske/utils.go +++ b/services/ske/utils.go @@ -12,6 +12,7 @@ package ske import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 7e0c479d7bccf6c26c00eae1c2e39bed2711917d Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:52 +0000 Subject: [PATCH 04/29] Generate serviceenablement --- services/serviceenablement/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/serviceenablement/utils.go b/services/serviceenablement/utils.go index 5ba2ba85c..a2a45e467 100644 --- a/services/serviceenablement/utils.go +++ b/services/serviceenablement/utils.go @@ -12,6 +12,7 @@ package serviceenablement import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From de27c78037c1cafc088681d6e36a8f0ab570f0ff Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:44 +0000 Subject: [PATCH 05/29] Generate serviceaccount --- services/serviceaccount/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/serviceaccount/utils.go b/services/serviceaccount/utils.go index e53599efe..61e2f8227 100644 --- a/services/serviceaccount/utils.go +++ b/services/serviceaccount/utils.go @@ -12,6 +12,7 @@ package serviceaccount import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From cbf34f437f3ec97fffeb32df9c566418645c1eda Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:35 +0000 Subject: [PATCH 06/29] Generate serverupdate --- services/serverupdate/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/serverupdate/utils.go b/services/serverupdate/utils.go index 2eaf4b82d..6b330689c 100644 --- a/services/serverupdate/utils.go +++ b/services/serverupdate/utils.go @@ -12,6 +12,7 @@ package serverupdate import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 2c2bbee8ffe5bb34581a238bc0d48a0dc68d1011 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:27 +0000 Subject: [PATCH 07/29] Generate serverbackup --- services/serverbackup/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/serverbackup/utils.go b/services/serverbackup/utils.go index 0a0d91dbd..4beedf09e 100644 --- a/services/serverbackup/utils.go +++ b/services/serverbackup/utils.go @@ -12,6 +12,7 @@ package serverbackup import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 01d6067b0173230639c0471acc07bbf89b2163b9 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:19 +0000 Subject: [PATCH 08/29] Generate secretsmanager --- services/secretsmanager/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/secretsmanager/utils.go b/services/secretsmanager/utils.go index 5497efd93..7e7739b38 100644 --- a/services/secretsmanager/utils.go +++ b/services/secretsmanager/utils.go @@ -12,6 +12,7 @@ package secretsmanager import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 8c9ddcdc842e910696578e9e4758353653a15004 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:11 +0000 Subject: [PATCH 09/29] Generate runcommand --- services/runcommand/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/runcommand/utils.go b/services/runcommand/utils.go index fb4222fa9..aa45f6c15 100644 --- a/services/runcommand/utils.go +++ b/services/runcommand/utils.go @@ -12,6 +12,7 @@ package runcommand import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 3378183f349a04dabbcd7f48da9a09626d9e3d26 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:37:03 +0000 Subject: [PATCH 10/29] Generate resourcemanager --- services/resourcemanager/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/resourcemanager/utils.go b/services/resourcemanager/utils.go index 539d98da2..3f6457666 100644 --- a/services/resourcemanager/utils.go +++ b/services/resourcemanager/utils.go @@ -12,6 +12,7 @@ package resourcemanager import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From dd2c28788566cf14ed4fc7d96ca79a1f809b0f40 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:36:53 +0000 Subject: [PATCH 11/29] Generate redis --- services/redis/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/redis/utils.go b/services/redis/utils.go index 4b06ae661..71532f25b 100644 --- a/services/redis/utils.go +++ b/services/redis/utils.go @@ -12,6 +12,7 @@ package redis import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 8c46f592d8b00239d03a0a73af03a18931929163 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:36:43 +0000 Subject: [PATCH 12/29] Generate rabbitmq --- services/rabbitmq/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/rabbitmq/utils.go b/services/rabbitmq/utils.go index 1660c5c49..51daf593d 100644 --- a/services/rabbitmq/utils.go +++ b/services/rabbitmq/utils.go @@ -12,6 +12,7 @@ package rabbitmq import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 7479cac534c95704d6dc2388c3840a6b329c9a27 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:36:34 +0000 Subject: [PATCH 13/29] Generate postgresflex --- services/postgresflex/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/postgresflex/utils.go b/services/postgresflex/utils.go index d9d4aee12..24b1dd201 100644 --- a/services/postgresflex/utils.go +++ b/services/postgresflex/utils.go @@ -12,6 +12,7 @@ package postgresflex import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 079a91ad219ae32812ad2ebb4c84b76a0c15eec2 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:36:23 +0000 Subject: [PATCH 14/29] Generate opensearch --- services/opensearch/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/opensearch/utils.go b/services/opensearch/utils.go index a65643123..485db8ef3 100644 --- a/services/opensearch/utils.go +++ b/services/opensearch/utils.go @@ -12,6 +12,7 @@ package opensearch import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From d9642d4f1cf02673f5810eefa6b4e68a0cdb41cc Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:36:13 +0000 Subject: [PATCH 15/29] Generate observability --- services/observability/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/observability/utils.go b/services/observability/utils.go index 6b589c9b5..c7912ebe7 100644 --- a/services/observability/utils.go +++ b/services/observability/utils.go @@ -12,6 +12,7 @@ package observability import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 62866176d6facac8498eceba27c1d9f743134a30 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:35:57 +0000 Subject: [PATCH 16/29] Generate objectstorage --- services/objectstorage/api_default_test.go | 6 +++--- services/objectstorage/utils.go | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/services/objectstorage/api_default_test.go b/services/objectstorage/api_default_test.go index 78f5e34cd..f8f41271b 100644 --- a/services/objectstorage/api_default_test.go +++ b/services/objectstorage/api_default_test.go @@ -85,7 +85,7 @@ func Test_objectstorage_DefaultApiService(t *testing.T) { _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - bucketNameValue := "bucketName-value" + bucketNameValue := randString(3) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"bucketName"+"}", url.PathEscape(ParameterValueToString(bucketNameValue, "bucketName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -257,7 +257,7 @@ func Test_objectstorage_DefaultApiService(t *testing.T) { _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - bucketNameValue := "bucketName-value" + bucketNameValue := randString(3) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"bucketName"+"}", url.PathEscape(ParameterValueToString(bucketNameValue, "bucketName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -483,7 +483,7 @@ func Test_objectstorage_DefaultApiService(t *testing.T) { _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) - bucketNameValue := "bucketName-value" + bucketNameValue := randString(3) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"bucketName"+"}", url.PathEscape(ParameterValueToString(bucketNameValue, "bucketName")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/objectstorage/utils.go b/services/objectstorage/utils.go index e335068b7..217767f3b 100644 --- a/services/objectstorage/utils.go +++ b/services/objectstorage/utils.go @@ -12,6 +12,7 @@ package objectstorage import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From db1ae1d03033048573edf147960e1b4d427f2b64 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:35:48 +0000 Subject: [PATCH 17/29] Generate mongodbflex --- services/mongodbflex/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/mongodbflex/utils.go b/services/mongodbflex/utils.go index 082bf5368..b60863e30 100644 --- a/services/mongodbflex/utils.go +++ b/services/mongodbflex/utils.go @@ -12,6 +12,7 @@ package mongodbflex import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 55f862e90679fb94ad6ea17b650f86df09724811 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:35:38 +0000 Subject: [PATCH 18/29] Generate modelserving --- services/modelserving/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/modelserving/utils.go b/services/modelserving/utils.go index e42cf20f3..9c21fb8eb 100644 --- a/services/modelserving/utils.go +++ b/services/modelserving/utils.go @@ -12,6 +12,7 @@ package modelserving import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 945dbb2e31ec5a52ca9e8f0e5c32ef13964165e6 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:35:29 +0000 Subject: [PATCH 19/29] Generate mariadb --- services/mariadb/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/mariadb/utils.go b/services/mariadb/utils.go index 77a7cb418..535c81831 100644 --- a/services/mariadb/utils.go +++ b/services/mariadb/utils.go @@ -12,6 +12,7 @@ package mariadb import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 8e46e570bf656b89ce0a73752267506b9e015413 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:35:19 +0000 Subject: [PATCH 20/29] Generate logme --- services/logme/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/logme/utils.go b/services/logme/utils.go index 45f0abf87..ef18d51fc 100644 --- a/services/logme/utils.go +++ b/services/logme/utils.go @@ -12,6 +12,7 @@ package logme import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 88ac9e26925195da1ff49077c0891309fa2a0e07 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:35:00 +0000 Subject: [PATCH 21/29] Generate lbapplication --- services/lbapplication/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/lbapplication/utils.go b/services/lbapplication/utils.go index b07c51304..af5a867a0 100644 --- a/services/lbapplication/utils.go +++ b/services/lbapplication/utils.go @@ -12,6 +12,7 @@ package lbapplication import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 344f82b85e0a6eb591ee173fb696d6786c04a471 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:34:50 +0000 Subject: [PATCH 22/29] Generate iaasalpha --- services/iaasalpha/api_default_test.go | 503 ++++++++++++------------- services/iaasalpha/go.mod | 6 +- services/iaasalpha/utils.go | 12 + 3 files changed, 267 insertions(+), 254 deletions(-) diff --git a/services/iaasalpha/api_default_test.go b/services/iaasalpha/api_default_test.go index b0251b527..0094cdfb9 100644 --- a/services/iaasalpha/api_default_test.go +++ b/services/iaasalpha/api_default_test.go @@ -18,7 +18,6 @@ import ( "strings" "testing" - "github.com/google/uuid" "github.com/stackitcloud/stackit-sdk-go/core/config" ) @@ -26,11 +25,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddMemberToVirtualIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips/{virtualIpId}/add-member" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - virtualIpIdValue := uuid.NewString() + virtualIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"virtualIpId"+"}", url.PathEscape(ParameterValueToString(virtualIpIdValue, "virtualIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -85,11 +84,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddNetworkToServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -137,11 +136,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddNicToServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -189,11 +188,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddPublicIpToServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -241,11 +240,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddSecurityGroupToServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -293,11 +292,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddServiceAccountToServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/service-accounts/{serviceAccountMail}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - serviceAccountMailValue := "serviceAccountMail-value" + serviceAccountMailValue := randString(255) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serviceAccountMail"+"}", url.PathEscape(ParameterValueToString(serviceAccountMailValue, "serviceAccountMail")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -351,11 +350,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddVolumeToServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -409,7 +408,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateAffinityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/affinity-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -462,7 +461,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateBackup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/backups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -515,7 +514,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateImage", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -618,7 +617,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetwork", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -671,7 +670,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -724,9 +723,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetworkAreaRange", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/network-ranges" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -780,9 +779,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/routes" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -836,9 +835,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNic", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -892,7 +891,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreatePublicIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/public-ips" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -945,7 +944,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -998,9 +997,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateSecurityGroupRule", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}/rules" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1054,7 +1053,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1107,7 +1106,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateSnapshot", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/snapshots" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1160,9 +1159,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateVirtualIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1216,7 +1215,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volumes" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1269,9 +1268,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeallocateServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/deallocate" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1318,9 +1317,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteAffinityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/affinity-groups/{affinityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - affinityGroupIdValue := uuid.NewString() + affinityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"affinityGroupId"+"}", url.PathEscape(ParameterValueToString(affinityGroupIdValue, "affinityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1367,9 +1366,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteBackup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/backups/{backupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1416,9 +1415,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteImage", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1465,9 +1464,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteImageShare", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1514,11 +1513,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteImageShareConsumer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/share/{consumerProjectId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) - consumerProjectIdValue := uuid.NewString() + consumerProjectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"consumerProjectId"+"}", url.PathEscape(ParameterValueToString(consumerProjectIdValue, "consumerProjectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1566,7 +1565,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteKeyPair", func(t *testing.T) { _apiUrlPath := "/v1alpha1/keypairs/{keypairName}" - keypairNameValue := "keypairName-value" + keypairNameValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"keypairName"+"}", url.PathEscape(ParameterValueToString(keypairNameValue, "keypairName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1612,9 +1611,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetwork", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1661,9 +1660,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1710,11 +1709,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetworkAreaRange", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/network-ranges/{networkRangeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - networkRangeIdValue := uuid.NewString() + networkRangeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkRangeId"+"}", url.PathEscape(ParameterValueToString(networkRangeIdValue, "networkRangeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1762,11 +1761,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/routes/{routeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - routeIdValue := uuid.NewString() + routeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routeId"+"}", url.PathEscape(ParameterValueToString(routeIdValue, "routeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1814,11 +1813,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNic", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1866,9 +1865,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeletePublicIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1915,9 +1914,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1964,11 +1963,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteSecurityGroupRule", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}/rules/{securityGroupRuleId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) - securityGroupRuleIdValue := uuid.NewString() + securityGroupRuleIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupRuleId"+"}", url.PathEscape(ParameterValueToString(securityGroupRuleIdValue, "securityGroupRuleId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2016,9 +2015,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2065,9 +2064,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteSnapshot", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/snapshots/{snapshotId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - snapshotIdValue := uuid.NewString() + snapshotIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"snapshotId"+"}", url.PathEscape(ParameterValueToString(snapshotIdValue, "snapshotId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2114,11 +2113,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteVirtualIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips/{virtualIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - virtualIpIdValue := uuid.NewString() + virtualIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"virtualIpId"+"}", url.PathEscape(ParameterValueToString(virtualIpIdValue, "virtualIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2166,9 +2165,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volumes/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2215,9 +2214,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetAffinityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/affinity-groups/{affinityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - affinityGroupIdValue := uuid.NewString() + affinityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"affinityGroupId"+"}", url.PathEscape(ParameterValueToString(affinityGroupIdValue, "affinityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2270,11 +2269,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetAttachedVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2328,9 +2327,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetBackup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/backups/{backupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2383,9 +2382,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetImage", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2438,9 +2437,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetImageShare", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2493,11 +2492,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetImageShareConsumer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/share/{consumerProjectId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) - consumerProjectIdValue := uuid.NewString() + consumerProjectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"consumerProjectId"+"}", url.PathEscape(ParameterValueToString(consumerProjectIdValue, "consumerProjectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2551,7 +2550,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetKeyPair", func(t *testing.T) { _apiUrlPath := "/v1alpha1/keypairs/{keypairName}" - keypairNameValue := "keypairName-value" + keypairNameValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"keypairName"+"}", url.PathEscape(ParameterValueToString(keypairNameValue, "keypairName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2603,9 +2602,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetMachineType", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/machine-types/{machineType}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - machineTypeValue := "machineType-value" + machineTypeValue := randString(63) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"machineType"+"}", url.PathEscape(ParameterValueToString(machineTypeValue, "machineType")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2658,9 +2657,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetwork", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2713,9 +2712,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2768,11 +2767,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetworkAreaRange", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/network-ranges/{networkRangeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - networkRangeIdValue := uuid.NewString() + networkRangeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkRangeId"+"}", url.PathEscape(ParameterValueToString(networkRangeIdValue, "networkRangeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2826,11 +2825,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/routes/{routeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - routeIdValue := uuid.NewString() + routeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routeId"+"}", url.PathEscape(ParameterValueToString(routeIdValue, "routeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2884,11 +2883,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNic", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2942,9 +2941,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetOrganizationRequest", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/requests/{requestId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - requestIdValue := "requestId-value" + requestIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"requestId"+"}", url.PathEscape(ParameterValueToString(requestIdValue, "requestId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2997,7 +2996,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetProjectDetails", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3049,9 +3048,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetProjectNIC", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3104,9 +3103,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetProjectRequest", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/requests/{requestId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - requestIdValue := "requestId-value" + requestIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"requestId"+"}", url.PathEscape(ParameterValueToString(requestIdValue, "requestId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3159,9 +3158,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetPublicIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3214,9 +3213,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3269,11 +3268,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetSecurityGroupRule", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}/rules/{securityGroupRuleId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) - securityGroupRuleIdValue := uuid.NewString() + securityGroupRuleIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupRuleId"+"}", url.PathEscape(ParameterValueToString(securityGroupRuleIdValue, "securityGroupRuleId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3327,9 +3326,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3382,9 +3381,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServerConsole", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/console" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3437,9 +3436,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServerLog", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/log" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3492,9 +3491,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetSnapshot", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/snapshots/{snapshotId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - snapshotIdValue := uuid.NewString() + snapshotIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"snapshotId"+"}", url.PathEscape(ParameterValueToString(snapshotIdValue, "snapshotId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3547,11 +3546,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetVirtualIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips/{virtualIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - virtualIpIdValue := uuid.NewString() + virtualIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"virtualIpId"+"}", url.PathEscape(ParameterValueToString(virtualIpIdValue, "virtualIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3605,9 +3604,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volumes/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3660,9 +3659,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetVolumePerformanceClass", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volume-performance-classes/{volumePerformanceClass}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumePerformanceClassValue := "volumePerformanceClass-value" + volumePerformanceClassValue := randString(63) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumePerformanceClass"+"}", url.PathEscape(ParameterValueToString(volumePerformanceClassValue, "volumePerformanceClass")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3715,7 +3714,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListAffinityGroups", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/affinity-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3767,9 +3766,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListAttachedVolumes", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/volume-attachments" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3870,7 +3869,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListBackups", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/backups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3922,7 +3921,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListImages", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4022,7 +4021,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListMachineTypes", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/machine-types" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4074,9 +4073,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreaProjects", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/projects" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4129,9 +4128,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreaRanges", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/network-ranges" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4184,9 +4183,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreaRoutes", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/routes" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4239,7 +4238,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreas", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4291,7 +4290,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworks", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4343,9 +4342,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNics", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4398,7 +4397,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListProjectNICs", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4450,7 +4449,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListPublicIPs", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/public-ips" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4550,7 +4549,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListQuotas", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/quotas" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4602,9 +4601,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListSecurityGroupRules", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}/rules" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4657,7 +4656,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListSecurityGroups", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4709,9 +4708,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListServerNics", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4764,9 +4763,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListServerServiceAccounts", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/service-accounts" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4819,7 +4818,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListServers", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4871,7 +4870,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListSnapshots", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/snapshots" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4923,9 +4922,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListVirtualIPs", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4978,7 +4977,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListVolumePerformanceClasses", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volume-performance-classes" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5030,7 +5029,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListVolumes", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volumes" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5082,9 +5081,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService PartialUpdateNetwork", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5132,9 +5131,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService PartialUpdateNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5188,9 +5187,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RebootServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/reboot" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5237,11 +5236,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveMemberFromVirtualIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips/{virtualIpId}/remove-member" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - virtualIpIdValue := uuid.NewString() + virtualIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"virtualIpId"+"}", url.PathEscape(ParameterValueToString(virtualIpIdValue, "virtualIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5296,11 +5295,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveNetworkFromServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5348,11 +5347,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveNicFromServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5400,11 +5399,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemovePublicIpFromServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5452,11 +5451,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveSecurityGroupFromServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5504,11 +5503,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveServiceAccountFromServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/service-accounts/{serviceAccountMail}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - serviceAccountMailValue := "serviceAccountMail-value" + serviceAccountMailValue := randString(255) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serviceAccountMail"+"}", url.PathEscape(ParameterValueToString(serviceAccountMailValue, "serviceAccountMail")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5562,11 +5561,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveVolumeFromServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5614,9 +5613,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RescueServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/rescue" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5664,9 +5663,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ResizeServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/resize" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5714,9 +5713,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ResizeVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volumes/{volumeId}/resize" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5763,9 +5762,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RestoreBackup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/backups/{backupId}/restore" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5812,9 +5811,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService SetImageShare", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5868,9 +5867,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService StartServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/start" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5917,9 +5916,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService StopServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/stop" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5966,9 +5965,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UnrescueServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/unrescue" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6015,11 +6014,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateAttachedVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6074,9 +6073,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateBackup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/backups/{backupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6130,9 +6129,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImage", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6186,9 +6185,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImageScopeLocal", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/publish" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6241,9 +6240,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImageScopePublic", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/publish" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6296,9 +6295,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImageShare", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6352,7 +6351,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateKeyPair", func(t *testing.T) { _apiUrlPath := "/v1alpha1/keypairs/{keypairName}" - keypairNameValue := "keypairName-value" + keypairNameValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"keypairName"+"}", url.PathEscape(ParameterValueToString(keypairNameValue, "keypairName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6405,11 +6404,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateNic", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6464,9 +6463,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdatePublicIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6520,9 +6519,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6576,9 +6575,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateServer", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/servers/{serverId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6632,9 +6631,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateSnapshot", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/snapshots/{snapshotId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - snapshotIdValue := uuid.NewString() + snapshotIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"snapshotId"+"}", url.PathEscape(ParameterValueToString(snapshotIdValue, "snapshotId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6688,11 +6687,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateVirtualIP", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/networks/{networkId}/virtual-ips/{virtualIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - virtualIpIdValue := uuid.NewString() + virtualIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"virtualIpId"+"}", url.PathEscape(ParameterValueToString(virtualIpIdValue, "virtualIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6741,9 +6740,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateVolume", func(t *testing.T) { _apiUrlPath := "/v1alpha1/projects/{projectId}/volumes/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6797,11 +6796,11 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService V1alpha1UpdateRouteOfArea", func(t *testing.T) { _apiUrlPath := "/v1alpha1/organizations/{organizationId}/network-areas/{areaId}/routes/{routeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - routeIdValue := uuid.NewString() + routeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routeId"+"}", url.PathEscape(ParameterValueToString(routeIdValue, "routeId")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/iaasalpha/go.mod b/services/iaasalpha/go.mod index d29318d32..47070d132 100644 --- a/services/iaasalpha/go.mod +++ b/services/iaasalpha/go.mod @@ -4,8 +4,10 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/google/uuid v1.6.0 github.com/stackitcloud/stackit-sdk-go/core v0.17.2 ) -require github.com/golang-jwt/jwt/v5 v5.2.2 // indirect +require ( + github.com/golang-jwt/jwt/v5 v5.2.2 // indirect + github.com/google/uuid v1.6.0 // indirect +) diff --git a/services/iaasalpha/utils.go b/services/iaasalpha/utils.go index 872ebd60c..5ecdb0aa7 100644 --- a/services/iaasalpha/utils.go +++ b/services/iaasalpha/utils.go @@ -12,6 +12,7 @@ package iaasalpha import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 297f78ee5fa2fddde83adf4eb0675d12a137d6e4 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:34:33 +0000 Subject: [PATCH 23/29] Generate iaas --- services/iaas/api_default_test.go | 463 +++++++++++++++--------------- services/iaas/go.mod | 6 +- services/iaas/utils.go | 12 + 3 files changed, 247 insertions(+), 234 deletions(-) diff --git a/services/iaas/api_default_test.go b/services/iaas/api_default_test.go index 77be86721..20f6ce22c 100644 --- a/services/iaas/api_default_test.go +++ b/services/iaas/api_default_test.go @@ -18,7 +18,6 @@ import ( "strings" "testing" - "github.com/google/uuid" "github.com/stackitcloud/stackit-sdk-go/core/config" ) @@ -26,11 +25,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddNetworkToServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -78,11 +77,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddNicToServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -130,11 +129,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddPublicIpToServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -182,11 +181,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddSecurityGroupToServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -234,11 +233,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddServiceAccountToServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/service-accounts/{serviceAccountMail}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - serviceAccountMailValue := "serviceAccountMail-value" + serviceAccountMailValue := randString(255) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serviceAccountMail"+"}", url.PathEscape(ParameterValueToString(serviceAccountMailValue, "serviceAccountMail")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -292,11 +291,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService AddVolumeToServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -350,7 +349,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateAffinityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/affinity-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -403,7 +402,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateBackup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/backups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -456,7 +455,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateImage", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -559,7 +558,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetwork", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -612,7 +611,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -665,9 +664,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetworkAreaRange", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/network-ranges" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -721,9 +720,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/routes" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -777,9 +776,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateNic", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -833,7 +832,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreatePublicIP", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/public-ips" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -886,7 +885,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -939,9 +938,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateSecurityGroupRule", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}/rules" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -995,7 +994,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1048,7 +1047,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateSnapshot", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/snapshots" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1101,7 +1100,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volumes" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1154,9 +1153,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeallocateServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/deallocate" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1203,9 +1202,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteAffinityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/affinity-groups/{affinityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - affinityGroupIdValue := uuid.NewString() + affinityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"affinityGroupId"+"}", url.PathEscape(ParameterValueToString(affinityGroupIdValue, "affinityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1252,9 +1251,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteBackup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/backups/{backupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1301,9 +1300,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteImage", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1350,9 +1349,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteImageShare", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1399,11 +1398,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteImageShareConsumer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/share/{consumerProjectId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) - consumerProjectIdValue := uuid.NewString() + consumerProjectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"consumerProjectId"+"}", url.PathEscape(ParameterValueToString(consumerProjectIdValue, "consumerProjectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1451,7 +1450,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteKeyPair", func(t *testing.T) { _apiUrlPath := "/v1/keypairs/{keypairName}" - keypairNameValue := "keypairName-value" + keypairNameValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"keypairName"+"}", url.PathEscape(ParameterValueToString(keypairNameValue, "keypairName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1497,9 +1496,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetwork", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1546,9 +1545,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1595,11 +1594,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetworkAreaRange", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/network-ranges/{networkRangeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - networkRangeIdValue := uuid.NewString() + networkRangeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkRangeId"+"}", url.PathEscape(ParameterValueToString(networkRangeIdValue, "networkRangeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1647,11 +1646,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/routes/{routeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - routeIdValue := uuid.NewString() + routeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routeId"+"}", url.PathEscape(ParameterValueToString(routeIdValue, "routeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1699,11 +1698,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteNic", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1751,9 +1750,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeletePublicIP", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1800,9 +1799,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1849,11 +1848,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteSecurityGroupRule", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}/rules/{securityGroupRuleId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) - securityGroupRuleIdValue := uuid.NewString() + securityGroupRuleIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupRuleId"+"}", url.PathEscape(ParameterValueToString(securityGroupRuleIdValue, "securityGroupRuleId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1901,9 +1900,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1950,9 +1949,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteSnapshot", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/snapshots/{snapshotId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - snapshotIdValue := uuid.NewString() + snapshotIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"snapshotId"+"}", url.PathEscape(ParameterValueToString(snapshotIdValue, "snapshotId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -1999,9 +1998,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volumes/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2048,9 +2047,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetAffinityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/affinity-groups/{affinityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - affinityGroupIdValue := uuid.NewString() + affinityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"affinityGroupId"+"}", url.PathEscape(ParameterValueToString(affinityGroupIdValue, "affinityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2103,11 +2102,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetAttachedVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2161,9 +2160,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetBackup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/backups/{backupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2216,9 +2215,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetImage", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2271,9 +2270,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetImageShare", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2326,11 +2325,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetImageShareConsumer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/share/{consumerProjectId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) - consumerProjectIdValue := uuid.NewString() + consumerProjectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"consumerProjectId"+"}", url.PathEscape(ParameterValueToString(consumerProjectIdValue, "consumerProjectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2384,7 +2383,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetKeyPair", func(t *testing.T) { _apiUrlPath := "/v1/keypairs/{keypairName}" - keypairNameValue := "keypairName-value" + keypairNameValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"keypairName"+"}", url.PathEscape(ParameterValueToString(keypairNameValue, "keypairName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2436,9 +2435,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetMachineType", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/machine-types/{machineType}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - machineTypeValue := "machineType-value" + machineTypeValue := randString(63) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"machineType"+"}", url.PathEscape(ParameterValueToString(machineTypeValue, "machineType")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2491,9 +2490,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetwork", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2546,9 +2545,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2601,11 +2600,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetworkAreaRange", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/network-ranges/{networkRangeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - networkRangeIdValue := uuid.NewString() + networkRangeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkRangeId"+"}", url.PathEscape(ParameterValueToString(networkRangeIdValue, "networkRangeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2659,11 +2658,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/routes/{routeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - routeIdValue := uuid.NewString() + routeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routeId"+"}", url.PathEscape(ParameterValueToString(routeIdValue, "routeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2717,11 +2716,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetNic", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2775,9 +2774,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetOrganizationRequest", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/requests/{requestId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - requestIdValue := "requestId-value" + requestIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"requestId"+"}", url.PathEscape(ParameterValueToString(requestIdValue, "requestId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2830,9 +2829,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetProjectNIC", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2885,9 +2884,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetProjectRequest", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/requests/{requestId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - requestIdValue := "requestId-value" + requestIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"requestId"+"}", url.PathEscape(ParameterValueToString(requestIdValue, "requestId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2940,9 +2939,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetPublicIP", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -2995,9 +2994,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3050,11 +3049,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetSecurityGroupRule", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}/rules/{securityGroupRuleId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) - securityGroupRuleIdValue := uuid.NewString() + securityGroupRuleIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupRuleId"+"}", url.PathEscape(ParameterValueToString(securityGroupRuleIdValue, "securityGroupRuleId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3108,9 +3107,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3163,9 +3162,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServerConsole", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/console" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3218,9 +3217,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetServerLog", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/log" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3273,9 +3272,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetSnapshot", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/snapshots/{snapshotId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - snapshotIdValue := uuid.NewString() + snapshotIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"snapshotId"+"}", url.PathEscape(ParameterValueToString(snapshotIdValue, "snapshotId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3328,9 +3327,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volumes/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3383,9 +3382,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetVolumePerformanceClass", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volume-performance-classes/{volumePerformanceClass}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumePerformanceClassValue := "volumePerformanceClass-value" + volumePerformanceClassValue := randString(63) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumePerformanceClass"+"}", url.PathEscape(ParameterValueToString(volumePerformanceClassValue, "volumePerformanceClass")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3438,7 +3437,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListAffinityGroups", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/affinity-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3490,9 +3489,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListAttachedVolumes", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/volume-attachments" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3593,7 +3592,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListBackups", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/backups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3645,7 +3644,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListImages", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3745,7 +3744,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListMachineTypes", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/machine-types" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3797,9 +3796,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreaProjects", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/projects" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3852,9 +3851,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreaRanges", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/network-ranges" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3907,9 +3906,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreaRoutes", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/routes" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3962,7 +3961,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworkAreas", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4014,7 +4013,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNetworks", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4066,9 +4065,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListNics", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4121,7 +4120,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListProjectNICs", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4221,7 +4220,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListPublicIPs", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/public-ips" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4273,7 +4272,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListQuotas", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/quotas" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4325,9 +4324,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListSecurityGroupRules", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}/rules" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4380,7 +4379,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListSecurityGroups", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4432,9 +4431,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListServerNics", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/nics" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4487,9 +4486,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListServerServiceAccounts", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/service-accounts" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4542,7 +4541,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListServers", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4594,7 +4593,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListSnapshots", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/snapshots" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4646,7 +4645,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListVolumePerformanceClasses", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volume-performance-classes" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4698,7 +4697,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListVolumes", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volumes" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4750,9 +4749,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService PartialUpdateNetwork", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4800,9 +4799,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService PartialUpdateNetworkArea", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4856,9 +4855,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RebootServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/reboot" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4905,11 +4904,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveNetworkFromServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/networks/{networkId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -4957,11 +4956,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveNicFromServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5009,11 +5008,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemovePublicIpFromServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5061,11 +5060,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveSecurityGroupFromServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5113,11 +5112,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveServiceAccountFromServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/service-accounts/{serviceAccountMail}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - serviceAccountMailValue := "serviceAccountMail-value" + serviceAccountMailValue := randString(255) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serviceAccountMail"+"}", url.PathEscape(ParameterValueToString(serviceAccountMailValue, "serviceAccountMail")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5171,11 +5170,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RemoveVolumeFromServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5223,9 +5222,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RescueServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/rescue" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5273,9 +5272,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ResizeServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/resize" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5323,9 +5322,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ResizeVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volumes/{volumeId}/resize" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5372,9 +5371,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService RestoreBackup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/backups/{backupId}/restore" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5421,9 +5420,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService SetImageShare", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5477,9 +5476,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService StartServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/start" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5526,9 +5525,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService StopServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/stop" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5575,9 +5574,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UnrescueServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/unrescue" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5624,11 +5623,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateAttachedVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}/volume-attachments/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5683,9 +5682,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateBackup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/backups/{backupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - backupIdValue := uuid.NewString() + backupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(backupIdValue, "backupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5739,9 +5738,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImage", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5795,9 +5794,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImageScopeLocal", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/publish" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5850,9 +5849,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImageScopePublic", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/publish" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5905,9 +5904,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateImageShare", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/images/{imageId}/share" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - imageIdValue := uuid.NewString() + imageIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"imageId"+"}", url.PathEscape(ParameterValueToString(imageIdValue, "imageId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -5961,7 +5960,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateKeyPair", func(t *testing.T) { _apiUrlPath := "/v1/keypairs/{keypairName}" - keypairNameValue := "keypairName-value" + keypairNameValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"keypairName"+"}", url.PathEscape(ParameterValueToString(keypairNameValue, "keypairName")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6014,11 +6013,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateNetworkAreaRoute", func(t *testing.T) { _apiUrlPath := "/v1/organizations/{organizationId}/network-areas/{areaId}/routes/{routeId}" - organizationIdValue := uuid.NewString() + organizationIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) - areaIdValue := uuid.NewString() + areaIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) - routeIdValue := uuid.NewString() + routeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routeId"+"}", url.PathEscape(ParameterValueToString(routeIdValue, "routeId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6073,11 +6072,11 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateNic", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/networks/{networkId}/nics/{nicId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - networkIdValue := uuid.NewString() + networkIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"networkId"+"}", url.PathEscape(ParameterValueToString(networkIdValue, "networkId")), -1) - nicIdValue := uuid.NewString() + nicIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"nicId"+"}", url.PathEscape(ParameterValueToString(nicIdValue, "nicId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6132,9 +6131,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdatePublicIP", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/public-ips/{publicIpId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - publicIpIdValue := uuid.NewString() + publicIpIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"publicIpId"+"}", url.PathEscape(ParameterValueToString(publicIpIdValue, "publicIpId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6188,9 +6187,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateSecurityGroup", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/security-groups/{securityGroupId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - securityGroupIdValue := uuid.NewString() + securityGroupIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"securityGroupId"+"}", url.PathEscape(ParameterValueToString(securityGroupIdValue, "securityGroupId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6244,9 +6243,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateServer", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/servers/{serverId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - serverIdValue := uuid.NewString() + serverIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"serverId"+"}", url.PathEscape(ParameterValueToString(serverIdValue, "serverId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6300,9 +6299,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateSnapshot", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/snapshots/{snapshotId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - snapshotIdValue := uuid.NewString() + snapshotIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"snapshotId"+"}", url.PathEscape(ParameterValueToString(snapshotIdValue, "snapshotId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -6356,9 +6355,9 @@ func Test_iaas_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService UpdateVolume", func(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volumes/{volumeId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumeIdValue := uuid.NewString() + volumeIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumeId"+"}", url.PathEscape(ParameterValueToString(volumeIdValue, "volumeId")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/iaas/go.mod b/services/iaas/go.mod index adc4c02d6..0058f495d 100644 --- a/services/iaas/go.mod +++ b/services/iaas/go.mod @@ -4,8 +4,10 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/google/uuid v1.6.0 github.com/stackitcloud/stackit-sdk-go/core v0.17.2 ) -require github.com/golang-jwt/jwt/v5 v5.2.2 // indirect +require ( + github.com/golang-jwt/jwt/v5 v5.2.2 // indirect + github.com/google/uuid v1.6.0 // indirect +) diff --git a/services/iaas/utils.go b/services/iaas/utils.go index 48c60a651..48e758344 100644 --- a/services/iaas/utils.go +++ b/services/iaas/utils.go @@ -12,6 +12,7 @@ package iaas import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 9eedef3981bef50759703a214403dd1022d048c5 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:34:17 +0000 Subject: [PATCH 24/29] Generate git --- services/git/api_default_test.go | 13 ++++++------- services/git/utils.go | 12 ++++++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/services/git/api_default_test.go b/services/git/api_default_test.go index 22f6a449f..9aeaf8854 100644 --- a/services/git/api_default_test.go +++ b/services/git/api_default_test.go @@ -18,7 +18,6 @@ import ( "strings" "testing" - "github.com/google/uuid" "github.com/stackitcloud/stackit-sdk-go/core/config" ) @@ -26,7 +25,7 @@ func Test_git_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateInstance", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/instances" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -79,9 +78,9 @@ func Test_git_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService DeleteInstance", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/instances/{instanceId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - instanceIdValue := uuid.NewString() + instanceIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(instanceIdValue, "instanceId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -128,9 +127,9 @@ func Test_git_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService GetInstance", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/instances/{instanceId}" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - instanceIdValue := uuid.NewString() + instanceIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(instanceIdValue, "instanceId")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -183,7 +182,7 @@ func Test_git_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService ListInstances", func(t *testing.T) { _apiUrlPath := "/v1beta/projects/{projectId}/instances" - projectIdValue := uuid.NewString() + projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/git/utils.go b/services/git/utils.go index f532d3831..3b5e5e959 100644 --- a/services/git/utils.go +++ b/services/git/utils.go @@ -12,6 +12,7 @@ package git import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From 9e2b45aea8318039b69ed0d08916d14ee6337163 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:34:09 +0000 Subject: [PATCH 25/29] Generate dns --- services/dns/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/dns/utils.go b/services/dns/utils.go index 51414e209..bf6126676 100644 --- a/services/dns/utils.go +++ b/services/dns/utils.go @@ -12,6 +12,7 @@ package dns import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From f878679980c5628c539bc77a12dec247af56e258 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:33:58 +0000 Subject: [PATCH 26/29] Generate certificates --- services/certificates/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/certificates/utils.go b/services/certificates/utils.go index 1c911ae83..aba695015 100644 --- a/services/certificates/utils.go +++ b/services/certificates/utils.go @@ -12,6 +12,7 @@ package certificates import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From a66b2bbc20bee07899e9a7889de7d8161e6116d5 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:33:51 +0000 Subject: [PATCH 27/29] Generate cdn --- services/cdn/api_default_test.go | 6 +++--- services/cdn/utils.go | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/services/cdn/api_default_test.go b/services/cdn/api_default_test.go index 4fa69de4f..2d78f0fbd 100644 --- a/services/cdn/api_default_test.go +++ b/services/cdn/api_default_test.go @@ -84,7 +84,7 @@ func Test_cdn_DefaultApiService(t *testing.T) { _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) distributionIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"distributionId"+"}", url.PathEscape(ParameterValueToString(distributionIdValue, "distributionId")), -1) - domainValue := "domain-value" + domainValue := randString(72) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"domain"+"}", url.PathEscape(ParameterValueToString(domainValue, "domain")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -308,7 +308,7 @@ func Test_cdn_DefaultApiService(t *testing.T) { _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) distributionIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"distributionId"+"}", url.PathEscape(ParameterValueToString(distributionIdValue, "distributionId")), -1) - domainValue := "domain-value" + domainValue := randString(72) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"domain"+"}", url.PathEscape(ParameterValueToString(domainValue, "domain")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -694,7 +694,7 @@ func Test_cdn_DefaultApiService(t *testing.T) { _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) distributionIdValue := uuid.NewString() _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"distributionId"+"}", url.PathEscape(ParameterValueToString(distributionIdValue, "distributionId")), -1) - domainValue := "domain-value" + domainValue := randString(72) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"domain"+"}", url.PathEscape(ParameterValueToString(domainValue, "domain")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/cdn/utils.go b/services/cdn/utils.go index f9d2afe77..58bb87418 100644 --- a/services/cdn/utils.go +++ b/services/cdn/utils.go @@ -12,6 +12,7 @@ package cdn import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From c5fbaeaad1a6868d3a8681963de82c86ae92de26 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:33:41 +0000 Subject: [PATCH 28/29] Generate authorization --- services/authorization/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/authorization/utils.go b/services/authorization/utils.go index 8a49720d7..0331c3a76 100644 --- a/services/authorization/utils.go +++ b/services/authorization/utils.go @@ -12,6 +12,7 @@ package authorization import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +} From a0d274bd4587cf1739380999df8947411bd4670a Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:33:25 +0000 Subject: [PATCH 29/29] Generate alb --- services/alb/utils.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/alb/utils.go b/services/alb/utils.go index f6d6c2fc8..c67094899 100644 --- a/services/alb/utils.go +++ b/services/alb/utils.go @@ -12,6 +12,7 @@ package alb import ( "encoding/json" + "math/rand" "reflect" "time" ) @@ -371,3 +372,14 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + +// randString returns a random string with a specified length. It panics if n <= 0. +func randString(n int) string { + b := make([]byte, n) + for i := range b { + b[i] = letterRunes[rand.Intn(len(letterRunes))] + } + return string(b) +}