Sha256: 3717125257f96fb8e2f1d1e6c8b0f0f25a78816357c400e0d6ebf25b0abe37f3

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def list_image_lists
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/imagelist/Compute-#{@identity_domain}/#{@username}/"
          )
          response
        end
      end

      class Mock
        def list_image_lists
          response = Excon::Response.new

          images = self.data[:image_lists].values

          response.body = {
            'result' => images
          }
          response
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/compute/list_image_lists.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/compute/list_image_lists.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/compute/list_image_lists.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/compute/list_image_lists.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/compute/list_image_lists.rb