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.

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

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetObjectName : str
var assetPath : str
var model_computed_fields
var model_config
var model_fields
var 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.

self is explicitly positional-only to allow self as 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] = None

Ancestors

  • pydantic.main.BaseModel

Class variables

var backgroundColor : str
var color : str
var division : str
var divisionName : str
var largeIcon : Optional[str]
var model_computed_fields
var model_config
var model_fields
var rankTriangleDownIcon : Optional[str]
var rankTriangleUpIcon : Optional[str]
var smallIcon : Optional[str]
var tier : int
var tierName : str