tools/traffic_annotation/scripts/update_annotations_doc.py
def _perform_requests(self, reqs):
    """Performs the requests |reqs| using batch update.
    """
    if not reqs:
      print("Warning, no requests provided. Returning.")
      return

    status = self._docs_service.documents().batchUpdate(
        body={
            "requests": reqs
        }, documentId=self.destination_id, fields="").execute()
    if self.verbose:
      print("#"*30)
      print(status)
      print("#"*30)
    return status
Performs the requests |reqs| using batch update.
    
Performs the requests |reqs| using batch update.
Performs the requests |reqs| using batch update .
def _perform_requests(self, reqs):
    if not reqs:
      print("Warning, no requests provided. Returning.")
      return
    status = self._docs_service.documents().batchUpdate(
        body={
            "requests": reqs
        }, documentId=self.destination_id, fields="").execute()
    if self.verbose:
      print("#"*30)
      print(status)
      print("#"*30)
    return status
def _perform_requests ( self , reqs ) : if not reqs : print ( "Warning, no requests provided. Returning." ) return status = self . _docs_service . documents ( ) . batchUpdate ( body = { "requests" : reqs } , documentId = self . destination_id , fields = "" ) . execute ( ) if self . verbose : print ( "#" * 30 ) print ( status ) print ( "#" * 30 ) return status
Performs the requests |reqs| using batch update.
Performs the requests |reqs| using batch update .
"""Performs the requests |reqs| using batch update.
    """
self
reqs