Module valolyticspy.dtos.valorant_api.bundle

Expand source code
from pydantic import BaseModel
from typing import Optional

class Bundle(BaseModel):
    """
    Represents a bundle in the Valorant API.

    Attributes:
        uuid (str): The unique identifier of the bundle.
        displayName (str): The display name of the bundle.
        displayNameSubText (str, optional): The subtext of the display name, if available.
        description (str): The description of the bundle.
        extraDescription (str, optional): An additional description of the bundle, if available.
        promoDescription (str, optional): The promotional description of the bundle, if available.
        useAdditionalContext (bool): Indicates whether additional context is used for the bundle.
        displayIcon (str): The URL of the display icon for the bundle.
        displayIcon2 (str): The URL of the secondary display icon for the bundle.
        verticalPromoImage (str, optional): The URL of the vertical promotional image for the bundle, if available.
        assetPath (str): The path to the asset for the bundle.
    """
    uuid: str
    displayName: str
    displayNameSubText: Optional[str] = None
    description: str
    extraDescription: Optional[str] = None
    promoDescription: Optional[str] = None
    useAdditionalContext: bool
    displayIcon: str
    displayIcon2: str
    verticalPromoImage: Optional[str] = None
    assetPath: str

Classes

class Bundle (**data: Any)

Represents a bundle in the Valorant API.

Attributes

uuid : str
The unique identifier of the bundle.
displayName : str
The display name of the bundle.
displayNameSubText : str, optional
The subtext of the display name, if available.
description : str
The description of the bundle.
extraDescription : str, optional
An additional description of the bundle, if available.
promoDescription : str, optional
The promotional description of the bundle, if available.
useAdditionalContext : bool
Indicates whether additional context is used for the bundle.
displayIcon : str
The URL of the display icon for the bundle.
displayIcon2 : str
The URL of the secondary display icon for the bundle.
verticalPromoImage : str, optional
The URL of the vertical promotional image for the bundle, if available.
assetPath : str
The path to the asset for the bundle.

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 Bundle(BaseModel):
    """
    Represents a bundle in the Valorant API.

    Attributes:
        uuid (str): The unique identifier of the bundle.
        displayName (str): The display name of the bundle.
        displayNameSubText (str, optional): The subtext of the display name, if available.
        description (str): The description of the bundle.
        extraDescription (str, optional): An additional description of the bundle, if available.
        promoDescription (str, optional): The promotional description of the bundle, if available.
        useAdditionalContext (bool): Indicates whether additional context is used for the bundle.
        displayIcon (str): The URL of the display icon for the bundle.
        displayIcon2 (str): The URL of the secondary display icon for the bundle.
        verticalPromoImage (str, optional): The URL of the vertical promotional image for the bundle, if available.
        assetPath (str): The path to the asset for the bundle.
    """
    uuid: str
    displayName: str
    displayNameSubText: Optional[str] = None
    description: str
    extraDescription: Optional[str] = None
    promoDescription: Optional[str] = None
    useAdditionalContext: bool
    displayIcon: str
    displayIcon2: str
    verticalPromoImage: Optional[str] = None
    assetPath: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var assetPath : str
var description : str
var displayIcon : str
var displayIcon2 : str
var displayName : str
var displayNameSubText : Optional[str]
var extraDescription : Optional[str]
var model_computed_fields
var model_config
var model_fields
var promoDescription : Optional[str]
var useAdditionalContext : bool
var uuid : str
var verticalPromoImage : Optional[str]