We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4f6f94 commit 75e1a66Copy full SHA for 75e1a66
msgraphcore/graph_session.py
@@ -1,6 +1,8 @@
1
"""
2
Graph Session
3
4
+from enum import Enum
5
+
6
from requests import Session
7
8
from msgraphcore.constants import BASE_URL, SDK_VERSION
@@ -11,6 +13,11 @@
11
13
from msgraphcore.middleware.retry_middleware import RetryMiddleware
12
14
15
16
+class APIVersion(str, Enum):
17
+ beta = 'beta'
18
+ v1 = 'v1.0'
19
20
21
class GraphSession(Session):
22
"""Extends Session with Graph functionality
23
@@ -22,7 +29,7 @@ def __init__(
29
scopes: [str] = ['.default'],
30
retry_config: dict = {},
24
31
middleware: list = [],
25
- api_version: str = 'v1.0'
32
+ api_version: APIVersion = APIVersion.v1,
26
33
):
27
34
super().__init__()
28
35
self._append_sdk_version()
0 commit comments