Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def download_file_command(client, args):
    """
    This function runs download file command
    :return: FileResult object
    """
    object_type = args.get("object_type")
    object_type_id = args.get("object_type_id")
    item_id = args.get("item_id")

    result = client.download_file(
        object_type=object_type, object_type_id=object_type_id, item_id=item_id
    )
    stored_img = fileResult(item_id, result.content)
    return stored_img

    This function runs download file command
    :return: FileResult object
    
This function runs download file command
This function runs download file command
def download_file_command(client, args):
    object_type = args.get("object_type")
    object_type_id = args.get("object_type_id")
    item_id = args.get("item_id")
    result = client.download_file(
        object_type=object_type, object_type_id=object_type_id, item_id=item_id
    )
    stored_img = fileResult(item_id, result.content)
    return stored_img
def download_file_command ( client , args ) : object_type = args . get ( "object_type" ) object_type_id = args . get ( "object_type_id" ) item_id = args . get ( "item_id" ) result = client . download_file ( object_type = object_type , object_type_id = object_type_id , item_id = item_id ) stored_img = fileResult ( item_id , result . content ) return stored_img
This function runs download file command
This function runs download file command
"""
    This function runs download file command
    :return: FileResult object
    """
None
client
args