Skip to content

Commit

Permalink
Update provider based on openapi.yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Nov 26, 2024
1 parent 1fdd0e5 commit b892e19
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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": "<value>", "status": 846487}
generatedTests: {}
16 changes: 16 additions & 0 deletions internal/utils/env.go
Original file line number Diff line number Diff line change
@@ -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
}
6 changes: 3 additions & 3 deletions sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
}
Expand Down

0 comments on commit b892e19

Please sign in to comment.