Module valolyticspy.dtos.valorant_api.competitive_tier
Expand source code
from pydantic import BaseModel
from typing import List, Optional
class Tier(BaseModel):
"""
Represents a competitive tier in the Valorant API.
Attributes:
tier (int): The tier value.
tierName (str): The name of the tier.
division (str): The division value.
divisionName (str): The name of the division.
color (str): The color associated with the tier.
backgroundColor (str): The background color associated with the tier.
smallIcon (Optional[str]): The URL of the small icon for the tier (if available).
largeIcon (Optional[str]): The URL of the large icon for the tier (if available).
rankTriangleDownIcon (Optional[str]): The URL of the rank triangle down icon for the tier (if available).
rankTriangleUpIcon (Optional[str]): The URL of the rank triangle up icon for the tier (if available).
"""
tier: int
tierName: str
division: str
divisionName: str
color: str
backgroundColor: str
smallIcon: Optional[str] = None
largeIcon: Optional[str] = None
rankTriangleDownIcon: Optional[str] = None
rankTriangleUpIcon: Optional[str] = None
class CompetitiveTier(BaseModel):
"""
Represents a competitive tier in the Valorant API.
Attributes:
uuid (str): The unique identifier of the competitive tier.
assetObjectName (str): The name of the asset object associated with the competitive tier.
tiers (List[Tier]): A list of tiers associated with the competitive tier.
assetPath (str): The path to the asset associated with the competitive tier.
"""
uuid: str
assetObjectName: str
tiers: List[Tier]
assetPath: str
Classes
class CompetitiveTier (**data: Any)-
Represents a competitive tier in the Valorant API.
Attributes
uuid:str- The unique identifier of the competitive tier.
assetObjectName:str- The name of the asset object associated with the competitive tier.
tiers:List[Tier]- A list of tiers associated with the competitive tier.
assetPath:str- The path to the asset associated with the competitive tier.
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 CompetitiveTier(BaseModel): """ Represents a competitive tier in the Valorant API. Attributes: uuid (str): The unique identifier of the competitive tier. assetObjectName (str): The name of the asset object associated with the competitive tier. tiers (List[Tier]): A list of tiers associated with the competitive tier. assetPath (str): The path to the asset associated with the competitive tier. """ uuid: str assetObjectName: str tiers: List[Tier] assetPath: strAncestors
- pydantic.main.BaseModel
Class variables
var assetObjectName : strvar assetPath : strvar model_computed_fieldsvar model_configvar model_fieldsvar tiers : List[Tier]var uuid : str
class Tier (**data: Any)-
Represents a competitive tier in the Valorant API.
Attributes
tier:int- The tier value.
tierName:str- The name of the tier.
division:str- The division value.
divisionName:str- The name of the division.
color:str- The color associated with the tier.
backgroundColor:str- The background color associated with the tier.
smallIcon:Optional[str]- The URL of the small icon for the tier (if available).
largeIcon:Optional[str]- The URL of the large icon for the tier (if available).
rankTriangleDownIcon:Optional[str]- The URL of the rank triangle down icon for the tier (if available).
rankTriangleUpIcon:Optional[str]- The URL of the rank triangle up icon for the tier (if available).
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 Tier(BaseModel): """ Represents a competitive tier in the Valorant API. Attributes: tier (int): The tier value. tierName (str): The name of the tier. division (str): The division value. divisionName (str): The name of the division. color (str): The color associated with the tier. backgroundColor (str): The background color associated with the tier. smallIcon (Optional[str]): The URL of the small icon for the tier (if available). largeIcon (Optional[str]): The URL of the large icon for the tier (if available). rankTriangleDownIcon (Optional[str]): The URL of the rank triangle down icon for the tier (if available). rankTriangleUpIcon (Optional[str]): The URL of the rank triangle up icon for the tier (if available). """ tier: int tierName: str division: str divisionName: str color: str backgroundColor: str smallIcon: Optional[str] = None largeIcon: Optional[str] = None rankTriangleDownIcon: Optional[str] = None rankTriangleUpIcon: Optional[str] = NoneAncestors
- pydantic.main.BaseModel
Class variables
var backgroundColor : strvar color : strvar division : strvar divisionName : strvar largeIcon : Optional[str]var model_computed_fieldsvar model_configvar model_fieldsvar rankTriangleDownIcon : Optional[str]var rankTriangleUpIcon : Optional[str]var smallIcon : Optional[str]var tier : intvar tierName : str