Sha256: 8aa9c82f2a8e60585f439009905a2e5ab3333c33dba8c77ad581cefeeb485e22

Contents?: true

Size: 828 Bytes

Versions: 15

Compression:

Stored size: 828 Bytes

Contents

module Fog
  module Image
    class OpenStack
      class Real
        def list_public_images_detailed(attribute=nil, query=nil)
          if attribute
            path = "images/detail?#{attribute}=#{URI::encode(query)}"
          else
            path = 'images/detail'
          end

          request(
            :expects => [200, 204],
            :method  => 'GET',
            :path    => path
          )
        end
      end # class Real

      class Mock
        def list_public_images_detailed(attribute=nil, query=nil)
          response = Excon::Response.new
          response.status = [200, 204][rand(1)]
          response.body = {'images' => self.data[:images].values}
          response
        end # def list_tenants
      end # class Mock
    end # class OpenStack
  end # module Identity
end # module Fog

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/openstack/requests/image/list_public_images_detailed.rb
fog-1.25.0 lib/fog/openstack/requests/image/list_public_images_detailed.rb
nsidc-fog-1.24.1 lib/fog/openstack/requests/image/list_public_images_detailed.rb
fog-1.24.0 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.11 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.10 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.9 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.8 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.7 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.6 lib/fog/openstack/requests/image/list_public_images_detailed.rb
fog-1.23.0 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.4 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.3 lib/fog/openstack/requests/image/list_public_images_detailed.rb
ns-fog-1.22.2 lib/fog/openstack/requests/image/list_public_images_detailed.rb
fog-1.22.1 lib/fog/openstack/requests/image/list_public_images_detailed.rb