|  | 
|  | 1 | +from typing import Dict | 
|  | 2 | +from ms_graph.session import GraphSession | 
|  | 3 | + | 
|  | 4 | + | 
|  | 5 | +class Workbooks(): | 
|  | 6 | + | 
|  | 7 | + """ | 
|  | 8 | + ## Overview: | 
|  | 9 | + ---- | 
|  | 10 | + You can use Microsoft Graph to allow web and mobile applications to | 
|  | 11 | + read and modify Excel workbooks stored in OneDrive for Business, SharePoint | 
|  | 12 | + site or Group drive. The Workbook (or Excel file) resource contains all the | 
|  | 13 | + other Excel resources through relationships. You can access a workbook through | 
|  | 14 | + the Drive API by identifying the location of the file in the URL. | 
|  | 15 | + """ | 
|  | 16 | + | 
|  | 17 | + def __init__(self, session: object) -> None: | 
|  | 18 | + """Initializes the `Workbooks` object. | 
|  | 19 | + | 
|  | 20 | + ### Parameters | 
|  | 21 | + ---- | 
|  | 22 | + session : object | 
|  | 23 | + An authenticated session for our Microsoft Graph Client. | 
|  | 24 | + """ | 
|  | 25 | + | 
|  | 26 | + # Set the session. | 
|  | 27 | + self.graph_session: GraphSession = session | 
|  | 28 | + | 
|  | 29 | + # Set the endpoint. | 
|  | 30 | + self.endpoint = 'workbook' | 
0 commit comments