Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 0986ff3

Browse files
Add readOnly attribute to datasources (#74)
* Add `readOnly` attribute to datasources * Add notice
1 parent 78f337a commit 0986ff3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datasource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ type DataSource struct {
1919
URL string `json:"url"`
2020
Access string `json:"access"`
2121

22+
// This is only returned by the API. It can only be set through the `editable` attribute of provisioned data sources.
23+
ReadOnly bool `json:"readOnly"`
24+
2225
Database string `json:"database,omitempty"`
2326
User string `json:"user,omitempty"`
2427
// Deprecated: Use secureJsonData.password instead.

0 commit comments

Comments
 (0)