Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def list_drives_in_site_command(client, args):
    """
    This function run the list drives in site command
    :return: human_readable, context, result
    """
    site_id = args.get("site_id")
    limit = args.get("limit")
    next_page_url = args.get("next_page_url")

    if next_page_url:
        url_validation(next_page_url)

    result = client.list_drives_in_site(
        site_id=site_id, limit=limit, next_page_url=next_page_url
    )
    parsed_drive_items = [parse_key_to_context(item) for item in result["value"]]

    human_readable_content = [
        list_drives_human_readable_object(item) for item in parsed_drive_items
    ]

    context_entry = {
        "OdataContext": result.get("@odata.context", None),
        "Value": parsed_drive_items,
    }

    title = f"{INTEGRATION_NAME} - Drives information:"
    # Creating human readable for War room
    human_readable = tableToMarkdown(
        title, human_readable_content, headerTransform=pascalToSpace
    )

    # context == output
    context = {f"{INTEGRATION_NAME}.ListDrives(val.ID === obj.ID)": context_entry}

    return human_readable, context, result

    This function run the list drives in site command
    :return: human_readable, context, result
    
This function run the list drives in site command
This function run the list drives in site command
def list_drives_in_site_command(client, args):
    site_id = args.get("site_id")
    limit = args.get("limit")
    next_page_url = args.get("next_page_url")
    if next_page_url:
        url_validation(next_page_url)
    result = client.list_drives_in_site(
        site_id=site_id, limit=limit, next_page_url=next_page_url
    )
    parsed_drive_items = [parse_key_to_context(item) for item in result["value"]]
    human_readable_content = [
        list_drives_human_readable_object(item) for item in parsed_drive_items
    ]
    context_entry = {
        "OdataContext": result.get("@odata.context", None),
        "Value": parsed_drive_items,
    }
    title = f"{INTEGRATION_NAME} - Drives information:"
    human_readable = tableToMarkdown(
        title, human_readable_content, headerTransform=pascalToSpace
    )
    context = {f"{INTEGRATION_NAME}.ListDrives(val.ID === obj.ID)": context_entry}
    return human_readable, context, result
def list_drives_in_site_command ( client , args ) : site_id = args . get ( "site_id" ) limit = args . get ( "limit" ) next_page_url = args . get ( "next_page_url" ) if next_page_url : url_validation ( next_page_url ) result = client . list_drives_in_site ( site_id = site_id , limit = limit , next_page_url = next_page_url ) parsed_drive_items = [ parse_key_to_context ( item ) for item in result [ "value" ] ] human_readable_content = [ list_drives_human_readable_object ( item ) for item in parsed_drive_items ] context_entry = { "OdataContext" : result . get ( "@odata.context" , None ) , "Value" : parsed_drive_items , } title = f"{INTEGRATION_NAME} - Drives information:" human_readable = tableToMarkdown ( title , human_readable_content , headerTransform = pascalToSpace ) context = { f"{INTEGRATION_NAME}.ListDrives(val.ID === obj.ID)" : context_entry } return human_readable , context , result
This function run the list drives in site command
This function run the list drives in site command
"""
    This function run the list drives in site command
    :return: human_readable, context, result
    """ # Creating human readable for War room # context == output
human_readable, context, result
human_readable context result
client
args