Sha256: 8918997a465926a93e8e7e47fad46902ed9e76066dd54d0d6a08f347a43f439e
Contents?: true
Size: 625 Bytes
Versions: 12
Compression:
Stored size: 625 Bytes
Contents
module Fog module Volume class OpenStack module Real private def _create_volume(data, options={}) vanilla_options = [:snapshot_id, :imageRef, :volume_type, :source_volid, :availability_zone, :metadata] vanilla_options.select { |o| options[o] }.each do |key| data['volume'][key] = options[key] end request( :body => Fog::JSON.encode(data), :expects => [200, 202], :method => 'POST', :path => "volumes" ) end end end end end
Version data entries
12 entries across 12 versions & 2 rubygems