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