def iterate(self, name=None, owner=None):
        """

        :param name: the prefix of offline model name
        :param owner:
        :return:
        """
        params = {'expectmarker': 'true'}
        if name is not None:
            params['name'] = name
        if owner is not None:
            params['owner'] = owner

        def _it():
            last_marker = params.get('marker')
            if 'marker' in params and \
                (last_marker is None or len(last_marker) == 0):
                return

            url = self.resource()
            resp = self._client.get(url, params=params)

            t = OfflineModels.parse(self._client, resp, obj=self)
            params['marker'] = t.marker

            return t.offline_models

        while True:
            offline_models = _it()
            if offline_models is None:
                break
            for offline_model in offline_models:
                yield offline_model
def iterate ( self , name = None , owner = None ) : params = { 'expectmarker' : 'true' } if name is not None : params [ 'name' ] = name if owner is not None : params [ 'owner' ] = owner def _it ( ) : last_marker = params . get ( 'marker' ) if 'marker' in params and ( last_marker is None or len ( last_marker ) == 0 ) : return url = self . resource ( ) resp = self . _client . get ( url , params = params ) t = OfflineModels . parse ( self . _client , resp , obj = self ) params [ 'marker' ] = t . marker return t . offline_models while True : offline_models = _it ( ) if offline_models is None : break for offline_model in offline_models : yield offline_model
:param name: the prefix of offline model name
        :param owner:
        :return: