add autogenerated help for vsphere iso remove cdrom

This commit is contained in:
Dax T. Games 2020-02-12 11:31:46 -05:00
parent 90eee3829d
commit 78012dc56f
4 changed files with 39 additions and 3 deletions

View File

@ -1,3 +1,6 @@
//go:generate struct-markdown
//go:generate mapstructure-to-hcl2 -type RemoveCDRomConfig
package iso package iso
import ( import (
@ -8,6 +11,7 @@ import (
) )
type RemoveCDRomConfig struct { type RemoveCDRomConfig struct {
// Remove CD-ROM devices from template. Defaults to `false`.
RemoveCdrom bool `mapstructure:"remove_cdrom"` RemoveCdrom bool `mapstructure:"remove_cdrom"`
} }

View File

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

View File

@ -2,8 +2,6 @@
- `cdrom_type` (string) - Which controller to use. Example: `sata`. Defaults to `ide`. - `cdrom_type` (string) - Which controller to use. Example: `sata`. Defaults to `ide`.
- `remove_cdrom` (boolean) - Remove CD/DVD-ROM devices from template. Defaults to `false`.
- `iso_paths` ([]string) - List of datastore paths to ISO files that will be mounted to the VM. - `iso_paths` ([]string) - List of datastore paths to ISO files that will be mounted to the VM.
Example: `"[datastore1] ISO/ubuntu.iso"`. Example: `"[datastore1] ISO/ubuntu.iso"`.

View File

@ -0,0 +1,4 @@
<!-- Code generated from the comments of the RemoveCDRomConfig struct in builder/vsphere/iso/step_remove_cdrom.go; DO NOT EDIT MANUALLY -->
- `remove_cdrom` (bool) - Remove CD-ROM devices from template. Defaults to `false`.