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:
parent
ed4a3fe0b8
commit
ea9803536a
27 changed files with 223 additions and 117 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue