func Delete(client *gophercloud.ServiceClient, id string) DeleteResult {
	var res DeleteResult
	_, res.Err = client.Request("DELETE", deleteURL(client, id), gophercloud.RequestOpts{
		MoreHeaders: client.AuthenticatedHeaders(),
		OkCodes:     []int{202},
	})
	return res
}
Delete will delete the volume type with the provided ID.
package volumetypes
import (
	"github.com/rackspace/gophercloud"
	"github.com/rackspace/gophercloud/pagination"
)
type CreateOptsBuilder interface {
	ToVolumeTypeCreateMap() (map[string]interface{}, error)
}
type CreateOpts struct {
	ExtraSpecs map[string]interface{}
	Name string
}
func (opts CreateOpts) ToVolumeTypeCreateMap() (map[string]interface{}, error) {
	vt := make(map[string]interface{})
	if opts.ExtraSpecs != nil {
		vt["extra_specs"] = opts.ExtraSpecs
	}
	if opts.Name != "" {
		vt["name"] = opts.Name
	}
	return map[string]interface{}{"volume_type": vt}, nil
}
func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) CreateResult {
	var res CreateResult
	reqBody, err := opts.ToVolumeTypeCreateMap()
	if err != nil {
		res.Err = err
		return res
	}
	_, res.Err = client.Request("POST", createURL(client), gophercloud.RequestOpts{
		MoreHeaders:  client.AuthenticatedHeaders(),
		OkCodes:      []int{200, 201},
		JSONBody:     &reqBody,
		JSONResponse: &res.Body,
	})
	return res
}