This commit is contained in:
asteam
2024-12-04 13:18:58 +03:00
parent 003e4d656e
commit 76ea459b3d
417 changed files with 30051 additions and 975 deletions

View File

@@ -49,9 +49,8 @@ type ResourceAccountModel struct {
}
type UsersModel struct {
UserID types.String `tfsdk:"user_id"`
AccessType types.String `tfsdk:"access_type"`
RecursiveDelete types.Bool `tfsdk:"recursive_delete"`
UserID types.String `tfsdk:"user_id"`
AccessType types.String `tfsdk:"access_type"`
}
type ResourceLimitsInAccountResourceModel struct {

View File

@@ -46,10 +46,6 @@ func MakeSchemaResourceAccount() map[string]schema.Attribute {
"access_type": schema.StringAttribute{
Required: true,
},
"recursive_delete": schema.BoolAttribute{
Optional: true,
// default is false
},
},
},
},

View File

@@ -451,9 +451,8 @@ func AddDeleteUsersAccount(ctx context.Context, accountId uint64, plan, state *m
for _, user := range deletedUsers {
delUserReq := account.DeleteUserRequest{
AccountID: accountId,
UserName: user.UserID.ValueString(),
RecursiveDelete: user.RecursiveDelete.ValueBool(), // default false
AccountID: accountId,
UserName: user.UserID.ValueString(),
}
tflog.Info(ctx, "AddDeleteUsersAccount: before calling CloudBroker().Account().DeleteUser", map[string]any{"account_id": accountId, "req": delUserReq})