Module valolyticspy.dtos.valorant_api.season
Expand source code
from pydantic import BaseModel
from datetime import datetime
from typing import Optional
class Season(BaseModel):
"""
Represents a season in the Valorant API.
Attributes:
uuid (str): The unique identifier of the season.
displayName (str): The display name of the season.
type (str, optional): The type of the season. Defaults to None.
startTime (datetime): The start time of the season.
endTime (datetime): The end time of the season.
parentUuid (str, optional): The unique identifier of the parent season. Defaults to None.
assetPath (str): The asset path of the season.
"""
uuid: str
displayName: str
type: Optional[str] = None
startTime: datetime
endTime: datetime
parentUuid: Optional[str] = None
assetPath: str
Classes
class Season (**data: Any)-
Represents a season in the Valorant API.
Attributes
uuid:str- The unique identifier of the season.
displayName:str- The display name of the season.
type:str, optional- The type of the season. Defaults to None.
startTime:datetime- The start time of the season.
endTime:datetime- The end time of the season.
parentUuid:str, optional- The unique identifier of the parent season. Defaults to None.
assetPath:str- The asset path of the season.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class Season(BaseModel): """ Represents a season in the Valorant API. Attributes: uuid (str): The unique identifier of the season. displayName (str): The display name of the season. type (str, optional): The type of the season. Defaults to None. startTime (datetime): The start time of the season. endTime (datetime): The end time of the season. parentUuid (str, optional): The unique identifier of the parent season. Defaults to None. assetPath (str): The asset path of the season. """ uuid: str displayName: str type: Optional[str] = None startTime: datetime endTime: datetime parentUuid: Optional[str] = None assetPath: strAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar displayName : strvar endTime : datetime.datetimevar model_computed_fieldsvar model_configvar model_fieldsvar parentUuid : Optional[str]var startTime : datetime.datetimevar type : Optional[str]var uuid : str