Class: Ubicloud::Vm

Inherits:
Model
  • Object
show all
Defined in:
lib/ubicloud/model/vm.rb

Instance Attribute Summary

Attributes inherited from Model

#adapter, #values

Instance Method Summary collapse

Methods inherited from Model

[], #[], #check_exists, create, #destroy, #id, #info, #initialize, #inspect, list, #location, #name, resolve_associations, #to_h

Constructor Details

This class inherits a constructor from Ubicloud::Model

Instance Method Details

#restartObject

Schedule a restart of the virtual machine. Returns self.



23
24
25
# File 'lib/ubicloud/model/vm.rb', line 23

def restart
  merge_into_values(adapter.post(_path("/restart")))
end