|
11 | 11 |
|
12 | 12 | from pydantic import Field
|
13 | 13 |
|
14 |
| -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild |
| 14 | +from githubkit.compat import GitHubModel, model_rebuild |
15 | 15 | from githubkit.typing import Missing
|
16 | 16 | from githubkit.utils import UNSET
|
17 | 17 |
|
18 | 18 |
|
19 |
| -class AuditLogEvent(GitHubModel): |
20 |
| - """AuditLogEvent""" |
| 19 | +class InstallableOrganization(GitHubModel): |
| 20 | + """Installable Organization |
21 | 21 |
|
22 |
| - timestamp: Missing[int] = Field( |
23 |
| - default=UNSET, |
24 |
| - alias="@timestamp", |
25 |
| - description="The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).", |
26 |
| - ) |
27 |
| - action: Missing[str] = Field( |
28 |
| - default=UNSET, |
29 |
| - description="The name of the action that was performed, for example `user.login` or `repo.create`.", |
30 |
| - ) |
31 |
| - active: Missing[bool] = Field(default=UNSET) |
32 |
| - active_was: Missing[bool] = Field(default=UNSET) |
33 |
| - actor: Missing[str] = Field( |
34 |
| - default=UNSET, description="The actor who performed the action." |
35 |
| - ) |
36 |
| - actor_id: Missing[int] = Field( |
37 |
| - default=UNSET, description="The id of the actor who performed the action." |
38 |
| - ) |
39 |
| - actor_location: Missing[AuditLogEventPropActorLocation] = Field(default=UNSET) |
40 |
| - data: Missing[AuditLogEventPropData] = Field(default=UNSET) |
41 |
| - org_id: Missing[int] = Field(default=UNSET) |
42 |
| - user_id: Missing[int] = Field(default=UNSET) |
43 |
| - business_id: Missing[int] = Field(default=UNSET) |
44 |
| - blocked_user: Missing[str] = Field( |
45 |
| - default=UNSET, description="The username of the account being blocked." |
46 |
| - ) |
47 |
| - business: Missing[str] = Field(default=UNSET) |
48 |
| - config: Missing[list[AuditLogEventPropConfigItems]] = Field(default=UNSET) |
49 |
| - config_was: Missing[list[AuditLogEventPropConfigWasItems]] = Field(default=UNSET) |
50 |
| - content_type: Missing[str] = Field(default=UNSET) |
51 |
| - operation_type: Missing[str] = Field(default=UNSET) |
52 |
| - created_at: Missing[int] = Field( |
53 |
| - default=UNSET, |
54 |
| - description="The time the audit log event was recorded, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).", |
55 |
| - ) |
56 |
| - deploy_key_fingerprint: Missing[str] = Field(default=UNSET) |
57 |
| - document_id: Missing[str] = Field( |
58 |
| - default=UNSET, |
59 |
| - alias="_document_id", |
60 |
| - description="A unique identifier for an audit event.", |
61 |
| - ) |
62 |
| - emoji: Missing[str] = Field(default=UNSET) |
63 |
| - events: Missing[list[AuditLogEventPropEventsItems]] = Field(default=UNSET) |
64 |
| - events_were: Missing[list[AuditLogEventPropEventsWereItems]] = Field(default=UNSET) |
65 |
| - explanation: Missing[str] = Field(default=UNSET) |
66 |
| - fingerprint: Missing[str] = Field(default=UNSET) |
67 |
| - hook_id: Missing[int] = Field(default=UNSET) |
68 |
| - limited_availability: Missing[bool] = Field(default=UNSET) |
69 |
| - message: Missing[str] = Field(default=UNSET) |
70 |
| - name: Missing[str] = Field(default=UNSET) |
71 |
| - old_user: Missing[str] = Field(default=UNSET) |
72 |
| - openssh_public_key: Missing[str] = Field(default=UNSET) |
73 |
| - org: Missing[str] = Field(default=UNSET) |
74 |
| - previous_visibility: Missing[str] = Field(default=UNSET) |
75 |
| - read_only: Missing[bool] = Field(default=UNSET) |
76 |
| - repo: Missing[str] = Field(default=UNSET, description="The name of the repository.") |
77 |
| - repository: Missing[str] = Field( |
78 |
| - default=UNSET, description="The name of the repository." |
79 |
| - ) |
80 |
| - repository_public: Missing[bool] = Field(default=UNSET) |
81 |
| - target_login: Missing[str] = Field(default=UNSET) |
82 |
| - team: Missing[str] = Field(default=UNSET) |
83 |
| - transport_protocol: Missing[int] = Field( |
84 |
| - default=UNSET, |
85 |
| - description="The type of protocol (for example, HTTP or SSH) used to transfer Git data.", |
86 |
| - ) |
87 |
| - transport_protocol_name: Missing[str] = Field( |
88 |
| - default=UNSET, |
89 |
| - description="A human readable name for the protocol (for example, HTTP or SSH) used to transfer Git data.", |
90 |
| - ) |
91 |
| - user: Missing[str] = Field( |
92 |
| - default=UNSET, |
93 |
| - description="The user that was affected by the action performed (if available).", |
94 |
| - ) |
95 |
| - visibility: Missing[str] = Field( |
96 |
| - default=UNSET, |
97 |
| - description="The repository visibility, for example `public` or `private`.", |
98 |
| - ) |
| 22 | + A GitHub organization on which a GitHub App can be installed. |
| 23 | + """ |
99 | 24 |
|
| 25 | + id: int = Field() |
| 26 | + login: str = Field() |
| 27 | + accessible_repositories_url: Missing[str] = Field(default=UNSET) |
100 | 28 |
|
101 |
| -class AuditLogEventPropActorLocation(GitHubModel): |
102 |
| - """AuditLogEventPropActorLocation""" |
103 | 29 |
|
104 |
| - country_name: Missing[str] = Field(default=UNSET) |
| 30 | +model_rebuild(InstallableOrganization) |
105 | 31 |
|
106 |
| - |
107 |
| -class AuditLogEventPropData(ExtraGitHubModel): |
108 |
| - """AuditLogEventPropData""" |
109 |
| - |
110 |
| - |
111 |
| -class AuditLogEventPropConfigItems(GitHubModel): |
112 |
| - """AuditLogEventPropConfigItems""" |
113 |
| - |
114 |
| - |
115 |
| -class AuditLogEventPropConfigWasItems(GitHubModel): |
116 |
| - """AuditLogEventPropConfigWasItems""" |
117 |
| - |
118 |
| - |
119 |
| -class AuditLogEventPropEventsItems(GitHubModel): |
120 |
| - """AuditLogEventPropEventsItems""" |
121 |
| - |
122 |
| - |
123 |
| -class AuditLogEventPropEventsWereItems(GitHubModel): |
124 |
| - """AuditLogEventPropEventsWereItems""" |
125 |
| - |
126 |
| - |
127 |
| -model_rebuild(AuditLogEvent) |
128 |
| -model_rebuild(AuditLogEventPropActorLocation) |
129 |
| -model_rebuild(AuditLogEventPropData) |
130 |
| -model_rebuild(AuditLogEventPropConfigItems) |
131 |
| -model_rebuild(AuditLogEventPropConfigWasItems) |
132 |
| -model_rebuild(AuditLogEventPropEventsItems) |
133 |
| -model_rebuild(AuditLogEventPropEventsWereItems) |
134 |
| - |
135 |
| -__all__ = ( |
136 |
| - "AuditLogEvent", |
137 |
| - "AuditLogEventPropActorLocation", |
138 |
| - "AuditLogEventPropConfigItems", |
139 |
| - "AuditLogEventPropConfigWasItems", |
140 |
| - "AuditLogEventPropData", |
141 |
| - "AuditLogEventPropEventsItems", |
142 |
| - "AuditLogEventPropEventsWereItems", |
143 |
| -) |
| 32 | +__all__ = ("InstallableOrganization",) |
0 commit comments