The purpose of codeshares is to expand an airline's network without having to spend billions of dollars on aircraft, crew, routes, gates, etc. It wouldn't make any sense, and might be illegal, for UA to operate TPE-BKK flights. If you want an upgrade between TPE and BKK, pay Thai the cash. The SWU rules state they are not available on codeshares, so there should be no surprises.