mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 02:31:10 +00:00
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>
37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
package vga
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
|
|
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
|
|
)
|
|
|
|
// DataSourceSchema defines the schema for the VGA datasource.
|
|
func DataSourceSchema() schema.Attribute {
|
|
return schema.SingleNestedAttribute{
|
|
CustomType: basetypes.ObjectType{
|
|
AttrTypes: attributeTypes(),
|
|
},
|
|
Description: "The VGA configuration.",
|
|
Optional: true,
|
|
Computed: true,
|
|
Attributes: map[string]schema.Attribute{
|
|
"clipboard": schema.StringAttribute{
|
|
Description: "Enable a specific clipboard.",
|
|
Optional: true,
|
|
Computed: true,
|
|
},
|
|
"type": schema.StringAttribute{
|
|
Description: "The VGA type.",
|
|
Optional: true,
|
|
Computed: true,
|
|
},
|
|
"memory": schema.Int64Attribute{
|
|
Description: "The VGA memory in megabytes (4-512 MB)",
|
|
MarkdownDescription: "The VGA memory in megabytes (4-512 MB). Has no effect with serial display. ",
|
|
Optional: true,
|
|
Computed: true,
|
|
},
|
|
},
|
|
}
|
|
}
|