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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from .connection_options_okta import ConnectionOptionsOkta
from .connection_show_as_button import ConnectionShowAsButton
from .create_connection_common import CreateConnectionCommon
from .create_connection_request_content_okta_strategy import CreateConnectionRequestContentOktaStrategy


class CreateConnectionRequestContentOkta(CreateConnectionCommon):
    """
    Create a connection with strategy=okta
    """

    strategy: CreateConnectionRequestContentOktaStrategy
    options: typing.Optional[ConnectionOptionsOkta] = None
    show_as_button: typing.Optional[ConnectionShowAsButton] = None

    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
