Skip to content

Commit ff90ffe

Browse files
committed
Add DriveItems Service
1 parent 4340d6c commit ff90ffe

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

ms_graph/drive_items.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
from typing import List
2+
from typing import Dict
3+
from typing import Union
4+
5+
from ms_graph.session import GraphSession
6+
7+
8+
class DriveItems():
9+
10+
"""
11+
## Overview:
12+
----
13+
The driveItem resource represents a file, folder,
14+
or other item stored in a drive. All file system
15+
objects in OneDrive and SharePoint are returned as
16+
driveItem resources.
17+
"""
18+
19+
def __init__(self, session: object) -> None:
20+
"""Initializes the `DriveItems` object.
21+
22+
### Parameters
23+
----
24+
session : object
25+
An authenticated session for our Microsoft Graph Client.
26+
"""
27+
28+
# Set the session.
29+
self.graph_session: GraphSession = session
30+
31+
# Set the endpoint.
32+
self.endpoint = 'drive'
33+
self.collections_endpoint = 'drives'

0 commit comments

Comments
 (0)