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.

self is explicitly positional-only to allow self as 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: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var displayName : str
var endTime : datetime.datetime
var model_computed_fields
var model_config
var model_fields
var parentUuid : Optional[str]
var startTime : datetime.datetime
var type : Optional[str]
var uuid : str