Previous template structure had direct handling of auth. This structure is designed to get auth from the hub instead.
20 lines
340 B
Python
20 lines
340 B
Python
"""
|
|
Global Pydantic schemas
|
|
|
|
Exports:
|
|
- CustomBaseModel: Schema used for all other Pydantic models
|
|
- ResourceName
|
|
"""
|
|
from pydantic import BaseModel
|
|
from typing import Optional
|
|
|
|
|
|
class CustomBaseModel(BaseModel):
|
|
pass
|
|
|
|
|
|
class ResourceName(CustomBaseModel):
|
|
service: str
|
|
organisation: str
|
|
resource: str
|
|
instance: Optional[str] = None
|