def all(options = {})
      raise ArgumentError, "Limit is invalid" unless options[:count].nil? or (0..1000).include? options[:count]
      archive_list_json = @client.list_archives(options[:offset], options[:count], options[:sessionId])
      ArchiveList.new self, archive_list_json
    end
def all(options = {})
      raise ArgumentError, "Limit is invalid" unless options[:count].nil? or (0..1000).include? options[:count]
      archive_list_json = @client.list_archives(options[:offset], options[:count], options[:sessionId])
      ArchiveList.new self, archive_list_json
    end
Returns an ArchiveList, which is an array of archives that are completed and in-progress,
 for your API key.

 @param [Hash] options  A hash with keys defining which range of archives to retrieve.
 @option options [integer] :offset Optional. The index offset of the first archive. 0 is offset
   of the most recently started archive. 1 is the offset of the archive that started prior to
   the most recent archive. If you do not specify an offset, 0 is used.
 @option options [integer] :count Optional. The number of archives to be returned. The maximum
   number of archives returned is 1000.
 @option options [String] :session_id Optional. The session ID that archives belong to. This is
   useful when listing multiple archives for an {https://tokbox.com/developer/guides/archiving/#automatic-archives automatically archived session}.

 @return [ArchiveList] An ArchiveList object, which is an array of Archive objects.