fix(deps): update stackit sdk modules (#473)

* fix(deps): update stackit sdk modules

* Adaptations to solve issues caused by sdk breaking changes

* downgrade loadbalancer

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
This commit is contained in:
stackit-pipeline 2024-07-22 09:45:06 +02:00 committed by GitHub
parent a35b887315
commit 40ce90999b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 46 deletions

View file

@ -203,7 +203,7 @@ func (r *userResource) Create(ctx context.Context, req resource.CreateRequest, r
ctx = tflog.SetField(ctx, "project_id", projectId)
ctx = tflog.SetField(ctx, "instance_id", instanceId)
var roles []sqlserverflex.Role
var roles []string
if !(model.Roles.IsNull() || model.Roles.IsUnknown()) {
diags = model.Roles.ElementsAs(ctx, &roles, false)
resp.Diagnostics.Append(diags...)
@ -441,7 +441,7 @@ func mapFields(userResp *sqlserverflex.GetUserResponse, model *Model) error {
return nil
}
func toCreatePayload(model *Model, roles []sqlserverflex.Role) (*sqlserverflex.CreateUserPayload, error) {
func toCreatePayload(model *Model, roles []string) (*sqlserverflex.CreateUserPayload, error) {
if model == nil {
return nil, fmt.Errorf("nil model")
}