// Code generated by "mapstructure-to-hcl2 -type CloneConfig"; DO NOT EDIT. package clone import ( "github.com/hashicorp/hcl/v2/hcldec" "github.com/zclconf/go-cty/cty" ) // FlatCloneConfig is an auto-generated flat version of CloneConfig. // Where the contents of a field with a `mapstructure:,squash` tag are bubbled up. type FlatCloneConfig struct { Template *string `mapstructure:"template" cty:"template"` DiskSize *int64 `mapstructure:"disk_size" cty:"disk_size"` LinkedClone *bool `mapstructure:"linked_clone" cty:"linked_clone"` Network *string `mapstructure:"network" cty:"network"` Notes *string `mapstructure:"notes" cty:"notes"` } // FlatMapstructure returns a new FlatCloneConfig. // FlatCloneConfig is an auto-generated flat version of CloneConfig. // Where the contents a fields with a `mapstructure:,squash` tag are bubbled up. func (*CloneConfig) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } { return new(FlatCloneConfig) } // HCL2Spec returns the hcl spec of a CloneConfig. // This spec is used by HCL to read the fields of CloneConfig. // The decoded values from this spec will then be applied to a FlatCloneConfig. func (*FlatCloneConfig) HCL2Spec() map[string]hcldec.Spec { s := map[string]hcldec.Spec{ "template": &hcldec.AttrSpec{Name: "template", Type: cty.String, Required: false}, "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}, "notes": &hcldec.AttrSpec{Name: "notes", Type: cty.String, Required: false}, } return s }