docstr: Gets all sites associated with the account
  
  limit: limits the number of site information to be returned
  
  Returns
  response: metadata information corresponding to all sites
docstr_tok: ["Gets","all","sites","associated","with","the","account","limit",":","limits","the","number","of","site","information","to","be","returned","Returns","response",":","metadata","information","corresponding","to","all","sites"]
code: def get_all_sites(self, limit: int = None) -> List[Dict[Text, Any]]:
      """
      Gets all sites associated with the account
  
      limit: limits the number of site information to be returned
  
      Returns
      response: metadata information corresponding to all sites
      """
      url = "https://graph.microsoft.com/v1.0/sites?search=*"
      response = get_an_entity(url=url, bearer_token=self.bearer_token)
      if limit:
          response = response[:limit]
      return response
  
imports: from datetime import datetime, timezone
  from typing import Text, List, Dict, Any
  from mindsdb.integrations.handlers.sharepoint_handler.utils import bearer_token_request, get_an_entity, delete_an_entity, update_an_entity, create_an_entity
label_desc: Use image node_id 5 for calling the SharepointAPI obj's underlying member method code with example usage: obj.get_all_sites(limit) and returns: response