in dell_ai/platforms.py [0:0]
def get_platform(client: "DellAIClient", platform_id: str) -> Platform:
"""
Get detailed information about a specific platform.
Args:
client: The Dell AI client
platform_id: The platform SKU ID
Returns:
Detailed platform information as a Platform object
Raises:
ResourceNotFoundError: If the platform is not found
AuthenticationError: If authentication fails
APIError: If the API returns an error
"""
try:
endpoint = f"{constants.PLATFORMS_ENDPOINT}/{platform_id}"
response = client._make_request("GET", endpoint)
return Platform.model_validate(response)
except ResourceNotFoundError:
# Reraise with more specific information
raise ResourceNotFoundError("platform", platform_id)