def get_content(self):
     """Download the contents of the primary stream (file) of a DriveItem. Only driveItems with the file property
     can be downloaded. """
     from office365.graph_client import DownloadContentQuery
     qry = DownloadContentQuery(self)
     self.context.add_query(qry)
     return qry.return_type
    def convert(self, format_name):
        """Converts the contents of an item in a specific format

        :param format_name: Specify the format the item's content should be downloaded as.
        :type format_name: str
        :rtype: ClientResult
        """
        from office365.graph_client import DownloadContentQuery
        qry = DownloadContentQuery(self, format_name)
        self.context.add_query(qry)
        return qry.return_type