code: def list_packets(self, name=None, start=None, stop=None, page_size=500, descending=False):
          
          params = {
              'order': 'desc' if descending else 'asc',
          }
          if name is not None:
              params['name'] = name
          if page_size is not None:
              params['limit'] = page_size
          if start is not None:
              params['start'] = to_isostring(start)
          if stop is not None:
              params['stop'] = to_isostring(stop)
  
          return pagination.Iterator(
              client=self._client,
              path='/archive/{}/packets'.format(self._instance),
              params=params,
              response_class=rest_pb2.ListPacketsResponse,
              items_key='packet',
              item_mapper=Packet,
          )
docs: Reads packet information between the specified start and stop
          time.
  
          Packets are sorted by generation time and sequence number.
  
          :param ~datetime.datetime start: Minimum generation time of the returned
                                           packets (inclusive)
          :param ~datetime.datetime stop: Maximum genreation time of the returned
                                          packets (exclusive)
          :param int page_size: Page size of underlying requests. Higher values imply
                                less overhead, but risk hitting the maximum message size limit.
          :param bool descending: If set to ``True`` packets are fetched in reverse
                                  order (most recent first).
          :rtype: ~collections.Iterable[.Packet]