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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .gateway_data_routing_config_destination_control_plane_managed_storage_region import (
    GatewayDataRoutingConfigDestinationControlPlaneManagedStorageRegion,
)


class GatewayDataRoutingConfigDestinationControlPlaneManagedStorage(UniversalBaseModel):
    """
    Managed Storage in Control-Plane.
    """

    type: typing.Literal["controlplane-managed"] = pydantic.Field(default="controlplane-managed")
    """
    Type of storage configuration
    """

    region: typing.Optional[GatewayDataRoutingConfigDestinationControlPlaneManagedStorageRegion] = pydantic.Field(
        default=None
    )
    """
    Specifies the region where control plane–managed storage is located.
    """

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

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