def stop_by_id(archive_id)
      raise ArgumentError, "archive_id not provided" if archive_id.to_s.empty?
      archive_json = @client.stop_archive(archive_id)
      Archive.new self, archive_json
    end
def stop_by_id(archive_id)
      raise ArgumentError, "archive_id not provided" if archive_id.to_s.empty?
      archive_json = @client.stop_archive(archive_id)
      Archive.new self, archive_json
    end
Stops an OpenTok archive that is being recorded.

 Archives automatically stop recording after 120 minutes or when all clients have disconnected
 from the session being archived.

 @param [String] archive_id The archive ID of the archive you want to stop recording.

 @return [Archive] The Archive object corresponding to the archive being stopped.

 @raise [OpenTokArchiveError] The archive could not be stopped. The request was invalid.
 @raise [OpenTokAuthenticationError] Authentication failed while stopping an archive.
 @raise [OpenTokArchiveError] The archive could not be stopped. The archive ID does not exist.
 @raise [OpenTokArchiveError] The archive could not be stopped. The archive is not currently
   recording.
 @raise [OpenTokArchiveError] The archive could not be started.