|
|
|
|
@ -31,6 +31,7 @@ type FlatConfig struct {
|
|
|
|
|
DiskSize *int64 `mapstructure:"disk_size" cty:"disk_size" hcl:"disk_size"`
|
|
|
|
|
LinkedClone *bool `mapstructure:"linked_clone" cty:"linked_clone" hcl:"linked_clone"`
|
|
|
|
|
Network *string `mapstructure:"network" cty:"network" hcl:"network"`
|
|
|
|
|
MacAddress *string `mapstructure:"mac_address" cty:"mac_address" hcl:"mac_address"`
|
|
|
|
|
Notes *string `mapstructure:"notes" cty:"notes" hcl:"notes"`
|
|
|
|
|
VAppConfig *FlatvAppConfig `mapstructure:"vapp" cty:"vapp" hcl:"vapp"`
|
|
|
|
|
VMName *string `mapstructure:"vm_name" cty:"vm_name" hcl:"vm_name"`
|
|
|
|
|
@ -155,6 +156,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec {
|
|
|
|
|
"disk_size": &hcldec.AttrSpec{Name: "disk_size", Type: cty.Number, Required: false},
|
|
|
|
|
"linked_clone": &hcldec.AttrSpec{Name: "linked_clone", Type: cty.Bool, Required: false},
|
|
|
|
|
"network": &hcldec.AttrSpec{Name: "network", Type: cty.String, Required: false},
|
|
|
|
|
"mac_address": &hcldec.AttrSpec{Name: "mac_address", Type: cty.String, Required: false},
|
|
|
|
|
"notes": &hcldec.AttrSpec{Name: "notes", Type: cty.String, Required: false},
|
|
|
|
|
"vapp": &hcldec.BlockSpec{TypeName: "vapp", Nested: hcldec.ObjectSpec((*FlatvAppConfig)(nil).HCL2Spec())},
|
|
|
|
|
"vm_name": &hcldec.AttrSpec{Name: "vm_name", Type: cty.String, Required: false},
|
|
|
|
|
|