terra.models.v2.athlete
1# Copyright 2022 Terra Enabling Developers Limited 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14import dataclasses 15import typing 16 17from terra.models import base_model 18from terra.models import user as user_ 19 20__all__ = ["Athlete", "AthleteCollection"] 21 22 23@dataclasses.dataclass 24class Athlete(base_model.TerraDataModel): 25 first_name: typing.Optional[str] = dataclasses.field(default=None) 26 last_name: typing.Optional[str] = dataclasses.field(default=None) 27 gender: typing.Optional[str] = dataclasses.field(default=None) 28 sex: typing.Optional[str] = dataclasses.field(default=None) 29 age: typing.Optional[int] = dataclasses.field(default=None) 30 date_of_birth: typing.Optional[str] = dataclasses.field(default=None) 31 bio: typing.Optional[str] = dataclasses.field(default=None) 32 email: typing.Optional[str] = dataclasses.field(default=None) 33 city: typing.Optional[str] = dataclasses.field(default=None) 34 state: typing.Optional[str] = dataclasses.field(default=None) 35 country: typing.Optional[str] = dataclasses.field(default=None) 36 37 38@dataclasses.dataclass 39class AthleteCollection(base_model.TerraDataModel): 40 user: user_.User = dataclasses.field() 41 athlete: Athlete = dataclasses.field() 42 type: typing.Optional[str] = dataclasses.field(default=None)
24@dataclasses.dataclass 25class Athlete(base_model.TerraDataModel): 26 first_name: typing.Optional[str] = dataclasses.field(default=None) 27 last_name: typing.Optional[str] = dataclasses.field(default=None) 28 gender: typing.Optional[str] = dataclasses.field(default=None) 29 sex: typing.Optional[str] = dataclasses.field(default=None) 30 age: typing.Optional[int] = dataclasses.field(default=None) 31 date_of_birth: typing.Optional[str] = dataclasses.field(default=None) 32 bio: typing.Optional[str] = dataclasses.field(default=None) 33 email: typing.Optional[str] = dataclasses.field(default=None) 34 city: typing.Optional[str] = dataclasses.field(default=None) 35 state: typing.Optional[str] = dataclasses.field(default=None) 36 country: typing.Optional[str] = dataclasses.field(default=None)
Athlete(first_name: Optional[str] = None, last_name: Optional[str] = None, gender: Optional[str] = None, sex: Optional[str] = None, age: Optional[int] = None, date_of_birth: Optional[str] = None, bio: Optional[str] = None, email: Optional[str] = None, city: Optional[str] = None, state: Optional[str] = None, country: Optional[str] = None)
Athlete( first_name: Optional[str] = None, last_name: Optional[str] = None, gender: Optional[str] = None, sex: Optional[str] = None, age: Optional[int] = None, date_of_birth: Optional[str] = None, bio: Optional[str] = None, email: Optional[str] = None, city: Optional[str] = None, state: Optional[str] = None, country: Optional[str] = None)
Inherited Members
39@dataclasses.dataclass 40class AthleteCollection(base_model.TerraDataModel): 41 user: user_.User = dataclasses.field() 42 athlete: Athlete = dataclasses.field() 43 type: typing.Optional[str] = dataclasses.field(default=None)
AthleteCollection(user: terra.models.user.User, athlete: terra.models.v2.athlete.Athlete, type: Optional[str] = None)
AthleteCollection( user: terra.models.user.User, athlete: terra.models.v2.athlete.Athlete, type: Optional[str] = None)