Sha256: fd801a41df1a8bf08b830fbed97eac532b435874e631a7a4acc19b0851e249a5

Contents?: true

Size: 832 Bytes

Versions: 2

Compression:

Stored size: 832 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Servers

        # List all images
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'id'<~Integer> - Id of the image
        #     * 'name'<~String> - Name of the image
        #     * 'updated'<~String> - Last update timestamp for image
        #     * 'created'<~String> - Creation timestamp for image
        #     * 'status'<~String> - Status of image
        def list_images_detail
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => 'images/detail.json'
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def list_images
        end

      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-0.0.31 lib/fog/rackspace/requests/servers/list_images_detail.rb
fog-0.0.30 lib/fog/rackspace/requests/servers/list_images_detail.rb