diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 95b98db..b134a25 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,15 +3,15 @@ id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61 management: docChecksum: 621f79fe092199d80a95ca5aa0238ebc docVersion: 0.0.1 - speakeasyVersion: 1.444.4 - generationVersion: 2.461.4 - releaseVersion: 0.1.8 - configChecksum: df33a88d43c66b96ed2dbd72421eaee2 + speakeasyVersion: 1.446.1 + generationVersion: 2.462.1 + releaseVersion: 0.1.9 + configChecksum: ea4943250fc3728ab6d9fca49f8d3212 features: go: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.6 - core: 3.5.16 + core: 3.5.17 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.2.0 envVarSecurityUsage: 0.3.2 @@ -27,7 +27,6 @@ features: responseFormat: 0.1.2 retries: 2.83.1 sdkHooks: 0.1.0 - tests: 0.6.0 unions: 2.85.10 generatedFiles: - .gitattributes @@ -1181,6 +1180,7 @@ generatedFiles: - impersonationsettings.go - internal/hooks/hooks.go - internal/utils/contenttype.go + - internal/utils/env.go - internal/utils/form.go - internal/utils/headers.go - internal/utils/json.go @@ -3940,3 +3940,4 @@ examples: application/json: {"data": [{"ca_certificate": {"id": "b2f34145-0343-41a4-9602-4c69dec2f260"}, "consumer": {"id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"}, "id": "b2f34145-0343-41a4-9602-4c69dec2f269", "subject_name": "CA_Subject_Name"}]} "401": application/json: {"message": "", "status": 846487} +generatedTests: {} diff --git a/internal/utils/env.go b/internal/utils/env.go new file mode 100644 index 0000000..110d464 --- /dev/null +++ b/internal/utils/env.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package utils + +import ( + "os" +) + +// GetEnv returns the value of the environment variable named by the key or the defaultValue if the environment variable is not set. +func GetEnv(name, defaultValue string) string { + value := os.Getenv(name) + if value == "" { + return defaultValue + } + return value +} diff --git a/sdk.go b/sdk.go index 887d11a..b7143d3 100644 --- a/sdk.go +++ b/sdk.go @@ -261,9 +261,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.1", - SDKVersion: "0.1.8", - GenVersion: "2.461.4", - UserAgent: "speakeasy-sdk/go 0.1.8 2.461.4 0.0.1 github.com/Kong/sdk-konnect-go", + SDKVersion: "0.1.9", + GenVersion: "2.462.1", + UserAgent: "speakeasy-sdk/go 0.1.9 2.462.1 0.0.1 github.com/Kong/sdk-konnect-go", Hooks: hooks.New(), }, }