Sha256: 7f5611fc2a1debb2fca821dad01e929cc4cbdffed06d361849ef6422830fe39d

Contents?: true

Size: 1.22 KB

Versions: 14

Compression:

Stored size: 1.22 KB

Contents

module Fog
  module Image
    class OpenStack
      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 Real

        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 # def list_public_images_detailed
        end # class Mock
      end # class OpenStack
    end
  end # module Image
end # module Fog

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-openstack-0.1.25 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.24 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.23 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.22 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.21 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.20 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.19 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.18 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.17 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.15 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.14 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.13 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.12 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
fog-openstack-0.1.11 lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb