2021-08-01 14:27:44 -07:00
|
|
|
# generated by datamodel-codegen:
|
|
|
|
# filename: schema/api/teams/createTeam.json
|
2021-11-01 07:22:01 -07:00
|
|
|
# timestamp: 2021-10-31T21:55:34+00:00
|
2021-08-01 14:27:44 -07:00
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import List, Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
2021-08-17 08:45:46 -07:00
|
|
|
from ...entity.teams import team
|
|
|
|
from ...type import basic, profile
|
2021-08-01 14:27:44 -07:00
|
|
|
|
|
|
|
|
2021-10-21 23:51:38 +02:00
|
|
|
class CreateTeamEntityRequest(BaseModel):
|
2021-08-01 14:27:44 -07:00
|
|
|
name: team.TeamName
|
|
|
|
displayName: Optional[str] = Field(
|
|
|
|
None,
|
|
|
|
description="Optional name used for display purposes. Example 'Marketing Team'",
|
|
|
|
)
|
|
|
|
description: Optional[str] = Field(
|
|
|
|
None, description='Optional description of the team'
|
|
|
|
)
|
2021-08-17 08:45:46 -07:00
|
|
|
profile: Optional[profile.Profile] = Field(
|
|
|
|
None, description='Optional team profile information'
|
|
|
|
)
|
2021-08-01 14:27:44 -07:00
|
|
|
users: Optional[List[basic.Uuid]] = Field(
|
|
|
|
None, description='Optional IDs of users that are part of the team'
|
|
|
|
)
|