Sha256: cf1e4b06717ff763457bf11173de96891b5923c6db6260eb32f2b8d2be135f39

Contents?: true

Size: 1.12 KB

Versions: 20

Compression:

Stored size: 1.12 KB

Contents

module Fog
  module OpenStack
    class Image
      class V1
        class Real
          def list_public_images_detailed(options = {}, query_deprecated = nil)
            if options.kind_of?(Hash)
              query = options
            elsif options
              Fog::Logger.deprecation("Calling OpenStack[:glance].list_public_images_detailed(attribute, query) format"\
                                    " is deprecated, call .list_public_images_detailed(attribute => query) instead")
              query = {options => query_deprecated}
            else
              query = {}
            end

            request(
              :expects => [200, 204],
              :method  => 'GET',
              :path    => 'images/detail',
              :query   => query
            )
          end
        end

        class Mock
          def list_public_images_detailed(_options = {}, _query_deprecated = nil)
            response = Excon::Response.new
            response.status = [200, 204][rand(2)]
            response.body = {'images' => data[:images].values}
            response
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.1.2 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-fork-99 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.1.0 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.1.0.pre lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.11 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.10 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.9 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.8 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.7 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.6 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.5 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.4 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.3 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.2 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.1 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-1.0.0 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb
fog-openstack-0.3.1 lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb