@@ -6,14 +6,12 @@ import (
66 "net/http"
77 "strings"
88
9- "github.com/hashicorp/terraform-plugin-framework-validators/setvalidator"
109 "github.com/hashicorp/terraform-plugin-framework/schema/validator"
1110 "github.com/hashicorp/terraform-plugin-log/tflog"
1211 "github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
1312 "github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
1413 "github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
1514
16- "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
1715 "github.com/hashicorp/terraform-plugin-framework/attr"
1816 "github.com/hashicorp/terraform-plugin-framework/path"
1917 "github.com/hashicorp/terraform-plugin-framework/resource"
@@ -106,7 +104,7 @@ func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
106104 "instance_id" : "ID of the SQLServer Flex instance." ,
107105 "project_id" : "STACKIT project ID to which the instance is associated." ,
108106 "username" : "Username of the SQLServer Flex instance." ,
109- "roles" : "Database access levels for the user. Possible values: [`##STACKIT_LoginManager##`, `##STACKIT_DatabaseManager##`] " ,
107+ "roles" : "Database access levels for the user." ,
110108 "password" : "Password of the user account." ,
111109 }
112110
@@ -169,11 +167,6 @@ func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
169167 PlanModifiers : []planmodifier.Set {
170168 setplanmodifier .RequiresReplace (),
171169 },
172- Validators : []validator.Set {
173- setvalidator .ValueStringsAre (
174- stringvalidator .OneOf ("##STACKIT_LoginManager##" , "##STACKIT_DatabaseManager##" ),
175- ),
176- },
177170 },
178171 "password" : schema.StringAttribute {
179172 Description : descriptions ["password" ],
0 commit comments