(self)
Yields all searchindices that the user has access to.

        Yields:
            A SearchIndex object instances.
Yields all searchindices that the user has access to.
Yields all searchindices that the user has access to .
def list_searchindices(self):
        """Yields all searchindices that the user has access to.

        Yields:
            A SearchIndex object instances.
        """
        response = self.fetch_resource_data('searchindices/')
        response_objects = response.get('objects')
        if not response_objects:
            yield None
            return

        for index_dict in response_objects[0]:
            index_id = index_dict['id']
            index_name = index_dict['name']
            index_obj = index.SearchIndex(
                searchindex_id=index_id, api=self, searchindex_name=index_name)
            yield index_obj
def list_searchindices ( self ) : response = self . fetch_resource_data ( 'searchindices/' ) response_objects = response . get ( 'objects' ) if not response_objects : yield None return for index_dict in response_objects [ 0 ] : index_id = index_dict [ 'id' ] index_name = index_dict [ 'name' ] index_obj = index . SearchIndex ( searchindex_id = index_id , api = self , searchindex_name = index_name ) yield index_obj