the flights you aske about are already booked as UA code-shares.
But UA code-shares (flying AN metal) still only pays 70% (if the fare is discounted eco, if the fare is full eco 100%), and no minimum miles, and no status bonus, into your UA Mileage Plus account.
I have no experience of my own about the VARIG part.