Skip to content

Commit

Permalink
fix: issue with national cloud/version enums and base url being set #818
Browse files Browse the repository at this point in the history


Update _enums.py
  • Loading branch information
baywet authored Jan 30, 2025
2 parents af681d2 + 1b16f99 commit 4ee7887
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/msgraph_core/_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class APIVersion(str, Enum):
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"""
Expand All @@ -23,6 +26,9 @@ class FeatureUsageFlag(int, Enum):
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"""
Expand All @@ -32,3 +38,6 @@ class NationalClouds(str, Enum):
Global = 'https://graph.microsoft.com'
US_DoD = 'https://dod-graph.microsoft.us'
US_GOV = 'https://graph.microsoft.us'

def __str__(self):
return self.value

0 comments on commit 4ee7887

Please sign in to comment.