Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.0.1, Speakeasy CLI 1.118.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 10, 2023
1 parent 6bf62fe commit e3934a0
Show file tree
Hide file tree
Showing 72 changed files with 24 additions and 19 deletions.
Empty file modified .gitattributes
100755 → 100644
Empty file.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ terraform {
required_providers {
hashicups = {
source = "speakeasy/hashicups"
version = "0.8.1"
version = "0.9.0"
}
}
}
Expand All @@ -28,12 +28,14 @@ provider "hashicups" {
<!-- End SDK Installation -->

<!-- Start SDK Example Usage -->
## Testing the provider locally
### Testing the provider locally

Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.

This also allows for debuggers (e.g. delve) to be attached to the provider.

### Example

```sh
go run main.go --debug
# Copy the TF_REATTACH_PROVIDERS env var
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,12 @@ Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.116.0 (2.185.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.8.1] .
- [terraform v0.8.1] .

## 2023-11-10 01:04:59
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.118.3 (2.187.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.9.0] .
6 changes: 0 additions & 6 deletions USAGE.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<!-- Start SDK Example Usage -->
## Testing the provider locally

Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.

This also allows for debuggers (e.g. delve) to be attached to the provider.

```sh
go run main.go --debug
# Copy the TF_REATTACH_PROVIDERS env var
Expand Down
Empty file modified examples/README.md
100755 → 100644
Empty file.
Empty file modified examples/data-sources/hashicups_order/data-source.tf
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
hashicups = {
source = "speakeasy/hashicups"
version = "0.8.1"
version = "0.9.0"
}
}
}
Expand Down
Empty file modified examples/resources/hashicups_order/resource.tf
100755 → 100644
Empty file.
10 changes: 6 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ configVersion: 1.0.0
management:
docChecksum: 7b193330bf41e2c47ba62aa354c4a561
docVersion: 0.0.1
speakeasyVersion: 1.116.0
generationVersion: 2.185.0
speakeasyVersion: 1.118.3
generationVersion: 2.187.7
generation:
comments: {}
sdkClassName: SDK
repoURL: https://github.com/speakeasy-sdks/terraform-provider-hashicups.git
usageSnippets:
optionalPropertyRendering: withExample
features:
terraform:
core: 3.3.1
core: 3.4.2
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
terraform:
version: 0.8.1
version: 0.9.0
author: speakeasy
imports:
option: openapi
Expand Down
Empty file modified go.mod
100755 → 100644
Empty file.
Empty file modified go.sum
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/boolplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/float64planmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/int64planmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/listplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/mapplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/numberplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/objectplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/setplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/stringplanmodifier/suppress_diff.go
100755 → 100644
Empty file.
Empty file modified internal/planmodifiers/utils/state_check.go
100755 → 100644
Empty file.
Empty file modified internal/provider/order_data_source.go
100755 → 100644
Empty file.
Empty file modified internal/provider/order_data_source_sdk.go
100755 → 100644
Empty file.
Empty file modified internal/provider/order_resource.go
100755 → 100644
Empty file.
Empty file modified internal/provider/order_resource_sdk.go
100755 → 100644
Empty file.
Empty file modified internal/provider/provider.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/diags.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/doc.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/generic_attr_value.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/helpers.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/interfaces.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/into.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/map.go
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion internal/provider/reflect/number.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec
} else if acc == big.Below {
if floatResult == math.Inf(-1) || floatResult == -math.MaxFloat64 {
floatResult = -math.MaxFloat64
} else if floatResult == -0.0 || floatResult == -math.SmallestNonzeroFloat64 { //nolint:staticcheck
} else if floatResult == 0.0 || floatResult == -math.SmallestNonzeroFloat64 {
floatResult = math.SmallestNonzeroFloat64
} else {
err := fmt.Errorf("not sure how to round %s and %f", acc, floatResult)
Expand Down
Empty file modified internal/provider/reflect/options.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/outof.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/pointer.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/primitive.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/slice.go
100755 → 100644
Empty file.
Empty file modified internal/provider/reflect/struct.go
100755 → 100644
Empty file.
Empty file modified internal/provider/utils.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/order.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/operations/deleteorder.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/operations/getorder.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/operations/upsertorder.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/sdkerrors/sdkerror.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/shared/createorderinput.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/shared/order.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/models/shared/security.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/types/bigint.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/types/date.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/types/datetime.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/types/decimal.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/types/pointers.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/contenttype.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/form.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/headers.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/json.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/pathparams.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/queryparams.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/requestbody.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/retries.go
100755 → 100644
Empty file.
Empty file modified internal/sdk/pkg/utils/security.go
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion internal/sdk/pkg/utils/utils.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func parseStructTag(tagKey string, field reflect.StructField) map[string]string
parts = append(parts, "true")
case 2:
// key=value option
break
default:
// invalid option
continue
Expand Down
6 changes: 3 additions & 3 deletions internal/sdk/sdk.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ func New(opts ...SDKOption) *SDK {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.1",
SDKVersion: "0.8.1",
GenVersion: "2.185.0",
UserAgent: "speakeasy-sdk/go 0.8.1 2.185.0 0.0.1 hashicups",
SDKVersion: "0.9.0",
GenVersion: "2.187.7",
UserAgent: "speakeasy-sdk/go 0.9.0 2.187.7 0.0.1 hashicups",
},
}
for _, opt := range opts {
Expand Down
Empty file modified internal/validators/DateValidator.go
100755 → 100644
Empty file.
Empty file modified internal/validators/ExactlyOneChild.go
100755 → 100644
Empty file.
Empty file modified internal/validators/JSONParseValidator.go
100755 → 100644
Empty file.
Empty file modified internal/validators/RFC3339Validator.go
100755 → 100644
Empty file.
Empty file modified main.go
100755 → 100644
Empty file.
Empty file modified terraform-registry-manifest.json
100755 → 100644
Empty file.
Empty file modified tools/tools.go
100755 → 100644
Empty file.

0 comments on commit e3934a0

Please sign in to comment.