func (r *ProtocolLXD) CreateStoragePoolVolume(pool string, volume api.StorageVolumesPost) error {
	if !r.HasExtension("storage") {
		return fmt.Errorf("The server is missing the required \"storage\" API extension")
	}

	// Send the request
	path := fmt.Sprintf("/storage-pools/%s/volumes/%s", url.QueryEscape(pool), url.QueryEscape(volume.Type))
	_, _, err := r.query("POST", path, volume, "")
	if err != nil {
		return err
	}

	return nil
}
func (r *ProtocolLXD) CreateStoragePoolVolume(pool string, volume api.StorageVolumesPost) error {
	if !r.HasExtension("storage") {
		return fmt.Errorf("The server is missing the required \"storage\" API extension")
	}

	
	path := fmt.Sprintf("/storage-pools/%s/volumes/%s", url.QueryEscape(pool), url.QueryEscape(volume.Type))
	_, _, err := r.query("POST", path, volume, "")
	if err != nil {
		return err
	}

	return nil
}
func ( r * ProtocolLXD ) CreateStoragePoolVolume ( pool string , volume api . StorageVolumesPost ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } // Send the request path := fmt . Sprintf ( " " , url . QueryEscape ( pool ) , url . QueryEscape ( volume . Type ) ) _ , _ , err := r . query ( " " , path , volume , " " ) if err != nil { return err } return nil }
// CreateStoragePoolVolume defines a new storage volume
CreateStoragePoolVolume defines a new storage volume