Google - GenAI Product Catalog
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Model

Optional

BaseModel

CategoryList Objects

class CategoryList(BaseModel)

values

Product Objects

class Product(BaseModel)

id

description

category

image_uri

ImageRequest Objects

class ImageRequest(BaseModel)

image

AttributeValue Objects

class AttributeValue(BaseModel)

attribute_name

attribute_value

ProductAttributes Objects

class ProductAttributes(BaseModel)

product_attributes

MarketingRequest Objects

class MarketingRequest(BaseModel)

description

attributes

TextValue Objects

class TextValue(BaseModel)

text

Status Objects

class Status(BaseModel)

status

Liveliness Objects

class Liveliness(BaseModel)

message

parse_project_attributes_from_dict

def parse_project_attributes_from_dict(obj: dict) -> ProductAttributes

parse_list_to_dict

def parse_list_to_dict(obj: list) -> dict

attribute_values_to_dict

def attribute_values_to_dict(values: list[AttributeValue]) -> dict[str, str]

dict_to_attribute_values

def dict_to_attribute_values(values: dict[str, str]) -> list[AttributeValue]