Method: Morpheus::PowerSchedulesInterface#destroy

Defined in:
lib/morpheus/api/power_schedules_interface.rb

#destroy(id) ⇒ Object



36
37
38
39
40
41
# File 'lib/morpheus/api/power_schedules_interface.rb', line 36

def destroy(id)
  url = "#{@base_url}/api/power-schedules/#{id}"
  headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
  opts = {method: :delete, url: url, timeout: 10, headers: headers}
  execute(opts)
end