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

	if volume.Restore != "" && !r.HasExtension("storage_api_volume_snapshots") {
		return fmt.Errorf("The server is missing the required \"storage_api_volume_snapshots\" API extension")
	}

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

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

	if volume.Restore != "" && !r.HasExtension("storage_api_volume_snapshots") {
		return fmt.Errorf("The server is missing the required \"storage_api_volume_snapshots\" API extension")
	}

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

	return nil
}
func ( r * ProtocolLXD ) UpdateStoragePoolVolume ( pool string , volType string , name string , volume api . StorageVolumePut , ETag string ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } if volume . Restore != " " && ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } // Send the request path := fmt . Sprintf ( " " , url . QueryEscape ( pool ) , url . QueryEscape ( volType ) , url . QueryEscape ( name ) ) _ , _ , err := r . query ( " " , path , volume , ETag ) if err != nil { return err } return nil }
// UpdateStoragePoolVolume updates the volume to match the provided StoragePoolVolume struct
UpdateStoragePoolVolume updates the volume to match the provided StoragePoolVolume struct