template for service rather than hub

Previous template structure had direct handling of auth. This structure is designed to get auth from the hub instead.
This commit is contained in:
Chris Milne 2026-06-05 16:39:14 +01:00
parent ed4a3fe0b8
commit ea9803536a
27 changed files with 223 additions and 117 deletions

View file

@ -1,12 +1,20 @@
"""
Global Pydantic models
Global Pydantic schemas
Exports:
- CustomBaseModel: Pydantic BaseModel with extra parameters
- 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