Skip to content

Commit e513afe

Browse files
committed
explicitly mark id as computed
fixes compatibility with pulumi
1 parent 4c2716b commit e513afe

File tree

8 files changed

+28
-4
lines changed

8 files changed

+28
-4
lines changed

docs/resources/query_suggestions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Optional:
6565
- `analytics_tags` (Set of String) A list of analytics tags to filter the popular searches per tag.
6666
- `external` (Set of String) A list of external indices to use to generate custom Query Suggestions.
6767
- `facets` (Block List) A list of facets to define as categories for the query suggestions. (see [below for nested schema](#nestedblock--source_indices--facets))
68-
- `generate` (List of List of String) List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
68+
- `generate` (List of List of String) List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
6969
(e.g., (facetA and facetB) and facetC).
7070
```
7171
[

docs/resources/rule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ resource "algolia_rule" "example" {
3838

3939
### Required
4040

41-
- `consequence` (Block List, Min: 1, Max: 1) Consequence of the Rule.
41+
- `consequence` (Block List, Min: 1, Max: 1) Consequence of the Rule.
4242
At least one of the following object must be used:
4343
- params
4444
- promote

internal/provider/resource_api_key.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ func resourceAPIKey() *schema.Resource {
2626
Description: "A configuration for an API key",
2727
// https://www.algolia.com/doc/api-reference/api-methods/add-api-key/
2828
Schema: map[string]*schema.Schema{
29+
"id": {
30+
Type: schema.TypeString,
31+
Computed: true,
32+
},
2933
"key": {
3034
Type: schema.TypeString,
3135
Computed: true,

internal/provider/resource_index.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func resourceIndex() *schema.Resource {
3030
},
3131
// https://www.algolia.com/doc/api-reference/settings-api-parameters/
3232
Schema: map[string]*schema.Schema{
33+
"id": {
34+
Type: schema.TypeString,
35+
Computed: true,
36+
},
3337
"name": {
3438
Type: schema.TypeString,
3539
Required: true,

internal/provider/resource_query_suggestions.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ func resourceQuerySuggestions() *schema.Resource {
2727
Description: "A configuration that lies behind your Query Suggestions index.",
2828
// https://www.algolia.com/doc/rest-api/query-suggestions/#create-a-configuration
2929
Schema: map[string]*schema.Schema{
30+
"id": {
31+
Type: schema.TypeString,
32+
Computed: true,
33+
},
3034
"index_name": {
3135
Type: schema.TypeString,
3236
Required: true,
@@ -103,7 +107,7 @@ func resourceQuerySuggestions() *schema.Resource {
103107
Type: schema.TypeList,
104108
Elem: &schema.Schema{Type: schema.TypeString},
105109
},
106-
Description: `List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
110+
Description: `List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
107111
(e.g., (facetA and facetB) and facetC).
108112
` + "```" + `
109113
[

internal/provider/resource_rule.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func resourceRule() *schema.Resource {
3131
Description: "A configuration for a Rule. To get more information about rules, see the [Official Documentation](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).",
3232
// https://www.algolia.com/doc/api-reference/api-methods/save-rule/#parameters
3333
Schema: map[string]*schema.Schema{
34+
"id": {
35+
Type: schema.TypeString,
36+
Computed: true,
37+
},
3438
"index_name": {
3539
Type: schema.TypeString,
3640
Required: true,
@@ -96,7 +100,7 @@ This parameter goes hand in hand with the ` + "`pattern` " + ` parameter. If the
96100
Type: schema.TypeList,
97101
Required: true,
98102
MaxItems: 1,
99-
Description: `Consequence of the Rule.
103+
Description: `Consequence of the Rule.
100104
At least one of the following object must be used:
101105
- params
102106
- promote

internal/provider/resource_synonyms.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ func resourceSynonyms() *schema.Resource {
2828
`,
2929
// https://www.algolia.com/doc/api-reference/api-methods/batch-synonyms/
3030
Schema: map[string]*schema.Schema{
31+
"id": {
32+
Type: schema.TypeString,
33+
Computed: true,
34+
},
3135
"index_name": {
3236
Type: schema.TypeString,
3337
Required: true,

internal/provider/resource_virtual_index.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func resourceVirtualIndex() *schema.Resource {
3131
},
3232
// https://www.algolia.com/doc/api-reference/settings-api-parameters/
3333
Schema: map[string]*schema.Schema{
34+
"id": {
35+
Type: schema.TypeString,
36+
Computed: true,
37+
},
3438
"name": {
3539
Type: schema.TypeString,
3640
Required: true,

0 commit comments

Comments
 (0)