# File lib/fog/profitbricks/requests/compute/update_volume.rb, line 60 def update_volume(datacenter_id, volume_id, options = {}) if volume = data[:volumes]['items'].find do |vlm| vlm["id"] == volume_id && vlm["datacenter_id"] == datacenter_id end volume['name'] = options[:name] volume['size'] = options[:size] else raise Excon::Error::HTTPStatus, 'The requested resource could not be found' end response = Excon::Response.new response.status = 202 response.body = volume response end