49 lines
2.7 KiB
Go
49 lines
2.7 KiB
Go
// Code generated by "mapstructure-to-hcl2 -type CreateConfig"; DO NOT EDIT.
|
|
package iso
|
|
|
|
import (
|
|
"github.com/hashicorp/hcl/v2/hcldec"
|
|
"github.com/zclconf/go-cty/cty"
|
|
)
|
|
|
|
// FlatCreateConfig is an auto-generated flat version of CreateConfig.
|
|
// Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
|
|
type FlatCreateConfig struct {
|
|
Version *uint `mapstructure:"vm_version" cty:"vm_version"`
|
|
GuestOSType *string `mapstructure:"guest_os_type" cty:"guest_os_type"`
|
|
Firmware *string `mapstructure:"firmware" cty:"firmware"`
|
|
DiskControllerType *string `mapstructure:"disk_controller_type" cty:"disk_controller_type"`
|
|
DiskSize *int64 `mapstructure:"disk_size" cty:"disk_size"`
|
|
DiskThinProvisioned *bool `mapstructure:"disk_thin_provisioned" cty:"disk_thin_provisioned"`
|
|
Network *string `mapstructure:"network" cty:"network"`
|
|
NetworkCard *string `mapstructure:"network_card" cty:"network_card"`
|
|
USBController *bool `mapstructure:"usb_controller" cty:"usb_controller"`
|
|
Notes *string `mapstructure:"notes" cty:"notes"`
|
|
}
|
|
|
|
// FlatMapstructure returns a new FlatCreateConfig.
|
|
// FlatCreateConfig is an auto-generated flat version of CreateConfig.
|
|
// Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
|
|
func (*CreateConfig) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } {
|
|
return new(FlatCreateConfig)
|
|
}
|
|
|
|
// HCL2Spec returns the hcl spec of a CreateConfig.
|
|
// This spec is used by HCL to read the fields of CreateConfig.
|
|
// The decoded values from this spec will then be applied to a FlatCreateConfig.
|
|
func (*FlatCreateConfig) HCL2Spec() map[string]hcldec.Spec {
|
|
s := map[string]hcldec.Spec{
|
|
"vm_version": &hcldec.AttrSpec{Name: "vm_version", Type: cty.Number, Required: false},
|
|
"guest_os_type": &hcldec.AttrSpec{Name: "guest_os_type", Type: cty.String, Required: false},
|
|
"firmware": &hcldec.AttrSpec{Name: "firmware", Type: cty.String, Required: false},
|
|
"disk_controller_type": &hcldec.AttrSpec{Name: "disk_controller_type", Type: cty.String, Required: false},
|
|
"disk_size": &hcldec.AttrSpec{Name: "disk_size", Type: cty.Number, Required: false},
|
|
"disk_thin_provisioned": &hcldec.AttrSpec{Name: "disk_thin_provisioned", Type: cty.Bool, Required: false},
|
|
"network": &hcldec.AttrSpec{Name: "network", Type: cty.String, Required: false},
|
|
"network_card": &hcldec.AttrSpec{Name: "network_card", Type: cty.String, Required: false},
|
|
"usb_controller": &hcldec.AttrSpec{Name: "usb_controller", Type: cty.Bool, Required: false},
|
|
"notes": &hcldec.AttrSpec{Name: "notes", Type: cty.String, Required: false},
|
|
}
|
|
return s
|
|
}
|