mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-03 03:52:58 +00:00
27 lines
881 B
Go
27 lines
881 B
Go
package vm
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
|
|
"github.com/hashicorp/terraform-plugin-framework/types"
|
|
|
|
"github.com/bpg/terraform-provider-proxmox/fwprovider/types/stringset"
|
|
"github.com/bpg/terraform-provider-proxmox/fwprovider/vm/cpu"
|
|
)
|
|
|
|
// Model represents the VM model.
|
|
type Model struct {
|
|
Description types.String `tfsdk:"description"`
|
|
// for computed fields / blocks we have to use custom type? (because of unknown?)
|
|
CPU cpu.Value `tfsdk:"cpu"`
|
|
Clone *struct {
|
|
ID types.Int64 `tfsdk:"id"`
|
|
Retries types.Int64 `tfsdk:"retries"`
|
|
} `tfsdk:"clone"`
|
|
ID types.Int64 `tfsdk:"id"`
|
|
Name types.String `tfsdk:"name"`
|
|
NodeName types.String `tfsdk:"node_name"`
|
|
Tags stringset.Value `tfsdk:"tags"`
|
|
Template types.Bool `tfsdk:"template"`
|
|
Timeouts timeouts.Value `tfsdk:"timeouts"`
|
|
}
|