Sha256: 477d598607694601268138a606b9e977a0de11b9404f6acef4f876cf16f8563a
Contents?: true
Size: 935 Bytes
Versions: 12
Compression:
Stored size: 935 Bytes
Contents
module Fog module Compute class OracleCloud class Real def create_image_list (name, description, options={}) # Just in case it's already set name.sub! "/Compute-#{@identity_domain}/#{@username}/", '' body_data = { 'name' => "/Compute-#{@identity_domain}/#{@username}/#{name}", 'description' => description, 'default' => options[:default] } body_data = body_data.reject {|key, value| value.nil?} request( :method => 'POST', :expects => 201, :path => "/imagelist/Compute-#{@identity_domain}/#{@username}/", :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