sinch.domains.voice.models.v2.shared.phone module

class sinch.domains.voice.models.v2.shared.phone.PhoneDetails(
*,
number: Annotated[str, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

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

  • extra_data (Any)

number: 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

class sinch.domains.voice.models.v2.shared.phone.Phone(
*,
type: Literal['PHONE'] = 'PHONE',
phone: PhoneDetails,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • type (Literal['PHONE'])

  • phone (PhoneDetails)

  • extra_data (Any)

type: Literal['PHONE']
phone: PhoneDetails
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