FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/gitlab/v4/objects/notes.py at v8.1.0 · python-gitlab/python-gitlab · GitHub
python-gitlab
python-gitlab
Repository navigation
Code
Issues
16
(16)
Pull requests
15
(15)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
gitlab
/
v4
/
objects
/
notes.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
211 lines (169 loc) · 6.62 KB
Breadcrumbs
python-gitlab
/
gitlab
/
v4
/
objects
/
notes.py
Copy path
File metadata and controls
211 lines (169 loc) · 6.62 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
from
gitlab
.
base
import
RESTObject
from
gitlab
.
mixins
import
(
CreateMixin
,
CRUDMixin
,
DeleteMixin
,
GetMixin
,
ObjectDeleteMixin
,
RetrieveMixin
,
SaveMixin
,
UpdateMixin
,
)
from
gitlab
.
types
import
RequiredOptional
from
.
award_emojis
import
(
# noqa: F401
GroupEpicNoteAwardEmojiManager
,
ProjectIssueNoteAwardEmojiManager
,
ProjectMergeRequestNoteAwardEmojiManager
,
ProjectSnippetNoteAwardEmojiManager
,
)
__all__
=
[
"GroupEpicNote"
,
"GroupEpicNoteManager"
,
"GroupEpicDiscussionNote"
,
"GroupEpicDiscussionNoteManager"
,
"ProjectNote"
,
"ProjectNoteManager"
,
"ProjectCommitDiscussionNote"
,
"ProjectCommitDiscussionNoteManager"
,
"ProjectIssueNote"
,
"ProjectIssueNoteManager"
,
"ProjectIssueDiscussionNote"
,
"ProjectIssueDiscussionNoteManager"
,
"ProjectMergeRequestNote"
,
"ProjectMergeRequestNoteManager"
,
"ProjectMergeRequestDiscussionNote"
,
"ProjectMergeRequestDiscussionNoteManager"
,
"ProjectSnippetNote"
,
"ProjectSnippetNoteManager"
,
"ProjectSnippetDiscussionNote"
,
"ProjectSnippetDiscussionNoteManager"
,
]
class
GroupEpicNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
awardemojis
:
GroupEpicNoteAwardEmojiManager
class
GroupEpicNoteManager
(
CRUDMixin
[
GroupEpicNote
]):
_path
=
"/groups/{group_id}/epics/{epic_id}/notes"
_obj_cls
=
GroupEpicNote
_from_parent_attrs
=
{
"group_id"
:
"group_id"
,
"epic_id"
:
"id"
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
GroupEpicDiscussionNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
pass
class
GroupEpicDiscussionNoteManager
(
GetMixin
[
GroupEpicDiscussionNote
],
CreateMixin
[
GroupEpicDiscussionNote
],
UpdateMixin
[
GroupEpicDiscussionNote
],
DeleteMixin
[
GroupEpicDiscussionNote
],
):
_path
=
"/groups/{group_id}/epics/{epic_id}/discussions/{discussion_id}/notes"
_obj_cls
=
GroupEpicDiscussionNote
_from_parent_attrs
=
{
"group_id"
:
"group_id"
,
"epic_id"
:
"epic_id"
,
"discussion_id"
:
"id"
,
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectNote
(
RESTObject
):
pass
class
ProjectNoteManager
(
RetrieveMixin
[
ProjectNote
]):
_path
=
"/projects/{project_id}/notes"
_obj_cls
=
ProjectNote
_from_parent_attrs
=
{
"project_id"
:
"id"
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectCommitDiscussionNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
pass
class
ProjectCommitDiscussionNoteManager
(
GetMixin
[
ProjectCommitDiscussionNote
],
CreateMixin
[
ProjectCommitDiscussionNote
],
UpdateMixin
[
ProjectCommitDiscussionNote
],
DeleteMixin
[
ProjectCommitDiscussionNote
],
):
_path
=
(
"/projects/{project_id}/repository/commits/{commit_id}/"
"discussions/{discussion_id}/notes"
)
_obj_cls
=
ProjectCommitDiscussionNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"commit_id"
:
"commit_id"
,
"discussion_id"
:
"id"
,
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,
"position"
)
)
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectIssueNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
awardemojis
:
ProjectIssueNoteAwardEmojiManager
class
ProjectIssueNoteManager
(
CRUDMixin
[
ProjectIssueNote
]):
_path
=
"/projects/{project_id}/issues/{issue_iid}/notes"
_obj_cls
=
ProjectIssueNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"issue_iid"
:
"iid"
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectIssueDiscussionNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
pass
class
ProjectIssueDiscussionNoteManager
(
CRUDMixin
[
ProjectIssueDiscussionNote
]):
_path
=
(
"/projects/{project_id}/issues/{issue_iid}/discussions/{discussion_id}/notes"
)
_obj_cls
=
ProjectIssueDiscussionNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"issue_iid"
:
"issue_iid"
,
"discussion_id"
:
"id"
,
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectMergeRequestNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
awardemojis
:
ProjectMergeRequestNoteAwardEmojiManager
class
ProjectMergeRequestNoteManager
(
CRUDMixin
[
ProjectMergeRequestNote
]):
_path
=
"/projects/{project_id}/merge_requests/{mr_iid}/notes"
_obj_cls
=
ProjectMergeRequestNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"mr_iid"
:
"iid"
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectMergeRequestDiscussionNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
pass
class
ProjectMergeRequestDiscussionNoteManager
(
CRUDMixin
[
ProjectMergeRequestDiscussionNote
]
):
_path
=
(
"/projects/{project_id}/merge_requests/{mr_iid}/"
"discussions/{discussion_id}/notes"
)
_obj_cls
=
ProjectMergeRequestDiscussionNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"mr_iid"
:
"mr_iid"
,
"discussion_id"
:
"id"
,
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectSnippetNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
awardemojis
:
ProjectSnippetNoteAwardEmojiManager
class
ProjectSnippetNoteManager
(
CRUDMixin
[
ProjectSnippetNote
]):
_path
=
"/projects/{project_id}/snippets/{snippet_id}/notes"
_obj_cls
=
ProjectSnippetNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"snippet_id"
:
"id"
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
class
ProjectSnippetDiscussionNote
(
SaveMixin
,
ObjectDeleteMixin
,
RESTObject
):
pass
class
ProjectSnippetDiscussionNoteManager
(
GetMixin
[
ProjectSnippetDiscussionNote
],
CreateMixin
[
ProjectSnippetDiscussionNote
],
UpdateMixin
[
ProjectSnippetDiscussionNote
],
DeleteMixin
[
ProjectSnippetDiscussionNote
],
):
_path
=
(
"/projects/{project_id}/snippets/{snippet_id}/"
"discussions/{discussion_id}/notes"
)
_obj_cls
=
ProjectSnippetDiscussionNote
_from_parent_attrs
=
{
"project_id"
:
"project_id"
,
"snippet_id"
:
"snippet_id"
,
"discussion_id"
:
"id"
,
}
_create_attrs
=
RequiredOptional
(
required
=
(
"body"
,),
optional
=
(
"created_at"
,))
_update_attrs
=
RequiredOptional
(
required
=
(
"body"
,))
Back
|
FazBrowse Home
|
New Git URL