// Code generated by "mapstructure-to-hcl2 -type CDRomConfig"; DO NOT EDIT. package iso import ( "github.com/hashicorp/hcl/v2/hcldec" "github.com/zclconf/go-cty/cty" ) // FlatCDRomConfig is an auto-generated flat version of CDRomConfig. // Where the contents of a field with a `mapstructure:,squash` tag are bubbled up. type FlatCDRomConfig struct { CdromType *string `mapstructure:"cdrom_type" cty:"cdrom_type" hcl:"cdrom_type"` ISOPaths []string `mapstructure:"iso_paths" cty:"iso_paths" hcl:"iso_paths"` } // FlatMapstructure returns a new FlatCDRomConfig. // FlatCDRomConfig is an auto-generated flat version of CDRomConfig. // Where the contents a fields with a `mapstructure:,squash` tag are bubbled up. func (*CDRomConfig) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } { return new(FlatCDRomConfig) } // HCL2Spec returns the hcl spec of a CDRomConfig. // This spec is used by HCL to read the fields of CDRomConfig. // The decoded values from this spec will then be applied to a FlatCDRomConfig. func (*FlatCDRomConfig) HCL2Spec() map[string]hcldec.Spec { s := map[string]hcldec.Spec{ "cdrom_type": &hcldec.AttrSpec{Name: "cdrom_type", Type: cty.String, Required: false}, "iso_paths": &hcldec.AttrSpec{Name: "iso_paths", Type: cty.List(cty.String), Required: false}, } return s }