Skip to content

Commit 1cf86e5

Browse files
authored
fix: Update schema for terrakube_vcs data source (#61)
The `terrakube_vcs` data source was updated to include more attributes in previous commit, but the schema was left out stupidly. This change addresses it.
1 parent 379dafc commit 1cf86e5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

docs/data-sources/vcs.md

+4
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ description: |-
2222

2323
### Read-Only
2424

25+
- `api_url` (String) The api url of the Vcs provider
26+
- `client_id` (String) The client id of the Vcs provider
2527
- `description` (String) Vcs description information
28+
- `endpoint` (String) The endpoint of the Vcs provider
2629
- `id` (String) Vcs Id
30+
- `status` (String) The status of the Vcs provider

internal/provider/vcs_data_source.go

+16
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,22 @@ func (d *VcsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, re
100100
Computed: true,
101101
Description: "Vcs description information",
102102
},
103+
"client_id": schema.StringAttribute{
104+
Computed: true,
105+
Description: "The client id of the Vcs provider",
106+
},
107+
"endpoint": schema.StringAttribute{
108+
Computed: true,
109+
Description: "The endpoint of the Vcs provider",
110+
},
111+
"api_url": schema.StringAttribute{
112+
Computed: true,
113+
Description: "The api url of the Vcs provider",
114+
},
115+
"status": schema.StringAttribute{
116+
Computed: true,
117+
Description: "The status of the Vcs provider",
118+
},
103119
},
104120
}
105121
}

0 commit comments

Comments
 (0)