Debian Codegraph @

src/auth0/management/types/log.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 from .log_date import LogDate
10 from .log_details import LogDetails
11 from .log_location_info import LogLocationInfo
12 from .log_security_context import LogSecurityContext
13
14
15 class Log(UniversalBaseModel):
16 date: typing.Optional[LogDate] = None
17 type: typing.Optional[str] = pydantic.Field(default=None)
18 """
19 Type of event.
20 """
21
22 description: typing.Optional[str] = pydantic.Field(default=None)
23 """
24 Description of this event.
25 """
26
27 connection: typing.Optional[str] = pydantic.Field(default=None)
28 """
29 Name of the connection the event relates to.
30 """
31
32 connection_id: typing.Optional[str] = pydantic.Field(default=None)
33 """
34 ID of the connection the event relates to.
35 """
36
37 client_id: typing.Optional[str] = pydantic.Field(default=None)
38 """
39 ID of the client (application).
40 """
41
42 client_name: typing.Optional[str] = pydantic.Field(default=None)
43 """
44 Name of the client (application).
45 """
46
47 ip: typing.Optional[str] = pydantic.Field(default=None)
48 """
49 IP address of the log event source.
50 """
51
52 hostname: typing.Optional[str] = pydantic.Field(default=None)
53 """
54 Hostname the event applies to.
55 """
56
57 user_id: typing.Optional[str] = pydantic.Field(default=None)
58 """
59 ID of the user involved in the event.
60 """
61
62 user_name: typing.Optional[str] = pydantic.Field(default=None)
63 """
64 Name of the user involved in the event.
65 """
66
67 audience: typing.Optional[str] = pydantic.Field(default=None)
68 """
69 API audience the event applies to.
70 """
71
72 scope: typing.Optional[str] = pydantic.Field(default=None)
73 """
74 Scope permissions applied to the event.
75 """
76
77 strategy: typing.Optional[str] = pydantic.Field(default=None)
78 """
79 Name of the strategy involved in the event.
80 """
81
82 strategy_type: typing.Optional[str] = pydantic.Field(default=None)
83 """
84 Type of strategy involved in the event.
85 """
86
87 log_id: typing.Optional[str] = pydantic.Field(default=None)
88 """
89 Unique ID of the event.
90 """
91
92 is_mobile: typing_extensions.Annotated[
93 typing.Optional[bool],
94 FieldMetadata(alias="isMobile"),
95 pydantic.Field(
96 alias="isMobile",
97 description="Whether the client was a mobile device (true) or desktop/laptop/server (false).",
98 ),
99 ] = None
100 """
101 Whether the client was a mobile device (true) or desktop/laptop/server (false).
102 """
103
104 details: typing.Optional[LogDetails] = None
105 user_agent: typing.Optional[str] = pydantic.Field(default=None)
106 """
107 User agent string from the client device that caused the event.
108 """
109
110 security_context: typing.Optional[LogSecurityContext] = None
111 location_info: typing.Optional[LogLocationInfo] = None
112
113 if IS_PYDANTIC_V2:
114 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
115 else:
116
117 class Config:
118 frozen = True
119 smart_union = True
120 extra = pydantic.Extra.allow