Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Dec 9, 2024
1 parent 4fdd72b commit a9f12b6
Show file tree
Hide file tree
Showing 20 changed files with 686 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .codegen/model.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ func (o *{{ $parent.PascalName}}) Set{{.PascalName}}(ctx context.Context, v {{te
}
{{- end}}
t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["{{template "tfsdk-name" (dict "field" .)}}"]
{{- if or .Entity.ArrayValue .Entity.MapValue }}
t = t.(attr.TypeWithElementType).ElementType()
{{- end }}
o.{{.PascalName}}{{if eq .PascalName "Type"}}_{{end}} = types.{{if .Entity.MapValue}}Map{{else}}List{{end}}ValueMust(t, vs)
}
{{end}}
Expand Down
8 changes: 8 additions & 0 deletions internal/service/apps_tf/model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions internal/service/billing_tf/model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a9f12b6

Please sign in to comment.