Sha256: 3c0b4a06355b6d76f062619e77bbd8688110eaf4d9eb2bddc7d2fe1c33b575be
Contents?: true
Size: 691 Bytes
Versions: 28
Compression:
Stored size: 691 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Scales the virtual machine to a new service offering. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/scaleVirtualMachine.html] def scale_virtual_machine(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'scaleVirtualMachine') else options.merge!('command' => 'scaleVirtualMachine', 'serviceofferingid' => args[0], 'id' => args[1]) end request(options) end end end end end
Version data entries
28 entries across 26 versions & 4 rubygems