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