Skip to content

Commit

Permalink
Merge pull request #1 from epilot-dev/speakeasy-sdk-regen-1705539136
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
NishuGoel authored Jan 19, 2024
2 parents cdf0e3b + c5c3baf commit abcce37
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 29 deletions.
15 changes: 9 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
lockVersion: 2.0.0
id: 5a857039-7f4b-42d5-86fd-449767242ed2
management:
docChecksum: 2696596b3b897fdb6e6502ca7ba77dcb
docChecksum: 14fca5382680b0005a7380ed653882a6
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.231.0
releaseVersion: 0.4.2
configChecksum: f2fd9dba3ebff05a23a38bdd725b1fb8
generationVersion: 2.237.2
releaseVersion: 0.4.4
configChecksum: abe0673cbadd0fb3acdf11a45293c5e7
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-product.git
repoSubDirectory: .
published: true
features:
go:
additionalProperties: 0.1.1
Expand All @@ -19,8 +22,8 @@ features:
terraform:
additionalProperties: 0.1.2
constsAndDefaults: 0.1.2
core: 3.8.1
globalSecurity: 2.81.2
core: 3.8.4
globalSecurity: 2.81.3
globalServerURLs: 2.82.1
unions: 2.81.7
generatedFiles:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ terraform {
required_providers {
epilot-product = {
source = "epilot-dev/epilot-product"
version = "0.4.2"
version = "0.4.4"
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


## 2024-01-18 00:52:07
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.142.3 (2.235.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.4.3] .

## 2024-01-19 00:52:55
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.4.4] .
3 changes: 2 additions & 1 deletion docs/data-sources/product.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Product DataSource

```terraform
data "epilot-product_product" "my_product" {
hydrate = false
hydrate = true
id = "123e4567-e89b-12d3-a456-426614174000"
}
```
Expand All @@ -33,6 +33,7 @@ data "epilot-product_product" "my_product" {
### Read-Only

- `acl` (Attributes) Access control list (ACL) for an entity. Defines sharing access to external orgs or users. (see [below for nested schema](#nestedatt--acl))
- `active` (Boolean)
- `code` (String) The product code
- `created_at` (String)
- `description` (String) A description of the product. Multi-line supported.
Expand Down
7 changes: 1 addition & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ terraform {
required_providers {
epilot-product = {
source = "epilot-dev/epilot-product"
version = "0.4.1"
version = "0.4.4"
}
}
}
variable epilot_auth {
type = string
}
provider "epilot-product" {
# Configuration options
epilot_auth = var.epilot_auth
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/resources/product.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Product Resource

```terraform
resource "epilot-product_product" "my_product" {
active = true
code = "...my_code..."
description = "...my_description..."
internal_name = "...my_internal_name..."
name = "Rogelio Brakus"
name = "Juan Morar Jr."
type = "product"
}
```
Expand All @@ -27,6 +28,7 @@ resource "epilot-product_product" "my_product" {

### Required

- `active` (Boolean)
- `name` (String) The description for the product

### Optional
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/tax.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Tax Resource

```terraform
resource "epilot-product_tax" "my_tax" {
active = false
active = true
description = "...my_description..."
rate = "...my_rate..."
region = "DE"
region = "AT"
type = "VAT"
}
```
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 {
epilot-product = {
source = "epilot-dev/epilot-product"
version = "0.4.2"
version = "0.4.4"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go:
outputModelSuffix: output
packageName: openapi
terraform:
version: 0.4.2
version: 0.4.4
author: epilot-dev
imports:
option: openapi
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module github.com/epilot-dev/terraform-provider-epilot-product

go 1.18
go 1.20

require (
github.com/cenkalti/backoff/v4 v4.2.0
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
github.com/hashicorp/terraform-plugin-framework v1.3.5
github.com/hashicorp/terraform-plugin-go v0.18.0
github.com/spyzhov/ajson v0.9.0
)

require (
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
github.com/spyzhov/ajson v0.9.0 h1:tF46gJGOenYVj+k9K1U1XpCxVWhmiyY5PsVCAs1+OJ0=
github.com/spyzhov/ajson v0.9.0/go.mod h1:a6oSw0MMb7Z5aD2tPoPO+jq11ETKgXUr2XktHdT8Wt8=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
Expand Down
4 changes: 2 additions & 2 deletions internal/sdk/pkg/utils/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ func parseSecuritySchemeValue(client *securityConfig, schemeTag *securityTag, se
panic("not supported")
}
case "openIdConnect":
client.headers[secTag.Name] = valToString(val)
client.headers[secTag.Name] = prefixBearer(valToString(val))
case "oauth2":
client.headers[secTag.Name] = valToString(val)
client.headers[secTag.Name] = prefixBearer(valToString(val))
case "http":
switch schemeTag.SubType {
case "bearer":
Expand Down
7 changes: 4 additions & 3 deletions internal/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

// ServerList contains the list of servers available to the SDK
var ServerList = []string{
"https://product.sls.epilot.io",
// Production server
"https://product.sls.epilot.io",
}
Expand Down Expand Up @@ -145,9 +146,9 @@ func New(opts ...SDKOption) *SDK {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "1.0.0",
SDKVersion: "0.4.2",
GenVersion: "2.231.0",
UserAgent: "speakeasy-sdk/go 0.4.2 2.231.0 1.0.0 epilot-product",
SDKVersion: "0.4.4",
GenVersion: "2.237.2",
UserAgent: "speakeasy-sdk/go 0.4.4 2.237.2 1.0.0 epilot-product",
},
}
for _, opt := range opts {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

// Run the docs generation tool, check its repository for more information on how it works and how docs
// can be customized.
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --rendered-provider-name terraform-provider-epilot-product
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name terraform-provider-epilot-product --rendered-provider-name terraform-provider-epilot-product

var (
// these will be set by the goreleaser configuration
Expand Down

0 comments on commit abcce37

Please sign in to comment.