Debian Codegraph @

src/auth0/management/types/user_grant.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 import typing_extensions
7 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8 from ..core.serialization import FieldMetadata
9
10
11 class UserGrant(UniversalBaseModel):
12 id: typing.Optional[str] = pydantic.Field(default=None)
13 """
14 ID of the grant.
15 """
16
17 client_id: typing_extensions.Annotated[
18 typing.Optional[str],
19 FieldMetadata(alias="clientID"),
20 pydantic.Field(alias="clientID", description="ID of the client."),
21 ] = None
22 """
23 ID of the client.
24 """
25
26 user_id: typing.Optional[str] = pydantic.Field(default=None)
27 """
28 ID of the user.
29 """
30
31 audience: typing.Optional[str] = pydantic.Field(default=None)
32 """
33 Audience of the grant.
34 """
35
36 scope: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
37 """
38 Scopes included in this grant.
39 """
40
41 organization_id: typing.Optional[str] = pydantic.Field(default=None)
42 """
43 ID of the organization associated with the grant.
44 """
45
46 if IS_PYDANTIC_V2:
47 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
48 else:
49
50 class Config:
51 frozen = True
52 smart_union = True
53 extra = pydantic.Extra.allow