Sha256: 3e16979b127c2cc65fe71204abe1a5d5ced3fa6070762dae6329dfca59a841d2

Contents?: true

Size: 845 Bytes

Versions: 44

Compression:

Stored size: 845 Bytes

Contents

module Fog
  module Rackspace
    class Compute
      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

44 entries across 44 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/rackspace/get_image_details.rb
fog-0.5.0 lib/fog/compute/requests/rackspace/get_image_details.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/rackspace/get_image_details.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/rackspace/get_image_details.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/rackspace/get_image_details.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/rackspace/get_image_details.rb
fog-0.4.1 lib/fog/compute/requests/rackspace/get_image_details.rb
fog-0.4.0 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.34 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.33 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.32 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.31 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.30 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.29 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.28 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.27 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.26 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.25 lib/fog/rackspace/requests/compute/get_image_details.rb
fog-0.3.24 lib/fog/rackspace/requests/compute/get_image_details.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/rackspace/requests/compute/get_image_details.rb