Skip to content

Commit

Permalink
chore: rename to custom-variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateus Nardo committed Oct 1, 2024
1 parent 3b68dab commit 2d8fbc7
Show file tree
Hide file tree
Showing 50 changed files with 124 additions and 124 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# epilot-variable
# epilot-custom-variable

Developer-friendly & type-safe Terraform SDK specifically catered to leverage *epilot-variable* API.
Developer-friendly & type-safe Terraform SDK specifically catered to leverage *epilot-custom-variable* API.

<div align="left">
<a href="https://www.speakeasy.com/?utm_source=epilot-variable&utm_campaign=terraform"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
<a href="https://www.speakeasy.com/?utm_source=epilot-custom-variable&utm_campaign=terraform"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
</a>
Expand Down Expand Up @@ -40,14 +40,14 @@ To install this provider, copy and paste this code into your Terraform configura
```hcl
terraform {
required_providers {
epilot-variable = {
source = "epilot-dev/epilot-variable"
version = "0.10.5"
epilot-custom-variable = {
source = "epilot-dev/epilot-custom-variable"
version = "0.10.6"
}
}
}
provider "epilot-variable" {
provider "epilot-custom-variable" {
# Configuration options
}
```
Expand All @@ -58,10 +58,10 @@ provider "epilot-variable" {

### Resources

* [epilot-variable_custom_variable](docs/resources/custom_variable.md)
* [epilot-custom-variable_custom_variable](docs/resources/custom_variable.md)
### Data Sources

* [epilot-variable_custom_variable](docs/data-sources/custom_variable.md)
* [epilot-custom-variable_custom_variable](docs/data-sources/custom_variable.md)
<!-- End Available Resources and Data Sources [operations] -->

<!-- Start Testing the provider locally [usage] -->
Expand All @@ -86,7 +86,7 @@ TF_REATTACH_PROVIDERS=... terraform apply

Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.

1. Execute `go build` to construct a binary called `terraform-provider-epilot-variable`
1. Execute `go build` to construct a binary called `terraform-provider-epilot-custom-variable`
2. Ensure that the `.terraformrc` file is configured with a `dev_overrides` section such that your local copy of terraform can see the provider binary

Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set.
Expand All @@ -95,7 +95,7 @@ Terraform searches for the `.terraformrc` file in your home directory and applie
provider_installation {
dev_overrides {
"registry.terraform.io/epilot-dev/epilot-variable" = "<PATH>"
"registry.terraform.io/epilot-dev/epilot-custom-variable" = "<PATH>"
}
# For all other providers, install them directly from their origin provider
Expand All @@ -115,4 +115,4 @@ provider_installation {
While we value open-source contributions to this terraform provider, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.

### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=epilot-variable&utm_campaign=terraform)
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=epilot-custom-variable&utm_campaign=terraform)
6 changes: 3 additions & 3 deletions docs/data-sources/custom_variable.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "epilot-variable_custom_variable Data Source - terraform-provider-epilot-variable"
page_title: "epilot-custom-variable_custom_variable Data Source - terraform-provider-epilot-custom-variable"
subcategory: ""
description: |-
CustomVariable DataSource
---

# epilot-variable_custom_variable (Data Source)
# epilot-custom-variable_custom_variable (Data Source)

CustomVariable DataSource

## Example Usage

```terraform
data "epilot-variable_custom_variable" "my_customvariable" {
data "epilot-custom-variable_custom_variable" "my_customvariable" {
id = "rbse777b-3cf8-4bff-bb0c-253fd1123250"
}
```
Expand Down
12 changes: 6 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "epilot-variable Provider"
page_title: "epilot-custom-variable Provider"
subcategory: ""
description: |-
Template Variables API: API to provide variables for email and document templates.
---

# epilot-variable Provider
# epilot-custom-variable Provider

Template Variables API: API to provide variables for email and document templates.

Expand All @@ -15,14 +15,14 @@ Template Variables API: API to provide variables for email and document template
```terraform
terraform {
required_providers {
epilot-variable = {
source = "epilot-dev/epilot-variable"
version = "0.10.5"
epilot-custom-variable = {
source = "epilot-dev/epilot-custom-variable"
version = "0.10.6"
}
}
}
provider "epilot-variable" {
provider "epilot-custom-variable" {
# Configuration options
}
```
Expand Down
8 changes: 4 additions & 4 deletions docs/resources/custom_variable.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "epilot-variable_custom_variable Resource - terraform-provider-epilot-variable"
page_title: "epilot-custom-variable_custom_variable Resource - terraform-provider-epilot-custom-variable"
subcategory: ""
description: |-
CustomVariable Resource
---

# epilot-variable_custom_variable (Resource)
# epilot-custom-variable_custom_variable (Resource)

CustomVariable Resource

## Example Usage

```terraform
resource "epilot-variable_custom_variable" "my_customvariable" {
resource "epilot-custom-variable_custom_variable" "my_customvariable" {
config = {
# ...
}
Expand Down Expand Up @@ -63,5 +63,5 @@ resource "epilot-variable_custom_variable" "my_customvariable" {
Import is supported using the following syntax:

```shell
terraform import epilot-variable_custom_variable.my_epilot-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250"
terraform import epilot-custom-variable_custom_variable.my_epilot-custom-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "epilot-custom-variable_custom_variable" "my_customvariable" {
id = "rbse777b-3cf8-4bff-bb0c-253fd1123250"
}

This file was deleted.

12 changes: 6 additions & 6 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
terraform {
required_providers {
epilot-variable = {
source = "epilot-dev/epilot-variable"
version = "0.10.5"
epilot-custom-variable = {
source = "epilot-dev/epilot-custom-variable"
version = "0.10.6"
}
}
}

variable "epilot_auth" {
type = string
}
variable "template_variables_api_url" {
variable "custom_variables_api_url" {
type = string
default = "https://template-variables-api.dev.sls.epilot.io"
}

provider "epilot-variable" {
provider "epilot-custom-variable" {
epilot_auth = var.epilot_auth
server_url = var.template_variables_api_url
server_url = var.custom_variables_api_url
}

resource "epilot-variable_custom_variable" "my_variable" {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import epilot-custom-variable_custom_variable.my_epilot-custom-variable_custom_variable "rbse777b-3cf8-4bff-bb0c-253fd1123250"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "epilot-variable_custom_variable" "my_customvariable" {
resource "epilot-custom-variable_custom_variable" "my_customvariable" {
config = {
# ...
}
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ go:
outputModelSuffix: output
packageName: openapi
terraform:
version: 0.10.5
version: 0.10.6
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand All @@ -46,4 +46,4 @@ terraform:
webhooks: webhooks
inputModelSuffix: input
outputModelSuffix: output
packageName: epilot-variable
packageName: epilot-custom-variable
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/epilot-dev/terraform-provider-epilot-variable
module github.com/epilot-dev/terraform-provider-epilot-custom-variable

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/boolplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package boolplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package float64planmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/int64planmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package int64planmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/listplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package listplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/mapplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package mapplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/numberplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package numberplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/objectplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package objectplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/setplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package setplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/stringplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package stringplanmodifier

import (
"context"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/utils"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/utils"

"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/customvariable_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package provider
import (
"context"
"fmt"
tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/operations"
tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/operations"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/customvariable_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package provider

import (
tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared"
tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared"
"github.com/hashicorp/terraform-plugin-framework/types"
)

Expand Down
12 changes: 6 additions & 6 deletions internal/provider/customvariable_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ package provider
import (
"context"
"fmt"
speakeasy_listplanmodifier "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/listplanmodifier"
speakeasy_objectplanmodifier "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/objectplanmodifier"
speakeasy_stringplanmodifier "github.com/epilot-dev/terraform-provider-epilot-variable/internal/planmodifiers/stringplanmodifier"
tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/operations"
speakeasy_listplanmodifier "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/listplanmodifier"
speakeasy_objectplanmodifier "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/objectplanmodifier"
speakeasy_stringplanmodifier "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/planmodifiers/stringplanmodifier"
tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/operations"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/customvariable_resource_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package provider

import (
tfTypes "github.com/epilot-dev/terraform-provider-epilot-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-variable/internal/sdk/models/shared"
tfTypes "github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/provider/types"
"github.com/epilot-dev/terraform-provider-epilot-custom-variable/internal/sdk/models/shared"
"github.com/hashicorp/terraform-plugin-framework/types"
)

Expand Down
Loading

0 comments on commit 2d8fbc7

Please sign in to comment.