vsphere/distributed_virtual_switch_structure.go
func schemaDVSCreateSpec() map[string]*schema.Schema {
	s := map[string]*schema.Schema{
		// DistributedVirtualSwitchProductSpec
		"version": {
			Type:         schema.TypeString,
			Computed:     true,
			Description:  "The version of this virtual switch. Allowed versions are 6.5.0, 6.0.0, 5.5.0, 5.1.0, and 5.0.0.",
			Optional:     true,
			ValidateFunc: validation.StringInSlice(dvsVersions, false),
		},
	}
	structure.MergeSchema(s, schemaVMwareDVSConfigSpec())

	return s
}
func schemaDVSCreateSpec() map[string]*schema.Schema {
	s := map[string]*schema.Schema{
		// DistributedVirtualSwitchProductSpec
		"version": {
			Type:         schema.TypeString,
			Computed:     true,
			Description:  "The version of this virtual switch. Allowed versions are 6.5.0, 6.0.0, 5.5.0, 5.1.0, and 5.0.0.",
			Optional:     true,
			ValidateFunc: validation.StringInSlice(dvsVersions, false),
		},
	}
	structure.MergeSchema(s, schemaVMwareDVSConfigSpec())

	return s
}
// schemaDVSCreateSpec returns schema items for resources that
// need to work with a DVSCreateSpec.