Sha256: 43030704e18f1b9ce93efdd616ab95f661e4223d777ab2acedd1da9e00a2aa1b
Contents?: true
Size: 846 Bytes
Versions: 38
Compression:
Stored size: 846 Bytes
Contents
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) Fog::Mock.not_implemented end end end end end
Version data entries
38 entries across 38 versions & 2 rubygems