Debian Codegraph @

src/auth0/management/types/connected_account.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import datetime as dt
4 import typing
5
6 import pydantic
7 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8 from .connected_account_access_type_enum import ConnectedAccountAccessTypeEnum
9
10
11 class ConnectedAccount(UniversalBaseModel):
12 id: str = pydantic.Field()
13 """
14 The unique identifier for the connected account.
15 """
16
17 connection: str = pydantic.Field()
18 """
19 The name of the connection associated with the account.
20 """
21
22 connection_id: str = pydantic.Field()
23 """
24 The unique identifier of the connection associated with the account.
25 """
26
27 strategy: str = pydantic.Field()
28 """
29 The authentication strategy used by the connection.
30 """
31
32 access_type: ConnectedAccountAccessTypeEnum
33 scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
34 """
35 The scopes granted for this connected account.
36 """
37
38 created_at: dt.datetime = pydantic.Field()
39 """
40 ISO 8601 timestamp when the connected account was created.
41 """
42
43 expires_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
44 """
45 ISO 8601 timestamp when the connected account expires.
46 """
47
48 organization_id: typing.Optional[str] = pydantic.Field(default=None)
49 """
50 The identifier of the organization associated with the connected account.
51 """
52
53 if IS_PYDANTIC_V2:
54 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
55 else:
56
57 class Config:
58 frozen = True
59 smart_union = True
60 extra = pydantic.Extra.allow