Skip to content

Commit ecc3950

Browse files
committed
Add enumerated lists for API version and sovereign clouds
1 parent 0b8c774 commit ecc3950

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

msgraphcore/enums.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from enum import Enum
2+
3+
4+
class APIVersion(str, Enum):
5+
"""Enumerated list of supported API Versions"""
6+
beta = 'beta'
7+
v1 = 'v1.0'
8+
9+
10+
class NationalClouds(str, Enum):
11+
"""Enumerated list of supported sovereign clouds"""
12+
13+
China = 'https://microsoftgraph.chinacloudapi.cn'
14+
Germany = 'https://graph.microsoft.de'
15+
Global = 'https://graph.microsoft.com'
16+
US_DoD = 'https://dod-graph.microsoft.us'
17+
US_GOV = 'https://graph.microsoft.us'

0 commit comments

Comments
 (0)