Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def list_sharepoint_sites_command(client, *_):
    """
    This function runs list tenant site command
    :return: human_readable, context, result
    """
    result = client.list_sharepoint_sites()

    parsed_sites_items = [parse_key_to_context(item) for item in result["value"]]

    human_readable_content = [
        list_share_point_sites_human_readable_object(item)
        for item in parsed_sites_items
    ]

    context_entry = {
        "OdataContext": result.get("@odata.context"),
        "Value": parsed_sites_items,
    }
    context = {f"{INTEGRATION_NAME}.ListSites(val.ID === obj.ID)": context_entry}

    title = "List Sites:"
    human_readable = tableToMarkdown(
        title, human_readable_content, headerTransform=pascalToSpace
    )

    return human_readable, context, result

    This function runs list tenant site command
    :return: human_readable, context, result
    
This function runs list tenant site command
This function runs list tenant site command
def list_sharepoint_sites_command(client, *_):
    result = client.list_sharepoint_sites()
    parsed_sites_items = [parse_key_to_context(item) for item in result["value"]]
    human_readable_content = [
        list_share_point_sites_human_readable_object(item)
        for item in parsed_sites_items
    ]
    context_entry = {
        "OdataContext": result.get("@odata.context"),
        "Value": parsed_sites_items,
    }
    context = {f"{INTEGRATION_NAME}.ListSites(val.ID === obj.ID)": context_entry}
    title = "List Sites:"
    human_readable = tableToMarkdown(
        title, human_readable_content, headerTransform=pascalToSpace
    )
    return human_readable, context, result
def list_sharepoint_sites_command ( client , * _ ) : result = client . list_sharepoint_sites ( ) parsed_sites_items = [ parse_key_to_context ( item ) for item in result [ "value" ] ] human_readable_content = [ list_share_point_sites_human_readable_object ( item ) for item in parsed_sites_items ] context_entry = { "OdataContext" : result . get ( "@odata.context" ) , "Value" : parsed_sites_items , } context = { f"{INTEGRATION_NAME}.ListSites(val.ID === obj.ID)" : context_entry } title = "List Sites:" human_readable = tableToMarkdown ( title , human_readable_content , headerTransform = pascalToSpace ) return human_readable , context , result
This function runs list tenant site command
This function runs list tenant site command
"""
    This function runs list tenant site command
    :return: human_readable, context, result
    """
human_readable, context, result
human_readable context result
client