| 1 |
|
| 2 |
|
| 3 |
import typing |
| 4 |
|
| 5 |
import pydantic |
| 6 |
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel |
| 7 |
from .custom_domain_status_filter_enum import CustomDomainStatusFilterEnum |
| 8 |
from .custom_domain_type_enum import CustomDomainTypeEnum |
| 9 |
from .domain_certificate import DomainCertificate |
| 10 |
from .domain_metadata import DomainMetadata |
| 11 |
from .domain_verification import DomainVerification |
| 12 |
|
| 13 |
|
| 14 |
class CustomDomain(UniversalBaseModel): |
| 15 |
custom_domain_id: str = pydantic.Field() |
| 16 |
""" |
| 17 |
ID of the custom domain. |
| 18 |
""" |
| 19 |
|
| 20 |
domain: str = pydantic.Field() |
| 21 |
""" |
| 22 |
Domain name. |
| 23 |
""" |
| 24 |
|
| 25 |
primary: bool = pydantic.Field() |
| 26 |
""" |
| 27 |
Whether this is a primary domain (true) or not (false). |
| 28 |
""" |
| 29 |
|
| 30 |
is_default: typing.Optional[bool] = pydantic.Field(default=None) |
| 31 |
""" |
| 32 |
Whether this is the default custom domain (true) or not (false). |
| 33 |
""" |
| 34 |
|
| 35 |
status: CustomDomainStatusFilterEnum |
| 36 |
type: CustomDomainTypeEnum |
| 37 |
origin_domain_name: typing.Optional[str] = pydantic.Field(default=None) |
| 38 |
""" |
| 39 |
Intermediate address. |
| 40 |
""" |
| 41 |
|
| 42 |
verification: typing.Optional[DomainVerification] = None |
| 43 |
custom_client_ip_header: typing.Optional[str] = pydantic.Field(default=None) |
| 44 |
""" |
| 45 |
The HTTP header to fetch the client's IP address |
| 46 |
""" |
| 47 |
|
| 48 |
tls_policy: typing.Optional[str] = pydantic.Field(default=None) |
| 49 |
""" |
| 50 |
The TLS version policy |
| 51 |
""" |
| 52 |
|
| 53 |
domain_metadata: typing.Optional[DomainMetadata] = None |
| 54 |
certificate: typing.Optional[DomainCertificate] = None |
| 55 |
relying_party_identifier: typing.Optional[str] = pydantic.Field(default=None) |
| 56 |
""" |
| 57 |
Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. |
| 58 |
""" |
| 59 |
|
| 60 |
if IS_PYDANTIC_V2: |
| 61 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 62 |
else: |
| 63 |
|
| 64 |
class Config: |
| 65 |
frozen = True |
| 66 |
smart_union = True |
| 67 |
extra = pydantic.Extra.allow |