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

class sinch.domains.voice.models.v2.batches.response.BatchDetailsResponse(
*,
sessions: Annotated[list[BatchSessionSummary], Len(min_length=0, max_length=None)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
sessions: Annotated[list[BatchSessionSummary], Len(min_length=0, max_length=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].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None

class sinch.domains.voice.models.v2.batches.response.BatchSessionSummary(
*,
id: Annotated[str, Strict(strict=True)] | None = None,
state: Literal['QUEUED', 'IN_PROGRESS', 'COMPLETED', 'EXPIRED'] | Annotated[str, Strict(strict=True)] | None = None,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • id (Annotated[str, Strict(strict=True)] | None)

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

  • extra_data (Any)

id: Annotated[str, Strict(strict=True)] | None
state: Literal['QUEUED', 'IN_PROGRESS', 'COMPLETED', 'EXPIRED'] | Annotated[str, Strict(strict=True)] | 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].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None

class sinch.domains.voice.models.v2.batches.response.BatchStopResponse(
*,
result: Literal['STOP_REQUESTED'] | Annotated[str, Strict(strict=True)] | None = None,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • result (Literal['STOP_REQUESTED'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • extra_data (Any)

result: Literal['STOP_REQUESTED'] | Annotated[str, Strict(strict=True)] | 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].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None

class sinch.domains.voice.models.v2.batches.response.BatchSummaryResponse(
*,
batchId: Annotated[str, Strict(strict=True)],
sessionCount: Annotated[int, Strict(strict=True)],
endTime: datetime | None = None,
queued: Annotated[int, Strict(strict=True)],
inProgress: Annotated[int, Strict(strict=True)],
completed: Annotated[int, Strict(strict=True)],
expired: Annotated[int, Strict(strict=True)],
ttlSeconds: Annotated[int, Strict(strict=True)] | None = None,
requestedCps: Annotated[int, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

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

  • sessionCount (Annotated[int, Strict(strict=True)])

  • endTime (datetime | None)

  • queued (Annotated[int, Strict(strict=True)])

  • inProgress (Annotated[int, Strict(strict=True)])

  • completed (Annotated[int, Strict(strict=True)])

  • expired (Annotated[int, Strict(strict=True)])

  • ttlSeconds (Annotated[int, Strict(strict=True)] | None)

  • requestedCps (Annotated[int, Strict(strict=True)])

  • extra_data (Any)

batch_id: Annotated[str, Strict(strict=True)]
session_count: Annotated[int, Strict(strict=True)]
end_time: datetime | None
queued: Annotated[int, Strict(strict=True)]
in_progress: Annotated[int, Strict(strict=True)]
completed: Annotated[int, Strict(strict=True)]
expired: Annotated[int, Strict(strict=True)]
ttl_seconds: Annotated[int, Strict(strict=True)] | None
requested_cps: Annotated[int, 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

class sinch.domains.voice.models.v2.batches.response.StartBatchResponse(
*,
projectId: Annotated[str, Strict(strict=True)],
serviceId: Annotated[str, Strict(strict=True)],
batchId: Annotated[str, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

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

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

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

  • extra_data (Any)

project_id: Annotated[str, Strict(strict=True)]
service_id: Annotated[str, Strict(strict=True)]
batch_id: 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