Skip to content

Commit 7edf949

Browse files
committed
Fix folder ID documentation
By adding the ID as a computed attribute it will show as a read-only attribute instead of the misleading comment that it might be possible to assign a value. This documentation seem to be generated automatically by the tfplugindocs tool, so we might need to either fix that or changing the way we generate the documentation. Closes #262. Signed-off-by: Leandro López (inkel) <[email protected]>
1 parent 2d01d80 commit 7edf949

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/resources/folder.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@ resource "grafana_dashboard" "metrics" {
3131

3232
- **title** (String) The title of the folder.
3333

34-
### Optional
35-
36-
- **id** (String) The ID of this resource.
37-
3834
### Read-Only
3935

36+
- **id** (String) unique identifier for this folder.
4037
- **uid** (String) Unique identifier.
4138

4239
## Import

grafana/resource_folder.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ func ResourceFolder() *schema.Resource {
3232
Computed: true,
3333
Description: "Unique identifier.",
3434
},
35-
35+
"id": {
36+
Type: schema.TypeString,
37+
Computed: true,
38+
Required: false,
39+
Optional: false,
40+
Description: "Unique internal identifier.",
41+
},
3642
"title": {
3743
Type: schema.TypeString,
3844
Required: true,

0 commit comments

Comments
 (0)