[File Rest Utils] Refactored to comply with the new Generated API