2010-04-05 00:41:49 -04:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
|
|
|
module Servers
|
|
|
|
class Real
|
|
|
|
|
|
|
|
# Get details for image by id
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
|
|
|
# * 'id'<~Integer> - Id of the image
|
|
|
|
# * 'name'<~String> - Name of the image
|
|
|
|
# * 'serverId'<~Integer> - Id of server image was created from
|
|
|
|
# * 'status'<~Integer> - Status of image
|
|
|
|
# * 'updated'<~String> - Timestamp of last update
|
|
|
|
def get_image_details(image_id)
|
|
|
|
request(
|
|
|
|
:expects => [200, 203],
|
|
|
|
:method => 'GET',
|
|
|
|
:path => "images/#{image_id}.json"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
|
|
|
def get_image_details(image_id)
|
2010-05-26 20:37:27 -04:00
|
|
|
raise Fog::Errors::MockNotImplemented.new("Contributions welcome!")
|
2010-04-05 00:41:49 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|