Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def list_drive_content(
        self, object_type, object_type_id, item_id=None, limit=None, next_page_url=None
    ):
        """
        This command list all the drive's files and folders
        :param object_type: ms graph resource.
        :param object_type_id: ms graph resource id.
        :param item_id: ms graph item_id. optional.
        :param limit: sets the page size of results. optional.
        :param next_page_url: the URL for the next results page. optional.
        :return: graph api raw response
        """
        if next_page_url:
            url = url_validation(next_page_url)
        else:
            if not item_id:
                item_id = "root"
            if object_type == "drives":
                url = f"{object_type}/{object_type_id}/items/{item_id}/children"

            elif object_type in ["groups", "sites", "users"]:
                url = f"{object_type}/{object_type_id}/drive/items/{item_id}/children"

            url = self.base_url + f"/{url}"

        if limit:
            params = urlencode({"$top": limit})
        else:
            params = ""

        return self.http_call(
            method="GET",
            full_url=url,
            url_suffix="",
            params=params,
            headers=self.headers,
        )

        This command list all the drive's files and folders
        :param object_type: ms graph resource.
        :param object_type_id: ms graph resource id.
        :param item_id: ms graph item_id. optional.
        :param limit: sets the page size of results. optional.
        :param next_page_url: the URL for the next results page. optional.
        :return: graph api raw response
        
This command list all the drive's files and folders
This command list all the drive ' s files and folders
def list_drive_content(
        self, object_type, object_type_id, item_id=None, limit=None, next_page_url=None
    ):
        if next_page_url:
            url = url_validation(next_page_url)
        else:
            if not item_id:
                item_id = "root"
            if object_type == "drives":
                url = f"{object_type}/{object_type_id}/items/{item_id}/children"
            elif object_type in ["groups", "sites", "users"]:
                url = f"{object_type}/{object_type_id}/drive/items/{item_id}/children"
            url = self.base_url + f"/{url}"
        if limit:
            params = urlencode({"$top": limit})
        else:
            params = ""
        return self.http_call(
            method="GET",
            full_url=url,
            url_suffix="",
            params=params,
            headers=self.headers,
        )
def list_drive_content ( self , object_type , object_type_id , item_id = None , limit = None , next_page_url = None ) : if next_page_url : url = url_validation ( next_page_url ) else : if not item_id : item_id = "root" if object_type == "drives" : url = f"{object_type}/{object_type_id}/items/{item_id}/children" elif object_type in [ "groups" , "sites" , "users" ] : url = f"{object_type}/{object_type_id}/drive/items/{item_id}/children" url = self . base_url + f"/{url}" if limit : params = urlencode ( { "$top" : limit } ) else : params = "" return self . http_call ( method = "GET" , full_url = url , url_suffix = "" , params = params , headers = self . headers , )
This command list all the drive's files and folders
This command list all the drive ' s files and folders
"""
        This command list all the drive's files and folders
        :param object_type: ms graph resource.
        :param object_type_id: ms graph resource id.
        :param item_id: ms graph item_id. optional.
        :param limit: sets the page size of results. optional.
        :param next_page_url: the URL for the next results page. optional.
        :return: graph api raw response
        """
graph api raw response
graph api raw response
self
object_type
ms graph resource.
ms graph resource .
object_type_id
ms graph resource id.
ms graph resource id .
item_id
ms graph item_id. optional.
ms graph item_id . optional .
limit
sets the page size of results. optional.
sets the page size of results . optional .
next_page_url
the URL for the next results page. optional.
the URL for the next results page . optional .