sinch.domains.conversation.models.v1.messages.categories.card.card_message module
- class sinch.domains.conversation.models.v1.messages.categories.card.card_message.CardMessage(*, choices: ~typing.Annotated[list[~typing.Annotated[~sinch.domains.conversation.models.v1.messages.categories.choice.choice_options.CallChoiceMessage | ~sinch.domains.conversation.models.v1.messages.categories.choice.choice_options.LocationChoiceMessage | ~sinch.domains.conversation.models.v1.messages.categories.choice.choice_options.TextChoiceMessage | ~sinch.domains.conversation.models.v1.messages.categories.choice.choice_options.UrlChoiceMessage | ~sinch.domains.conversation.models.v1.messages.categories.choice.choice_options.CalendarChoiceMessage | ~sinch.domains.conversation.models.v1.messages.categories.choice.choice_options.ShareLocationChoiceMessage, <sinch.core.models.internal.unions.ResolveUnion object at 0x7fe3f56ba4d0>, ~pydantic.functional_validators.BeforeValidator(func=~sinch.domains.conversation.models.v1.messages.categories.choice.choice_option._validate_exactly_one_choice_message_key, json_schema_input_type=PydanticUndefined)]], ~annotated_types.Len(min_length=0, max_length=None)] | None = None, description: ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None = None, height: ~typing.Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None = None, title: ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None = None, media_message: ~sinch.domains.conversation.models.v1.messages.categories.media.media_properties.MediaProperties | None = None, message_properties: ~sinch.domains.conversation.models.v1.messages.categories.card.message_properties.MessageProperties | None = None, **extra_data: ~typing.Any)[source]
Bases:
SnakeCaseExtrasModel- Parameters:
choices (Annotated[list[Annotated[CallChoiceMessage | LocationChoiceMessage | TextChoiceMessage | UrlChoiceMessage | CalendarChoiceMessage | ShareLocationChoiceMessage, <sinch.core.models.internal.unions.ResolveUnion object at 0x7fe3f56ba4d0>, 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)
description (Annotated[str, Strict(strict=True)] | None)
height (Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
title (Annotated[str, Strict(strict=True)] | None)
media_message (MediaProperties | None)
message_properties (MessageProperties | None)
extra_data (Any)
- choices: Len(min_length=0, max_length=None)] | None
- description: Annotated[str, Strict(strict=True)] | None
- height: Literal['UNSPECIFIED_HEIGHT', 'SHORT', 'MEDIUM', 'TALL'] | Annotated[str, Strict(strict=True)] | None
- title: Annotated[str, Strict(strict=True)] | None
- media_message: MediaProperties | None
- message_properties: MessageProperties | None
- model_config = {'extra': 'allow', 'populate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(_SnakifyExtrasOnInit__context: Any) None
Marks applied non-
Nonedefaults as set.- Parameters:
_SnakifyExtrasOnInit__context (Any)
- Return type:
None