Module valolyticspy.dtos.valorant_api.gear
Expand source code
from pydantic import BaseModel
from valolyticspy.dtos.valorant_api.shop_data import ShopData
class Gear(BaseModel):
"""
Represents a gear item in the Valorant API.
Attributes:
uuid (str): The unique identifier of the gear item.
displayName (str): The display name of the gear item.
description (str): The description of the gear item.
displayIcon (str): The URL of the display icon for the gear item.
assetPath (str): The path to the asset file for the gear item.
shopData (ShopData): The shop data for the gear item.
"""
uuid: str
displayName: str
description: str
displayIcon: str
assetPath: str
shopData: ShopData
Classes
class Gear (**data: Any)-
Represents a gear item in the Valorant API.
Attributes
uuid:str- The unique identifier of the gear item.
displayName:str- The display name of the gear item.
description:str- The description of the gear item.
displayIcon:str- The URL of the display icon for the gear item.
assetPath:str- The path to the asset file for the gear item.
shopData:ShopData- The shop data for the gear item.
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 Gear(BaseModel): """ Represents a gear item in the Valorant API. Attributes: uuid (str): The unique identifier of the gear item. displayName (str): The display name of the gear item. description (str): The description of the gear item. displayIcon (str): The URL of the display icon for the gear item. assetPath (str): The path to the asset file for the gear item. shopData (ShopData): The shop data for the gear item. """ uuid: str displayName: str description: str displayIcon: str assetPath: str shopData: ShopDataAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar description : strvar displayIcon : strvar displayName : strvar model_computed_fieldsvar model_configvar model_fieldsvar shopData : ShopDatavar uuid : str