Sha256: ebf1a3b11a1947c7045d14f4bf294e7773d31c673177601207d38d96ed8b4adc
Contents?: true
Size: 685 Bytes
Versions: 4
Compression:
Stored size: 685 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Uploads a data disk. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/uploadVolume.html] def upload_volume(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'uploadVolume') else options.merge!('command' => 'uploadVolume', 'url' => args[0], 'format' => args[1], 'zoneid' => args[2], 'name' => args[3]) end request(options) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems