Sha256: 003a000156e970ff8d86f12acf34f39588c56961c0f1477994595b9b06cc7e08
Contents?: true
Size: 938 Bytes
Versions: 12
Compression:
Stored size: 938 Bytes
Contents
module Fog module Compute class OracleCloud class Real def update_image_list (name, options={}) # Just in case it's already set name.sub! "/Compute-#{@identity_domain}/#{@username}/", '' body_data = { 'name' => "/Compute-#{@identity_domain}/#{@username}/#{name}", 'description' => options[:description], 'default' => options[:default] } body_data = body_data.reject {|key, value| value.nil?} request( :method => 'PUT', :expects => 200, :path => "/imagelist/Compute-#{@identity_domain}/#{@username}/#{name}", :body => Fog::JSON.encode(body_data), :headers => { 'Content-Type' => 'application/oracle-compute-v3+json' } ) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems