Skip to content

Commit 2cb77e6

Browse files
committed
## Terraform SDK Changes:
* `SDK.Target.createTarget()`: **Added** * `SDK.Target.deleteTarget()`: **Added** * `SDK.Target.getTarget()`: **Added** * `SDK.Target.patchTarget()`: **Added** * `SDK.Target.updateTarget()`: **Added** * `SDK.Coupon.createCoupon()`: **Deleted** **Breaking** ⚠️ * `SDK.Coupon.deleteCoupon()`: **Deleted** **Breaking** ⚠️ * `SDK.Coupon.getCoupon()`: **Deleted** **Breaking** ⚠️ * `SDK.Coupon.patchCoupon()`: **Deleted** **Breaking** ⚠️ * `SDK.Coupon.updateCoupon()`: **Deleted** **Breaking** ⚠️ * `SDK.Price.createPrice()`: **Deleted** **Breaking** ⚠️ * `SDK.Price.deletePrice()`: **Deleted** **Breaking** ⚠️ * `SDK.Price.getPrice()`: **Deleted** **Breaking** ⚠️ * `SDK.Price.patchPrice()`: **Deleted** **Breaking** ⚠️ * `SDK.Price.updatePrice()`: **Deleted** **Breaking** ⚠️ * `SDK.Product.createProduct()`: **Deleted** **Breaking** ⚠️ * `SDK.Product.deleteProduct()`: **Deleted** **Breaking** ⚠️ * `SDK.Product.getProduct()`: **Deleted** **Breaking** ⚠️ * `SDK.Product.patchProduct()`: **Deleted** **Breaking** ⚠️ * `SDK.Product.updateProduct()`: **Deleted** **Breaking** ⚠️ * `SDK.Tax.createTax()`: **Deleted** **Breaking** ⚠️ * `SDK.Tax.deleteTax()`: **Deleted** **Breaking** ⚠️ * `SDK.Tax.getTax()`: **Deleted** **Breaking** ⚠️ * `SDK.Tax.patchTax()`: **Deleted** **Breaking** ⚠️ * `SDK.Tax.updateTax()`: **Deleted** **Breaking** ⚠️
1 parent aaa08b8 commit 2cb77e6

37 files changed

+3960
-501
lines changed

.speakeasy/gen.lock

Lines changed: 560 additions & 112 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
speakeasyVersion: 1.523.0
1+
speakeasyVersion: 1.676.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:ef289a7c77637337b07da6402aded23c09840a838deb6ace7ffcf8c47b97b311
6-
sourceBlobDigest: sha256:0734b26610de4c72bceb115a185fd752842e6983c63985437cb1f43d5c320b53
5+
sourceRevisionDigest: sha256:688689fcf6212654a68aa1ece78c4b01b701cb59126281218413d2b4e9bfc06f
6+
sourceBlobDigest: sha256:f737cf0f01d7948dc401fef0325ae5a7cb3e60aaf9db65414af04aaab484a962
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1742793032
9+
- speakeasy-sdk-regen-1760659881
1010
- 1.0.0
1111
targets:
1212
terraform:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:ef289a7c77637337b07da6402aded23c09840a838deb6ace7ffcf8c47b97b311
16-
sourceBlobDigest: sha256:0734b26610de4c72bceb115a185fd752842e6983c63985437cb1f43d5c320b53
15+
sourceRevisionDigest: sha256:688689fcf6212654a68aa1ece78c4b01b701cb59126281218413d2b4e9bfc06f
16+
sourceBlobDigest: sha256:f737cf0f01d7948dc401fef0325ae5a7cb3e60aaf9db65414af04aaab484a962
1717
workflow:
1818
workflowVersion: 1.0.0
1919
speakeasyVersion: latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ terraform {
4848
required_providers {
4949
epilot-target = {
5050
source = "epilot-dev/epilot-target"
51-
version = "0.17.10"
51+
version = "0.18.0"
5252
}
5353
}
5454
}

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,14 @@ Based on:
3434
### Generated
3535
- [terraform v0.14.1] .
3636
### Releases
37-
- [Terraform v0.14.1] https://registry.terraform.io/providers/epilot-dev/epilot-product/0.14.1 - .
37+
- [Terraform v0.14.1] https://registry.terraform.io/providers/epilot-dev/epilot-product/0.14.1 - .
38+
39+
## 2025-12-15 00:12:32
40+
### Changes
41+
Based on:
42+
- OpenAPI Doc
43+
- Speakeasy CLI 1.676.1 (2.781.2) https://github.com/speakeasy-api/speakeasy
44+
### Generated
45+
- [terraform v0.18.0] .
46+
### Releases
47+
- [Terraform v0.18.0] https://registry.terraform.io/providers/epilot-dev/epilot-target/0.18.0 - .

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ terraform {
1616
required_providers {
1717
epilot-target = {
1818
source = "epilot-dev/epilot-target"
19-
version = "0.17.10"
19+
version = "0.18.0"
2020
}
2121
}
2222
}

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
epilot-target = {
44
source = "epilot-dev/epilot-target"
5-
version = "0.17.10"
5+
version = "0.18.0"
66
}
77
}
88
}

gen.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ generation:
1313
auth:
1414
oAuth2ClientCredentialsEnabled: false
1515
oAuth2PasswordEnabled: false
16+
hoistGlobalSecurity: true
17+
schemas:
18+
allOfMergeStrategy: shallowMerge
19+
requestBodyFieldName: ""
20+
persistentEdits: {}
1621
tests:
1722
generateTests: true
1823
generateNewTests: false
@@ -35,7 +40,7 @@ go:
3540
outputModelSuffix: output
3641
packageName: openapi
3742
terraform:
38-
version: 0.17.10
43+
version: 0.18.0
3944
additionalDataSources: []
4045
additionalDependencies: {}
4146
additionalEphemeralResources: []
@@ -45,9 +50,14 @@ terraform:
4550
allowUnknownFieldsInWeakUnions: false
4651
author: epilot-dev
4752
baseErrorName: SDKBaseError
53+
debugLogging: {}
4854
defaultErrorName: SDKError
55+
enableCustomCodeRegions: false
56+
enableOperationSecurity: false
57+
enableOperationServers: false
4958
enableTypeDeduplication: true
5059
environmentVariables: []
60+
excludeEmptyObjectSchemas: false
5161
imports:
5262
option: openapi
5363
paths:
@@ -56,6 +66,9 @@ terraform:
5666
operations: operations
5767
shared: shared
5868
webhooks: webhooks
69+
includeEmptyObjects: false
70+
inferUnionDiscriminators: false
5971
inputModelSuffix: input
6072
outputModelSuffix: output
6173
packageName: epilot-target
74+
unionStrategy: populated-fields

go.mod

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ module github.com/epilot-dev/terraform-provider-epilot-target
33
go 1.23.7
44

55
require (
6-
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
6+
github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731
77
github.com/hashicorp/go-uuid v1.0.3
88
github.com/hashicorp/terraform-plugin-docs v0.22.0
9-
github.com/hashicorp/terraform-plugin-framework v1.15.0
9+
github.com/hashicorp/terraform-plugin-framework v1.15.1
1010
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0
11-
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0
11+
github.com/hashicorp/terraform-plugin-framework-validators v0.18.0
1212
github.com/hashicorp/terraform-plugin-go v0.28.0
1313
github.com/hashicorp/terraform-plugin-log v0.9.0
14+
github.com/stretchr/testify v1.8.3
1415
)
1516

1617
require (
@@ -25,6 +26,7 @@ require (
2526
github.com/bgentry/speakeasy v0.1.0 // indirect
2627
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
2728
github.com/cloudflare/circl v1.6.1 // indirect
29+
github.com/davecgh/go-spew v1.1.1 // indirect
2830
github.com/fatih/color v1.16.0 // indirect
2931
github.com/golang/protobuf v1.5.4 // indirect
3032
github.com/google/uuid v1.6.0 // indirect
@@ -52,6 +54,7 @@ require (
5254
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
5355
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5456
github.com/oklog/run v1.0.0 // indirect
57+
github.com/pmezard/go-difflib v1.0.0 // indirect
5558
github.com/posener/complete v1.2.3 // indirect
5659
github.com/shopspring/decimal v1.3.1 // indirect
5760
github.com/spf13/cast v1.5.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
3333
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3434
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
3535
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
36-
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw=
37-
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ=
36+
github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731 h1:R/ZjJpjQKsZ6L/+Gf9WHbt31GG8NMVcpRqUE+1mMIyo=
37+
github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ=
3838
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
3939
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
4040
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
@@ -91,12 +91,12 @@ github.com/hashicorp/terraform-json v0.25.0 h1:rmNqc/CIfcWawGiwXmRuiXJKEiJu1ntGo
9191
github.com/hashicorp/terraform-json v0.25.0/go.mod h1:sMKS8fiRDX4rVlR6EJUMudg1WcanxCMoWwTLkgZP/vc=
9292
github.com/hashicorp/terraform-plugin-docs v0.22.0 h1:fwIDStbFel1PPNkM+mDPnpB4efHZBdGoMz/zt5FbTDw=
9393
github.com/hashicorp/terraform-plugin-docs v0.22.0/go.mod h1:55DJVyZ7BNK4t/lANcQ1YpemRuS6KsvIO1BbGA+xzGE=
94-
github.com/hashicorp/terraform-plugin-framework v1.15.0 h1:LQ2rsOfmDLxcn5EeIwdXFtr03FVsNktbbBci8cOKdb4=
95-
github.com/hashicorp/terraform-plugin-framework v1.15.0/go.mod h1:hxrNI/GY32KPISpWqlCoTLM9JZsGH3CyYlir09bD/fI=
94+
github.com/hashicorp/terraform-plugin-framework v1.15.1 h1:2mKDkwb8rlx/tvJTlIcpw0ykcmvdWv+4gY3SIgk8Pq8=
95+
github.com/hashicorp/terraform-plugin-framework v1.15.1/go.mod h1:hxrNI/GY32KPISpWqlCoTLM9JZsGH3CyYlir09bD/fI=
9696
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0 h1:SJXL5FfJJm17554Kpt9jFXngdM6fXbnUnZ6iT2IeiYA=
9797
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0/go.mod h1:p0phD0IYhsu9bR4+6OetVvvH59I6LwjXGnTVEr8ox6E=
98-
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0 h1:0uYQcqqgW3BMyyve07WJgpKorXST3zkpzvrOnf3mpbg=
99-
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0/go.mod h1:VwdfgE/5Zxm43flraNa0VjcvKQOGVrcO4X8peIri0T0=
98+
github.com/hashicorp/terraform-plugin-framework-validators v0.18.0 h1:OQnlOt98ua//rCw+QhBbSqfW3QbwtVrcdWeQN5gI3Hw=
99+
github.com/hashicorp/terraform-plugin-framework-validators v0.18.0/go.mod h1:lZvZvagw5hsJwuY7mAY6KUz45/U6fiDR0CzQAwWD0CA=
100100
github.com/hashicorp/terraform-plugin-go v0.28.0 h1:zJmu2UDwhVN0J+J20RE5huiF3XXlTYVIleaevHZgKPA=
101101
github.com/hashicorp/terraform-plugin-go v0.28.0/go.mod h1:FDa2Bb3uumkTGSkTFpWSOwWJDwA7bf3vdP3ltLDTH6o=
102102
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=

internal/provider/target_resource.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ func (r *TargetResource) Schema(ctx context.Context, req resource.SchemaRequest,
9191
},
9292
"created_at": schema.StringAttribute{
9393
Computed: true,
94-
Validators: []validator.String{
95-
validators.IsRFC3339(),
96-
},
9794
},
9895
"description": schema.StringAttribute{
9996
Computed: true,
@@ -177,9 +174,6 @@ func (r *TargetResource) Schema(ctx context.Context, req resource.SchemaRequest,
177174
},
178175
"updated_at": schema.StringAttribute{
179176
Computed: true,
180-
Validators: []validator.String{
181-
validators.IsRFC3339(),
182-
},
183177
},
184178
},
185179
}
@@ -415,7 +409,10 @@ func (r *TargetResource) Delete(ctx context.Context, req resource.DeleteRequest,
415409
resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res))
416410
return
417411
}
418-
if res.StatusCode != 200 {
412+
switch res.StatusCode {
413+
case 200, 404:
414+
break
415+
default:
419416
resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse))
420417
return
421418
}

0 commit comments

Comments
 (0)