Skip to content

Commit ee3ff71

Browse files
committed
Docs updates.
1 parent 411a432 commit ee3ff71

File tree

15 files changed

+47
-17
lines changed

15 files changed

+47
-17
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
data "devcycle_evaluated_variable_boolean" "test" {
2+
id = "acceptance-testing-boolean"
3+
user = {
4+
id = "acceptancetesting"
5+
}
6+
default_value = false
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
data "devcycle_evaluated_variable_json" "test" {
2+
id = "acceptance-testing-json"
3+
user = {
4+
id = "acceptancetesting"
5+
}
6+
default_value = "{}"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
data "devcycle_evaluated_variable_number" "test" {
2+
id = "acceptance-testing-number"
3+
user = {
4+
id = "acceptancetesting"
5+
}
6+
default_value = 1
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
data "devcycle_evaluated_variable_string" "test" {
2+
id = "acceptance-testing-string"
3+
user = {
4+
id = "acceptancetesting"
5+
}
6+
default_value = "string"
7+
}

internal/provider/environment_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type environmentDataSourceType struct{}
1212
func (t environmentDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics) {
1313
return tfsdk.Schema{
1414
// This description is used by the documentation generator and the language server.
15-
MarkdownDescription: `DevCycle Environment Data Source.`,
15+
MarkdownDescription: `DevCycle Environment Data Source. Read data from a given DevCycle Environment. R`,
1616

1717
Attributes: map[string]tfsdk.Attribute{
1818
"project_id": {

internal/provider/environment_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type environmentResourceType struct{}
1616
func (t environmentResourceType) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics) {
1717
return tfsdk.Schema{
1818
// This description is used by the documentation generator and the language server.
19-
MarkdownDescription: "DevCycle Environment resource",
19+
MarkdownDescription: "DevCycle Environment resource. This resource is used to create and manage DevCycle environments.",
2020

2121
Attributes: map[string]tfsdk.Attribute{
2222
"project_id": {

internal/provider/evaluated_boolean_variable_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type evaluatedBoolVariableDataSourceType struct{}
1414
func (t evaluatedBoolVariableDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics) {
1515
return tfsdk.Schema{
1616
// This description is used by the documentation generator and the language server.
17-
MarkdownDescription: "Evaluated Variable data source.",
17+
MarkdownDescription: "Evaluated Variable data source. Each instance of this data source represents a single evaluated variable, under a single userdata context.",
1818

1919
Attributes: map[string]tfsdk.Attribute{
2020
"user": userDataSchema(),
@@ -24,7 +24,7 @@ func (t evaluatedBoolVariableDataSourceType) GetSchema(ctx context.Context) (tfs
2424
Type: types.BoolType,
2525
},
2626
"default_value": {
27-
MarkdownDescription: "Default value of the Variable. Either true or false.",
27+
MarkdownDescription: "Default value of the Variable. Used as a fallback in case there is no variation value set.",
2828
Required: true,
2929
Type: types.BoolType,
3030
},

internal/provider/evaluated_json_variable_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type evaluatedJSONVariableDataSourceType struct{}
1515
func (t evaluatedJSONVariableDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics) {
1616
return tfsdk.Schema{
1717
// This description is used by the documentation generator and the language server.
18-
MarkdownDescription: "Evaluated Variable data source.",
18+
MarkdownDescription: "Evaluated Variable data source. Each instance of this data source represents a single evaluated variable, under a single userdata context.",
1919

2020
Attributes: map[string]tfsdk.Attribute{
2121
"user": userDataSchema(),
@@ -25,7 +25,7 @@ func (t evaluatedJSONVariableDataSourceType) GetSchema(ctx context.Context) (tfs
2525
Type: types.StringType,
2626
},
2727
"default_value": {
28-
MarkdownDescription: "Default value of the Variable",
28+
MarkdownDescription: "Default value of the Variable. Used as a fallback in case there is no variation value set.",
2929
Required: true,
3030
Type: types.StringType,
3131
},

internal/provider/evaluated_number_variable_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type evaluatedNumberVariableDataSourceType struct{}
1515
func (t evaluatedNumberVariableDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics) {
1616
return tfsdk.Schema{
1717
// This description is used by the documentation generator and the language server.
18-
MarkdownDescription: "Evaluated Variable data source.",
18+
MarkdownDescription: "Evaluated Variable data source. Each instance of this data source represents a single evaluated variable, under a single userdata context.",
1919

2020
Attributes: map[string]tfsdk.Attribute{
2121
"user": userDataSchema(),
@@ -25,7 +25,7 @@ func (t evaluatedNumberVariableDataSourceType) GetSchema(ctx context.Context) (t
2525
Type: types.NumberType,
2626
},
2727
"default_value": {
28-
MarkdownDescription: "Default value of the Variable",
28+
MarkdownDescription: "Default value of the Variable. Used as a fallback in case there is no variation value set.",
2929
Required: true,
3030
Type: types.NumberType,
3131
},

internal/provider/evaluated_string_variable_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type evaluatedStringVariableDataSourceType struct{}
1414
func (t evaluatedStringVariableDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics) {
1515
return tfsdk.Schema{
1616
// This description is used by the documentation generator and the language server.
17-
MarkdownDescription: "Evaluated Variable data source.",
17+
MarkdownDescription: "Evaluated Variable data source. Each instance of this data source represents a single evaluated variable, under a single userdata context.",
1818

1919
Attributes: map[string]tfsdk.Attribute{
2020
"user": userDataSchema(),
@@ -24,7 +24,7 @@ func (t evaluatedStringVariableDataSourceType) GetSchema(ctx context.Context) (t
2424
Type: types.StringType,
2525
},
2626
"default_value": {
27-
MarkdownDescription: "Default value of the Variable",
27+
MarkdownDescription: "Default value of the Variable. Used as a fallback in case there is no variation value set.",
2828
Required: true,
2929
Type: types.StringType,
3030
},

0 commit comments

Comments
 (0)