Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def list_drives_in_site(self, site_id=None, limit=None, next_page_url=None):
        """
        Returns the list of Drive resources available for a target Site
        :param site_id: selected Site ID.
        :param limit: sets the page size of results.
        :param next_page_url: the URL for the next results page.
        :return:
        """
        if not any([site_id, next_page_url]):
            raise DemistoException(
                "Please pass at least one argument to this command: \n"
                "site_id: if you want to get all sites.\n"
                "limit: if you want to limit the number of command's results. \n"
                "next_page_url: if you have used the limit argument."
            )

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

        if next_page_url:
            url = url_validation(next_page_url)
        else:
            url = f"{self.base_url}/sites/{site_id}/drives"

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

        Returns the list of Drive resources available for a target Site
        :param site_id: selected Site ID.
        :param limit: sets the page size of results.
        :param next_page_url: the URL for the next results page.
        :return:
        
Returns the list of Drive resources available for a target Site
Returns the list of Drive resources available for a target Site
def list_drives_in_site(self, site_id=None, limit=None, next_page_url=None):
        if not any([site_id, next_page_url]):
            raise DemistoException(
                "Please pass at least one argument to this command: \n"
                "site_id: if you want to get all sites.\n"
                "limit: if you want to limit the number of command's results. \n"
                "next_page_url: if you have used the limit argument."
            )
        if limit:
            params = urlencode({"$top": limit})
        else:
            params = ""
        if next_page_url:
            url = url_validation(next_page_url)
        else:
            url = f"{self.base_url}/sites/{site_id}/drives"
        return self.http_call(
            "GET", full_url=url, params=params, headers=self.headers, url_suffix=""
        )
def list_drives_in_site ( self , site_id = None , limit = None , next_page_url = None ) : if not any ( [ site_id , next_page_url ] ) : raise DemistoException ( "Please pass at least one argument to this command: \n" "site_id: if you want to get all sites.\n" "limit: if you want to limit the number of command's results. \n" "next_page_url: if you have used the limit argument." ) if limit : params = urlencode ( { "$top" : limit } ) else : params = "" if next_page_url : url = url_validation ( next_page_url ) else : url = f"{self.base_url}/sites/{site_id}/drives" return self . http_call ( "GET" , full_url = url , params = params , headers = self . headers , url_suffix = "" )
Returns the list of Drive resources available for a target Site
Returns the list of Drive resources available for a target Site
"""
        Returns the list of Drive resources available for a target Site
        :param site_id: selected Site ID.
        :param limit: sets the page size of results.
        :param next_page_url: the URL for the next results page.
        :return:
        """
None
self
site_id
selected Site ID.
selected Site ID .
limit
sets the page size of results.
sets the page size of results .
next_page_url
the URL for the next results page.
the URL for the next results page .