(self, ticket, search_key, search_type)
return instance_dicts
Get all the instances of an sobject of a certain stype.  There
        must be an instance relationship between the sobject and the search
        type

        @param:
        search_key: the search_key to the sobject to get the instances
        search_type: the search_type of the related sobjects that the instances
            are attached to

        @return:
        the instance sobject created
Get all the instances of an sobject of a certain stype.  There
        must be an instance relationship between the sobject and the search
        type
Get all the instances of an sobject of a certain stype . There must be an instance relationship between the sobject and the search type
def get_instances(self, ticket, search_key, search_type):
        '''Get all the instances of an sobject of a certain stype.  There
        must be an instance relationship between the sobject and the search
        type

        @param:
        search_key: the search_key to the sobject to get the instances
        search_type: the search_type of the related sobjects that the instances
            are attached to

        @return:
        the instance sobject created
        '''
        sobjects = self._get_sobjects(search_key)
        if sobjects:
            sobject = sobjects[0]
        else:
            raise ApiException("SObject [%s] does not exist" % search_key1)

        instances = sobject.get_instances(search_type)

        instance_dicts = []
        for instance in instances:
            instance_dict = self._get_sobject_dict(instance)

            instance_dicts.append(instance_dict)
        return instance_dicts
def get_instances ( self , ticket , search_key , search_type ) : sobjects = self . _get_sobjects ( search_key ) if sobjects : sobject = sobjects [ 0 ] else : raise ApiException ( "SObject [%s] does not exist" % search_key1 ) instances = sobject . get_instances ( search_type ) instance_dicts = [ ] for instance in instances : instance_dict = self . _get_sobject_dict ( instance ) instance_dicts . append ( instance_dict ) return instance_dicts