sinch.domains.numbers.models.v1.errors package

class sinch.domains.numbers.models.v1.errors.NotFoundError(
*,
code: Annotated[int, Strict(strict=True)] | None = None,
message: Annotated[str, Strict(strict=True)] | None = None,
status: Annotated[str, Strict(strict=True)] | None = None,
details: Annotated[list[NotFoundErrorDetails], Len(min_length=0, max_length=None)] | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • code (Annotated[int, Strict(strict=True)] | None)

  • message (Annotated[str, Strict(strict=True)] | None)

  • status (Annotated[str, Strict(strict=True)] | None)

  • details (Annotated[list[NotFoundErrorDetails], Len(min_length=0, max_length=None)] | None)

  • extra_data (Any)

code: Annotated[int, Strict(strict=True)] | None
message: Annotated[str, Strict(strict=True)] | None
status: Annotated[str, Strict(strict=True)] | None
details: Annotated[list[NotFoundErrorDetails], 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].

class sinch.domains.numbers.models.v1.errors.NotFoundErrorDetails(
*,
type: Annotated[str, Strict(strict=True)] | None = None,
resourceType: Annotated[str, Strict(strict=True)] | None = None,
resourceName: Annotated[str, Strict(strict=True)] | None = None,
owner: Annotated[str, Strict(strict=True)] | None = None,
description: Annotated[str, Strict(strict=True)] | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

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

  • resourceType (Annotated[str, Strict(strict=True)] | None)

  • resourceName (Annotated[str, Strict(strict=True)] | None)

  • owner (Annotated[str, Strict(strict=True)] | None)

  • description (Annotated[str, Strict(strict=True)] | None)

  • extra_data (Any)

type: Annotated[str, Strict(strict=True)] | None
resource_type: Annotated[str, Strict(strict=True)] | None
resource_name: Annotated[str, Strict(strict=True)] | None
owner: Annotated[str, Strict(strict=True)] | None
description: 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].