docs: def write_to(self, content, content_type):
      """Writes text content to this item.
  
      Args:
        content: the text content to be written.
        content_type: the type of text content.
      Raises:
        Exception if there was an error requesting the item's content.
      """
      try:
        self._api.object_upload(self._bucket, self._key, content, content_type)
      except Exception as e:
        raise e