0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 11:02:59 +00:00
terraform-provider-proxmox/fwprovider/vm/vga/model.go
Pavel Boldyrev 80cafa689f
feat(vm2): add initial support for cdrom (#1370)
feat(vm2): add initial support for `cdrom`

This is a breaking change comparing to v1 - switching the cdrom schema from a nested block to a nested attribute map.

Improvements comparing to v1:
- support for `ide`, `sata`, `scsi` interfaces
- support for multiple cdroms

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-06-10 01:28:18 +00:00

22 lines
498 B
Go

package vga
import (
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
)
// Model represents the VGA model.
type Model struct {
Clipboard types.String `tfsdk:"clipboard"`
Type types.String `tfsdk:"type"`
Memory types.Int64 `tfsdk:"memory"`
}
func attributeTypes() map[string]attr.Type {
return map[string]attr.Type{
"clipboard": types.StringType,
"type": types.StringType,
"memory": types.Int64Type,
}
}