Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.0.1, Speakeasy CLI 1.126.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 12, 2023
1 parent 5e064e6 commit 7b914c2
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ terraform {
required_providers {
vercel = {
source = "zchee/vercel"
version = "0.8.2"
version = "0.9.0"
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,12 @@ Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.125.1 (2.210.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.8.2] .
- [terraform v0.8.2] .

## 2023-12-12 01:01:45
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.126.0 (2.213.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.9.0] .
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ terraform {
required_providers {
vercel = {
source = "zchee/vercel"
version = "0.8.2"
version = "0.9.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
vercel = {
source = "zchee/vercel"
version = "0.8.2"
version = "0.9.0"
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: 8ecc10127cd4d51cceddbc01756b40f4
docVersion: 0.0.1
speakeasyVersion: 1.125.1
generationVersion: 2.210.3
speakeasyVersion: 1.126.0
generationVersion: 2.213.3
generation:
comments: {}
sdkClassName: vercel
Expand All @@ -13,13 +13,13 @@ generation:
features:
terraform:
constsAndDefaults: 0.1.2
core: 3.5.1
core: 3.6.0
deprecations: 2.81.1
globalSecurity: 2.81.1
globalSecurity: 2.81.2
globalServerURLs: 2.82.1
unions: 2.81.5
terraform:
version: 0.8.2
version: 0.9.0
author: zchee
imports:
option: openapi
Expand Down
7 changes: 6 additions & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ func (p *VercelProvider) Configure(ctx context.Context, req provider.ConfigureRe
ServerURL = "https://api.vercel.com"
}

bearerToken := data.BearerToken.ValueString()
bearerToken := new(string)
if !data.BearerToken.IsUnknown() && !data.BearerToken.IsNull() {
*bearerToken = data.BearerToken.ValueString()
} else {
bearerToken = nil
}
security := shared.Security{
BearerToken: bearerToken,
}
Expand Down
6 changes: 3 additions & 3 deletions internal/sdk/pkg/models/shared/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
package shared

type Security struct {
BearerToken string `security:"scheme,type=http,subtype=bearer,name=Authorization"`
BearerToken *string `security:"scheme,type=http,subtype=bearer,name=Authorization"`
}

func (o *Security) GetBearerToken() string {
func (o *Security) GetBearerToken() *string {
if o == nil {
return ""
return nil
}
return o.BearerToken
}
6 changes: 3 additions & 3 deletions internal/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func New(opts ...SDKOption) *Vercel {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.1",
SDKVersion: "0.8.2",
GenVersion: "2.210.3",
UserAgent: "speakeasy-sdk/go 0.8.2 2.210.3 0.0.1 vercel",
SDKVersion: "0.9.0",
GenVersion: "2.213.3",
UserAgent: "speakeasy-sdk/go 0.9.0 2.213.3 0.0.1 vercel",
},
}
for _, opt := range opts {
Expand Down

0 comments on commit 7b914c2

Please sign in to comment.