Debian Codegraph @

src/auth0/management/types/device_credential.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import typing
4
5 import pydantic
6 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7 from .device_credential_type_enum import DeviceCredentialTypeEnum
8
9
10 class DeviceCredential(UniversalBaseModel):
11 id: typing.Optional[str] = pydantic.Field(default=None)
12 """
13 ID of this device.
14 """
15
16 device_name: typing.Optional[str] = pydantic.Field(default=None)
17 """
18 User agent for this device
19 """
20
21 device_id: typing.Optional[str] = pydantic.Field(default=None)
22 """
23 Unique identifier for the device. NOTE: This field is generally not populated for refresh_tokens and rotating_refresh_tokens
24 """
25
26 type: typing.Optional[DeviceCredentialTypeEnum] = pydantic.Field(default=None)
27 """
28 Type of credential. Can be `public_key`, `refresh_token`, or `rotating_refresh_token`.
29 """
30
31 user_id: typing.Optional[str] = pydantic.Field(default=None)
32 """
33 user_id this credential is associated with.
34 """
35
36 client_id: typing.Optional[str] = pydantic.Field(default=None)
37 """
38 client_id of the client (application) this credential is for.
39 """
40
41 if IS_PYDANTIC_V2:
42 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
43 else:
44
45 class Config:
46 frozen = True
47 smart_union = True
48 extra = pydantic.Extra.allow