Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def get_environment_endpoint(

@staticmethod
def get_endpoint_suffix(cloud: PowerPlatformCloud, cloud_base_address: str) -> str:
return {
res = {
PowerPlatformCloud.LOCAL: "api.powerplatform.localhost",
PowerPlatformCloud.EXP: "api.exp.powerplatform.com",
PowerPlatformCloud.DEV: "api.dev.powerplatform.com",
Expand All @@ -347,7 +347,11 @@ def get_endpoint_suffix(cloud: PowerPlatformCloud, cloud_base_address: str) -> s
PowerPlatformCloud.EX: "api.powerplatform.eaglex.ic.gov",
PowerPlatformCloud.RX: "api.powerplatform.microsoft.scloud",
PowerPlatformCloud.OTHER: cloud_base_address,
}.get(cloud, ValueError(f"Invalid cloud category value: {cloud}"))
}.get(cloud)

if not res:
raise ValueError(f"Invalid cloud category value: {cloud}")
Comment on lines +352 to +353
return res
Comment thread
rodrigobr-msft marked this conversation as resolved.

@staticmethod
def get_id_suffix_length(cloud: PowerPlatformCloud) -> int:
Expand Down
Loading