sinch.domains.conversation.models.v1.messages.categories.carousel.carousel_message module
- class sinch.domains.conversation.models.v1.messages.categories.carousel.carousel_message.CarouselMessage(
- *,
- cards: Annotated[list[CardMessage], Len(min_length=0, max_length=None)],
- choices: Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, BeforeValidator(func=_validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
SnakeCaseExtrasModel- Parameters:
cards (Annotated[list[CardMessage], Len(min_length=0, max_length=None)])
choices (Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, BeforeValidator(func=~sinch.domains.conversation.models.v1.messages.categories.choice.choice_option._validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- cards: Annotated[list[CardMessage], Len(min_length=0, max_length=None)]
- choices: Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, BeforeValidator(func=_validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], Len(min_length=0, max_length=None)] | None
- model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].