def restore_volume_snapshot(datacenter_id, volume_id, _options = {})
response = Excon::Response.new
response.status = 202
if datacenter = data[:datacenters]['items'].find do |attrib|
attrib['id'] == datacenter_id
end
else
raise Excon::Error::HTTPStatus, 'Data center resource could not be found'
end
if volume = data[:volumes]['items'].find do |attrib|
attrib['id'] == volume_id && attrib['datacenter_id'] == datacenter_id
end
else
raise Excon::Error::HTTPStatus, 'Volume resource could not be found'
end
response
end