Skip to content

Commit

Permalink
configid
Browse files Browse the repository at this point in the history
  • Loading branch information
lajos88 committed Oct 13, 2020
1 parent feaebf0 commit 81dcaf6
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 91 deletions.
2 changes: 1 addition & 1 deletion configcat/resource_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ func resourceSettingRead(ctx context.Context, d *schema.ResourceData, m interfac
return diag.FromErr(err)
}

d.Set(CONFIG_ID, setting.ConfigId)
d.Set(SETTING_KEY, setting.Key)
d.Set(SETTING_NAME, setting.Name)
d.Set(SETTING_HINT, setting.Hint)
d.Set(SETTING_TYPE, setting.SettingType)
d.Set(CONFIG_ID, setting.ConfigId)

return diags
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ output "config_id" {
* `name` - The name of the Config.

## User APIs
[Read](https://api.configcat.com/docs/index.html#operation/get-configs)
[Get Configs](https://api.configcat.com/docs/index.html#operation/get-configs)
2 changes: 1 addition & 1 deletion docs/data-sources/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ output "environment_id" {
* `name` - The name of the Environment.

## Used APIs
- [Read](https://api.configcat.com/docs/index.html#operation/get-environments)
- [Get Environments](https://api.configcat.com/docs/index.html#operation/get-environments)
2 changes: 1 addition & 1 deletion docs/data-sources/products.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ output "product_id" {
* `name` - The name of the Product.

## Used APIs
- [Read](https://api.configcat.com/docs/index.html#operation/get-products)
- [Get Products](https://api.configcat.com/docs/index.html#operation/get-products)
2 changes: 1 addition & 1 deletion docs/data-sources/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ output "setting_id" {
* `setting_type` - The Setting's type. Available values: `boolean`|`string`|`int`|`double`.

## Used APIs
- [Read](https://api.configcat.com/docs/index.html#operation/get-settings)
- [Get Settings](https://api.configcat.com/docs/index.html#operation/get-settings)
8 changes: 4 additions & 4 deletions docs/resources/setting.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $ terraform import configcat_setting.example 1234
[Read more](https://learn.hashicorp.com/tutorials/terraform/state-import) about importing.

## Used APIs
* [Read](https://api.configcat.com/docs/index.html#operation/get-setting)
* [Create](https://api.configcat.com/docs/index.html#operation/create-setting)
* [Update](https://api.configcat.com/docs/index.html#operation/update-setting)
* [Delete](https://api.configcat.com/docs/index.html#operation/delete-setting)
* [Get Setting](https://api.configcat.com/docs/index.html#operation/get-setting)
* [Create Setting](https://api.configcat.com/docs/index.html#operation/create-setting)
* [Update Setting](https://api.configcat.com/docs/index.html#operation/update-setting)
* [Delete Setting](https://api.configcat.com/docs/index.html#operation/delete-setting)
4 changes: 2 additions & 2 deletions docs/resources/setting_value.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ $ terraform import configcat_setting_value.example 08d86d63-2726-47cd-8bfc-59608
[Read more](https://learn.hashicorp.com/tutorials/terraform/state-import) about importing.

## Used APIs
* [Read](https://api.configcat.com/docs/#operation/get-setting-value)
* [Update](https://api.configcat.com/docs/#operation/replace-setting-value)
* [Get Setting Value](https://api.configcat.com/docs/#operation/get-setting-value)
* [Replace Setting Value](https://api.configcat.com/docs/#operation/replace-setting-value)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/configcat/terraform-provider-configcat
go 1.15

require (
github.com/configcat/configcat-publicapi-go-client v0.10.0
github.com/configcat/configcat-publicapi-go-client v0.11.0
github.com/google/uuid v1.1.2
github.com/hashicorp/terraform-plugin-sdk/v2 v2.0.3
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ github.com/configcat/configcat-publicapi-go-client v0.8.0 h1:oMdb1B/5mVxlh3b8wKQ
github.com/configcat/configcat-publicapi-go-client v0.8.0/go.mod h1:MudfrdzWKuoHJjNXXucQ4nBqqBBd12MSlQHhc0VvlBk=
github.com/configcat/configcat-publicapi-go-client v0.10.0 h1:I2LeMkavWA4JUOpZBHDMjxp+0Pcycstihf0/zAasVRU=
github.com/configcat/configcat-publicapi-go-client v0.10.0/go.mod h1:MudfrdzWKuoHJjNXXucQ4nBqqBBd12MSlQHhc0VvlBk=
github.com/configcat/configcat-publicapi-go-client v0.11.0 h1:xbm+xQknO5vqGXNWPUyMGb+/7Z2RP4Lgl58Y0QWdfrs=
github.com/configcat/configcat-publicapi-go-client v0.11.0/go.mod h1:MudfrdzWKuoHJjNXXucQ4nBqqBBd12MSlQHhc0VvlBk=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 81dcaf6

Please sign in to comment.