module ForemanApi
  module Resources
    class Task < ForemanApi::Base
      def self.doc
        @doc ||= ForemanApi.doc['resources']["tasks"]
      end

      # @param [Hash] params a hash of params to be passed to the service
      # @option params [Object] id Part of +/api/orchestration/:id/tasks+ path
      #
      # @param [Hash] headers additional http headers
      # @return [Array] First item: parsed data; second item: raw body
      def index(params = {}, headers = {})
        perform_call(__method__, params, headers)
      end

    end
  end
end