Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 093e951

Browse files
committed
chore: marked variable.isEditable as depricated
1 parent beb3051 commit 093e951

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

octopusdeploy_framework/schemas/variable.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package schemas
22

33
import (
44
"fmt"
5+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
56
"strings"
67

78
"github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/util"
@@ -157,7 +158,13 @@ func (v VariableSchema) GetResourceSchema() resourceSchema.Schema {
157158
stringvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName(VariableSchemaAttributeNames.OwnerID)),
158159
},
159160
},
160-
VariableSchemaAttributeNames.IsEditable: GetOptionalBooleanResourceAttribute("Indicates whether or not this variable is considered editable.", true),
161+
VariableSchemaAttributeNames.IsEditable: resourceSchema.BoolAttribute{
162+
Default: booldefault.StaticBool(true),
163+
Description: "Indicates whether or not this variable is considered editable.",
164+
Optional: true,
165+
Computed: true,
166+
DeprecationMessage: "This attribute will change to readonly in the future; please do not manually provide this value as it is not intended to be user managed, any value set will be ignored.",
167+
},
161168
VariableSchemaAttributeNames.IsSensitive: GetOptionalBooleanResourceAttribute("Indicates whether or not this resource is considered sensitive and should be kept secret.", false),
162169
VariableSchemaAttributeNames.SensitiveValue: resourceSchema.StringAttribute{
163170
Optional: true,

0 commit comments

Comments
 (0)