Sha256: 87088e8df740d7548dfd5bee68bc47df0faa0b8e22bd5629118628e3cf4cd9e9
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
module Fog module Terremark class Real require 'fog/terremark/parsers/task' # Reset a vapp # # ==== Parameters # * vapp_id<~Integer> - Id of vapp to reset # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'endTime'<~String> - endTime of task # * 'href'<~String> - link to task # * 'startTime'<~String> - startTime of task # * 'status'<~String> - status of task # * 'type'<~String> - type of task # * 'Owner'<~String> - # * 'href'<~String> - href of owner # * 'name'<~String> - name of owner # * 'type'<~String> - type of owner def reset(vapp_id) request( :expects => 202, :method => 'POST', :parser => Fog::Parsers::Terremark::Task.new, :path => "vApp/#{vapp_id}/power/action/reset" ) end end class Mock def reset(vapp_id) raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems