Show More
@@ -1,371 +1,376 b'' | |||
|
1 | 1 | .. _pull-request-methods-ref: |
|
2 | 2 | |
|
3 | 3 | pull_request methods |
|
4 | 4 | ==================== |
|
5 | 5 | |
|
6 | 6 | close_pull_request |
|
7 | 7 | ------------------ |
|
8 | 8 | |
|
9 | 9 | .. py:function:: close_pull_request(apiuser, repoid, pullrequestid, userid=<Optional:<OptionalAttr:apiuser>>) |
|
10 | 10 | |
|
11 | 11 | Close the pull request specified by `pullrequestid`. |
|
12 | 12 | |
|
13 | 13 | :param apiuser: This is filled automatically from the |authtoken|. |
|
14 | 14 | :type apiuser: AuthUser |
|
15 | 15 | :param repoid: Repository name or repository ID to which the pull |
|
16 | 16 | request belongs. |
|
17 | 17 | :type repoid: str or int |
|
18 | 18 | :param pullrequestid: ID of the pull request to be closed. |
|
19 | 19 | :type pullrequestid: int |
|
20 | 20 | :param userid: Close the pull request as this user. |
|
21 | 21 | :type userid: Optional(str or int) |
|
22 | 22 | |
|
23 | 23 | Example output: |
|
24 | 24 | |
|
25 | 25 | .. code-block:: bash |
|
26 | 26 | |
|
27 | 27 | "id": <id_given_in_input>, |
|
28 | 28 | "result": |
|
29 | 29 | { |
|
30 | 30 | "pull_request_id": "<int>", |
|
31 | 31 | "closed": "<bool>" |
|
32 | 32 | }, |
|
33 | 33 | "error": null |
|
34 | 34 | |
|
35 | 35 | |
|
36 | 36 | comment_pull_request |
|
37 | 37 | -------------------- |
|
38 | 38 | |
|
39 | .. py:function:: comment_pull_request(apiuser, repoid, pullrequestid, message=<Optional:None>, status=<Optional:None>, userid=<Optional:<OptionalAttr:apiuser>>) | |
|
39 | .. py:function:: comment_pull_request(apiuser, repoid, pullrequestid, message=<Optional:None>, commit_id=<Optional:None>, status=<Optional:None>, comment_type=<Optional:u'note'>, resolves_comment_id=<Optional:None>, userid=<Optional:<OptionalAttr:apiuser>>) | |
|
40 | 40 | |
|
41 | 41 | Comment on the pull request specified with the `pullrequestid`, |
|
42 | 42 | in the |repo| specified by the `repoid`, and optionally change the |
|
43 | 43 | review status. |
|
44 | 44 | |
|
45 | 45 | :param apiuser: This is filled automatically from the |authtoken|. |
|
46 | 46 | :type apiuser: AuthUser |
|
47 | 47 | :param repoid: The repository name or repository ID. |
|
48 | 48 | :type repoid: str or int |
|
49 | 49 | :param pullrequestid: The pull request ID. |
|
50 | 50 | :type pullrequestid: int |
|
51 | :param commit_id: Specify the commit_id for which to set a comment. If | |
|
52 | given commit_id is different than latest in the PR status | |
|
53 | change won't be performed. | |
|
54 | :type commit_id: str | |
|
51 | 55 | :param message: The text content of the comment. |
|
52 | 56 | :type message: str |
|
53 | 57 | :param status: (**Optional**) Set the approval status of the pull |
|
54 | request. Valid options are: | |
|
55 |
|
|
|
56 | * approved | |
|
57 | * rejected | |
|
58 | * under_review | |
|
58 | request. One of: 'not_reviewed', 'approved', 'rejected', | |
|
59 | 'under_review' | |
|
59 | 60 | :type status: str |
|
61 | :param comment_type: Comment type, one of: 'note', 'todo' | |
|
62 | :type comment_type: Optional(str), default: 'note' | |
|
60 | 63 | :param userid: Comment on the pull request as this user |
|
61 | 64 | :type userid: Optional(str or int) |
|
62 | 65 | |
|
63 | 66 | Example output: |
|
64 | 67 | |
|
65 | 68 | .. code-block:: bash |
|
66 | 69 | |
|
67 | 70 | id : <id_given_in_input> |
|
68 | 71 | result : |
|
69 | 72 | { |
|
70 | 73 | "pull_request_id": "<Integer>", |
|
71 | "comment_id": "<Integer>" | |
|
74 | "comment_id": "<Integer>", | |
|
75 | "status": {"given": <given_status>, | |
|
76 | "was_changed": <bool status_was_actually_changed> }, | |
|
72 | 77 | } |
|
73 | 78 | error : null |
|
74 | 79 | |
|
75 | 80 | |
|
76 | 81 | create_pull_request |
|
77 | 82 | ------------------- |
|
78 | 83 | |
|
79 | 84 | .. py:function:: create_pull_request(apiuser, source_repo, target_repo, source_ref, target_ref, title, description=<Optional:''>, reviewers=<Optional:None>) |
|
80 | 85 | |
|
81 | 86 | Creates a new pull request. |
|
82 | 87 | |
|
83 | 88 | Accepts refs in the following formats: |
|
84 | 89 | |
|
85 | 90 | * branch:<branch_name>:<sha> |
|
86 | 91 | * branch:<branch_name> |
|
87 | 92 | * bookmark:<bookmark_name>:<sha> (Mercurial only) |
|
88 | 93 | * bookmark:<bookmark_name> (Mercurial only) |
|
89 | 94 | |
|
90 | 95 | :param apiuser: This is filled automatically from the |authtoken|. |
|
91 | 96 | :type apiuser: AuthUser |
|
92 | 97 | :param source_repo: Set the source repository name. |
|
93 | 98 | :type source_repo: str |
|
94 | 99 | :param target_repo: Set the target repository name. |
|
95 | 100 | :type target_repo: str |
|
96 | 101 | :param source_ref: Set the source ref name. |
|
97 | 102 | :type source_ref: str |
|
98 | 103 | :param target_ref: Set the target ref name. |
|
99 | 104 | :type target_ref: str |
|
100 | 105 | :param title: Set the pull request title. |
|
101 | 106 | :type title: str |
|
102 | 107 | :param description: Set the pull request description. |
|
103 | 108 | :type description: Optional(str) |
|
104 | 109 | :param reviewers: Set the new pull request reviewers list. |
|
105 | 110 | :type reviewers: Optional(list) |
|
106 | 111 | Accepts username strings or objects of the format: |
|
107 | 112 | { |
|
108 | 113 | 'username': 'nick', 'reasons': ['original author'] |
|
109 | 114 | } |
|
110 | 115 | |
|
111 | 116 | |
|
112 | 117 | get_pull_request |
|
113 | 118 | ---------------- |
|
114 | 119 | |
|
115 | 120 | .. py:function:: get_pull_request(apiuser, repoid, pullrequestid) |
|
116 | 121 | |
|
117 | 122 | Get a pull request based on the given ID. |
|
118 | 123 | |
|
119 | 124 | :param apiuser: This is filled automatically from the |authtoken|. |
|
120 | 125 | :type apiuser: AuthUser |
|
121 | 126 | :param repoid: Repository name or repository ID from where the pull |
|
122 | 127 | request was opened. |
|
123 | 128 | :type repoid: str or int |
|
124 | 129 | :param pullrequestid: ID of the requested pull request. |
|
125 | 130 | :type pullrequestid: int |
|
126 | 131 | |
|
127 | 132 | Example output: |
|
128 | 133 | |
|
129 | 134 | .. code-block:: bash |
|
130 | 135 | |
|
131 | 136 | "id": <id_given_in_input>, |
|
132 | 137 | "result": |
|
133 | 138 | { |
|
134 | 139 | "pull_request_id": "<pull_request_id>", |
|
135 | 140 | "url": "<url>", |
|
136 | 141 | "title": "<title>", |
|
137 | 142 | "description": "<description>", |
|
138 | 143 | "status" : "<status>", |
|
139 | 144 | "created_on": "<date_time_created>", |
|
140 | 145 | "updated_on": "<date_time_updated>", |
|
141 | 146 | "commit_ids": [ |
|
142 | 147 | ... |
|
143 | 148 | "<commit_id>", |
|
144 | 149 | "<commit_id>", |
|
145 | 150 | ... |
|
146 | 151 | ], |
|
147 | 152 | "review_status": "<review_status>", |
|
148 | 153 | "mergeable": { |
|
149 | 154 | "status": "<bool>", |
|
150 | 155 | "message": "<message>", |
|
151 | 156 | }, |
|
152 | 157 | "source": { |
|
153 | 158 | "clone_url": "<clone_url>", |
|
154 | 159 | "repository": "<repository_name>", |
|
155 | 160 | "reference": |
|
156 | 161 | { |
|
157 | 162 | "name": "<name>", |
|
158 | 163 | "type": "<type>", |
|
159 | 164 | "commit_id": "<commit_id>", |
|
160 | 165 | } |
|
161 | 166 | }, |
|
162 | 167 | "target": { |
|
163 | 168 | "clone_url": "<clone_url>", |
|
164 | 169 | "repository": "<repository_name>", |
|
165 | 170 | "reference": |
|
166 | 171 | { |
|
167 | 172 | "name": "<name>", |
|
168 | 173 | "type": "<type>", |
|
169 | 174 | "commit_id": "<commit_id>", |
|
170 | 175 | } |
|
171 | 176 | }, |
|
172 | 177 | "merge": { |
|
173 | 178 | "clone_url": "<clone_url>", |
|
174 | 179 | "reference": |
|
175 | 180 | { |
|
176 | 181 | "name": "<name>", |
|
177 | 182 | "type": "<type>", |
|
178 | 183 | "commit_id": "<commit_id>", |
|
179 | 184 | } |
|
180 | 185 | }, |
|
181 | 186 | "author": <user_obj>, |
|
182 | 187 | "reviewers": [ |
|
183 | 188 | ... |
|
184 | 189 | { |
|
185 | 190 | "user": "<user_obj>", |
|
186 | 191 | "review_status": "<review_status>", |
|
187 | 192 | } |
|
188 | 193 | ... |
|
189 | 194 | ] |
|
190 | 195 | }, |
|
191 | 196 | "error": null |
|
192 | 197 | |
|
193 | 198 | |
|
194 | 199 | get_pull_requests |
|
195 | 200 | ----------------- |
|
196 | 201 | |
|
197 | 202 | .. py:function:: get_pull_requests(apiuser, repoid, status=<Optional:'new'>) |
|
198 | 203 | |
|
199 | 204 | Get all pull requests from the repository specified in `repoid`. |
|
200 | 205 | |
|
201 | 206 | :param apiuser: This is filled automatically from the |authtoken|. |
|
202 | 207 | :type apiuser: AuthUser |
|
203 | 208 | :param repoid: Repository name or repository ID. |
|
204 | 209 | :type repoid: str or int |
|
205 | 210 | :param status: Only return pull requests with the specified status. |
|
206 | 211 | Valid options are. |
|
207 | 212 | * ``new`` (default) |
|
208 | 213 | * ``open`` |
|
209 | 214 | * ``closed`` |
|
210 | 215 | :type status: str |
|
211 | 216 | |
|
212 | 217 | Example output: |
|
213 | 218 | |
|
214 | 219 | .. code-block:: bash |
|
215 | 220 | |
|
216 | 221 | "id": <id_given_in_input>, |
|
217 | 222 | "result": |
|
218 | 223 | [ |
|
219 | 224 | ... |
|
220 | 225 | { |
|
221 | 226 | "pull_request_id": "<pull_request_id>", |
|
222 | 227 | "url": "<url>", |
|
223 | 228 | "title" : "<title>", |
|
224 | 229 | "description": "<description>", |
|
225 | 230 | "status": "<status>", |
|
226 | 231 | "created_on": "<date_time_created>", |
|
227 | 232 | "updated_on": "<date_time_updated>", |
|
228 | 233 | "commit_ids": [ |
|
229 | 234 | ... |
|
230 | 235 | "<commit_id>", |
|
231 | 236 | "<commit_id>", |
|
232 | 237 | ... |
|
233 | 238 | ], |
|
234 | 239 | "review_status": "<review_status>", |
|
235 | 240 | "mergeable": { |
|
236 | 241 | "status": "<bool>", |
|
237 | 242 | "message: "<message>", |
|
238 | 243 | }, |
|
239 | 244 | "source": { |
|
240 | 245 | "clone_url": "<clone_url>", |
|
241 | 246 | "reference": |
|
242 | 247 | { |
|
243 | 248 | "name": "<name>", |
|
244 | 249 | "type": "<type>", |
|
245 | 250 | "commit_id": "<commit_id>", |
|
246 | 251 | } |
|
247 | 252 | }, |
|
248 | 253 | "target": { |
|
249 | 254 | "clone_url": "<clone_url>", |
|
250 | 255 | "reference": |
|
251 | 256 | { |
|
252 | 257 | "name": "<name>", |
|
253 | 258 | "type": "<type>", |
|
254 | 259 | "commit_id": "<commit_id>", |
|
255 | 260 | } |
|
256 | 261 | }, |
|
257 | 262 | "merge": { |
|
258 | 263 | "clone_url": "<clone_url>", |
|
259 | 264 | "reference": |
|
260 | 265 | { |
|
261 | 266 | "name": "<name>", |
|
262 | 267 | "type": "<type>", |
|
263 | 268 | "commit_id": "<commit_id>", |
|
264 | 269 | } |
|
265 | 270 | }, |
|
266 | 271 | "author": <user_obj>, |
|
267 | 272 | "reviewers": [ |
|
268 | 273 | ... |
|
269 | 274 | { |
|
270 | 275 | "user": "<user_obj>", |
|
271 | 276 | "review_status": "<review_status>", |
|
272 | 277 | } |
|
273 | 278 | ... |
|
274 | 279 | ] |
|
275 | 280 | } |
|
276 | 281 | ... |
|
277 | 282 | ], |
|
278 | 283 | "error": null |
|
279 | 284 | |
|
280 | 285 | |
|
281 | 286 | merge_pull_request |
|
282 | 287 | ------------------ |
|
283 | 288 | |
|
284 | 289 | .. py:function:: merge_pull_request(apiuser, repoid, pullrequestid, userid=<Optional:<OptionalAttr:apiuser>>) |
|
285 | 290 | |
|
286 | 291 | Merge the pull request specified by `pullrequestid` into its target |
|
287 | 292 | repository. |
|
288 | 293 | |
|
289 | 294 | :param apiuser: This is filled automatically from the |authtoken|. |
|
290 | 295 | :type apiuser: AuthUser |
|
291 | 296 | :param repoid: The Repository name or repository ID of the |
|
292 | 297 | target repository to which the |pr| is to be merged. |
|
293 | 298 | :type repoid: str or int |
|
294 | 299 | :param pullrequestid: ID of the pull request which shall be merged. |
|
295 | 300 | :type pullrequestid: int |
|
296 | 301 | :param userid: Merge the pull request as this user. |
|
297 | 302 | :type userid: Optional(str or int) |
|
298 | 303 | |
|
299 | 304 | Example output: |
|
300 | 305 | |
|
301 | 306 | .. code-block:: bash |
|
302 | 307 | |
|
303 | 308 | "id": <id_given_in_input>, |
|
304 | 309 | "result": |
|
305 | 310 | { |
|
306 | 311 | "executed": "<bool>", |
|
307 | 312 | "failure_reason": "<int>", |
|
308 | 313 | "merge_commit_id": "<merge_commit_id>", |
|
309 | 314 | "possible": "<bool>", |
|
310 | 315 | "merge_ref": { |
|
311 | 316 | "commit_id": "<commit_id>", |
|
312 | 317 | "type": "<type>", |
|
313 | 318 | "name": "<name>" |
|
314 | 319 | } |
|
315 | 320 | }, |
|
316 | 321 | "error": null |
|
317 | 322 | |
|
318 | 323 | |
|
319 | 324 | update_pull_request |
|
320 | 325 | ------------------- |
|
321 | 326 | |
|
322 | 327 | .. py:function:: update_pull_request(apiuser, repoid, pullrequestid, title=<Optional:''>, description=<Optional:''>, reviewers=<Optional:None>, update_commits=<Optional:None>, close_pull_request=<Optional:None>) |
|
323 | 328 | |
|
324 | 329 | Updates a pull request. |
|
325 | 330 | |
|
326 | 331 | :param apiuser: This is filled automatically from the |authtoken|. |
|
327 | 332 | :type apiuser: AuthUser |
|
328 | 333 | :param repoid: The repository name or repository ID. |
|
329 | 334 | :type repoid: str or int |
|
330 | 335 | :param pullrequestid: The pull request ID. |
|
331 | 336 | :type pullrequestid: int |
|
332 | 337 | :param title: Set the pull request title. |
|
333 | 338 | :type title: str |
|
334 | 339 | :param description: Update pull request description. |
|
335 | 340 | :type description: Optional(str) |
|
336 | 341 | :param reviewers: Update pull request reviewers list with new value. |
|
337 | 342 | :type reviewers: Optional(list) |
|
338 | 343 | :param update_commits: Trigger update of commits for this pull request |
|
339 | 344 | :type: update_commits: Optional(bool) |
|
340 | 345 | :param close_pull_request: Close this pull request with rejected state |
|
341 | 346 | :type: close_pull_request: Optional(bool) |
|
342 | 347 | |
|
343 | 348 | Example output: |
|
344 | 349 | |
|
345 | 350 | .. code-block:: bash |
|
346 | 351 | |
|
347 | 352 | id : <id_given_in_input> |
|
348 | 353 | result : |
|
349 | 354 | { |
|
350 | 355 | "msg": "Updated pull request `63`", |
|
351 | 356 | "pull_request": <pull_request_object>, |
|
352 | 357 | "updated_reviewers": { |
|
353 | 358 | "added": [ |
|
354 | 359 | "username" |
|
355 | 360 | ], |
|
356 | 361 | "removed": [] |
|
357 | 362 | }, |
|
358 | 363 | "updated_commits": { |
|
359 | 364 | "added": [ |
|
360 | 365 | "<sha1_hash>" |
|
361 | 366 | ], |
|
362 | 367 | "common": [ |
|
363 | 368 | "<sha1_hash>", |
|
364 | 369 | "<sha1_hash>", |
|
365 | 370 | ], |
|
366 | 371 | "removed": [] |
|
367 | 372 | } |
|
368 | 373 | } |
|
369 | 374 | error : null |
|
370 | 375 | |
|
371 | 376 |
@@ -1,990 +1,1000 b'' | |||
|
1 | 1 | .. _repo-methods-ref: |
|
2 | 2 | |
|
3 | 3 | repo methods |
|
4 | 4 | ============ |
|
5 | 5 | |
|
6 | 6 | add_field_to_repo |
|
7 | 7 | ----------------- |
|
8 | 8 | |
|
9 | 9 | .. py:function:: add_field_to_repo(apiuser, repoid, key, label=<Optional:''>, description=<Optional:''>) |
|
10 | 10 | |
|
11 | 11 | Adds an extra field to a repository. |
|
12 | 12 | |
|
13 | 13 | This command can only be run using an |authtoken| with at least |
|
14 | 14 | write permissions to the |repo|. |
|
15 | 15 | |
|
16 | 16 | :param apiuser: This is filled automatically from the |authtoken|. |
|
17 | 17 | :type apiuser: AuthUser |
|
18 | 18 | :param repoid: Set the repository name or repository id. |
|
19 | 19 | :type repoid: str or int |
|
20 | 20 | :param key: Create a unique field key for this repository. |
|
21 | 21 | :type key: str |
|
22 | 22 | :param label: |
|
23 | 23 | :type label: Optional(str) |
|
24 | 24 | :param description: |
|
25 | 25 | :type description: Optional(str) |
|
26 | 26 | |
|
27 | 27 | |
|
28 | 28 | comment_commit |
|
29 | 29 | -------------- |
|
30 | 30 | |
|
31 |
.. py:function:: comment_commit(apiuser, repoid, commit_id, message, userid=<Optional:<OptionalAttr:apiuser> |
|
|
31 | .. py:function:: comment_commit(apiuser, repoid, commit_id, message, status=<Optional:None>, comment_type=<Optional:u'note'>, resolves_comment_id=<Optional:None>, userid=<Optional:<OptionalAttr:apiuser>>) | |
|
32 | 32 | |
|
33 | 33 | Set a commit comment, and optionally change the status of the commit. |
|
34 | 34 | |
|
35 | 35 | :param apiuser: This is filled automatically from the |authtoken|. |
|
36 | 36 | :type apiuser: AuthUser |
|
37 | 37 | :param repoid: Set the repository name or repository ID. |
|
38 | 38 | :type repoid: str or int |
|
39 | 39 | :param commit_id: Specify the commit_id for which to set a comment. |
|
40 | 40 | :type commit_id: str |
|
41 | 41 | :param message: The comment text. |
|
42 | 42 | :type message: str |
|
43 | :param status: (**Optional**) status of commit, one of: 'not_reviewed', | |
|
44 | 'approved', 'rejected', 'under_review' | |
|
45 | :type status: str | |
|
46 | :param comment_type: Comment type, one of: 'note', 'todo' | |
|
47 | :type comment_type: Optional(str), default: 'note' | |
|
43 | 48 | :param userid: Set the user name of the comment creator. |
|
44 | 49 | :type userid: Optional(str or int) |
|
45 | :param status: status, one of 'not_reviewed', 'approved', 'rejected', | |
|
46 | 'under_review' | |
|
47 | :type status: str | |
|
48 | 50 | |
|
49 | 51 | Example error output: |
|
50 | 52 | |
|
51 |
.. code-block:: |
|
|
53 | .. code-block:: bash | |
|
52 | 54 | |
|
53 | 55 | { |
|
54 | 56 | "id" : <id_given_in_input>, |
|
55 | 57 | "result" : { |
|
56 | 58 | "msg": "Commented on commit `<commit_id>` for repository `<repoid>`", |
|
57 | 59 | "status_change": null or <status>, |
|
58 | 60 | "success": true |
|
59 | 61 | }, |
|
60 | 62 | "error" : null |
|
61 | 63 | } |
|
62 | 64 | |
|
63 | 65 | |
|
64 | 66 | create_repo |
|
65 | 67 | ----------- |
|
66 | 68 | |
|
67 | 69 | .. py:function:: create_repo(apiuser, repo_name, repo_type, owner=<Optional:<OptionalAttr:apiuser>>, description=<Optional:''>, private=<Optional:False>, clone_uri=<Optional:None>, landing_rev=<Optional:'rev:tip'>, enable_statistics=<Optional:False>, enable_locking=<Optional:False>, enable_downloads=<Optional:False>, copy_permissions=<Optional:False>) |
|
68 | 70 | |
|
69 | 71 | Creates a repository. |
|
70 | 72 | |
|
71 | 73 | * If the repository name contains "/", repository will be created inside |
|
72 | 74 | a repository group or nested repository groups |
|
73 | 75 | |
|
74 | 76 | For example "foo/bar/repo1" will create |repo| called "repo1" inside |
|
75 | 77 | group "foo/bar". You have to have permissions to access and write to |
|
76 | 78 | the last repository group ("bar" in this example) |
|
77 | 79 | |
|
78 | 80 | This command can only be run using an |authtoken| with at least |
|
79 | 81 | permissions to create repositories, or write permissions to |
|
80 | 82 | parent repository groups. |
|
81 | 83 | |
|
82 | 84 | :param apiuser: This is filled automatically from the |authtoken|. |
|
83 | 85 | :type apiuser: AuthUser |
|
84 | 86 | :param repo_name: Set the repository name. |
|
85 | 87 | :type repo_name: str |
|
86 | 88 | :param repo_type: Set the repository type; 'hg','git', or 'svn'. |
|
87 | 89 | :type repo_type: str |
|
88 | 90 | :param owner: user_id or username |
|
89 | 91 | :type owner: Optional(str) |
|
90 | 92 | :param description: Set the repository description. |
|
91 | 93 | :type description: Optional(str) |
|
92 | 94 | :param private: set repository as private |
|
93 | 95 | :type private: bool |
|
94 | 96 | :param clone_uri: set clone_uri |
|
95 | 97 | :type clone_uri: str |
|
96 | 98 | :param landing_rev: <rev_type>:<rev> |
|
97 | 99 | :type landing_rev: str |
|
98 | 100 | :param enable_locking: |
|
99 | 101 | :type enable_locking: bool |
|
100 | 102 | :param enable_downloads: |
|
101 | 103 | :type enable_downloads: bool |
|
102 | 104 | :param enable_statistics: |
|
103 | 105 | :type enable_statistics: bool |
|
104 | 106 | :param copy_permissions: Copy permission from group in which the |
|
105 | 107 | repository is being created. |
|
106 | 108 | :type copy_permissions: bool |
|
107 | 109 | |
|
108 | 110 | |
|
109 | 111 | Example output: |
|
110 | 112 | |
|
111 | 113 | .. code-block:: bash |
|
112 | 114 | |
|
113 | 115 | id : <id_given_in_input> |
|
114 | 116 | result: { |
|
115 | 117 | "msg": "Created new repository `<reponame>`", |
|
116 | 118 | "success": true, |
|
117 | 119 | "task": "<celery task id or None if done sync>" |
|
118 | 120 | } |
|
119 | 121 | error: null |
|
120 | 122 | |
|
121 | 123 | |
|
122 | 124 | Example error output: |
|
123 | 125 | |
|
124 | 126 | .. code-block:: bash |
|
125 | 127 | |
|
126 | 128 | id : <id_given_in_input> |
|
127 | 129 | result : null |
|
128 | 130 | error : { |
|
129 | 131 | 'failed to create repository `<repo_name>`' |
|
130 | 132 | } |
|
131 | 133 | |
|
132 | 134 | |
|
133 | 135 | delete_repo |
|
134 | 136 | ----------- |
|
135 | 137 | |
|
136 | 138 | .. py:function:: delete_repo(apiuser, repoid, forks=<Optional:''>) |
|
137 | 139 | |
|
138 | 140 | Deletes a repository. |
|
139 | 141 | |
|
140 | 142 | * When the `forks` parameter is set it's possible to detach or delete |
|
141 | 143 | forks of deleted repository. |
|
142 | 144 | |
|
143 | 145 | This command can only be run using an |authtoken| with admin |
|
144 | 146 | permissions on the |repo|. |
|
145 | 147 | |
|
146 | 148 | :param apiuser: This is filled automatically from the |authtoken|. |
|
147 | 149 | :type apiuser: AuthUser |
|
148 | 150 | :param repoid: Set the repository name or repository ID. |
|
149 | 151 | :type repoid: str or int |
|
150 | 152 | :param forks: Set to `detach` or `delete` forks from the |repo|. |
|
151 | 153 | :type forks: Optional(str) |
|
152 | 154 | |
|
153 | 155 | Example error output: |
|
154 | 156 | |
|
155 | 157 | .. code-block:: bash |
|
156 | 158 | |
|
157 | 159 | id : <id_given_in_input> |
|
158 | 160 | result: { |
|
159 | 161 | "msg": "Deleted repository `<reponame>`", |
|
160 | 162 | "success": true |
|
161 | 163 | } |
|
162 | 164 | error: null |
|
163 | 165 | |
|
164 | 166 | |
|
165 | 167 | fork_repo |
|
166 | 168 | --------- |
|
167 | 169 | |
|
168 | 170 | .. py:function:: fork_repo(apiuser, repoid, fork_name, owner=<Optional:<OptionalAttr:apiuser>>, description=<Optional:''>, private=<Optional:False>, clone_uri=<Optional:None>, landing_rev=<Optional:'rev:tip'>, copy_permissions=<Optional:False>) |
|
169 | 171 | |
|
170 | 172 | Creates a fork of the specified |repo|. |
|
171 | 173 | |
|
172 | 174 | * If the fork_name contains "/", fork will be created inside |
|
173 | 175 | a repository group or nested repository groups |
|
174 | 176 | |
|
175 | 177 | For example "foo/bar/fork-repo" will create fork called "fork-repo" |
|
176 | 178 | inside group "foo/bar". You have to have permissions to access and |
|
177 | 179 | write to the last repository group ("bar" in this example) |
|
178 | 180 | |
|
179 | 181 | This command can only be run using an |authtoken| with minimum |
|
180 | 182 | read permissions of the forked repo, create fork permissions for an user. |
|
181 | 183 | |
|
182 | 184 | :param apiuser: This is filled automatically from the |authtoken|. |
|
183 | 185 | :type apiuser: AuthUser |
|
184 | 186 | :param repoid: Set repository name or repository ID. |
|
185 | 187 | :type repoid: str or int |
|
186 | 188 | :param fork_name: Set the fork name, including it's repository group membership. |
|
187 | 189 | :type fork_name: str |
|
188 | 190 | :param owner: Set the fork owner. |
|
189 | 191 | :type owner: str |
|
190 | 192 | :param description: Set the fork description. |
|
191 | 193 | :type description: str |
|
192 | 194 | :param copy_permissions: Copy permissions from parent |repo|. The |
|
193 | 195 | default is False. |
|
194 | 196 | :type copy_permissions: bool |
|
195 | 197 | :param private: Make the fork private. The default is False. |
|
196 | 198 | :type private: bool |
|
197 | 199 | :param landing_rev: Set the landing revision. The default is tip. |
|
198 | 200 | |
|
199 | 201 | Example output: |
|
200 | 202 | |
|
201 | 203 | .. code-block:: bash |
|
202 | 204 | |
|
203 | 205 | id : <id_for_response> |
|
204 | 206 | api_key : "<api_key>" |
|
205 | 207 | args: { |
|
206 | 208 | "repoid" : "<reponame or repo_id>", |
|
207 | 209 | "fork_name": "<forkname>", |
|
208 | 210 | "owner": "<username or user_id = Optional(=apiuser)>", |
|
209 | 211 | "description": "<description>", |
|
210 | 212 | "copy_permissions": "<bool>", |
|
211 | 213 | "private": "<bool>", |
|
212 | 214 | "landing_rev": "<landing_rev>" |
|
213 | 215 | } |
|
214 | 216 | |
|
215 | 217 | Example error output: |
|
216 | 218 | |
|
217 | 219 | .. code-block:: bash |
|
218 | 220 | |
|
219 | 221 | id : <id_given_in_input> |
|
220 | 222 | result: { |
|
221 | 223 | "msg": "Created fork of `<reponame>` as `<forkname>`", |
|
222 | 224 | "success": true, |
|
223 | 225 | "task": "<celery task id or None if done sync>" |
|
224 | 226 | } |
|
225 | 227 | error: null |
|
226 | 228 | |
|
227 | 229 | |
|
228 | 230 | get_repo |
|
229 | 231 | -------- |
|
230 | 232 | |
|
231 | 233 | .. py:function:: get_repo(apiuser, repoid, cache=<Optional:True>) |
|
232 | 234 | |
|
233 | 235 | Gets an existing repository by its name or repository_id. |
|
234 | 236 | |
|
235 | 237 | The members section so the output returns users groups or users |
|
236 | 238 | associated with that repository. |
|
237 | 239 | |
|
238 | 240 | This command can only be run using an |authtoken| with admin rights, |
|
239 | 241 | or users with at least read rights to the |repo|. |
|
240 | 242 | |
|
241 | 243 | :param apiuser: This is filled automatically from the |authtoken|. |
|
242 | 244 | :type apiuser: AuthUser |
|
243 | 245 | :param repoid: The repository name or repository id. |
|
244 | 246 | :type repoid: str or int |
|
245 | 247 | :param cache: use the cached value for last changeset |
|
246 | 248 | :type: cache: Optional(bool) |
|
247 | 249 | |
|
248 | 250 | Example output: |
|
249 | 251 | |
|
250 | 252 | .. code-block:: bash |
|
251 | 253 | |
|
252 | 254 | { |
|
253 | 255 | "error": null, |
|
254 | 256 | "id": <repo_id>, |
|
255 | 257 | "result": { |
|
256 | 258 | "clone_uri": null, |
|
257 | 259 | "created_on": "timestamp", |
|
258 | 260 | "description": "repo description", |
|
259 | 261 | "enable_downloads": false, |
|
260 | 262 | "enable_locking": false, |
|
261 | 263 | "enable_statistics": false, |
|
262 | 264 | "followers": [ |
|
263 | 265 | { |
|
264 | 266 | "active": true, |
|
265 | 267 | "admin": false, |
|
266 | 268 | "api_key": "****************************************", |
|
267 | 269 | "api_keys": [ |
|
268 | 270 | "****************************************" |
|
269 | 271 | ], |
|
270 | 272 | "email": "user@example.com", |
|
271 | 273 | "emails": [ |
|
272 | 274 | "user@example.com" |
|
273 | 275 | ], |
|
274 | 276 | "extern_name": "rhodecode", |
|
275 | 277 | "extern_type": "rhodecode", |
|
276 | 278 | "firstname": "username", |
|
277 | 279 | "ip_addresses": [], |
|
278 | 280 | "language": null, |
|
279 | 281 | "last_login": "2015-09-16T17:16:35.854", |
|
280 | 282 | "lastname": "surname", |
|
281 | 283 | "user_id": <user_id>, |
|
282 | 284 | "username": "name" |
|
283 | 285 | } |
|
284 | 286 | ], |
|
285 | 287 | "fork_of": "parent-repo", |
|
286 | 288 | "landing_rev": [ |
|
287 | 289 | "rev", |
|
288 | 290 | "tip" |
|
289 | 291 | ], |
|
290 | 292 | "last_changeset": { |
|
291 | 293 | "author": "User <user@example.com>", |
|
292 | 294 | "branch": "default", |
|
293 | 295 | "date": "timestamp", |
|
294 | 296 | "message": "last commit message", |
|
295 | 297 | "parents": [ |
|
296 | 298 | { |
|
297 | 299 | "raw_id": "commit-id" |
|
298 | 300 | } |
|
299 | 301 | ], |
|
300 | 302 | "raw_id": "commit-id", |
|
301 | 303 | "revision": <revision number>, |
|
302 | 304 | "short_id": "short id" |
|
303 | 305 | }, |
|
304 | 306 | "lock_reason": null, |
|
305 | 307 | "locked_by": null, |
|
306 | 308 | "locked_date": null, |
|
307 | 309 | "members": [ |
|
308 | 310 | { |
|
309 | 311 | "name": "super-admin-name", |
|
310 | 312 | "origin": "super-admin", |
|
311 | 313 | "permission": "repository.admin", |
|
312 | 314 | "type": "user" |
|
313 | 315 | }, |
|
314 | 316 | { |
|
315 | 317 | "name": "owner-name", |
|
316 | 318 | "origin": "owner", |
|
317 | 319 | "permission": "repository.admin", |
|
318 | 320 | "type": "user" |
|
319 | 321 | }, |
|
320 | 322 | { |
|
321 | 323 | "name": "user-group-name", |
|
322 | 324 | "origin": "permission", |
|
323 | 325 | "permission": "repository.write", |
|
324 | 326 | "type": "user_group" |
|
325 | 327 | } |
|
326 | 328 | ], |
|
327 | 329 | "owner": "owner-name", |
|
328 | 330 | "permissions": [ |
|
329 | 331 | { |
|
330 | 332 | "name": "super-admin-name", |
|
331 | 333 | "origin": "super-admin", |
|
332 | 334 | "permission": "repository.admin", |
|
333 | 335 | "type": "user" |
|
334 | 336 | }, |
|
335 | 337 | { |
|
336 | 338 | "name": "owner-name", |
|
337 | 339 | "origin": "owner", |
|
338 | 340 | "permission": "repository.admin", |
|
339 | 341 | "type": "user" |
|
340 | 342 | }, |
|
341 | 343 | { |
|
342 | 344 | "name": "user-group-name", |
|
343 | 345 | "origin": "permission", |
|
344 | 346 | "permission": "repository.write", |
|
345 | 347 | "type": "user_group" |
|
346 | 348 | } |
|
347 | 349 | ], |
|
348 | 350 | "private": true, |
|
349 | 351 | "repo_id": 676, |
|
350 | 352 | "repo_name": "user-group/repo-name", |
|
351 | 353 | "repo_type": "hg" |
|
352 | 354 | } |
|
353 | 355 | } |
|
354 | 356 | |
|
355 | 357 | |
|
356 | 358 | get_repo_changeset |
|
357 | 359 | ------------------ |
|
358 | 360 | |
|
359 | 361 | .. py:function:: get_repo_changeset(apiuser, repoid, revision, details=<Optional:'basic'>) |
|
360 | 362 | |
|
361 | 363 | Returns information about a changeset. |
|
362 | 364 | |
|
363 | 365 | Additionally parameters define the amount of details returned by |
|
364 | 366 | this function. |
|
365 | 367 | |
|
366 | 368 | This command can only be run using an |authtoken| with admin rights, |
|
367 | 369 | or users with at least read rights to the |repo|. |
|
368 | 370 | |
|
369 | 371 | :param apiuser: This is filled automatically from the |authtoken|. |
|
370 | 372 | :type apiuser: AuthUser |
|
371 | 373 | :param repoid: The repository name or repository id |
|
372 | 374 | :type repoid: str or int |
|
373 | 375 | :param revision: revision for which listing should be done |
|
374 | 376 | :type revision: str |
|
375 | 377 | :param details: details can be 'basic|extended|full' full gives diff |
|
376 | 378 | info details like the diff itself, and number of changed files etc. |
|
377 | 379 | :type details: Optional(str) |
|
378 | 380 | |
|
379 | 381 | |
|
380 | 382 | get_repo_changesets |
|
381 | 383 | ------------------- |
|
382 | 384 | |
|
383 | 385 | .. py:function:: get_repo_changesets(apiuser, repoid, start_rev, limit, details=<Optional:'basic'>) |
|
384 | 386 | |
|
385 | 387 | Returns a set of commits limited by the number starting |
|
386 | 388 | from the `start_rev` option. |
|
387 | 389 | |
|
388 | 390 | Additional parameters define the amount of details returned by this |
|
389 | 391 | function. |
|
390 | 392 | |
|
391 | 393 | This command can only be run using an |authtoken| with admin rights, |
|
392 | 394 | or users with at least read rights to |repos|. |
|
393 | 395 | |
|
394 | 396 | :param apiuser: This is filled automatically from the |authtoken|. |
|
395 | 397 | :type apiuser: AuthUser |
|
396 | 398 | :param repoid: The repository name or repository ID. |
|
397 | 399 | :type repoid: str or int |
|
398 | 400 | :param start_rev: The starting revision from where to get changesets. |
|
399 | 401 | :type start_rev: str |
|
400 | 402 | :param limit: Limit the number of commits to this amount |
|
401 | 403 | :type limit: str or int |
|
402 | 404 | :param details: Set the level of detail returned. Valid option are: |
|
403 | 405 | ``basic``, ``extended`` and ``full``. |
|
404 | 406 | :type details: Optional(str) |
|
405 | 407 | |
|
406 | 408 | .. note:: |
|
407 | 409 | |
|
408 | 410 | Setting the parameter `details` to the value ``full`` is extensive |
|
409 | 411 | and returns details like the diff itself, and the number |
|
410 | 412 | of changed files. |
|
411 | 413 | |
|
412 | 414 | |
|
413 | 415 | get_repo_nodes |
|
414 | 416 | -------------- |
|
415 | 417 | |
|
416 | 418 | .. py:function:: get_repo_nodes(apiuser, repoid, revision, root_path, ret_type=<Optional:'all'>, details=<Optional:'basic'>, max_file_bytes=<Optional:None>) |
|
417 | 419 | |
|
418 | 420 | Returns a list of nodes and children in a flat list for a given |
|
419 | 421 | path at given revision. |
|
420 | 422 | |
|
421 | 423 | It's possible to specify ret_type to show only `files` or `dirs`. |
|
422 | 424 | |
|
423 | 425 | This command can only be run using an |authtoken| with admin rights, |
|
424 | 426 | or users with at least read rights to |repos|. |
|
425 | 427 | |
|
426 | 428 | :param apiuser: This is filled automatically from the |authtoken|. |
|
427 | 429 | :type apiuser: AuthUser |
|
428 | 430 | :param repoid: The repository name or repository ID. |
|
429 | 431 | :type repoid: str or int |
|
430 | 432 | :param revision: The revision for which listing should be done. |
|
431 | 433 | :type revision: str |
|
432 | 434 | :param root_path: The path from which to start displaying. |
|
433 | 435 | :type root_path: str |
|
434 | 436 | :param ret_type: Set the return type. Valid options are |
|
435 | 437 | ``all`` (default), ``files`` and ``dirs``. |
|
436 | 438 | :type ret_type: Optional(str) |
|
437 | 439 | :param details: Returns extended information about nodes, such as |
|
438 | 440 | md5, binary, and or content. The valid options are ``basic`` and |
|
439 | 441 | ``full``. |
|
440 | 442 | :type details: Optional(str) |
|
441 | 443 | :param max_file_bytes: Only return file content under this file size bytes |
|
442 | 444 | :type details: Optional(int) |
|
443 | 445 | |
|
444 | 446 | Example output: |
|
445 | 447 | |
|
446 | 448 | .. code-block:: bash |
|
447 | 449 | |
|
448 | 450 | id : <id_given_in_input> |
|
449 | 451 | result: [ |
|
450 | 452 | { |
|
451 | 453 | "name" : "<name>" |
|
452 | 454 | "type" : "<type>", |
|
453 | 455 | "binary": "<true|false>" (only in extended mode) |
|
454 | 456 | "md5" : "<md5 of file content>" (only in extended mode) |
|
455 | 457 | }, |
|
456 | 458 | ... |
|
457 | 459 | ] |
|
458 | 460 | error: null |
|
459 | 461 | |
|
460 | 462 | |
|
461 | 463 | get_repo_refs |
|
462 | 464 | ------------- |
|
463 | 465 | |
|
464 | 466 | .. py:function:: get_repo_refs(apiuser, repoid) |
|
465 | 467 | |
|
466 | 468 | Returns a dictionary of current references. It returns |
|
467 | 469 | bookmarks, branches, closed_branches, and tags for given repository |
|
468 | 470 | |
|
469 | 471 | It's possible to specify ret_type to show only `files` or `dirs`. |
|
470 | 472 | |
|
471 | 473 | This command can only be run using an |authtoken| with admin rights, |
|
472 | 474 | or users with at least read rights to |repos|. |
|
473 | 475 | |
|
474 | 476 | :param apiuser: This is filled automatically from the |authtoken|. |
|
475 | 477 | :type apiuser: AuthUser |
|
476 | 478 | :param repoid: The repository name or repository ID. |
|
477 | 479 | :type repoid: str or int |
|
478 | 480 | |
|
479 | 481 | Example output: |
|
480 | 482 | |
|
481 | 483 | .. code-block:: bash |
|
482 | 484 | |
|
483 | 485 | id : <id_given_in_input> |
|
484 | 486 | "result": { |
|
485 | 487 | "bookmarks": { |
|
486 | 488 | "dev": "5611d30200f4040ba2ab4f3d64e5b06408a02188", |
|
487 | 489 | "master": "367f590445081d8ec8c2ea0456e73ae1f1c3d6cf" |
|
488 | 490 | }, |
|
489 | 491 | "branches": { |
|
490 | 492 | "default": "5611d30200f4040ba2ab4f3d64e5b06408a02188", |
|
491 | 493 | "stable": "367f590445081d8ec8c2ea0456e73ae1f1c3d6cf" |
|
492 | 494 | }, |
|
493 | 495 | "branches_closed": {}, |
|
494 | 496 | "tags": { |
|
495 | 497 | "tip": "5611d30200f4040ba2ab4f3d64e5b06408a02188", |
|
496 | 498 | "v4.4.0": "1232313f9e6adac5ce5399c2a891dc1e72b79022", |
|
497 | 499 | "v4.4.1": "cbb9f1d329ae5768379cdec55a62ebdd546c4e27", |
|
498 | 500 | "v4.4.2": "24ffe44a27fcd1c5b6936144e176b9f6dd2f3a17", |
|
499 | 501 | } |
|
500 | 502 | } |
|
501 | 503 | error: null |
|
502 | 504 | |
|
503 | 505 | |
|
504 | 506 | get_repo_settings |
|
505 | 507 | ----------------- |
|
506 | 508 | |
|
507 | 509 | .. py:function:: get_repo_settings(apiuser, repoid, key=<Optional:None>) |
|
508 | 510 | |
|
509 | 511 | Returns all settings for a repository. If key is given it only returns the |
|
510 | 512 | setting identified by the key or null. |
|
511 | 513 | |
|
512 | 514 | :param apiuser: This is filled automatically from the |authtoken|. |
|
513 | 515 | :type apiuser: AuthUser |
|
514 | 516 | :param repoid: The repository name or repository id. |
|
515 | 517 | :type repoid: str or int |
|
516 | 518 | :param key: Key of the setting to return. |
|
517 | 519 | :type: key: Optional(str) |
|
518 | 520 | |
|
519 | 521 | Example output: |
|
520 | 522 | |
|
521 | 523 | .. code-block:: bash |
|
522 | 524 | |
|
523 | 525 | { |
|
524 | 526 | "error": null, |
|
525 | 527 | "id": 237, |
|
526 | 528 | "result": { |
|
527 | 529 | "extensions_largefiles": true, |
|
528 | 530 | "hooks_changegroup_push_logger": true, |
|
529 | 531 | "hooks_changegroup_repo_size": false, |
|
530 | 532 | "hooks_outgoing_pull_logger": true, |
|
531 | 533 | "phases_publish": "True", |
|
532 | 534 | "rhodecode_hg_use_rebase_for_merging": true, |
|
533 | 535 | "rhodecode_pr_merge_enabled": true, |
|
534 | 536 | "rhodecode_use_outdated_comments": true |
|
535 | 537 | } |
|
536 | 538 | } |
|
537 | 539 | |
|
538 | 540 | |
|
539 | 541 | get_repos |
|
540 | 542 | --------- |
|
541 | 543 | |
|
542 | .. py:function:: get_repos(apiuser) | |
|
544 | .. py:function:: get_repos(apiuser, root=<Optional:None>, traverse=<Optional:True>) | |
|
543 | 545 | |
|
544 | 546 | Lists all existing repositories. |
|
545 | 547 | |
|
546 | 548 | This command can only be run using an |authtoken| with admin rights, |
|
547 | 549 | or users with at least read rights to |repos|. |
|
548 | 550 | |
|
549 | 551 | :param apiuser: This is filled automatically from the |authtoken|. |
|
550 | 552 | :type apiuser: AuthUser |
|
553 | :param root: specify root repository group to fetch repositories. | |
|
554 | filters the returned repositories to be members of given root group. | |
|
555 | :type root: Optional(None) | |
|
556 | :param traverse: traverse given root into subrepositories. With this flag | |
|
557 | set to False, it will only return top-level repositories from `root`. | |
|
558 | if root is empty it will return just top-level repositories. | |
|
559 | :type traverse: Optional(True) | |
|
560 | ||
|
551 | 561 | |
|
552 | 562 | Example output: |
|
553 | 563 | |
|
554 | 564 | .. code-block:: bash |
|
555 | 565 | |
|
556 | 566 | id : <id_given_in_input> |
|
557 | 567 | result: [ |
|
558 | 568 | { |
|
559 | 569 | "repo_id" : "<repo_id>", |
|
560 | 570 | "repo_name" : "<reponame>" |
|
561 | 571 | "repo_type" : "<repo_type>", |
|
562 | 572 | "clone_uri" : "<clone_uri>", |
|
563 | 573 | "private": : "<bool>", |
|
564 | 574 | "created_on" : "<datetimecreated>", |
|
565 | 575 | "description" : "<description>", |
|
566 | 576 | "landing_rev": "<landing_rev>", |
|
567 | 577 | "owner": "<repo_owner>", |
|
568 | 578 | "fork_of": "<name_of_fork_parent>", |
|
569 | 579 | "enable_downloads": "<bool>", |
|
570 | 580 | "enable_locking": "<bool>", |
|
571 | 581 | "enable_statistics": "<bool>", |
|
572 | 582 | }, |
|
573 | 583 | ... |
|
574 | 584 | ] |
|
575 | 585 | error: null |
|
576 | 586 | |
|
577 | 587 | |
|
578 | 588 | grant_user_group_permission |
|
579 | 589 | --------------------------- |
|
580 | 590 | |
|
581 | 591 | .. py:function:: grant_user_group_permission(apiuser, repoid, usergroupid, perm) |
|
582 | 592 | |
|
583 | 593 | Grant permission for a user group on the specified repository, |
|
584 | 594 | or update existing permissions. |
|
585 | 595 | |
|
586 | 596 | This command can only be run using an |authtoken| with admin |
|
587 | 597 | permissions on the |repo|. |
|
588 | 598 | |
|
589 | 599 | :param apiuser: This is filled automatically from the |authtoken|. |
|
590 | 600 | :type apiuser: AuthUser |
|
591 | 601 | :param repoid: Set the repository name or repository ID. |
|
592 | 602 | :type repoid: str or int |
|
593 | 603 | :param usergroupid: Specify the ID of the user group. |
|
594 | 604 | :type usergroupid: str or int |
|
595 | 605 | :param perm: Set the user group permissions using the following |
|
596 | 606 | format: (repository.(none|read|write|admin)) |
|
597 | 607 | :type perm: str |
|
598 | 608 | |
|
599 | 609 | Example output: |
|
600 | 610 | |
|
601 | 611 | .. code-block:: bash |
|
602 | 612 | |
|
603 | 613 | id : <id_given_in_input> |
|
604 | 614 | result : { |
|
605 | 615 | "msg" : "Granted perm: `<perm>` for group: `<usersgroupname>` in repo: `<reponame>`", |
|
606 | 616 | "success": true |
|
607 | 617 | |
|
608 | 618 | } |
|
609 | 619 | error : null |
|
610 | 620 | |
|
611 | 621 | Example error output: |
|
612 | 622 | |
|
613 | 623 | .. code-block:: bash |
|
614 | 624 | |
|
615 | 625 | id : <id_given_in_input> |
|
616 | 626 | result : null |
|
617 | 627 | error : { |
|
618 | 628 | "failed to edit permission for user group: `<usergroup>` in repo `<repo>`' |
|
619 | 629 | } |
|
620 | 630 | |
|
621 | 631 | |
|
622 | 632 | grant_user_permission |
|
623 | 633 | --------------------- |
|
624 | 634 | |
|
625 | 635 | .. py:function:: grant_user_permission(apiuser, repoid, userid, perm) |
|
626 | 636 | |
|
627 | 637 | Grant permissions for the specified user on the given repository, |
|
628 | 638 | or update existing permissions if found. |
|
629 | 639 | |
|
630 | 640 | This command can only be run using an |authtoken| with admin |
|
631 | 641 | permissions on the |repo|. |
|
632 | 642 | |
|
633 | 643 | :param apiuser: This is filled automatically from the |authtoken|. |
|
634 | 644 | :type apiuser: AuthUser |
|
635 | 645 | :param repoid: Set the repository name or repository ID. |
|
636 | 646 | :type repoid: str or int |
|
637 | 647 | :param userid: Set the user name. |
|
638 | 648 | :type userid: str |
|
639 | 649 | :param perm: Set the user permissions, using the following format |
|
640 | 650 | ``(repository.(none|read|write|admin))`` |
|
641 | 651 | :type perm: str |
|
642 | 652 | |
|
643 | 653 | Example output: |
|
644 | 654 | |
|
645 | 655 | .. code-block:: bash |
|
646 | 656 | |
|
647 | 657 | id : <id_given_in_input> |
|
648 | 658 | result: { |
|
649 | 659 | "msg" : "Granted perm: `<perm>` for user: `<username>` in repo: `<reponame>`", |
|
650 | 660 | "success": true |
|
651 | 661 | } |
|
652 | 662 | error: null |
|
653 | 663 | |
|
654 | 664 | |
|
655 | 665 | invalidate_cache |
|
656 | 666 | ---------------- |
|
657 | 667 | |
|
658 | 668 | .. py:function:: invalidate_cache(apiuser, repoid, delete_keys=<Optional:False>) |
|
659 | 669 | |
|
660 | 670 | Invalidates the cache for the specified repository. |
|
661 | 671 | |
|
662 | 672 | This command can only be run using an |authtoken| with admin rights to |
|
663 | 673 | the specified repository. |
|
664 | 674 | |
|
665 | 675 | This command takes the following options: |
|
666 | 676 | |
|
667 | 677 | :param apiuser: This is filled automatically from |authtoken|. |
|
668 | 678 | :type apiuser: AuthUser |
|
669 | 679 | :param repoid: Sets the repository name or repository ID. |
|
670 | 680 | :type repoid: str or int |
|
671 | 681 | :param delete_keys: This deletes the invalidated keys instead of |
|
672 | 682 | just flagging them. |
|
673 | 683 | :type delete_keys: Optional(``True`` | ``False``) |
|
674 | 684 | |
|
675 | 685 | Example output: |
|
676 | 686 | |
|
677 | 687 | .. code-block:: bash |
|
678 | 688 | |
|
679 | 689 | id : <id_given_in_input> |
|
680 | 690 | result : { |
|
681 | 691 | 'msg': Cache for repository `<repository name>` was invalidated, |
|
682 | 692 | 'repository': <repository name> |
|
683 | 693 | } |
|
684 | 694 | error : null |
|
685 | 695 | |
|
686 | 696 | Example error output: |
|
687 | 697 | |
|
688 | 698 | .. code-block:: bash |
|
689 | 699 | |
|
690 | 700 | id : <id_given_in_input> |
|
691 | 701 | result : null |
|
692 | 702 | error : { |
|
693 | 703 | 'Error occurred during cache invalidation action' |
|
694 | 704 | } |
|
695 | 705 | |
|
696 | 706 | |
|
697 | 707 | lock |
|
698 | 708 | ---- |
|
699 | 709 | |
|
700 | 710 | .. py:function:: lock(apiuser, repoid, locked=<Optional:None>, userid=<Optional:<OptionalAttr:apiuser>>) |
|
701 | 711 | |
|
702 | 712 | Sets the lock state of the specified |repo| by the given user. |
|
703 | 713 | From more information, see :ref:`repo-locking`. |
|
704 | 714 | |
|
705 | 715 | * If the ``userid`` option is not set, the repository is locked to the |
|
706 | 716 | user who called the method. |
|
707 | 717 | * If the ``locked`` parameter is not set, the current lock state of the |
|
708 | 718 | repository is displayed. |
|
709 | 719 | |
|
710 | 720 | This command can only be run using an |authtoken| with admin rights to |
|
711 | 721 | the specified repository. |
|
712 | 722 | |
|
713 | 723 | This command takes the following options: |
|
714 | 724 | |
|
715 | 725 | :param apiuser: This is filled automatically from the |authtoken|. |
|
716 | 726 | :type apiuser: AuthUser |
|
717 | 727 | :param repoid: Sets the repository name or repository ID. |
|
718 | 728 | :type repoid: str or int |
|
719 | 729 | :param locked: Sets the lock state. |
|
720 | 730 | :type locked: Optional(``True`` | ``False``) |
|
721 | 731 | :param userid: Set the repository lock to this user. |
|
722 | 732 | :type userid: Optional(str or int) |
|
723 | 733 | |
|
724 | 734 | Example error output: |
|
725 | 735 | |
|
726 | 736 | .. code-block:: bash |
|
727 | 737 | |
|
728 | 738 | id : <id_given_in_input> |
|
729 | 739 | result : { |
|
730 | 740 | 'repo': '<reponame>', |
|
731 | 741 | 'locked': <bool: lock state>, |
|
732 | 742 | 'locked_since': <int: lock timestamp>, |
|
733 | 743 | 'locked_by': <username of person who made the lock>, |
|
734 | 744 | 'lock_reason': <str: reason for locking>, |
|
735 | 745 | 'lock_state_changed': <bool: True if lock state has been changed in this request>, |
|
736 | 746 | 'msg': 'Repo `<reponame>` locked by `<username>` on <timestamp>.' |
|
737 | 747 | or |
|
738 | 748 | 'msg': 'Repo `<repository name>` not locked.' |
|
739 | 749 | or |
|
740 | 750 | 'msg': 'User `<user name>` set lock state for repo `<repository name>` to `<new lock state>`' |
|
741 | 751 | } |
|
742 | 752 | error : null |
|
743 | 753 | |
|
744 | 754 | Example error output: |
|
745 | 755 | |
|
746 | 756 | .. code-block:: bash |
|
747 | 757 | |
|
748 | 758 | id : <id_given_in_input> |
|
749 | 759 | result : null |
|
750 | 760 | error : { |
|
751 | 761 | 'Error occurred locking repository `<reponame>`' |
|
752 | 762 | } |
|
753 | 763 | |
|
754 | 764 | |
|
755 | 765 | pull |
|
756 | 766 | ---- |
|
757 | 767 | |
|
758 | 768 | .. py:function:: pull(apiuser, repoid) |
|
759 | 769 | |
|
760 | 770 | Triggers a pull on the given repository from a remote location. You |
|
761 | 771 | can use this to keep remote repositories up-to-date. |
|
762 | 772 | |
|
763 | 773 | This command can only be run using an |authtoken| with admin |
|
764 | 774 | rights to the specified repository. For more information, |
|
765 | 775 | see :ref:`config-token-ref`. |
|
766 | 776 | |
|
767 | 777 | This command takes the following options: |
|
768 | 778 | |
|
769 | 779 | :param apiuser: This is filled automatically from the |authtoken|. |
|
770 | 780 | :type apiuser: AuthUser |
|
771 | 781 | :param repoid: The repository name or repository ID. |
|
772 | 782 | :type repoid: str or int |
|
773 | 783 | |
|
774 | 784 | Example output: |
|
775 | 785 | |
|
776 | 786 | .. code-block:: bash |
|
777 | 787 | |
|
778 | 788 | id : <id_given_in_input> |
|
779 | 789 | result : { |
|
780 | 790 | "msg": "Pulled from `<repository name>`" |
|
781 | 791 | "repository": "<repository name>" |
|
782 | 792 | } |
|
783 | 793 | error : null |
|
784 | 794 | |
|
785 | 795 | Example error output: |
|
786 | 796 | |
|
787 | 797 | .. code-block:: bash |
|
788 | 798 | |
|
789 | 799 | id : <id_given_in_input> |
|
790 | 800 | result : null |
|
791 | 801 | error : { |
|
792 | 802 | "Unable to pull changes from `<reponame>`" |
|
793 | 803 | } |
|
794 | 804 | |
|
795 | 805 | |
|
796 | 806 | remove_field_from_repo |
|
797 | 807 | ---------------------- |
|
798 | 808 | |
|
799 | 809 | .. py:function:: remove_field_from_repo(apiuser, repoid, key) |
|
800 | 810 | |
|
801 | 811 | Removes an extra field from a repository. |
|
802 | 812 | |
|
803 | 813 | This command can only be run using an |authtoken| with at least |
|
804 | 814 | write permissions to the |repo|. |
|
805 | 815 | |
|
806 | 816 | :param apiuser: This is filled automatically from the |authtoken|. |
|
807 | 817 | :type apiuser: AuthUser |
|
808 | 818 | :param repoid: Set the repository name or repository ID. |
|
809 | 819 | :type repoid: str or int |
|
810 | 820 | :param key: Set the unique field key for this repository. |
|
811 | 821 | :type key: str |
|
812 | 822 | |
|
813 | 823 | |
|
814 | 824 | revoke_user_group_permission |
|
815 | 825 | ---------------------------- |
|
816 | 826 | |
|
817 | 827 | .. py:function:: revoke_user_group_permission(apiuser, repoid, usergroupid) |
|
818 | 828 | |
|
819 | 829 | Revoke the permissions of a user group on a given repository. |
|
820 | 830 | |
|
821 | 831 | This command can only be run using an |authtoken| with admin |
|
822 | 832 | permissions on the |repo|. |
|
823 | 833 | |
|
824 | 834 | :param apiuser: This is filled automatically from the |authtoken|. |
|
825 | 835 | :type apiuser: AuthUser |
|
826 | 836 | :param repoid: Set the repository name or repository ID. |
|
827 | 837 | :type repoid: str or int |
|
828 | 838 | :param usergroupid: Specify the user group ID. |
|
829 | 839 | :type usergroupid: str or int |
|
830 | 840 | |
|
831 | 841 | Example output: |
|
832 | 842 | |
|
833 | 843 | .. code-block:: bash |
|
834 | 844 | |
|
835 | 845 | id : <id_given_in_input> |
|
836 | 846 | result: { |
|
837 | 847 | "msg" : "Revoked perm for group: `<usersgroupname>` in repo: `<reponame>`", |
|
838 | 848 | "success": true |
|
839 | 849 | } |
|
840 | 850 | error: null |
|
841 | 851 | |
|
842 | 852 | |
|
843 | 853 | revoke_user_permission |
|
844 | 854 | ---------------------- |
|
845 | 855 | |
|
846 | 856 | .. py:function:: revoke_user_permission(apiuser, repoid, userid) |
|
847 | 857 | |
|
848 | 858 | Revoke permission for a user on the specified repository. |
|
849 | 859 | |
|
850 | 860 | This command can only be run using an |authtoken| with admin |
|
851 | 861 | permissions on the |repo|. |
|
852 | 862 | |
|
853 | 863 | :param apiuser: This is filled automatically from the |authtoken|. |
|
854 | 864 | :type apiuser: AuthUser |
|
855 | 865 | :param repoid: Set the repository name or repository ID. |
|
856 | 866 | :type repoid: str or int |
|
857 | 867 | :param userid: Set the user name of revoked user. |
|
858 | 868 | :type userid: str or int |
|
859 | 869 | |
|
860 | 870 | Example error output: |
|
861 | 871 | |
|
862 | 872 | .. code-block:: bash |
|
863 | 873 | |
|
864 | 874 | id : <id_given_in_input> |
|
865 | 875 | result: { |
|
866 | 876 | "msg" : "Revoked perm for user: `<username>` in repo: `<reponame>`", |
|
867 | 877 | "success": true |
|
868 | 878 | } |
|
869 | 879 | error: null |
|
870 | 880 | |
|
871 | 881 | |
|
872 | 882 | set_repo_settings |
|
873 | 883 | ----------------- |
|
874 | 884 | |
|
875 | 885 | .. py:function:: set_repo_settings(apiuser, repoid, settings) |
|
876 | 886 | |
|
877 | 887 | Update repository settings. Returns true on success. |
|
878 | 888 | |
|
879 | 889 | :param apiuser: This is filled automatically from the |authtoken|. |
|
880 | 890 | :type apiuser: AuthUser |
|
881 | 891 | :param repoid: The repository name or repository id. |
|
882 | 892 | :type repoid: str or int |
|
883 | 893 | :param settings: The new settings for the repository. |
|
884 | 894 | :type: settings: dict |
|
885 | 895 | |
|
886 | 896 | Example output: |
|
887 | 897 | |
|
888 | 898 | .. code-block:: bash |
|
889 | 899 | |
|
890 | 900 | { |
|
891 | 901 | "error": null, |
|
892 | 902 | "id": 237, |
|
893 | 903 | "result": true |
|
894 | 904 | } |
|
895 | 905 | |
|
896 | 906 | |
|
897 | 907 | strip |
|
898 | 908 | ----- |
|
899 | 909 | |
|
900 | 910 | .. py:function:: strip(apiuser, repoid, revision, branch) |
|
901 | 911 | |
|
902 | 912 | Strips the given revision from the specified repository. |
|
903 | 913 | |
|
904 | 914 | * This will remove the revision and all of its decendants. |
|
905 | 915 | |
|
906 | 916 | This command can only be run using an |authtoken| with admin rights to |
|
907 | 917 | the specified repository. |
|
908 | 918 | |
|
909 | 919 | This command takes the following options: |
|
910 | 920 | |
|
911 | 921 | :param apiuser: This is filled automatically from the |authtoken|. |
|
912 | 922 | :type apiuser: AuthUser |
|
913 | 923 | :param repoid: The repository name or repository ID. |
|
914 | 924 | :type repoid: str or int |
|
915 | 925 | :param revision: The revision you wish to strip. |
|
916 | 926 | :type revision: str |
|
917 | 927 | :param branch: The branch from which to strip the revision. |
|
918 | 928 | :type branch: str |
|
919 | 929 | |
|
920 | 930 | Example output: |
|
921 | 931 | |
|
922 | 932 | .. code-block:: bash |
|
923 | 933 | |
|
924 | 934 | id : <id_given_in_input> |
|
925 | 935 | result : { |
|
926 | 936 | "msg": "'Stripped commit <commit_hash> from repo `<repository name>`'" |
|
927 | 937 | "repository": "<repository name>" |
|
928 | 938 | } |
|
929 | 939 | error : null |
|
930 | 940 | |
|
931 | 941 | Example error output: |
|
932 | 942 | |
|
933 | 943 | .. code-block:: bash |
|
934 | 944 | |
|
935 | 945 | id : <id_given_in_input> |
|
936 | 946 | result : null |
|
937 | 947 | error : { |
|
938 | 948 | "Unable to strip commit <commit_hash> from repo `<repository name>`" |
|
939 | 949 | } |
|
940 | 950 | |
|
941 | 951 | |
|
942 | 952 | update_repo |
|
943 | 953 | ----------- |
|
944 | 954 | |
|
945 | 955 | .. py:function:: update_repo(apiuser, repoid, repo_name=<Optional:None>, owner=<Optional:<OptionalAttr:apiuser>>, description=<Optional:''>, private=<Optional:False>, clone_uri=<Optional:None>, landing_rev=<Optional:'rev:tip'>, fork_of=<Optional:None>, enable_statistics=<Optional:False>, enable_locking=<Optional:False>, enable_downloads=<Optional:False>, fields=<Optional:''>) |
|
946 | 956 | |
|
947 | 957 | Updates a repository with the given information. |
|
948 | 958 | |
|
949 | 959 | This command can only be run using an |authtoken| with at least |
|
950 | 960 | admin permissions to the |repo|. |
|
951 | 961 | |
|
952 | 962 | * If the repository name contains "/", repository will be updated |
|
953 | 963 | accordingly with a repository group or nested repository groups |
|
954 | 964 | |
|
955 | 965 | For example repoid=repo-test name="foo/bar/repo-test" will update |repo| |
|
956 | 966 | called "repo-test" and place it inside group "foo/bar". |
|
957 | 967 | You have to have permissions to access and write to the last repository |
|
958 | 968 | group ("bar" in this example) |
|
959 | 969 | |
|
960 | 970 | :param apiuser: This is filled automatically from the |authtoken|. |
|
961 | 971 | :type apiuser: AuthUser |
|
962 | 972 | :param repoid: repository name or repository ID. |
|
963 | 973 | :type repoid: str or int |
|
964 | 974 | :param repo_name: Update the |repo| name, including the |
|
965 | 975 | repository group it's in. |
|
966 | 976 | :type repo_name: str |
|
967 | 977 | :param owner: Set the |repo| owner. |
|
968 | 978 | :type owner: str |
|
969 | 979 | :param fork_of: Set the |repo| as fork of another |repo|. |
|
970 | 980 | :type fork_of: str |
|
971 | 981 | :param description: Update the |repo| description. |
|
972 | 982 | :type description: str |
|
973 | 983 | :param private: Set the |repo| as private. (True | False) |
|
974 | 984 | :type private: bool |
|
975 | 985 | :param clone_uri: Update the |repo| clone URI. |
|
976 | 986 | :type clone_uri: str |
|
977 | 987 | :param landing_rev: Set the |repo| landing revision. Default is ``rev:tip``. |
|
978 | 988 | :type landing_rev: str |
|
979 | 989 | :param enable_statistics: Enable statistics on the |repo|, (True | False). |
|
980 | 990 | :type enable_statistics: bool |
|
981 | 991 | :param enable_locking: Enable |repo| locking. |
|
982 | 992 | :type enable_locking: bool |
|
983 | 993 | :param enable_downloads: Enable downloads from the |repo|, (True | False). |
|
984 | 994 | :type enable_downloads: bool |
|
985 | 995 | :param fields: Add extra fields to the |repo|. Use the following |
|
986 | 996 | example format: ``field_key=field_val,field_key2=fieldval2``. |
|
987 | 997 | Escape ', ' with \, |
|
988 | 998 | :type fields: str |
|
989 | 999 | |
|
990 | 1000 |
@@ -1,115 +1,158 b'' | |||
|
1 | 1 | .. _server-methods-ref: |
|
2 | 2 | |
|
3 | 3 | server methods |
|
4 | 4 | ============== |
|
5 | 5 | |
|
6 | cleanup_sessions | |
|
7 | ---------------- | |
|
8 | ||
|
9 | .. py:function:: cleanup_sessions(apiuser, older_then=<Optional:60>) | |
|
10 | ||
|
11 | Triggers a session cleanup action. | |
|
12 | ||
|
13 | If the ``older_then`` option is set, only sessions that hasn't been | |
|
14 | accessed in the given number of days will be removed. | |
|
15 | ||
|
16 | This command can only be run using an |authtoken| with admin rights to | |
|
17 | the specified repository. | |
|
18 | ||
|
19 | This command takes the following options: | |
|
20 | ||
|
21 | :param apiuser: This is filled automatically from the |authtoken|. | |
|
22 | :type apiuser: AuthUser | |
|
23 | :param older_then: Deletes session that hasn't been accessed | |
|
24 | in given number of days. | |
|
25 | :type older_then: Optional(int) | |
|
26 | ||
|
27 | Example output: | |
|
28 | ||
|
29 | .. code-block:: bash | |
|
30 | ||
|
31 | id : <id_given_in_input> | |
|
32 | result: { | |
|
33 | "backend": "<type of backend>", | |
|
34 | "sessions_removed": <number_of_removed_sessions> | |
|
35 | } | |
|
36 | error : null | |
|
37 | ||
|
38 | Example error output: | |
|
39 | ||
|
40 | .. code-block:: bash | |
|
41 | ||
|
42 | id : <id_given_in_input> | |
|
43 | result : null | |
|
44 | error : { | |
|
45 | 'Error occurred during session cleanup' | |
|
46 | } | |
|
47 | ||
|
48 | ||
|
6 | 49 | get_ip |
|
7 | 50 | ------ |
|
8 | 51 | |
|
9 | 52 | .. py:function:: get_ip(apiuser, userid=<Optional:<OptionalAttr:apiuser>>) |
|
10 | 53 | |
|
11 | 54 | Displays the IP Address as seen from the |RCE| server. |
|
12 | 55 | |
|
13 | 56 | * This command displays the IP Address, as well as all the defined IP |
|
14 | 57 | addresses for the specified user. If the ``userid`` is not set, the |
|
15 | 58 | data returned is for the user calling the method. |
|
16 | 59 | |
|
17 | 60 | This command can only be run using an |authtoken| with admin rights to |
|
18 | 61 | the specified repository. |
|
19 | 62 | |
|
20 | 63 | This command takes the following options: |
|
21 | 64 | |
|
22 | 65 | :param apiuser: This is filled automatically from |authtoken|. |
|
23 | 66 | :type apiuser: AuthUser |
|
24 | 67 | :param userid: Sets the userid for which associated IP Address data |
|
25 | 68 | is returned. |
|
26 | 69 | :type userid: Optional(str or int) |
|
27 | 70 | |
|
28 | 71 | Example output: |
|
29 | 72 | |
|
30 | 73 | .. code-block:: bash |
|
31 | 74 | |
|
32 | 75 | id : <id_given_in_input> |
|
33 | 76 | result : { |
|
34 | 77 | "server_ip_addr": "<ip_from_clien>", |
|
35 | 78 | "user_ips": [ |
|
36 | 79 | { |
|
37 | 80 | "ip_addr": "<ip_with_mask>", |
|
38 | 81 | "ip_range": ["<start_ip>", "<end_ip>"], |
|
39 | 82 | }, |
|
40 | 83 | ... |
|
41 | 84 | ] |
|
42 | 85 | } |
|
43 | 86 | |
|
44 | 87 | |
|
45 | 88 | get_server_info |
|
46 | 89 | --------------- |
|
47 | 90 | |
|
48 | 91 | .. py:function:: get_server_info(apiuser) |
|
49 | 92 | |
|
50 | 93 | Returns the |RCE| server information. |
|
51 | 94 | |
|
52 | 95 | This includes the running version of |RCE| and all installed |
|
53 | 96 | packages. This command takes the following options: |
|
54 | 97 | |
|
55 | 98 | :param apiuser: This is filled automatically from the |authtoken|. |
|
56 | 99 | :type apiuser: AuthUser |
|
57 | 100 | |
|
58 | 101 | Example output: |
|
59 | 102 | |
|
60 | 103 | .. code-block:: bash |
|
61 | 104 | |
|
62 | 105 | id : <id_given_in_input> |
|
63 | 106 | result : { |
|
64 | 107 | 'modules': [<module name>,...] |
|
65 | 108 | 'py_version': <python version>, |
|
66 | 109 | 'platform': <platform type>, |
|
67 | 110 | 'rhodecode_version': <rhodecode version> |
|
68 | 111 | } |
|
69 | 112 | error : null |
|
70 | 113 | |
|
71 | 114 | |
|
72 | 115 | rescan_repos |
|
73 | 116 | ------------ |
|
74 | 117 | |
|
75 | 118 | .. py:function:: rescan_repos(apiuser, remove_obsolete=<Optional:False>) |
|
76 | 119 | |
|
77 | 120 | Triggers a rescan of the specified repositories. |
|
78 | 121 | |
|
79 | 122 | * If the ``remove_obsolete`` option is set, it also deletes repositories |
|
80 | 123 | that are found in the database but not on the file system, so called |
|
81 | 124 | "clean zombies". |
|
82 | 125 | |
|
83 | 126 | This command can only be run using an |authtoken| with admin rights to |
|
84 | 127 | the specified repository. |
|
85 | 128 | |
|
86 | 129 | This command takes the following options: |
|
87 | 130 | |
|
88 | 131 | :param apiuser: This is filled automatically from the |authtoken|. |
|
89 | 132 | :type apiuser: AuthUser |
|
90 | 133 | :param remove_obsolete: Deletes repositories from the database that |
|
91 | 134 | are not found on the filesystem. |
|
92 | 135 | :type remove_obsolete: Optional(``True`` | ``False``) |
|
93 | 136 | |
|
94 | 137 | Example output: |
|
95 | 138 | |
|
96 | 139 | .. code-block:: bash |
|
97 | 140 | |
|
98 | 141 | id : <id_given_in_input> |
|
99 | 142 | result : { |
|
100 | 143 | 'added': [<added repository name>,...] |
|
101 | 144 | 'removed': [<removed repository name>,...] |
|
102 | 145 | } |
|
103 | 146 | error : null |
|
104 | 147 | |
|
105 | 148 | Example error output: |
|
106 | 149 | |
|
107 | 150 | .. code-block:: bash |
|
108 | 151 | |
|
109 | 152 | id : <id_given_in_input> |
|
110 | 153 | result : null |
|
111 | 154 | error : { |
|
112 | 155 | 'Error occurred during rescan repositories action' |
|
113 | 156 | } |
|
114 | 157 | |
|
115 | 158 |
General Comments 0
You need to be logged in to leave comments.
Login now