-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy path_enums.py
More file actions
43 lines (31 loc) · 1.06 KB
/
_enums.py
File metadata and controls
43 lines (31 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
#pylint: disable=invalid-name
from enum import Enum
class APIVersion(str, Enum):
"""Enumerated list of supported API Versions"""
beta = 'beta'
v1 = 'v1.0'
def __str__(self):
return self.value
class FeatureUsageFlag(int, Enum):
"""Enumerated list of values used to flag usage of specific middleware"""
NONE = 0
REDIRECT_HANDLER_ENABLED = 1
RETRY_HANDLER_ENABLED = 2
AUTH_HANDLER_ENABLED = 4
DEFAULT_HTTP_PROVIDER_ENABLED = 8
LOGGING_HANDLER_ENABLED = 16
def __str__(self):
return self.value
class NationalClouds(str, Enum):
"""Enumerated list of supported sovereign clouds"""
China = 'https://microsoftgraph.chinacloudapi.cn'
Germany = 'https://graph.microsoft.de'
Global = 'https://graph.microsoft.com'
US_DoD = 'https://dod-graph.microsoft.us'
US_GOV = 'https://graph.microsoft.us'
def __str__(self):
return self.value