Skip to content

Commit 4d8ec62

Browse files
committed
schema
1 parent fb2a436 commit 4d8ec62

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

internal/fleet/agent_policy/schema.go

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ func getSchema() schema.Schema {
9292
},
9393
},
9494
"global_data_tags": schema.MapNestedAttribute{
95-
Description: "user-defined data tags to apply to all inputs. values can be strings (string_value) or numbers (number_value).",
95+
Description: "User-defined data tags to apply to all inputs. Values can be strings (string_value) or numbers (number_value) but not both.",
9696
NestedObject: schema.NestedAttributeObject{
9797
Attributes: map[string]schema.Attribute{
9898
"string_value": schema.StringAttribute{
99-
Description: "Custom label for the field.",
99+
Description: "String value for the field. If this is set, number_value must not be defined.",
100100
Optional: true,
101101
},
102102
"number_value": schema.Float32Attribute{
103-
Description: "Popularity count for the field.",
103+
Description: "Number value for the field. If this is set, string_value must not be defined.",
104104
Optional: true,
105105
},
106106
},
@@ -113,14 +113,6 @@ func getSchema() schema.Schema {
113113
mapplanmodifier.RequiresReplace(),
114114
},
115115
},
116-
117-
"global_data_tags_old": schema.StringAttribute{
118-
Description: "JSON encoded user-defined data tags to apply to all inputs.",
119-
Optional: true,
120-
PlanModifiers: []planmodifier.String{
121-
stringplanmodifier.RequiresReplace(),
122-
},
123-
},
124116
}}
125117
}
126118

0 commit comments

Comments
 (0)