parameters: (self, entry=None, id_url_string=None,
        batch_id_string=None, operation_string=None)
return_statement: return entry
docstring: Logic for populating members of a BatchEntry and adding to the feed.
  
      If the entry is not a BatchEntry, it is converted to a BatchEntry so
      that the batch specific members will be present.
  
      The id_url_string can be used in place of an entry if the batch operation
      applies to a URL. For example query and delete operations require just
      the URL of an entry, no body is sent in the HTTP request. If an
      id_url_string is sent instead of an entry, a BatchEntry is created and
      added to the feed.
  
      This method also assigns the desired batch id to the entry so that it
      can be referenced in the server's response. If the batch_id_string is
      None, this method will assign a batch_id to be the index at which this
      entry will be in the feed's entry list.
  
      Args:
        entry: BatchEntry, atom.data.Entry, or another Entry flavor (optional)
            The entry which will be sent to the server as part of the batch
            request. The item must have a valid atom id so that the server
            knows which entry this request references.
        id_url_string: str (optional) The URL of the entry to be acted on. You
            can find this URL in the text member of the atom id for an entry.
            If an entry is not sent, this id will be used to construct a new
            BatchEntry which will be added to the request feed.
        batch_id_string: str (optional) The batch ID to be used to reference
            this batch operation in the results feed. If this parameter is None,
            the current length of the feed's entry array will be used as a
            count. Note that batch_ids should either always be specified or
            never, mixing could potentially result in duplicate batch ids.
        operation_string: str (optional) The desired batch operation which will
            set the batch_operation.type member of the entry. Options are
            'insert', 'update', 'delete', and 'query'
  
      Raises:
        MissingRequiredParameters: Raised if neither an id_ url_string nor an
            entry are provided in the request.
  
      Returns:
        The added entry.
docstring_summary: Logic for populating members of a BatchEntry and adding to the feed.
docstring_tokens: Logic for populating members of a BatchEntry and adding to the feed .
function: def add_batch_entry(self, entry=None, id_url_string=None,
        batch_id_string=None, operation_string=None):
      """Logic for populating members of a BatchEntry and adding to the feed.
  
      If the entry is not a BatchEntry, it is converted to a BatchEntry so
      that the batch specific members will be present.
  
      The id_url_string can be used in place of an entry if the batch operation
      applies to a URL. For example query and delete operations require just
      the URL of an entry, no body is sent in the HTTP request. If an
      id_url_string is sent instead of an entry, a BatchEntry is created and
      added to the feed.
  
      This method also assigns the desired batch id to the entry so that it
      can be referenced in the server's response. If the batch_id_string is
      None, this method will assign a batch_id to be the index at which this
      entry will be in the feed's entry list.
  
      Args:
        entry: BatchEntry, atom.data.Entry, or another Entry flavor (optional)
            The entry which will be sent to the server as part of the batch
            request. The item must have a valid atom id so that the server
            knows which entry this request references.
        id_url_string: str (optional) The URL of the entry to be acted on. You
            can find this URL in the text member of the atom id for an entry.
            If an entry is not sent, this id will be used to construct a new
            BatchEntry which will be added to the request feed.
        batch_id_string: str (optional) The batch ID to be used to reference
            this batch operation in the results feed. If this parameter is None,
            the current length of the feed's entry array will be used as a
            count. Note that batch_ids should either always be specified or
            never, mixing could potentially result in duplicate batch ids.
        operation_string: str (optional) The desired batch operation which will
            set the batch_operation.type member of the entry. Options are
            'insert', 'update', 'delete', and 'query'
  
      Raises:
        MissingRequiredParameters: Raised if neither an id_ url_string nor an
            entry are provided in the request.
  
      Returns:
        The added entry.
      """
      if entry is None and id_url_string is None:
        raise MissingRequiredParameters('supply either an entry or URL string')
      if entry is None and id_url_string is not None:
        entry = BatchEntry(id=atom.data.Id(text=id_url_string))
      if batch_id_string is not None:
        entry.batch_id = BatchId(text=batch_id_string)
      elif entry.batch_id is None or entry.batch_id.text is None:
        entry.batch_id = BatchId(text=str(len(self.entry)))
      if operation_string is not None:
        entry.batch_operation = BatchOperation(type=operation_string)
      self.entry.append(entry)
      return entry
function_tokens: def add_batch_entry ( self , entry = None , id_url_string = None , batch_id_string = None , operation_string = None ) : if entry is None and id_url_string is None : raise MissingRequiredParameters ( 'supply either an entry or URL string' ) if entry is None and id_url_string is not None : entry = BatchEntry ( id = atom . data . Id ( text = id_url_string ) ) if batch_id_string is not None : entry . batch_id = BatchId ( text = batch_id_string ) elif entry . batch_id is None or entry . batch_id . text is None : entry . batch_id = BatchId ( text = str ( len ( self . entry ) ) ) if operation_string is not None : entry . batch_operation = BatchOperation ( type = operation_string ) self . entry . append ( entry ) return entry