sinch.domains.voice.models.v2.sessions.response package

class sinch.domains.voice.models.v2.sessions.response.SessionResponse(
*,
sessionId: Annotated[str, Strict(strict=True)],
projectId: Annotated[str, Strict(strict=True)],
serviceId: Annotated[str, Strict(strict=True)],
calls: Annotated[list[Call], Len(min_length=0, max_length=None)],
createTime: datetime,
updateTime: datetime | None = None,
endTime: datetime | None = None,
state: Literal['QUEUED', 'IN_PROGRESS', 'COMPLETED', 'EXPIRED'] | Annotated[str, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • sessionId (Annotated[str, Strict(strict=True)])

  • projectId (Annotated[str, Strict(strict=True)])

  • serviceId (Annotated[str, Strict(strict=True)])

  • calls (Annotated[list[Call], Len(min_length=0, max_length=None)])

  • createTime (datetime)

  • updateTime (datetime | None)

  • endTime (datetime | None)

  • state (Literal['QUEUED', 'IN_PROGRESS', 'COMPLETED', 'EXPIRED'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)])

  • extra_data (Any)

session_id: Annotated[str, Strict(strict=True)]
project_id: Annotated[str, Strict(strict=True)]
service_id: Annotated[str, Strict(strict=True)]
calls: Annotated[list[Call], Len(min_length=0, max_length=None)]
create_time: datetime
update_time: datetime | None
end_time: datetime | None
state: Literal['QUEUED', 'IN_PROGRESS', 'COMPLETED', 'EXPIRED'] | Annotated[str, Strict(strict=True)]
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].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None