module Fog module Compute class IBM class Real # Returns manifest of image specified by id # # ==== Parameters # 'image_id'<~String>: id of desired image # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'manifest'<~String>: manifest of image in xml def get_image_manifest(image_id) request( :method => 'GET', :expects => 200, :path => "/offerings/image/#{image_id}/manifest" ) end end class Mock # TODO: Create a data store for this. def get_image_manifest(image_id) response = Excon::Response.new response.status = 200 response.body = {"manifest"=> "\n\t\n\t\t\n\t\t\t0.0.0.0/0\n\t\t\t1\n\t\t\t65535\n\t\t\n\t\n"} response end end end end end