fix(sqlserverflex): attribute rules is required not optional (#956)
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
This commit is contained in:
parent
57d731028e
commit
64d4597e2e
2 changed files with 2 additions and 2 deletions
|
|
@ -34,12 +34,12 @@ import {
|
||||||
|
|
||||||
- `instance_id` (String) ID of the SQLServer Flex instance.
|
- `instance_id` (String) ID of the SQLServer Flex instance.
|
||||||
- `project_id` (String) STACKIT project ID to which the instance is associated.
|
- `project_id` (String) STACKIT project ID to which the instance is associated.
|
||||||
|
- `roles` (Set of String) Database access levels for the user. The values for the default roles are: `##STACKIT_DatabaseManager##`, `##STACKIT_LoginManager##`, `##STACKIT_ProcessManager##`, `##STACKIT_ServerManager##`, `##STACKIT_SQLAgentManager##`, `##STACKIT_SQLAgentUser##`
|
||||||
- `username` (String) Username of the SQLServer Flex instance.
|
- `username` (String) Username of the SQLServer Flex instance.
|
||||||
|
|
||||||
### Optional
|
### Optional
|
||||||
|
|
||||||
- `region` (String)
|
- `region` (String)
|
||||||
- `roles` (Set of String) Database access levels for the user. The values for the default roles are: `##STACKIT_DatabaseManager##`, `##STACKIT_LoginManager##`, `##STACKIT_ProcessManager##`, `##STACKIT_ServerManager##`, `##STACKIT_SQLAgentManager##`, `##STACKIT_SQLAgentUser##`
|
|
||||||
|
|
||||||
### Read-Only
|
### Read-Only
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
|
||||||
"roles": schema.SetAttribute{
|
"roles": schema.SetAttribute{
|
||||||
Description: descriptions["roles"],
|
Description: descriptions["roles"],
|
||||||
ElementType: types.StringType,
|
ElementType: types.StringType,
|
||||||
Optional: true,
|
Required: true,
|
||||||
PlanModifiers: []planmodifier.Set{
|
PlanModifiers: []planmodifier.Set{
|
||||||
setplanmodifier.RequiresReplace(),
|
setplanmodifier.RequiresReplace(),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue