<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def index_resources(self):
 """ Gets the Index Resources API client. Returns: IndexResources: """

        if not self.__index_resources:
            self.__index_resources = IndexResources(self.__connection)
        return self.__index_resources