# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .bulk_delete_location_custom_attributes_response_location_custom_attribute_delete_response import (
    BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse,
)
from .error import Error


class BulkDeleteLocationCustomAttributesResponse(UncheckedBaseModel):
    """
    Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) response,
    which contains a map of responses that each corresponds to an individual delete request.
    """

    values: typing.Dict[str, BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse] = (
        pydantic.Field()
    )
    """
    A map of responses that correspond to individual delete requests. Each response has the
    same key as the corresponding request.
    """

    errors: typing.Optional[typing.List[Error]] = pydantic.Field(default=None)
    """
    Any errors that occurred during the request.
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
