Add upgrade API

add the upgrade get and post api to the IndicesClient class