Merge lp:~jkakar/launchpadlib/testing-support into lp:launchpadlib

Proposed by Jamu Kakar
Status: Rejected
Rejected by: Leonard Richardson
Proposed branch: lp:~jkakar/launchpadlib/testing-support
Merge into: lp:launchpadlib
Diff against target: 28362 lines
6 files modified
.bzrignore (+2/-0)
Makefile (+5/-0)
src/launchpadlib/testing/launchpad-wadl.xml (+27425/-0)
src/launchpadlib/testing/launchpad.py (+455/-0)
src/launchpadlib/testing/resources.py (+46/-0)
src/launchpadlib/testing/tests/test_launchpad.py (+394/-0)
To merge this branch: bzr merge lp:~jkakar/launchpadlib/testing-support
Reviewer Review Type Date Requested Status
Leonard Richardson (community) Disapprove
Review via email: mp+14444@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jamu Kakar (jkakar) wrote :

You can get a readable diff with this command:

bzr diff -r ancestor:lp:launchpadlib `bzr st -S -r ancestor:lp:launchpadlib|cut -d ' ' -f 3|grep -v xml`|less

This branch introduces a new launchpadlib.testing.launchpad module
that contains a FakeLaunchpad. This is a fake version of
launchpadlib.launchpad.Launchpad for use in unit tests. The basic
idea is that you set sample data on the fake API in the setup phase
of your test, for example:

    def test_me(self):
        credentials = object()
        launchpad = FakeLaunchpad(credentials)
        launchpad.me = dict(name="foo", display_name="Foo")
        self.assertEqual("foo", launchpad.me.name)
        self.assertEqual("Foo", launchpad.me.display_name)

Objects that would normally be returned by the API are represented
as dicts, as can be seen above with the person set on
'launchpad.me'. The 'name' and 'display_name' attributes are
validated against the WADL definition to make sure that they are
allowed to exist and to make sure they contain valid values. Only
partial objects need to be supplied, to make it easy to write tests
without creating complete sample data sets. There are tests in the
branch that should help you make sense of the implementation.

Other notes:

- Method parameters are not validated at all.

- There's no support for deleting sample data set on the fake API
  instance.

- The implementation is a bit hackish, hard to understand and, in
  some places, relies on heuristics.

- I've tried as much as possible to mimic the behaviour of the real
  Launchpad instance, but there are no tests that ensure the fake
  and real versions of the API behave the same way. It'd be worth
  adding this kind of thing in the future.

- I haven't tried to use this to write tests for a real application
  yet, so there may some obvious things missing.

- There is no user documentation. It'd be good to add a doctest in
  the future that describes and demonstrates the behaviour of a
  FakeLaunchpad instance.

Revision history for this message
Jamu Kakar (jkakar) wrote :

I've just realized that I've forgotten to provide handling of the
lp_save method. I'll hack on that, but in the meantime I would
appreciate a review of what's here.

Revision history for this message
Leonard Richardson (leonardr) wrote :

Jamu,

This is a branch I have often thought about writing and actually started work on recently. I think about writing this branch every time I have to check out a Launchpad instance just so I can run the launchpadlib tests. Your implementation of this branch looks much better than mine would have been. Jonathan Lange has also talked about writing a similar branch. But the reason I never wrote this branch is the reason I must regretfully vote "disapprove" on this code review: its promise of additional test coverage is mostly an illusion.

As you put it, "there are no tests that ensure the fake and real versions of the API behave the same way." It's generally safe to assume that the Launchpad WADL is an accurate description of the Launchpad web service, but 1) the WADL changes every month, and 2) WADL only describes the HTTP interface, not the server-side logic. (As you put it, "[m]ethod parameters are not validated at all.")

So, you can test your script against a fake Launchpad that has the basic structure of an unknown old version of Launchpad. If you want to reproduce the basic structure of the most current version of Launchpad, you can download a fresh WADL every time, but it's not a good idea to introduce a network dependency into your tests. Or, you can check out a Launchpad instance and download its WADL through a local connection.

But once you've checked out a Launchpad instance, you can "just" run your tests within the Launchpad instance, the way launchpadlib's tests are run. I put "just" in quotes because this whole process is currently quite annoying--but you are running against a full Launchpad instance with all the features of Launchpad and a well-known data set. If your test passes here, you know it will pass against the real Launchpad.

If this alternative didn't exist (eg. because Launchpad was not open source), then your branch would make a lot of sense. It lets you make sure your script doesn't violate the web service's published contract, which is better than nothing. But because Launchpad is open source, you can do better by going through some extra trouble.

In short, I think it's more promising to work on making it easier to run tests in a Launchpad instance. I'd like to hear your thoughts on this. Maybe you think it'll never be easy enough to test your script against a locally running Launchpad and that this is the next best thing. Even if I accepted that, I'd like to see a better solution than including an old version of the Launchpad WADL in launchpadlib. (We have an old version of the Launchpad WADL in wadllib, but it's not used to test features of Launchpad. It was just a nice complicated WADL file we happened to have lying around.)

review: Disapprove
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

On November 17, 2009, Leonard Richardson wrote:
> But the reason I never wrote this branch is the reason I must regretfully
> vote "disapprove" on this code review: its promise of additional test
> coverage is mostly an illusion.

I disagree with this assessment. It is true that this doesn't help at all in
ensuring integration-level tests, but it does help in ensuring unit-test
coverage.

This is basically an easy way to write stubs that are at least to some extent
share the external interface with the Launchpad web service.

Unit-tests are there to assert that your code works as you expect it to work
_as a unit_. The fact that the code might not work when used against the real
web service is an integration problem and should be covered by a separate
testing strategy (integration testing).

But unit-tests are very useful for a fast TDD cycle, which is very hard to
achieve when you are doing integration testing and have to pay the Launchpad
start-up cost.

I agree thought that the WADL moving target is the biggest problem here. Maybe
if the build step could try to download the latest one, that would be less of
a problem.

--
Francis J. Lacoste
<email address hidden>

Revision history for this message
Jamu Kakar (jkakar) wrote :

Thanks for the comments! I have some opinions/ideas about the
branch:

- I agree that keeping FakeLaunchpad's behaviour in sync with a real
  Launchpad instance is tricky. I haven't done anything about it in
  this branch mostly because of time, but writing a set of tests to
  ensure that FakeLaunchpad correctly mirrors Launchpad is not
  impossible.

- The benefit of being able to write unit tests is massive. For
  example, it's particularly difficult to write a robust
  launchpadlib-using application because accessing (many) attributes
  can result in HTTP exceptions being raised. Dealing with such a
  fragile environment without tests is pretty much impossible. I
  would rather deal with problems that come up due to fake/real
  mismatches and be able to write tests than not.

- Running Launchpad locally is painful. Asking users of the API to
  setup a local Launchpad installation creates a barrier to entry
  and an ongoing maintenance headache. If this turns out to be the
  answer I suspect users will opt not to write non-trivial
  applications with launchpadlib. I will be much less excited about
  using the library if I have to maintain a local Launchpad setup.

- I included a WADL file in the branch because it was the easiest
  way for me to get going with the idea. I've envisioned making it
  possible to download a WADL file as part of a test run from the
  beginning. Adding a network dependency to a test suite is an
  annoyance, but one I'd be happy to live with.

- The note about validating method parameters was not about it being
  impossible, just about it not being done yet. The WADL file
  includes enough data to do some validation. It's true that the
  WADL file doesn't provide all the information necessary to do a
  perfect job, but I feel it provides enough to be useful.

Obviously I feel that this branch (or the idea, at least) is useful,
otherwise I wouldn't have implemented it. I'm even curious about
taking it farther and seeing if something like this can be pushed
into lazr.restful[,client], but I don't know enough about either of
those things to know how realistic that might be.

Regardless of whether or not this branch is accepted, I feel that
the testing story for launchpadlib is rather poor at present and
that something needs to be done about it. I want to write
applications using launchpadlib that I can depend on and, at
present, I can't do that.

Revision history for this message
Jamu Kakar (jkakar) wrote :

There's another important point that I think is obvious, but I'll
mention it anyway: it's important for tests to be fast. The tests
I've written for FakeLaunchpad itself demonstrate that this method
can result in fast tests. The 40 or so tests I've added run in 0.1s
locally, though they achieve this speed by caching the wadllib
Application object and reusing it for each test. Even still,
reloading the WADL file isn't too terrible.

launchpadlib is quite slow because of all the round trips. Writing
a test suite for a non-trivial application that needs a real
Launchpad API server will eventually result in a slow test suite
that will be annoying to work with.

Another important point is that using a real Launchpad API server
for unit tests will cause difficulty when it comes to simulating
failures. Doing so with FakeLaunchpad will be much easier.

Revision history for this message
Jamu Kakar (jkakar) wrote :

Leonard:

Before you go, can you please comment on this? I realize it's not
quite merge-ready but I'd like to know if you still disapprove of
the idea entirely or if the arguments that have been made have
swayed your opinion. I'd like to finish up the missing bits
(primarily handling lp_save) and get this merged, hopefully before
the end of the year.

Revision history for this message
Leonard Richardson (leonardr) wrote :

Attention conservation notice: go ahead.

When I tried to write a branch like this in the past, I was always trying to test launchpadlib itself. My goal was to set up a dummy Launchpad web service and make sure that the Launchpad object sent the right HTTP requests when you manipulated it, and did the right thing with different HTTP responses from the dummy service.

I was judging your branch against these criteria, but you're doing something different. You don't dummy the Launchpad web service to test the Launchpad object; you dummy the Launchpad object to test other stuff. Your dummy object can't be used to test the Launchpad object except on a superficial level, but it is very useful for testing code that uses the Launchpad class. So I think it's good enough for what it does.

We all agree it would be better if tests ran against a real Launchpad instance, but that's slow and complicated, and running against an up-to-date WADL gets us most of the way there. So please continue with this work.

Revision history for this message
Jamu Kakar (jkakar) wrote :

> When I tried to write a branch like this in the past, I was always trying to
> test launchpadlib itself. My goal was to set up a dummy Launchpad web service
> and make sure that the Launchpad object sent the right HTTP requests when you
> manipulated it, and did the right thing with different HTTP responses from the
> dummy service.

My initial attempts at solving the problem I have (make it easy to
test applications that use launchpadlib) involved this kind of
thing, but I quickly realized that it was going to be very painful.

> I was judging your branch against these criteria, but you're doing something
> different. You don't dummy the Launchpad web service to test the Launchpad
> object; you dummy the Launchpad object to test other stuff. Your dummy object
> can't be used to test the Launchpad object except on a superficial level, but
> it is very useful for testing code that uses the Launchpad class. So I think
> it's good enough for what it does.

Right, FakeLaunchpad can't be used to test Launchpad in any
meaningful way. I would still like to explore the idea of writing
some set of integration tests to ensure that the FakeLaunchpad and
Launchpad objects behave the same way, but it's not exactly clear to
me what the best way to do that is yet.

> We all agree it would be better if tests ran against a real Launchpad
> instance, but that's slow and complicated, and running against an up-to-date
> WADL gets us most of the way there. So please continue with this work.

Great, thanks a lot!

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2009-03-19 15:22:56 +0000
+++ .bzrignore 2009-11-04 22:40:23 +0000
@@ -9,3 +9,5 @@
9build9build
10*.egg10*.egg
11dist11dist
12eggs
13_trial_temp
1214
=== added file 'Makefile'
--- Makefile 1970-01-01 00:00:00 +0000
+++ Makefile 2009-11-04 22:40:23 +0000
@@ -0,0 +1,5 @@
1check:
2 @PYTHONPATH=$(PYTHONPATH):src trial src/launchpadlib
3
4clean:
5 find . -name \*pyc -exec rm {} \;
0\ No newline at end of file6\ No newline at end of file
17
=== added file 'src/launchpadlib/testing/launchpad-wadl.xml'
--- src/launchpadlib/testing/launchpad-wadl.xml 1970-01-01 00:00:00 +0000
+++ src/launchpadlib/testing/launchpad-wadl.xml 2009-11-04 22:40:23 +0000
@@ -0,0 +1,27425 @@
1<?xml version="1.0"?>
2<!DOCTYPE application [
3 <!ENTITY nbsp "\&#160;">
4]>
5<wadl:application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xmlns="http://research.sun.com/wadl/2006/10"
7 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
8 xmlns:wadl="http://research.sun.com/wadl/2006/10"
9 xsi:schemaLocation="http://research.sun.com/wadl/2006/10/wadl.xsd">
10
11 <!--There is one "service root" resource, located (as you'd expect)
12 at the service root. This very document is the WADL
13 representation of the "service root" resource.-->
14 <wadl:resources base="https://api.edge.launchpad.net/beta/">
15 <wadl:resource path="" type="#service-root"/>
16 </wadl:resources>
17
18 <!--A "service root" resource responds to GET.-->
19 <wadl:resource_type id="service-root">
20 <wadl:doc>The root of the web service.</wadl:doc>
21 <wadl:method name="GET" id="service-root-get">
22 <wadl:response>
23 <wadl:representation href="#service-root-json"/>
24 <wadl:representation mediaType="application/vd.sun.wadl+xml" id="service-root-wadl"/>
25 </wadl:response>
26 </wadl:method>
27 </wadl:resource_type>
28
29 <!--The JSON representation of a "service root" resource contains a
30 number of links to collection-type resources.-->
31 <wadl:representation mediaType="application/json" id="service-root-json">
32
33 <wadl:param style="plain" path="$['me_link']"
34 name="me_link">
35 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
36 </wadl:param>
37
38
39 <wadl:param style="plain"
40 path="$['cves_collection_link']"
41 name="cves_collection_link">
42 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#cves"/>
43 </wadl:param>
44
45
46 <wadl:param style="plain"
47 path="$['branches_collection_link']"
48 name="branches_collection_link">
49 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branches"/>
50 </wadl:param>
51
52
53 <wadl:param style="plain"
54 path="$['project_groups_collection_link']"
55 name="project_groups_collection_link">
56 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#project_groups"/>
57 </wadl:param>
58
59
60 <wadl:param style="plain"
61 path="$['distributions_collection_link']"
62 name="distributions_collection_link">
63 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distributions"/>
64 </wadl:param>
65
66
67 <wadl:param style="plain"
68 path="$['projects_collection_link']"
69 name="projects_collection_link">
70 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#projects"/>
71 </wadl:param>
72
73
74 <wadl:param style="plain"
75 path="$['packagesets_collection_link']"
76 name="packagesets_collection_link">
77 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#packagesets"/>
78 </wadl:param>
79
80
81 <wadl:param style="plain" path="$['pillars_link']"
82 name="pillars_link">
83 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#pillars"/>
84 </wadl:param>
85
86
87 <wadl:param style="plain"
88 path="$['translation_import_queue_entries_collection_link']"
89 name="translation_import_queue_entries_collection_link">
90 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#translation_import_queue_entries"/>
91 </wadl:param>
92
93
94 <wadl:param style="plain"
95 path="$['people_collection_link']"
96 name="people_collection_link">
97 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#people"/>
98 </wadl:param>
99
100
101 <wadl:param style="plain"
102 path="$['bugs_collection_link']"
103 name="bugs_collection_link">
104 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#bugs"/>
105 </wadl:param>
106
107 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
108 <wadl:doc>The link to the WADL description of this resource.</wadl:doc>
109 <wadl:link/>
110 </wadl:param>
111 </wadl:representation>
112
113 <!--In addition to the service root, this document describes all the
114 types of resources you might encounter as you browse this web
115 service.-->
116
117 <!--Begin resource_type definitions for collection resources.-->
118
119 <wadl:resource_type id="branches">
120 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
121Interface representing the set of branches.
122</wadl:doc>
123 <wadl:method name="GET" id="branches-get">
124 <wadl:response>
125 <wadl:representation
126 href="https://api.edge.launchpad.net/beta/#branch-page"/>
127 <wadl:representation
128 mediaType="application/vd.sun.wadl+xml"
129 id="branches-wadl"/>
130 </wadl:response>
131 </wadl:method>
132
133 <wadl:method id="branches-getByUniqueName" name="GET">
134 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
135<p>Find a branch by its ~owner/product/name unique name.</p>
136<p>Return None if no match was found.</p>
137
138</wadl:doc>
139 <wadl:request>
140
141 <wadl:param style="query" name="ws.op"
142 required="true"
143 fixed="getByUniqueName">
144 <wadl:doc>The name of the operation being invoked.</wadl:doc>
145 </wadl:param>
146 <wadl:param style="query" required="true"
147 name="unique_name">
148 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
149Branch unique name
150</wadl:doc>
151
152 </wadl:param>
153
154 </wadl:request>
155 <wadl:response>
156
157 <wadl:representation
158 href="https://api.edge.launchpad.net/beta/#branch-full"/>
159 </wadl:response>
160 </wadl:method>
161 <wadl:method id="branches-getByUrl" name="GET">
162 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
163<p>Find a branch by URL.</p>
164<p>Either from the external specified in Branch.url, from the URL on
165<a class="rst-reference external" href="http://bazaar.launchpad.net/" target="_top">http://bazaar.launchpad.net/</a> or the lp: URL.</p>
166<p>Return None if no match was found.</p>
167
168</wadl:doc>
169 <wadl:request>
170
171 <wadl:param style="query" name="ws.op"
172 required="true" fixed="getByUrl">
173 <wadl:doc>The name of the operation being invoked.</wadl:doc>
174 </wadl:param>
175 <wadl:param style="query" required="true"
176 name="url">
177 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
178Branch URL
179</wadl:doc>
180
181 </wadl:param>
182
183 </wadl:request>
184 <wadl:response>
185
186 <wadl:representation
187 href="https://api.edge.launchpad.net/beta/#branch-full"/>
188 </wadl:response>
189 </wadl:method>
190 </wadl:resource_type>
191
192
193
194 <wadl:resource_type id="cves">
195 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
196The set of ICve objects.
197</wadl:doc>
198 <wadl:method name="GET" id="cves-get">
199 <wadl:response>
200 <wadl:representation
201 href="https://api.edge.launchpad.net/beta/#cve-page"/>
202 <wadl:representation
203 mediaType="application/vd.sun.wadl+xml" id="cves-wadl"/>
204 </wadl:response>
205 </wadl:method>
206
207 </wadl:resource_type>
208
209
210
211 <wadl:resource_type id="distributions">
212 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
213Interface for DistrosSet
214</wadl:doc>
215 <wadl:method name="GET" id="distributions-get">
216 <wadl:response>
217 <wadl:representation
218 href="https://api.edge.launchpad.net/beta/#distribution-page"/>
219 <wadl:representation
220 mediaType="application/vd.sun.wadl+xml"
221 id="distributions-wadl"/>
222 </wadl:response>
223 </wadl:method>
224
225 </wadl:resource_type>
226
227
228
229 <wadl:resource_type id="bugs">
230 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
231Application root for malone.
232</wadl:doc>
233 <wadl:method name="GET" id="bugs-get">
234 <wadl:response>
235 <wadl:representation
236 href="https://api.edge.launchpad.net/beta/#bug-page"/>
237 <wadl:representation
238 mediaType="application/vd.sun.wadl+xml" id="bugs-wadl"/>
239 </wadl:response>
240 </wadl:method>
241
242 <wadl:method id="bugs-createBug" name="POST">
243 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
244<p>Create a bug (with an appropriate bugtask) and return it.</p>
245<table class="rst-docutils field-list" frame="void" rules="none">
246<col class="field-name" />
247<col class="field-body" />
248<tbody valign="top">
249<tr class="rst-field"><th class="rst-field-name">param target:</th><td class="rst-field-body">The Product, Distribution or DistributionSourcePackage
250affected by this bug.</td>
251</tr>
252</tbody>
253</table>
254<p>Things to note when using this factory:</p>
255<blockquote>
256<ul class="rst-simple">
257<li>the owner will be subscribed to the bug</li>
258<li>distribution, product and package contacts (whichever ones are
259applicable based on the bug report target) will bug subscribed to
260all <em>public bugs only</em></li>
261<li>for public upstreams bugs where there is no upstream bug contact,
262the product owner will be subscribed instead</li>
263</ul>
264</blockquote>
265
266</wadl:doc>
267 <wadl:request>
268 <wadl:representation
269 mediaType="application/x-www-form-urlencoded">
270 <wadl:param style="query" name="ws.op"
271 required="true" fixed="createBug">
272 <wadl:doc>The name of the operation being invoked.</wadl:doc>
273 </wadl:param>
274 <wadl:param style="query" required="false"
275 name="security_related">
276 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
277This bug is a security vulnerability
278</wadl:doc>
279
280 </wadl:param>
281 <wadl:param style="query" required="true"
282 name="target">
283 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
284The project, distribution or source package that has this bug.
285</wadl:doc>
286 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#bug_target"/>
287 </wadl:param>
288 <wadl:param style="query" required="false"
289 name="tags">
290 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
291<p>Tags</p>
292<p>Separated by whitespace.</p>
293
294</wadl:doc>
295
296 </wadl:param>
297 <wadl:param style="query" required="true"
298 name="title">
299 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
300<p>Summary</p>
301<p>A one-line summary of the problem.</p>
302
303</wadl:doc>
304
305 </wadl:param>
306 <wadl:param style="query" required="false"
307 name="private">
308 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
309<p>This bug report should be private</p>
310<p>Private bug reports are visible only to their subscribers.</p>
311
312</wadl:doc>
313
314 </wadl:param>
315 <wadl:param style="query" required="true"
316 name="description">
317 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
318<p>Description</p>
319<dl class="rst-docutils">
320<dt>A detailed description of the problem,</dt>
321<dd>including the steps required to reproduce it.</dd>
322</dl>
323
324</wadl:doc>
325
326 </wadl:param>
327 </wadl:representation>
328 </wadl:request>
329 <wadl:response>
330 <wadl:param name="Location" style="header">
331 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#bug"/>
332 </wadl:param>
333
334 </wadl:response>
335 </wadl:method>
336 </wadl:resource_type>
337
338
339
340 <wadl:resource_type id="packagesets">
341 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
342An interface for multiple package sets.
343</wadl:doc>
344 <wadl:method name="GET" id="packagesets-get">
345 <wadl:response>
346 <wadl:representation
347 href="https://api.edge.launchpad.net/beta/#packageset-page"/>
348 <wadl:representation
349 mediaType="application/vd.sun.wadl+xml"
350 id="packagesets-wadl"/>
351 </wadl:response>
352 </wadl:method>
353
354 <wadl:method id="packagesets-setsIncludingSource"
355 name="GET">
356 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
357<p>Get the package sets that include this source package.</p>
358<p>Return all package sets that directly or indirectly include the
359given source package name.</p>
360<table class="rst-docutils field-list" frame="void" rules="none">
361<col class="field-name" />
362<col class="field-body" />
363<tbody valign="top">
364<tr class="rst-field"><th class="rst-field-name" colspan="2">param sourcepackagename:</th></tr>
365<tr><td>&nbsp;</td><td class="rst-field-body">the included source package name; can be
366either a string or a ISourcePackageName.</td>
367</tr>
368<tr class="rst-field"><th class="rst-field-name" colspan="2">param direct_inclusion:</th></tr>
369<tr><td>&nbsp;</td><td class="rst-field-body">if this flag is set to True, then only
370package sets that directly include this source package name will
371be considered.</td>
372</tr>
373<tr class="rst-field"><th class="rst-field-name" colspan="2">raises NoSuchSourcePackageName:</th></tr>
374<tr><td>&nbsp;</td><td class="rst-field-body">if a source package with the given
375name cannot be found.</td>
376</tr>
377<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A (potentially empty) sequence of IPackageset instances.</td>
378</tr>
379</tbody>
380</table>
381
382</wadl:doc>
383 <wadl:request>
384
385 <wadl:param style="query" name="ws.op"
386 required="true"
387 fixed="setsIncludingSource">
388 <wadl:doc>The name of the operation being invoked.</wadl:doc>
389 </wadl:param>
390 <wadl:param style="query" required="true"
391 name="sourcepackagename">
392 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
393Source package name
394</wadl:doc>
395
396 </wadl:param>
397 <wadl:param style="query" required="false"
398 name="direct_inclusion">
399
400
401 </wadl:param>
402
403 </wadl:request>
404 <wadl:response>
405
406 <wadl:representation
407 href="https://api.edge.launchpad.net/beta/#packageset-page"/>
408 </wadl:response>
409 </wadl:method>
410 <wadl:method id="packagesets-getByName" name="GET">
411 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
412<p>Return the single package set with the given name (if any).</p>
413<table class="rst-docutils field-list" frame="void" rules="none">
414<col class="field-name" />
415<col class="field-body" />
416<tbody valign="top">
417<tr class="rst-field"><th class="rst-field-name">param name:</th><td class="rst-field-body">the name of the package set sought.</td>
418</tr>
419<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">An IPackageset instance or None.</td>
420</tr>
421</tbody>
422</table>
423
424</wadl:doc>
425 <wadl:request>
426
427 <wadl:param style="query" name="ws.op"
428 required="true" fixed="getByName">
429 <wadl:doc>The name of the operation being invoked.</wadl:doc>
430 </wadl:param>
431 <wadl:param style="query" required="true"
432 name="name">
433 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
434Package set name
435</wadl:doc>
436
437 </wadl:param>
438
439 </wadl:request>
440 <wadl:response>
441
442 <wadl:representation
443 href="https://api.edge.launchpad.net/beta/#packageset-full"/>
444 </wadl:response>
445 </wadl:method>
446 <wadl:method id="packagesets-new" name="POST">
447 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
448<p>Create a new package set.</p>
449<table class="rst-docutils field-list" frame="void" rules="none">
450<col class="field-name" />
451<col class="field-body" />
452<tbody valign="top">
453<tr class="rst-field"><th class="rst-field-name">param name:</th><td class="rst-field-body">the name of the package set to be created.</td>
454</tr>
455<tr class="rst-field"><th class="rst-field-name" colspan="2">param description:</th></tr>
456<tr><td>&nbsp;</td><td class="rst-field-body">the description for the package set to be created.</td>
457</tr>
458<tr class="rst-field"><th class="rst-field-name">param owner:</th><td class="rst-field-body">the owner of the package set to be created.</td>
459</tr>
460<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">a newly created IPackageset.</td>
461</tr>
462</tbody>
463</table>
464
465</wadl:doc>
466 <wadl:request>
467 <wadl:representation
468 mediaType="application/x-www-form-urlencoded">
469 <wadl:param style="query" name="ws.op"
470 required="true" fixed="new">
471 <wadl:doc>The name of the operation being invoked.</wadl:doc>
472 </wadl:param>
473 <wadl:param style="query" required="true"
474 name="owner">
475 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
476<p>Person</p>
477<p>The person who owns the package set at hand.</p>
478
479</wadl:doc>
480 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
481 </wadl:param>
482 <wadl:param style="query" required="true"
483 name="description">
484 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
485Package set description
486</wadl:doc>
487
488 </wadl:param>
489 <wadl:param style="query" required="true"
490 name="name">
491 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
492Valid package set name
493</wadl:doc>
494
495 </wadl:param>
496 </wadl:representation>
497 </wadl:request>
498 <wadl:response>
499 <wadl:param name="Location" style="header">
500 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#packageset"/>
501 </wadl:param>
502
503 </wadl:response>
504 </wadl:method>
505 </wadl:resource_type>
506
507
508
509 <wadl:resource_type id="people">
510 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
511The set of Persons.
512</wadl:doc>
513 <wadl:method name="GET" id="people-get">
514 <wadl:response>
515 <wadl:representation
516 href="https://api.edge.launchpad.net/beta/#person-page"/>
517 <wadl:representation
518 mediaType="application/vd.sun.wadl+xml" id="people-wadl"/>
519 </wadl:response>
520 </wadl:method>
521
522 <wadl:method id="people-findPerson" name="GET">
523 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
524<p>Return all non-merged Persons with at least one email address whose
525name, displayname or email address match &lt;text&gt;.</p>
526<p>If text is an empty string, all persons with at least one email
527address will be returned.</p>
528<p>The results will be ordered using the default ordering specified in
529Person._defaultOrder.</p>
530<p>If exclude_inactive_accounts is True, any accounts whose
531account_status is any of INACTIVE_ACCOUNT_STATUSES will not be in the
532returned set.</p>
533<p>If must_have_email is True, only people with one or more email
534addresses are returned.</p>
535<p>While we don't have Full Text Indexes in the emailaddress table, we'll
536be trying to match the text only against the beginning of an email
537address.</p>
538
539</wadl:doc>
540 <wadl:request>
541
542 <wadl:param style="query" name="ws.op"
543 required="true" fixed="findPerson">
544 <wadl:doc>The name of the operation being invoked.</wadl:doc>
545 </wadl:param>
546 <wadl:param style="query" required="true"
547 name="text">
548 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
549Search text
550</wadl:doc>
551
552 </wadl:param>
553
554 </wadl:request>
555 <wadl:response>
556
557 <wadl:representation
558 href="https://api.edge.launchpad.net/beta/#person-page"/>
559 </wadl:response>
560 </wadl:method>
561 <wadl:method id="people-getByEmail" name="GET">
562 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
563<p>Return the person with the given email address.</p>
564<p>Return None if there is no person with the given email address.</p>
565
566</wadl:doc>
567 <wadl:request>
568
569 <wadl:param style="query" name="ws.op"
570 required="true" fixed="getByEmail">
571 <wadl:doc>The name of the operation being invoked.</wadl:doc>
572 </wadl:param>
573 <wadl:param style="query" required="true"
574 name="email">
575
576
577 </wadl:param>
578
579 </wadl:request>
580 <wadl:response>
581
582 <wadl:representation
583 href="https://api.edge.launchpad.net/beta/#person-full"/>
584 </wadl:response>
585 </wadl:method>
586 <wadl:method id="people-find" name="GET">
587 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
588<p>Return all non-merged Persons and Teams whose name, displayname or
589email address match &lt;text&gt;.</p>
590<p>The results will be ordered using the default ordering specified in
591Person._defaultOrder.</p>
592<p>While we don't have Full Text Indexes in the emailaddress table, we'll
593be trying to match the text only against the beginning of an email
594address.</p>
595
596</wadl:doc>
597 <wadl:request>
598
599 <wadl:param style="query" name="ws.op"
600 required="true" fixed="find">
601 <wadl:doc>The name of the operation being invoked.</wadl:doc>
602 </wadl:param>
603 <wadl:param style="query" required="true"
604 name="text">
605 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
606Search text
607</wadl:doc>
608
609 </wadl:param>
610
611 </wadl:request>
612 <wadl:response>
613
614 <wadl:representation
615 href="https://api.edge.launchpad.net/beta/#person-page"/>
616 </wadl:response>
617 </wadl:method>
618 <wadl:method id="people-findTeam" name="GET">
619 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
620<p>Return all Teams whose name, displayname or email address
621match &lt;text&gt;.</p>
622<p>The results will be ordered using the default ordering specified in
623Person._defaultOrder.</p>
624<p>While we don't have Full Text Indexes in the emailaddress table, we'll
625be trying to match the text only against the beginning of an email
626address.</p>
627
628</wadl:doc>
629 <wadl:request>
630
631 <wadl:param style="query" name="ws.op"
632 required="true" fixed="findTeam">
633 <wadl:doc>The name of the operation being invoked.</wadl:doc>
634 </wadl:param>
635 <wadl:param style="query" required="true"
636 name="text">
637 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
638Search text
639</wadl:doc>
640
641 </wadl:param>
642
643 </wadl:request>
644 <wadl:response>
645
646 <wadl:representation
647 href="https://api.edge.launchpad.net/beta/#person-page"/>
648 </wadl:response>
649 </wadl:method>
650 <wadl:method id="people-newTeam" name="POST">
651 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
652Create and return a new Team with given arguments.
653</wadl:doc>
654 <wadl:request>
655 <wadl:representation
656 mediaType="application/x-www-form-urlencoded">
657 <wadl:param style="query" name="ws.op"
658 required="true" fixed="newTeam">
659 <wadl:doc>The name of the operation being invoked.</wadl:doc>
660 </wadl:param>
661 <wadl:param style="query" required="true"
662 name="display_name">
663 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
664<p>Display Name</p>
665<p>Your name as you would like it displayed throughout Launchpad. Most people use their full name here.</p>
666
667</wadl:doc>
668
669 </wadl:param>
670 <wadl:param style="query" required="true"
671 name="name">
672 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
673<p>Name</p>
674<p>A short unique name, beginning with a lower-case letter or number, and containing only letters, numbers, dots, hyphens, or plus signs.</p>
675
676</wadl:doc>
677
678 </wadl:param>
679 <wadl:param style="query" required="false"
680 name="default_membership_period">
681 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
682<p>Subscription period</p>
683<p>Number of days a new subscription lasts before expiring. You can customize the length of an individual subscription when approving it. Leave this empty or set to 0 for subscriptions to never expire.</p>
684
685</wadl:doc>
686
687 </wadl:param>
688 <wadl:param style="query" required="false"
689 name="team_description">
690 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
691<p>Team Description</p>
692<p>Include information on how to get involved with development. Use plain text; URLs will be linkified.</p>
693
694</wadl:doc>
695
696 </wadl:param>
697 <wadl:param style="query" required="false"
698 name="default_renewal_period">
699 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
700<p>Renewal period</p>
701<p>Number of days a subscription lasts after being renewed. You can customize the lengths of individual renewals, but this is what's used for auto-renewed and user-renewed memberships.</p>
702
703</wadl:doc>
704
705 </wadl:param>
706 <wadl:param style="query" required="false"
707 name="subscription_policy">
708 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
709Subscription policy
710</wadl:doc>
711
712 <wadl:option value="Moderated Team"/>
713 <wadl:option value="Open Team"/>
714 <wadl:option value="Restricted Team"/>
715 </wadl:param>
716 </wadl:representation>
717 </wadl:request>
718 <wadl:response>
719 <wadl:param name="Location" style="header">
720 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#team"/>
721 </wadl:param>
722
723 </wadl:response>
724 </wadl:method>
725 </wadl:resource_type>
726
727
728
729 <wadl:resource_type id="projects">
730
731 <wadl:method name="GET" id="projects-get">
732 <wadl:response>
733 <wadl:representation
734 href="https://api.edge.launchpad.net/beta/#project-page"/>
735 <wadl:representation
736 mediaType="application/vd.sun.wadl+xml"
737 id="projects-wadl"/>
738 </wadl:response>
739 </wadl:method>
740
741 <wadl:method id="projects-search" name="GET">
742 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
743Search through the Registry database for products that match the
744query terms. text is a piece of text in the title / summary /
745description fields of product. soyuz, bazaar, malone etc are
746hints as to whether the search should be limited to products
747that are active in those Launchpad applications.
748</wadl:doc>
749 <wadl:request>
750
751 <wadl:param style="query" name="ws.op"
752 required="true" fixed="search">
753 <wadl:doc>The name of the operation being invoked.</wadl:doc>
754 </wadl:param>
755 <wadl:param style="query" required="false"
756 name="text">
757 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
758Search text
759</wadl:doc>
760
761 </wadl:param>
762
763 </wadl:request>
764 <wadl:response>
765
766 <wadl:representation
767 href="https://api.edge.launchpad.net/beta/#project-page"/>
768 </wadl:response>
769 </wadl:method>
770 <wadl:method id="projects-licensing_search" name="GET">
771 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
772Return an iterator over products that need to be reviewed.
773</wadl:doc>
774 <wadl:request>
775
776 <wadl:param style="query" name="ws.op"
777 required="true"
778 fixed="licensing_search">
779 <wadl:doc>The name of the operation being invoked.</wadl:doc>
780 </wadl:param>
781 <wadl:param style="query" required="false"
782 name="license_reviewed">
783 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
784Is the project license reviewed
785</wadl:doc>
786
787 </wadl:param>
788 <wadl:param style="query" required="false"
789 name="license_info_is_empty">
790 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
791License info is empty
792</wadl:doc>
793
794 </wadl:param>
795 <wadl:param style="query" required="false"
796 name="search_text">
797 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
798Search text
799</wadl:doc>
800
801 </wadl:param>
802 <wadl:param style="query" required="false"
803 name="has_zero_licenses">
804 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
805Has zero licenses
806</wadl:doc>
807
808 </wadl:param>
809 <wadl:param style="query" required="false"
810 type="xsd:date"
811 name="subscription_expires_after">
812 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
813Subscription expires after
814</wadl:doc>
815
816 </wadl:param>
817 <wadl:param style="query" required="false"
818 name="active">
819 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
820Is the project active
821</wadl:doc>
822
823 </wadl:param>
824 <wadl:param style="query" required="false"
825 type="xsd:date"
826 name="subscription_modified_after">
827 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
828Subscription modified after
829</wadl:doc>
830
831 </wadl:param>
832 <wadl:param style="query" required="false"
833 type="xsd:date" name="created_after">
834 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
835Created after date
836</wadl:doc>
837
838 </wadl:param>
839 <wadl:param style="query" required="false"
840 name="licenses">
841 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
842Licenses
843</wadl:doc>
844
845 </wadl:param>
846 <wadl:param style="query" required="false"
847 type="xsd:date"
848 name="subscription_expires_before">
849 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
850Subscription expired before
851</wadl:doc>
852
853 </wadl:param>
854 <wadl:param style="query" required="false"
855 type="xsd:date"
856 name="created_before">
857 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
858Created before date
859</wadl:doc>
860
861 </wadl:param>
862 <wadl:param style="query" required="false"
863 type="xsd:date"
864 name="subscription_modified_before">
865 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
866Subscription modified before
867</wadl:doc>
868
869 </wadl:param>
870
871 </wadl:request>
872 <wadl:response>
873
874 <wadl:representation
875 href="https://api.edge.launchpad.net/beta/#project-page"/>
876 </wadl:response>
877 </wadl:method>
878 <wadl:method id="projects-latest" name="GET">
879 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
880<p>Return the latest projects registered in Launchpad.</p>
881<p>If the quantity is not specified or is a value that is not 'None'
882then the set of projects returned is limited to that value (the
883default quantity is 5). If quantity is 'None' then all projects are
884returned. For the web service it is not possible to specify the
885quantity, so all projects are returned, latest first.</p>
886
887</wadl:doc>
888 <wadl:request>
889
890 <wadl:param style="query" name="ws.op"
891 required="true" fixed="latest">
892 <wadl:doc>The name of the operation being invoked.</wadl:doc>
893 </wadl:param>
894
895 </wadl:request>
896 <wadl:response>
897
898 <wadl:representation
899 href="https://api.edge.launchpad.net/beta/#project-page"/>
900 </wadl:response>
901 </wadl:method>
902 <wadl:method id="projects-new_project" name="POST">
903 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
904<p>Create and return a brand new Product.</p>
905<p>See IProduct for a description of the parameters.</p>
906
907</wadl:doc>
908 <wadl:request>
909 <wadl:representation
910 mediaType="application/x-www-form-urlencoded">
911 <wadl:param style="query" name="ws.op"
912 required="true" fixed="new_project">
913 <wadl:doc>The name of the operation being invoked.</wadl:doc>
914 </wadl:param>
915 <wadl:param style="query" required="false"
916 name="wiki_url">
917 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
918<p>Wiki URL</p>
919<dl class="rst-docutils">
920<dt>The full URL of this project's wiki, if it has</dt>
921<dd>one. Please include the <a class="rst-reference external" href="http://" target="_top">http://</a></dd>
922</dl>
923
924</wadl:doc>
925
926 </wadl:param>
927 <wadl:param style="query" required="false"
928 name="download_url">
929 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
930<p>Download URL</p>
931<dl class="rst-docutils">
932<dt>The full URL where downloads for this project</dt>
933<dd>are located, if available. Please include the <a class="rst-reference external" href="http://" target="_top">http://</a></dd>
934</dl>
935
936</wadl:doc>
937
938 </wadl:param>
939 <wadl:param style="query" required="false"
940 name="license_reviewed">
941 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
942<p>Project reviewed</p>
943<p>Whether or not this project has been reviewed. If you looked at the project and how it uses Launchpad, you reviewed it.</p>
944
945</wadl:doc>
946
947 </wadl:param>
948 <wadl:param style="query" required="true"
949 name="display_name">
950 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
951<p>Display Name</p>
952<dl class="rst-docutils">
953<dt>The name of the project as it would appear in a</dt>
954<dd>paragraph.</dd>
955</dl>
956
957</wadl:doc>
958
959 </wadl:param>
960 <wadl:param style="query" required="false"
961 name="description">
962 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
963<p>Description</p>
964<dl class="rst-docutils">
965<dt>Include information on how to get involved with</dt>
966<dd>development. Don't repeat anything from the Summary.</dd>
967</dl>
968
969</wadl:doc>
970
971 </wadl:param>
972 <wadl:param style="query" required="true"
973 name="title">
974 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
975<p>Title</p>
976<p>The project title. Should be just a few words.</p>
977
978</wadl:doc>
979
980 </wadl:param>
981 <wadl:param style="query" required="true"
982 name="summary">
983 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
984<p>Summary</p>
985<p>The summary should be a single short paragraph.</p>
986
987</wadl:doc>
988
989 </wadl:param>
990 <wadl:param style="query" required="false"
991 name="project_group">
992 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
993<p>Part of</p>
994<p>Super-project. In Launchpad, we can setup a special &quot;project group&quot; that is an overarching initiative that includes several related projects. For example, the Mozilla Project produces Firefox, Thunderbird and Gecko. This information is used to group those projects in a coherent way. If you make this project part of a group, the group preferences and decisions around bug tracking, translation and security policy will apply to this project.</p>
995
996</wadl:doc>
997 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#project_group"/>
998 </wadl:param>
999 <wadl:param style="query" required="false"
1000 name="licenses">
1001 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1002Licenses
1003</wadl:doc>
1004
1005 </wadl:param>
1006 <wadl:param style="query" required="false"
1007 name="freshmeat_project">
1008 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1009<p>Freshmeat Project</p>
1010<dl class="rst-docutils">
1011<dt>The Freshmeat project name for</dt>
1012<dd>this project, if it is in freshmeat.</dd>
1013</dl>
1014
1015</wadl:doc>
1016
1017 </wadl:param>
1018 <wadl:param style="query" required="false"
1019 name="sourceforge_project">
1020 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1021<p>Sourceforge Project</p>
1022<dl class="rst-docutils">
1023<dt>The SourceForge project name for</dt>
1024<dd>this project, if it is in sourceforge.</dd>
1025</dl>
1026
1027</wadl:doc>
1028
1029 </wadl:param>
1030 <wadl:param style="query" required="false"
1031 name="programming_lang">
1032 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1033<p>Programming Languages</p>
1034<dl class="rst-docutils">
1035<dt>A comma delimited list of programming</dt>
1036<dd>languages used for this project.</dd>
1037</dl>
1038
1039</wadl:doc>
1040
1041 </wadl:param>
1042 <wadl:param style="query" required="false"
1043 name="screenshots_url">
1044 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1045<p>Screenshots URL</p>
1046<dl class="rst-docutils">
1047<dt>The full URL for screenshots of this project,</dt>
1048<dd>if available. Please include the <a class="rst-reference external" href="http://" target="_top">http://</a></dd>
1049</dl>
1050
1051</wadl:doc>
1052
1053 </wadl:param>
1054 <wadl:param style="query" required="false"
1055 name="license_info">
1056 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1057<p>Description of additional licenses</p>
1058<p>Description of licenses that do not appear in the list above.</p>
1059
1060</wadl:doc>
1061
1062 </wadl:param>
1063 <wadl:param style="query" required="false"
1064 name="home_page_url">
1065 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1066<p>Homepage URL</p>
1067<dl class="rst-docutils">
1068<dt>The project home page. Please include</dt>
1069<dd>the <a class="rst-reference external" href="http://" target="_top">http://</a></dd>
1070</dl>
1071
1072</wadl:doc>
1073
1074 </wadl:param>
1075 <wadl:param style="query" required="false"
1076 name="registrant">
1077 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1078<p>Registrant</p>
1079<p>This person registered the project in Launchpad.</p>
1080
1081</wadl:doc>
1082 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
1083 </wadl:param>
1084 <wadl:param style="query" required="true"
1085 name="name">
1086 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1087<p>Name</p>
1088<p>At least one lowercase letter or number, followed by letters, numbers, dots, hyphens or pluses. Keep this name short; it is used in URLs as shown above.</p>
1089
1090</wadl:doc>
1091
1092 </wadl:param>
1093 </wadl:representation>
1094 </wadl:request>
1095 <wadl:response>
1096 <wadl:param name="Location" style="header">
1097 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#project"/>
1098 </wadl:param>
1099
1100 </wadl:response>
1101 </wadl:method>
1102 </wadl:resource_type>
1103
1104
1105
1106 <wadl:resource_type id="project_groups">
1107 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1108The collection of projects.
1109</wadl:doc>
1110 <wadl:method name="GET" id="project_groups-get">
1111 <wadl:response>
1112 <wadl:representation
1113 href="https://api.edge.launchpad.net/beta/#project_group-page"/>
1114 <wadl:representation
1115 mediaType="application/vd.sun.wadl+xml"
1116 id="project_groups-wadl"/>
1117 </wadl:response>
1118 </wadl:method>
1119
1120 <wadl:method id="project_groups-search" name="GET">
1121 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1122Search through the Registry database for projects that match the
1123query terms. text is a piece of text in the title / summary /
1124description fields of project (and possibly product). soyuz,
1125bazaar, malone etc are hints as to whether the search should
1126be limited to projects that are active in those Launchpad
1127applications.
1128</wadl:doc>
1129 <wadl:request>
1130
1131 <wadl:param style="query" name="ws.op"
1132 required="true" fixed="search">
1133 <wadl:doc>The name of the operation being invoked.</wadl:doc>
1134 </wadl:param>
1135 <wadl:param style="query" required="false"
1136 name="text">
1137 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1138Search text
1139</wadl:doc>
1140
1141 </wadl:param>
1142
1143 </wadl:request>
1144 <wadl:response>
1145
1146 <wadl:representation
1147 href="https://api.edge.launchpad.net/beta/#project_group-page"/>
1148 </wadl:response>
1149 </wadl:method>
1150 </wadl:resource_type>
1151
1152
1153
1154 <wadl:resource_type id="translation_import_queue_entries">
1155 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1156A set of files to be imported into Rosetta.
1157</wadl:doc>
1158 <wadl:method name="GET"
1159 id="translation_import_queue_entries-get">
1160 <wadl:response>
1161 <wadl:representation
1162 href="https://api.edge.launchpad.net/beta/#translation_import_queue_entry-page"/>
1163 <wadl:representation
1164 mediaType="application/vd.sun.wadl+xml"
1165 id="translation_import_queue_entries-wadl"/>
1166 </wadl:response>
1167 </wadl:method>
1168
1169 <wadl:method id="translation_import_queue_entries-getAllEntries"
1170 name="GET">
1171 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1172<p>Return all entries this import queue has.</p>
1173<table class="rst-docutils field-list" frame="void" rules="none">
1174<col class="field-name" />
1175<col class="field-body" />
1176<tbody valign="top">
1177<tr class="rst-field"><th class="rst-field-name">arg target:</th><td class="rst-field-body">IPerson, IProduct, IProductSeries, IDistribution,
1178IDistroSeries or ISourcePackage the import entries are attached to
1179or None to get all entries available.</td>
1180</tr>
1181<tr class="rst-field"><th class="rst-field-name" colspan="2">arg import_status:</th></tr>
1182<tr><td>&nbsp;</td><td class="rst-field-body">RosettaImportStatus entry.</td>
1183</tr>
1184<tr class="rst-field"><th class="rst-field-name" colspan="2">arg file_extensions:</th></tr>
1185<tr><td>&nbsp;</td><td class="rst-field-body">Sequence of filename suffixes to match, usually
1186'po' or 'pot'.</td>
1187</tr>
1188</tbody>
1189</table>
1190<p>If any of target, status or file_extension are given, the returned
1191entries are filtered based on those values.</p>
1192
1193</wadl:doc>
1194 <wadl:request>
1195
1196 <wadl:param style="query" name="ws.op"
1197 required="true"
1198 fixed="getAllEntries">
1199 <wadl:doc>The name of the operation being invoked.</wadl:doc>
1200 </wadl:param>
1201 <wadl:param style="query" required="false"
1202 name="import_status">
1203 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1204The status of the import.
1205</wadl:doc>
1206
1207 </wadl:param>
1208
1209 </wadl:request>
1210 <wadl:response>
1211
1212 <wadl:representation
1213 href="https://api.edge.launchpad.net/beta/#translation_import_queue_entry-page"/>
1214 </wadl:response>
1215 </wadl:method>
1216 <wadl:method id="translation_import_queue_entries-getRequestTargets"
1217 name="GET">
1218 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1219<p>List Product`s and `DistroSeries with pending imports.</p>
1220<table class="rst-docutils field-list" frame="void" rules="none">
1221<col class="field-name" />
1222<col class="field-body" />
1223<tbody valign="top">
1224<tr class="rst-field"><th class="rst-field-name">arg status:</th><td class="rst-field-body">Filter by RosettaImportStatus.</td>
1225</tr>
1226</tbody>
1227</table>
1228<p>All returned items will implement IHasTranslationImports.</p>
1229
1230</wadl:doc>
1231 <wadl:request>
1232
1233 <wadl:param style="query" name="ws.op"
1234 required="true"
1235 fixed="getRequestTargets">
1236 <wadl:doc>The name of the operation being invoked.</wadl:doc>
1237 </wadl:param>
1238 <wadl:param style="query" required="false"
1239 name="status">
1240 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1241The status of the import.
1242</wadl:doc>
1243
1244 </wadl:param>
1245
1246 </wadl:request>
1247 <wadl:response>
1248
1249 <wadl:representation
1250 href="https://api.edge.launchpad.net/beta/#object_with_translation_imports-page"/>
1251 </wadl:response>
1252 </wadl:method>
1253 <wadl:method id="translation_import_queue_entries-getFirstEntryToImport"
1254 name="GET">
1255 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1256<p>Return the first entry of the queue ready to be imported.</p>
1257<table class="rst-docutils field-list" frame="void" rules="none">
1258<col class="field-name" />
1259<col class="field-body" />
1260<tbody valign="top">
1261<tr class="rst-field"><th class="rst-field-name">param target:</th><td class="rst-field-body">IPerson, IProduct, IProductSeries, IDistribution,
1262IDistroSeries or ISourcePackage the import entries are attached to
1263or None to get all entries available.</td>
1264</tr>
1265</tbody>
1266</table>
1267
1268</wadl:doc>
1269 <wadl:request>
1270
1271 <wadl:param style="query" name="ws.op"
1272 required="true"
1273 fixed="getFirstEntryToImport">
1274 <wadl:doc>The name of the operation being invoked.</wadl:doc>
1275 </wadl:param>
1276 <wadl:param style="query" required="false"
1277 name="target">
1278
1279 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#object_with_translation_imports"/>
1280 </wadl:param>
1281
1282 </wadl:request>
1283 <wadl:response>
1284
1285 <wadl:representation
1286 href="https://api.edge.launchpad.net/beta/#translation_import_queue_entry-full"/>
1287 </wadl:response>
1288 </wadl:method>
1289 </wadl:resource_type>
1290
1291
1292 <!--End resource_type definitions for collection resources.-->
1293
1294 <!--Begin representation and resource_type definitions for entry
1295 resources and the collections that contain them. -->
1296
1297 <wadl:resource_type id="archive_dependency">
1298 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1299ArchiveDependency interface.
1300</wadl:doc>
1301 <wadl:method name="GET" id="archive_dependency-get">
1302 <wadl:response>
1303 <wadl:representation
1304 href="https://api.edge.launchpad.net/beta/#archive_dependency-full"/>
1305 <wadl:representation
1306 mediaType="application/xhtml+xml"
1307 id="archive_dependency-xhtml"/>
1308 <wadl:representation
1309 mediaType="application/vd.sun.wadl+xml"
1310 id="archive_dependency-wadl"/>
1311 </wadl:response>
1312 </wadl:method>
1313
1314 <wadl:method name="PUT" id="archive_dependency-put">
1315 <wadl:request>
1316 <wadl:representation
1317 href="https://api.edge.launchpad.net/beta/#archive_dependency-full"/>
1318 </wadl:request>
1319 </wadl:method>
1320
1321 <wadl:method name="PATCH"
1322 id="archive_dependency-patch">
1323 <wadl:request>
1324 <wadl:representation
1325 href="https://api.edge.launchpad.net/beta/#archive_dependency-diff"/>
1326 </wadl:request>
1327 </wadl:method>
1328
1329
1330
1331 </wadl:resource_type>
1332
1333
1334 <wadl:representation mediaType="application/json"
1335 id="archive_dependency-full">
1336 <wadl:param style="plain" name="self_link" path="$['self_link']">
1337 <wadl:doc>The canonical link to this resource.</wadl:doc>
1338 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_dependency"/>
1339 </wadl:param>
1340 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
1341 <wadl:doc>
1342 The link to the WADL description of this resource.
1343 </wadl:doc>
1344 <wadl:link/>
1345 </wadl:param>
1346 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
1347 <wadl:doc>
1348 The value of the HTTP ETag for this resource.
1349 </wadl:doc>
1350 </wadl:param>
1351 <wadl:param style="plain" required="true"
1352 path="$['title']" name="title">
1353 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1354Archive dependency title.
1355</wadl:doc>
1356
1357 </wadl:param>
1358 <wadl:param style="plain" required="true"
1359 path="$['pocket']" name="pocket">
1360 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1361Pocket
1362</wadl:doc>
1363
1364 <wadl:option value="Release"/>
1365 <wadl:option value="Security"/>
1366 <wadl:option value="Updates"/>
1367 <wadl:option value="Proposed"/>
1368 <wadl:option value="Backports"/>
1369 </wadl:param>
1370 <wadl:param style="plain" required="true"
1371 path="$['dependency_link']"
1372 name="dependency_link">
1373 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1374The archive set as a dependency.
1375</wadl:doc>
1376 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
1377 </wadl:param>
1378 <wadl:param style="plain" required="true"
1379 path="$['date_created']"
1380 type="xsd:dateTime" name="date_created">
1381 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1382Instant when the dependency was created.
1383</wadl:doc>
1384
1385 </wadl:param>
1386 <wadl:param style="plain" required="true"
1387 path="$['archive_link']"
1388 name="archive_link">
1389 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1390<p>Target archive</p>
1391<p>The archive affected by this dependecy.</p>
1392
1393</wadl:doc>
1394 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
1395 </wadl:param>
1396 <wadl:param style="plain" required="true"
1397 path="$['component_name']"
1398 name="component_name">
1399 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1400Component name
1401</wadl:doc>
1402
1403 </wadl:param>
1404 </wadl:representation>
1405
1406 <wadl:representation mediaType="application/json"
1407 id="archive_dependency-diff">
1408 </wadl:representation>
1409
1410 <!--Collection page for this type of entry-->
1411 <wadl:resource_type id="archive_dependency-page-resource">
1412 <wadl:method name="GET"
1413 id="archive_dependency-page-resource-get">
1414 <wadl:response>
1415 <wadl:representation
1416 href="#archive_dependency-page"/>
1417 </wadl:response>
1418 </wadl:method>
1419 </wadl:resource_type>
1420
1421 <wadl:representation mediaType="application/json"
1422 id="archive_dependency-page">
1423
1424 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
1425 <wadl:link/>
1426 </wadl:param>
1427
1428 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
1429
1430 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
1431
1432 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
1433 <wadl:link resource_type="#archive_dependency-page-resource"/>
1434 </wadl:param>
1435
1436 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
1437 <wadl:link resource_type="#archive_dependency-page-resource"/>
1438 </wadl:param>
1439
1440 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
1441
1442 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
1443 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_dependency"/>
1444 </wadl:param>
1445 </wadl:representation>
1446
1447
1448
1449 <wadl:resource_type id="archive_permission">
1450 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1451The interface for ArchivePermission.
1452</wadl:doc>
1453 <wadl:method name="GET" id="archive_permission-get">
1454 <wadl:response>
1455 <wadl:representation
1456 href="https://api.edge.launchpad.net/beta/#archive_permission-full"/>
1457 <wadl:representation
1458 mediaType="application/xhtml+xml"
1459 id="archive_permission-xhtml"/>
1460 <wadl:representation
1461 mediaType="application/vd.sun.wadl+xml"
1462 id="archive_permission-wadl"/>
1463 </wadl:response>
1464 </wadl:method>
1465
1466 <wadl:method name="PUT" id="archive_permission-put">
1467 <wadl:request>
1468 <wadl:representation
1469 href="https://api.edge.launchpad.net/beta/#archive_permission-full"/>
1470 </wadl:request>
1471 </wadl:method>
1472
1473 <wadl:method name="PATCH"
1474 id="archive_permission-patch">
1475 <wadl:request>
1476 <wadl:representation
1477 href="https://api.edge.launchpad.net/beta/#archive_permission-diff"/>
1478 </wadl:request>
1479 </wadl:method>
1480
1481
1482
1483 </wadl:resource_type>
1484
1485
1486 <wadl:representation mediaType="application/json"
1487 id="archive_permission-full">
1488 <wadl:param style="plain" name="self_link" path="$['self_link']">
1489 <wadl:doc>The canonical link to this resource.</wadl:doc>
1490 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_permission"/>
1491 </wadl:param>
1492 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
1493 <wadl:doc>
1494 The link to the WADL description of this resource.
1495 </wadl:doc>
1496 <wadl:link/>
1497 </wadl:param>
1498 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
1499 <wadl:doc>
1500 The value of the HTTP ETag for this resource.
1501 </wadl:doc>
1502 </wadl:param>
1503 <wadl:param style="plain" required="true"
1504 path="$['permission']" name="permission">
1505 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1506The permission type being granted.
1507</wadl:doc>
1508
1509 </wadl:param>
1510 <wadl:param style="plain" required="true"
1511 path="$['source_package_name']"
1512 name="source_package_name">
1513 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1514Source Package Name
1515</wadl:doc>
1516
1517 </wadl:param>
1518 <wadl:param style="plain" required="true"
1519 path="$['explicit']" name="explicit">
1520 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1521<p>Explicit</p>
1522<p>Set this flag for package sets with high-profile packages requiring specialist skills for proper handling.</p>
1523
1524</wadl:doc>
1525
1526 </wadl:param>
1527 <wadl:param style="plain" required="true"
1528 path="$['package_set_name']"
1529 name="package_set_name">
1530 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1531Package set name
1532</wadl:doc>
1533
1534 </wadl:param>
1535 <wadl:param style="plain" required="true"
1536 path="$['person_link']" name="person_link">
1537 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1538<p>Person</p>
1539<p>The person or team being granted the permission.</p>
1540
1541</wadl:doc>
1542 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
1543 </wadl:param>
1544 <wadl:param style="plain" required="true"
1545 path="$['date_created']"
1546 type="xsd:dateTime" name="date_created">
1547 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1548<p>Date Created</p>
1549<p>The timestamp when the permission was created.</p>
1550
1551</wadl:doc>
1552
1553 </wadl:param>
1554 <wadl:param style="plain" required="true"
1555 path="$['archive_link']"
1556 name="archive_link">
1557 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1558<p>Archive</p>
1559<p>The archive that this permission is for.</p>
1560
1561</wadl:doc>
1562 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
1563 </wadl:param>
1564 <wadl:param style="plain" required="true"
1565 path="$['component_name']"
1566 name="component_name">
1567 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1568Component Name
1569</wadl:doc>
1570
1571 </wadl:param>
1572 </wadl:representation>
1573
1574 <wadl:representation mediaType="application/json"
1575 id="archive_permission-diff">
1576 <wadl:param style="plain" required="false"
1577 path="$['permission']" name="permission">
1578 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1579The permission type being granted.
1580</wadl:doc>
1581
1582 </wadl:param>
1583 <wadl:param style="plain" required="false"
1584 path="$['source_package_name']"
1585 name="source_package_name">
1586 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1587Source Package Name
1588</wadl:doc>
1589
1590 </wadl:param>
1591 <wadl:param style="plain" required="false"
1592 path="$['explicit']" name="explicit">
1593 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1594<p>Explicit</p>
1595<p>Set this flag for package sets with high-profile packages requiring specialist skills for proper handling.</p>
1596
1597</wadl:doc>
1598
1599 </wadl:param>
1600 <wadl:param style="plain" required="false"
1601 path="$['package_set_name']"
1602 name="package_set_name">
1603 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1604Package set name
1605</wadl:doc>
1606
1607 </wadl:param>
1608 <wadl:param style="plain" required="false"
1609 path="$['person_link']" name="person_link">
1610 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1611<p>Person</p>
1612<p>The person or team being granted the permission.</p>
1613
1614</wadl:doc>
1615 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
1616 </wadl:param>
1617 <wadl:param style="plain" required="false"
1618 path="$['date_created']"
1619 type="xsd:dateTime" name="date_created">
1620 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1621<p>Date Created</p>
1622<p>The timestamp when the permission was created.</p>
1623
1624</wadl:doc>
1625
1626 </wadl:param>
1627 <wadl:param style="plain" required="false"
1628 path="$['archive_link']"
1629 name="archive_link">
1630 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1631<p>Archive</p>
1632<p>The archive that this permission is for.</p>
1633
1634</wadl:doc>
1635 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
1636 </wadl:param>
1637 <wadl:param style="plain" required="false"
1638 path="$['component_name']"
1639 name="component_name">
1640 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1641Component Name
1642</wadl:doc>
1643
1644 </wadl:param>
1645 </wadl:representation>
1646
1647 <!--Collection page for this type of entry-->
1648 <wadl:resource_type id="archive_permission-page-resource">
1649 <wadl:method name="GET"
1650 id="archive_permission-page-resource-get">
1651 <wadl:response>
1652 <wadl:representation
1653 href="#archive_permission-page"/>
1654 </wadl:response>
1655 </wadl:method>
1656 </wadl:resource_type>
1657
1658 <wadl:representation mediaType="application/json"
1659 id="archive_permission-page">
1660
1661 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
1662 <wadl:link/>
1663 </wadl:param>
1664
1665 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
1666
1667 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
1668
1669 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
1670 <wadl:link resource_type="#archive_permission-page-resource"/>
1671 </wadl:param>
1672
1673 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
1674 <wadl:link resource_type="#archive_permission-page-resource"/>
1675 </wadl:param>
1676
1677 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
1678
1679 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
1680 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_permission"/>
1681 </wadl:param>
1682 </wadl:representation>
1683
1684
1685
1686 <wadl:resource_type id="archive_subscriber">
1687 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1688An interface for archive subscribers.
1689</wadl:doc>
1690 <wadl:method name="GET" id="archive_subscriber-get">
1691 <wadl:response>
1692 <wadl:representation
1693 href="https://api.edge.launchpad.net/beta/#archive_subscriber-full"/>
1694 <wadl:representation
1695 mediaType="application/xhtml+xml"
1696 id="archive_subscriber-xhtml"/>
1697 <wadl:representation
1698 mediaType="application/vd.sun.wadl+xml"
1699 id="archive_subscriber-wadl"/>
1700 </wadl:response>
1701 </wadl:method>
1702
1703 <wadl:method name="PUT" id="archive_subscriber-put">
1704 <wadl:request>
1705 <wadl:representation
1706 href="https://api.edge.launchpad.net/beta/#archive_subscriber-full"/>
1707 </wadl:request>
1708 </wadl:method>
1709
1710 <wadl:method name="PATCH"
1711 id="archive_subscriber-patch">
1712 <wadl:request>
1713 <wadl:representation
1714 href="https://api.edge.launchpad.net/beta/#archive_subscriber-diff"/>
1715 </wadl:request>
1716 </wadl:method>
1717
1718
1719
1720 </wadl:resource_type>
1721
1722
1723 <wadl:representation mediaType="application/json"
1724 id="archive_subscriber-full">
1725 <wadl:param style="plain" name="self_link" path="$['self_link']">
1726 <wadl:doc>The canonical link to this resource.</wadl:doc>
1727 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_subscriber"/>
1728 </wadl:param>
1729 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
1730 <wadl:doc>
1731 The link to the WADL description of this resource.
1732 </wadl:doc>
1733 <wadl:link/>
1734 </wadl:param>
1735 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
1736 <wadl:doc>
1737 The value of the HTTP ETag for this resource.
1738 </wadl:doc>
1739 </wadl:param>
1740 <wadl:param style="plain" required="true"
1741 path="$['status']" name="status">
1742 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1743<p>Status</p>
1744<p>The status of this subscription.</p>
1745
1746</wadl:doc>
1747
1748 <wadl:option value="Active"/>
1749 <wadl:option value="Expired"/>
1750 <wadl:option value="Cancelled"/>
1751 </wadl:param>
1752 <wadl:param style="plain" required="true"
1753 path="$['description']" name="description">
1754 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1755<p>Description</p>
1756<p>Free text describing this subscription.</p>
1757
1758</wadl:doc>
1759
1760 </wadl:param>
1761 <wadl:param style="plain" required="true"
1762 path="$['registrant_link']"
1763 name="registrant_link">
1764 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1765<p>Registrant</p>
1766<p>The person who registered this subscription.</p>
1767
1768</wadl:doc>
1769 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
1770 </wadl:param>
1771 <wadl:param style="plain" required="true"
1772 path="$['subscriber_link']"
1773 name="subscriber_link">
1774 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1775<p>Subscriber</p>
1776<p>The person who is subscribed.</p>
1777
1778</wadl:doc>
1779 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
1780 </wadl:param>
1781 <wadl:param style="plain" required="true"
1782 path="$['date_expires']"
1783 type="xsd:dateTime" name="date_expires">
1784 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1785<p>Date of Expiration</p>
1786<p>The timestamp when the subscription will expire.</p>
1787
1788</wadl:doc>
1789
1790 </wadl:param>
1791 <wadl:param style="plain" required="true"
1792 path="$['date_created']"
1793 type="xsd:dateTime" name="date_created">
1794 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1795<p>Date Created</p>
1796<p>The timestamp when the subscription was created.</p>
1797
1798</wadl:doc>
1799
1800 </wadl:param>
1801 <wadl:param style="plain" required="true"
1802 path="$['archive_link']"
1803 name="archive_link">
1804 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1805<p>Archive</p>
1806<p>The archive for this subscription.</p>
1807
1808</wadl:doc>
1809 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
1810 </wadl:param>
1811 </wadl:representation>
1812
1813 <wadl:representation mediaType="application/json"
1814 id="archive_subscriber-diff">
1815 <wadl:param style="plain" required="false"
1816 path="$['status']" name="status">
1817 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1818<p>Status</p>
1819<p>The status of this subscription.</p>
1820
1821</wadl:doc>
1822
1823 <wadl:option value="Active"/>
1824 <wadl:option value="Expired"/>
1825 <wadl:option value="Cancelled"/>
1826 </wadl:param>
1827 <wadl:param style="plain" required="false"
1828 path="$['description']" name="description">
1829 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1830<p>Description</p>
1831<p>Free text describing this subscription.</p>
1832
1833</wadl:doc>
1834
1835 </wadl:param>
1836 <wadl:param style="plain" required="false"
1837 path="$['date_expires']"
1838 type="xsd:dateTime" name="date_expires">
1839 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1840<p>Date of Expiration</p>
1841<p>The timestamp when the subscription will expire.</p>
1842
1843</wadl:doc>
1844
1845 </wadl:param>
1846 </wadl:representation>
1847
1848 <!--Collection page for this type of entry-->
1849 <wadl:resource_type id="archive_subscriber-page-resource">
1850 <wadl:method name="GET"
1851 id="archive_subscriber-page-resource-get">
1852 <wadl:response>
1853 <wadl:representation
1854 href="#archive_subscriber-page"/>
1855 </wadl:response>
1856 </wadl:method>
1857 </wadl:resource_type>
1858
1859 <wadl:representation mediaType="application/json"
1860 id="archive_subscriber-page">
1861
1862 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
1863 <wadl:link/>
1864 </wadl:param>
1865
1866 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
1867
1868 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
1869
1870 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
1871 <wadl:link resource_type="#archive_subscriber-page-resource"/>
1872 </wadl:param>
1873
1874 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
1875 <wadl:link resource_type="#archive_subscriber-page-resource"/>
1876 </wadl:param>
1877
1878 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
1879
1880 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
1881 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_subscriber"/>
1882 </wadl:param>
1883 </wadl:representation>
1884
1885
1886
1887 <wadl:resource_type id="archive">
1888 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1889Main Archive interface.
1890</wadl:doc>
1891 <wadl:method name="GET" id="archive-get">
1892 <wadl:response>
1893 <wadl:representation
1894 href="https://api.edge.launchpad.net/beta/#archive-full"/>
1895 <wadl:representation
1896 mediaType="application/xhtml+xml" id="archive-xhtml"/>
1897 <wadl:representation
1898 mediaType="application/vd.sun.wadl+xml"
1899 id="archive-wadl"/>
1900 </wadl:response>
1901 </wadl:method>
1902
1903 <wadl:method name="PUT" id="archive-put">
1904 <wadl:request>
1905 <wadl:representation
1906 href="https://api.edge.launchpad.net/beta/#archive-full"/>
1907 </wadl:request>
1908 </wadl:method>
1909
1910 <wadl:method name="PATCH" id="archive-patch">
1911 <wadl:request>
1912 <wadl:representation
1913 href="https://api.edge.launchpad.net/beta/#archive-diff"/>
1914 </wadl:request>
1915 </wadl:method>
1916
1917
1918
1919 <wadl:method id="archive-isSourceUploadAllowed"
1920 name="GET">
1921 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1922<p>True if the person is allowed to upload the given source package.</p>
1923<dl class="rst-docutils">
1924<dt>Return True if there exists a permission that combines</dt>
1925<dd><ul class="rst-first rst-last rst-simple">
1926<li>this archive</li>
1927<li>a package set that includes the given source package name</li>
1928<li>the given person or a team he is a member of</li>
1929</ul>
1930</dd>
1931</dl>
1932<p>If the source package name is included by <em>any</em> package set with
1933an explicit permission then only such explicit permissions will
1934be considered.</p>
1935<table class="rst-docutils field-list" frame="void" rules="none">
1936<col class="field-name" />
1937<col class="field-body" />
1938<tbody valign="top">
1939<tr class="rst-field"><th class="rst-field-name" colspan="2">param sourcepackagename:</th></tr>
1940<tr><td>&nbsp;</td><td class="rst-field-body">the source package name; can be
1941either a string or a ISourcePackageName.</td>
1942</tr>
1943<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson for whom you want to find out which
1944package sets he has access to.</td>
1945</tr>
1946<tr class="rst-field"><th class="rst-field-name" colspan="2">raises NoSuchSourcePackageName:</th></tr>
1947<tr><td>&nbsp;</td><td class="rst-field-body">if a source package with the
1948given name could not be found.</td>
1949</tr>
1950<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">True if the person is allowed to upload the source package.</td>
1951</tr>
1952</tbody>
1953</table>
1954
1955</wadl:doc>
1956 <wadl:request>
1957
1958 <wadl:param style="query" name="ws.op"
1959 required="true"
1960 fixed="isSourceUploadAllowed"/>
1961 <wadl:param style="query" required="true"
1962 name="person">
1963
1964 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
1965 </wadl:param>
1966 <wadl:param style="query" required="true"
1967 name="sourcepackagename">
1968 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1969Source package name
1970</wadl:doc>
1971
1972 </wadl:param>
1973
1974 </wadl:request>
1975
1976 </wadl:method>
1977 <wadl:method id="archive-getBuildCounters" name="GET">
1978 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
1979<p>Return a dictionary containing the build counters for an archive.</p>
1980<p>This is necessary currently because the IArchive.failed_builds etc.
1981counters are not in use.</p>
1982<p>The returned dictionary contains the follwoing keys and values:</p>
1983<blockquote>
1984<ul class="rst-simple">
1985<li>'total': total number of builds (includes SUPERSEDED);</li>
1986<li>'pending': number of builds in BUILDING or NEEDSBUILD state;</li>
1987<li>'failed': number of builds in FAILEDTOBUILD, MANUALDEPWAIT,
1988CHROOTWAIT and FAILEDTOUPLOAD state;</li>
1989<li>'succeeded': number of SUCCESSFULLYBUILT builds.</li>
1990<li>'superseded': number of SUPERSEDED builds.</li>
1991</ul>
1992</blockquote>
1993<table class="rst-docutils field-list" frame="void" rules="none">
1994<col class="field-name" />
1995<col class="field-body" />
1996<tbody valign="top">
1997<tr class="rst-field"><th class="rst-field-name" colspan="2">param include_needsbuild:</th></tr>
1998<tr><td>&nbsp;</td><td class="rst-field-body">Indicates whether to include builds with
1999the status NEEDSBUILD in the pending and total counts. This is
2000useful in situations where a build that hasn't started isn't
2001considered a build by the user.</td>
2002</tr>
2003<tr class="rst-field"><th class="rst-field-name" colspan="2">type include_needsbuild:</th></tr>
2004<tr><td>&nbsp;</td><td class="rst-field-body"><tt class="rst-docutils literal"><span class="pre">bool</span></tt></td>
2005</tr>
2006<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">a dictionary with the 4 keys specified above.</td>
2007</tr>
2008<tr class="rst-field"><th class="rst-field-name">rtype:</th><td class="rst-field-body"><tt class="rst-docutils literal"><span class="pre">dict</span></tt>.</td>
2009</tr>
2010</tbody>
2011</table>
2012
2013</wadl:doc>
2014 <wadl:request>
2015
2016 <wadl:param style="query" name="ws.op"
2017 required="true"
2018 fixed="getBuildCounters"/>
2019 <wadl:param style="query" required="false"
2020 name="include_needsbuild">
2021 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2022Include builds with state NEEDSBUILD
2023</wadl:doc>
2024
2025 </wadl:param>
2026
2027 </wadl:request>
2028
2029 </wadl:method>
2030 <wadl:method id="archive-getComponentsForQueueAdmin"
2031 name="GET">
2032 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2033<p>Return IArchivePermission for the person's queue admin components</p>
2034<table class="rst-docutils field-list" frame="void" rules="none">
2035<col class="field-name" />
2036<col class="field-body" />
2037<tbody valign="top">
2038<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson</td>
2039</tr>
2040<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A list of IArchivePermission records.</td>
2041</tr>
2042</tbody>
2043</table>
2044
2045</wadl:doc>
2046 <wadl:request>
2047
2048 <wadl:param style="query" name="ws.op"
2049 required="true"
2050 fixed="getComponentsForQueueAdmin"/>
2051 <wadl:param style="query" required="true"
2052 name="person">
2053
2054 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
2055 </wadl:param>
2056
2057 </wadl:request>
2058 <wadl:response>
2059
2060 <wadl:representation
2061 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2062 </wadl:response>
2063 </wadl:method>
2064 <wadl:method id="archive-getArchiveDependency"
2065 name="GET">
2066 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2067<p>Return the IArchiveDependency object for the given dependency.</p>
2068<table class="rst-docutils field-list" frame="void" rules="none">
2069<col class="field-name" />
2070<col class="field-body" />
2071<tbody valign="top">
2072<tr class="rst-field"><th class="rst-field-name" colspan="2">param dependency:</th></tr>
2073<tr><td>&nbsp;</td><td class="rst-field-body">is an IArchive object.</td>
2074</tr>
2075<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">IArchiveDependency or None if a corresponding object
2076could not be found.</td>
2077</tr>
2078</tbody>
2079</table>
2080
2081</wadl:doc>
2082 <wadl:request>
2083
2084 <wadl:param style="query" name="ws.op"
2085 required="true"
2086 fixed="getArchiveDependency"/>
2087 <wadl:param style="query" required="true"
2088 name="dependency">
2089
2090 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
2091 </wadl:param>
2092
2093 </wadl:request>
2094 <wadl:response>
2095
2096 <wadl:representation
2097 href="https://api.edge.launchpad.net/beta/#archive_dependency-full"/>
2098 </wadl:response>
2099 </wadl:method>
2100 <wadl:method id="archive-getPublishedSources"
2101 name="GET">
2102 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2103<p>All ISourcePackagePublishingHistory target to this archive.</p>
2104<table class="rst-docutils field-list" frame="void" rules="none">
2105<col class="field-name" />
2106<col class="field-body" />
2107<tbody valign="top">
2108<tr class="rst-field"><th class="rst-field-name">param name:</th><td class="rst-field-body">source name filter (exact match or SQL LIKE controlled
2109by 'exact_match' argument).</td>
2110</tr>
2111<tr class="rst-field"><th class="rst-field-name">param version:</th><td class="rst-field-body">source version filter (always exact match).</td>
2112</tr>
2113<tr class="rst-field"><th class="rst-field-name">param status:</th><td class="rst-field-body">PackagePublishingStatus filter, can be a sequence.</td>
2114</tr>
2115<tr class="rst-field"><th class="rst-field-name" colspan="2">param distroseries:</th></tr>
2116<tr><td>&nbsp;</td><td class="rst-field-body">IDistroSeries filter.</td>
2117</tr>
2118<tr class="rst-field"><th class="rst-field-name">param pocket:</th><td class="rst-field-body">PackagePublishingPocket filter.</td>
2119</tr>
2120<tr class="rst-field"><th class="rst-field-name" colspan="2">param exact_match:</th></tr>
2121<tr><td>&nbsp;</td><td class="rst-field-body">either or not filter source names by exact
2122matching.</td>
2123</tr>
2124<tr class="rst-field"><th class="rst-field-name" colspan="2">param created_since_date:</th></tr>
2125<tr><td>&nbsp;</td><td class="rst-field-body">Only return results whose date_created
2126is greater than or equal to this date.</td>
2127</tr>
2128<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">SelectResults containing ISourcePackagePublishingHistory.</td>
2129</tr>
2130</tbody>
2131</table>
2132
2133</wadl:doc>
2134 <wadl:request>
2135
2136 <wadl:param style="query" name="ws.op"
2137 required="true"
2138 fixed="getPublishedSources"/>
2139 <wadl:param style="query" required="false"
2140 name="status">
2141 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2142<p>Package Publishing Status</p>
2143<p>The status of this publishing record</p>
2144
2145</wadl:doc>
2146
2147 <wadl:option value="Pending"/>
2148 <wadl:option value="Published"/>
2149 <wadl:option value="Superseded"/>
2150 <wadl:option value="Deleted"/>
2151 <wadl:option value="Obsolete"/>
2152 </wadl:param>
2153 <wadl:param style="query" required="false"
2154 name="source_name">
2155 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2156Source package name
2157</wadl:doc>
2158
2159 </wadl:param>
2160 <wadl:param style="query" required="false"
2161 name="distro_series">
2162 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2163Distroseries name
2164</wadl:doc>
2165 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distro_series"/>
2166 </wadl:param>
2167 <wadl:param style="query" required="false"
2168 name="exact_match">
2169 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2170<p>Exact Match</p>
2171<p>Whether or not to filter source names by exact matching.</p>
2172
2173</wadl:doc>
2174
2175 </wadl:param>
2176 <wadl:param style="query" required="false"
2177 name="pocket">
2178 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2179<p>Pocket</p>
2180<p>The pocket into which this entry is published</p>
2181
2182</wadl:doc>
2183
2184 <wadl:option value="Release"/>
2185 <wadl:option value="Security"/>
2186 <wadl:option value="Updates"/>
2187 <wadl:option value="Proposed"/>
2188 <wadl:option value="Backports"/>
2189 </wadl:param>
2190 <wadl:param style="query" required="false"
2191 name="version">
2192 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2193Version
2194</wadl:doc>
2195
2196 </wadl:param>
2197 <wadl:param style="query" required="false"
2198 type="xsd:dateTime"
2199 name="created_since_date">
2200 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2201<p>Created Since Date</p>
2202<p>Return entries whose date_created is greater than or equal to this date.</p>
2203
2204</wadl:doc>
2205
2206 </wadl:param>
2207
2208 </wadl:request>
2209 <wadl:response>
2210
2211 <wadl:representation
2212 href="https://api.edge.launchpad.net/beta/#source_package_publishing_history-page"/>
2213 </wadl:response>
2214 </wadl:method>
2215 <wadl:method id="archive-getUploadersForPackageset"
2216 name="GET">
2217 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2218<p>The ArchivePermission records for uploaders to the package set.</p>
2219<table class="rst-docutils field-list" frame="void" rules="none">
2220<col class="field-name" />
2221<col class="field-body" />
2222<tbody valign="top">
2223<tr class="rst-field"><th class="rst-field-name" colspan="2">param packageset:</th></tr>
2224<tr><td>&nbsp;</td><td class="rst-field-body">An IPackageset or a string package set name.</td>
2225</tr>
2226<tr class="rst-field"><th class="rst-field-name" colspan="2">param direct_permissions:</th></tr>
2227<tr><td>&nbsp;</td><td class="rst-field-body">If True, only consider permissions granted
2228directly for the package set at hand. Otherwise, include any
2229uploaders for package sets that include this one.</td>
2230</tr>
2231<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">ArchivePermission records for all the uploaders who are
2232authorized to upload to the named source package set.</td>
2233</tr>
2234</tbody>
2235</table>
2236
2237</wadl:doc>
2238 <wadl:request>
2239
2240 <wadl:param style="query" name="ws.op"
2241 required="true"
2242 fixed="getUploadersForPackageset"/>
2243 <wadl:param style="query" required="true"
2244 name="packageset">
2245 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2246Package set
2247</wadl:doc>
2248
2249 </wadl:param>
2250 <wadl:param style="query" required="false"
2251 name="direct_permissions">
2252 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2253Ignore package set hierarchy
2254</wadl:doc>
2255
2256 </wadl:param>
2257
2258 </wadl:request>
2259 <wadl:response>
2260
2261 <wadl:representation
2262 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2263 </wadl:response>
2264 </wadl:method>
2265 <wadl:method id="archive-getPackagesetsForSource"
2266 name="GET">
2267 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2268<p>All package set based permissions for the given source.</p>
2269<p>This method is meant to aid the process of &quot;debugging&quot; package set
2270based archive permission since It allows the listing of permissions
2271for the given source package in this archive (irrespective of the
2272principal).</p>
2273<table class="rst-docutils field-list" frame="void" rules="none">
2274<col class="field-name" />
2275<col class="field-body" />
2276<tbody valign="top">
2277<tr class="rst-field"><th class="rst-field-name" colspan="2">param sourcepackagename:</th></tr>
2278<tr><td>&nbsp;</td><td class="rst-field-body">the source package name; can be
2279either a string or a ISourcePackageName.</td>
2280</tr>
2281<tr class="rst-field"><th class="rst-field-name" colspan="2">param direct_permissions:</th></tr>
2282<tr><td>&nbsp;</td><td class="rst-field-body">If set only package sets that directly
2283include the given source will be considered.</td>
2284</tr>
2285<tr class="rst-field"><th class="rst-field-name" colspan="2">raises NoSuchSourcePackageName:</th></tr>
2286<tr><td>&nbsp;</td><td class="rst-field-body">if a source package with the
2287given name could not be found.</td>
2288</tr>
2289<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">ArchivePermission records for the package sets that
2290include the given source package name and apply to the
2291archive in question.</td>
2292</tr>
2293</tbody>
2294</table>
2295
2296</wadl:doc>
2297 <wadl:request>
2298
2299 <wadl:param style="query" name="ws.op"
2300 required="true"
2301 fixed="getPackagesetsForSource"/>
2302 <wadl:param style="query" required="true"
2303 name="sourcepackagename">
2304 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2305Source package name
2306</wadl:doc>
2307
2308 </wadl:param>
2309 <wadl:param style="query" required="false"
2310 name="direct_permissions">
2311 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2312Ignore package set hierarchy
2313</wadl:doc>
2314
2315 </wadl:param>
2316
2317 </wadl:request>
2318 <wadl:response>
2319
2320 <wadl:representation
2321 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2322 </wadl:response>
2323 </wadl:method>
2324 <wadl:method id="archive-getBuildRecords" name="GET">
2325 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2326<p>Return build records in the context it is implemented.</p>
2327<p>It excludes build records generated by Gina (imported from a external
2328repository), where IBuild.datebuilt is null and IBuild.buildstate
2329is BuildStatus.FULLYBUILT.</p>
2330<p>The result is simply not filtered if the optional filters are omitted
2331by call sites.</p>
2332<table class="rst-docutils field-list" frame="void" rules="none">
2333<col class="field-name" />
2334<col class="field-body" />
2335<tbody valign="top">
2336<tr class="rst-field"><th class="rst-field-name" colspan="2">param build_state:</th></tr>
2337<tr><td>&nbsp;</td><td class="rst-field-body">optional BuildStatus value for filtering build
2338records;</td>
2339</tr>
2340<tr class="rst-field"><th class="rst-field-name">param name:</th><td class="rst-field-body">optional string for filtering build source package name.
2341Sub-string matching is allowed via SQL LIKE.</td>
2342</tr>
2343<tr class="rst-field"><th class="rst-field-name">param pocket:</th><td class="rst-field-body">optional PackagePublishingPocket value for filtering
2344build records;</td>
2345</tr>
2346<tr class="rst-field"><th class="rst-field-name">param arch_tag:</th><td class="rst-field-body">optional string for filtering build source packages
2347by their architecture tag;</td>
2348</tr>
2349<tr class="rst-field"><th class="rst-field-name">param user:</th><td class="rst-field-body">optional IPerson corresponding to the user performing
2350the request. It will filter out build records for which the user
2351have no 'view' permission.</td>
2352</tr>
2353<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">a result set containing IBuild records ordered by descending
2354IBuild.datebuilt except when builds are filtered by
2355BuildStatus.NEEDSBUILD, in this case records are ordered by
2356descending BuildQueue.lastscore (dispatching order).</td>
2357</tr>
2358</tbody>
2359</table>
2360
2361</wadl:doc>
2362 <wadl:request>
2363
2364 <wadl:param style="query" name="ws.op"
2365 required="true"
2366 fixed="getBuildRecords"/>
2367 <wadl:param style="query" required="false"
2368 name="pocket">
2369 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2370<p>Pocket</p>
2371<p>The pocket into which this entry is published</p>
2372
2373</wadl:doc>
2374
2375 <wadl:option value="Release"/>
2376 <wadl:option value="Security"/>
2377 <wadl:option value="Updates"/>
2378 <wadl:option value="Proposed"/>
2379 <wadl:option value="Backports"/>
2380 </wadl:param>
2381 <wadl:param style="query" required="false"
2382 name="build_state">
2383 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2384<p>Build status</p>
2385<p>The status of this build record</p>
2386
2387</wadl:doc>
2388
2389 <wadl:option value="Needs building"/>
2390 <wadl:option value="Successfully built"/>
2391 <wadl:option value="Failed to build"/>
2392 <wadl:option value="Dependency wait"/>
2393 <wadl:option value="Chroot problem"/>
2394 <wadl:option value="Build for superseded Source"/>
2395 <wadl:option value="Currently building"/>
2396 <wadl:option value="Failed to upload"/>
2397 </wadl:param>
2398 <wadl:param style="query" required="false"
2399 name="source_name">
2400 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2401Source package name
2402</wadl:doc>
2403
2404 </wadl:param>
2405
2406 </wadl:request>
2407 <wadl:response>
2408
2409 <wadl:representation
2410 href="https://api.edge.launchpad.net/beta/#build-page"/>
2411 </wadl:response>
2412 </wadl:method>
2413 <wadl:method id="archive-getPublishedBinaries"
2414 name="GET">
2415 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2416<p>All IBinaryPackagePublishingHistory target to this archive.</p>
2417<table class="rst-docutils field-list" frame="void" rules="none">
2418<col class="field-name" />
2419<col class="field-body" />
2420<tbody valign="top">
2421<tr class="rst-field"><th class="rst-field-name">param:</th><td class="rst-field-body">name: binary name filter (exact match or SQL LIKE controlled
2422by 'exact_match' argument).</td>
2423</tr>
2424<tr class="rst-field"><th class="rst-field-name">param:</th><td class="rst-field-body">version: binary version filter (always exact match).</td>
2425</tr>
2426<tr class="rst-field"><th class="rst-field-name">param:</th><td class="rst-field-body">status: PackagePublishingStatus filter, can be a list.</td>
2427</tr>
2428<tr class="rst-field"><th class="rst-field-name">param:</th><td class="rst-field-body">distroarchseries: IDistroArchSeries filter, can be a list.</td>
2429</tr>
2430<tr class="rst-field"><th class="rst-field-name">param:</th><td class="rst-field-body">pocket: PackagePublishingPocket filter.</td>
2431</tr>
2432<tr class="rst-field"><th class="rst-field-name">param:</th><td class="rst-field-body">exact_match: either or not filter source names by exact
2433matching.</td>
2434</tr>
2435<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A collection containing BinaryPackagePublishingHistory.</td>
2436</tr>
2437</tbody>
2438</table>
2439
2440</wadl:doc>
2441 <wadl:request>
2442
2443 <wadl:param style="query" name="ws.op"
2444 required="true"
2445 fixed="getPublishedBinaries"/>
2446 <wadl:param style="query" required="false"
2447 name="status">
2448 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2449<p>Package Publishing Status</p>
2450<p>The status of this publishing record</p>
2451
2452</wadl:doc>
2453
2454 <wadl:option value="Pending"/>
2455 <wadl:option value="Published"/>
2456 <wadl:option value="Superseded"/>
2457 <wadl:option value="Deleted"/>
2458 <wadl:option value="Obsolete"/>
2459 </wadl:param>
2460 <wadl:param style="query" required="false"
2461 name="binary_name">
2462 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2463Binary Package Name
2464</wadl:doc>
2465
2466 </wadl:param>
2467 <wadl:param style="query" required="false"
2468 name="exact_match">
2469 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2470Whether or not to filter binary names by exact matching.
2471</wadl:doc>
2472
2473 </wadl:param>
2474 <wadl:param style="query" required="false"
2475 name="pocket">
2476 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2477<p>Pocket</p>
2478<p>The pocket into which this entry is published</p>
2479
2480</wadl:doc>
2481
2482 <wadl:option value="Release"/>
2483 <wadl:option value="Security"/>
2484 <wadl:option value="Updates"/>
2485 <wadl:option value="Proposed"/>
2486 <wadl:option value="Backports"/>
2487 </wadl:param>
2488 <wadl:param style="query" required="false"
2489 name="version">
2490 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2491Version
2492</wadl:doc>
2493
2494 </wadl:param>
2495 <wadl:param style="query" required="false"
2496 name="distro_arch_series">
2497 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2498Distro Arch Series
2499</wadl:doc>
2500 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distro_arch_series"/>
2501 </wadl:param>
2502
2503 </wadl:request>
2504 <wadl:response>
2505
2506 <wadl:representation
2507 href="https://api.edge.launchpad.net/beta/#binary_package_publishing_history-page"/>
2508 </wadl:response>
2509 </wadl:method>
2510 <wadl:method id="archive-getUploadersForComponent"
2511 name="GET">
2512 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2513<p>Return IArchivePermission records for the component's uploaders.</p>
2514<table class="rst-docutils field-list" frame="void" rules="none">
2515<col class="field-name" />
2516<col class="field-body" />
2517<tbody valign="top">
2518<tr class="rst-field"><th class="rst-field-name" colspan="2">param component_name:</th></tr>
2519<tr><td>&nbsp;</td><td class="rst-field-body">An IComponent or textual name for the
2520component.</td>
2521</tr>
2522<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A list of IArchivePermission records.</td>
2523</tr>
2524</tbody>
2525</table>
2526
2527</wadl:doc>
2528 <wadl:request>
2529
2530 <wadl:param style="query" name="ws.op"
2531 required="true"
2532 fixed="getUploadersForComponent"/>
2533 <wadl:param style="query" required="false"
2534 name="component_name">
2535 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2536Component Name
2537</wadl:doc>
2538
2539 </wadl:param>
2540
2541 </wadl:request>
2542 <wadl:response>
2543
2544 <wadl:representation
2545 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2546 </wadl:response>
2547 </wadl:method>
2548 <wadl:method id="archive-getUploadersForPackage"
2549 name="GET">
2550 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2551<p>Return IArchivePermission records for the package's uploaders.</p>
2552<table class="rst-docutils field-list" frame="void" rules="none">
2553<col class="field-name" />
2554<col class="field-body" />
2555<tbody valign="top">
2556<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_package_name:</th></tr>
2557<tr><td>&nbsp;</td><td class="rst-field-body">An ISourcePackageName or textual name
2558for the source package.</td>
2559</tr>
2560<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A list of IArchivePermission records.</td>
2561</tr>
2562</tbody>
2563</table>
2564
2565</wadl:doc>
2566 <wadl:request>
2567
2568 <wadl:param style="query" name="ws.op"
2569 required="true"
2570 fixed="getUploadersForPackage"/>
2571 <wadl:param style="query" required="true"
2572 name="source_package_name">
2573 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2574Source Package Name
2575</wadl:doc>
2576
2577 </wadl:param>
2578
2579 </wadl:request>
2580 <wadl:response>
2581
2582 <wadl:representation
2583 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2584 </wadl:response>
2585 </wadl:method>
2586 <wadl:method id="archive-getBuildSummariesForSourceIds"
2587 name="GET">
2588 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2589<p>Return a dictionary containing a summary of the build statuses.</p>
2590<p>Only information for sources belonging to the current archive will
2591be returned. See
2592IPublishingSet.getBuildStatusSummariesForSourceIdsAndArchive() for
2593details.</p>
2594<table class="rst-docutils field-list" frame="void" rules="none">
2595<col class="field-name" />
2596<col class="field-body" />
2597<tbody valign="top">
2598<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_ids:</th></tr>
2599<tr><td>&nbsp;</td><td class="rst-field-body">A list of source publishing history record ids.</td>
2600</tr>
2601<tr class="rst-field"><th class="rst-field-name" colspan="2">type source_ids:</th></tr>
2602<tr><td>&nbsp;</td><td class="rst-field-body"><tt class="rst-docutils literal"><span class="pre">list</span></tt></td>
2603</tr>
2604<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A dict consisting of the overall status summaries for the
2605given ids that belong in the archive.</td>
2606</tr>
2607</tbody>
2608</table>
2609
2610</wadl:doc>
2611 <wadl:request>
2612
2613 <wadl:param style="query" name="ws.op"
2614 required="true"
2615 fixed="getBuildSummariesForSourceIds"/>
2616 <wadl:param style="query" required="true"
2617 name="source_ids">
2618 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2619A list of source publishing history record ids.
2620</wadl:doc>
2621
2622 </wadl:param>
2623
2624 </wadl:request>
2625
2626 </wadl:method>
2627 <wadl:method id="archive-getQueueAdminsForComponent"
2628 name="GET">
2629 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2630<p>Return IArchivePermission records for authorised queue admins.</p>
2631<table class="rst-docutils field-list" frame="void" rules="none">
2632<col class="field-name" />
2633<col class="field-body" />
2634<tbody valign="top">
2635<tr class="rst-field"><th class="rst-field-name" colspan="2">param component_name:</th></tr>
2636<tr><td>&nbsp;</td><td class="rst-field-body">An IComponent or textual name for the
2637component.</td>
2638</tr>
2639<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A list of IArchivePermission records.</td>
2640</tr>
2641</tbody>
2642</table>
2643
2644</wadl:doc>
2645 <wadl:request>
2646
2647 <wadl:param style="query" name="ws.op"
2648 required="true"
2649 fixed="getQueueAdminsForComponent"/>
2650 <wadl:param style="query" required="true"
2651 name="component_name">
2652 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2653Component Name
2654</wadl:doc>
2655
2656 </wadl:param>
2657
2658 </wadl:request>
2659 <wadl:response>
2660
2661 <wadl:representation
2662 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2663 </wadl:response>
2664 </wadl:method>
2665 <wadl:method id="archive-getPermissionsForPerson"
2666 name="GET">
2667 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2668<p>Return the IArchivePermission records applicable to the person.</p>
2669<table class="rst-docutils field-list" frame="void" rules="none">
2670<col class="field-name" />
2671<col class="field-body" />
2672<tbody valign="top">
2673<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson</td>
2674</tr>
2675<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">A list of IArchivePermission records.</td>
2676</tr>
2677</tbody>
2678</table>
2679
2680</wadl:doc>
2681 <wadl:request>
2682
2683 <wadl:param style="query" name="ws.op"
2684 required="true"
2685 fixed="getPermissionsForPerson"/>
2686 <wadl:param style="query" required="true"
2687 name="person">
2688
2689 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
2690 </wadl:param>
2691
2692 </wadl:request>
2693 <wadl:response>
2694
2695 <wadl:representation
2696 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2697 </wadl:response>
2698 </wadl:method>
2699 <wadl:method id="archive-getPackagesetsForSourceUploader"
2700 name="GET">
2701 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2702<p>The package set based permissions for a given source and uploader.</p>
2703<dl class="rst-docutils">
2704<dt>Return the IArchivePermission records that</dt>
2705<dd><ul class="rst-first rst-last">
2706<li><p class="rst-first">apply to this archive</p>
2707</li>
2708<li><dl class="rst-first rst-docutils">
2709<dt>relate to</dt>
2710<dd><ul class="rst-first rst-last rst-simple">
2711<li>package sets that include the given source package name</li>
2712<li>the given person</li>
2713</ul>
2714</dd>
2715</dl>
2716</li>
2717</ul>
2718</dd>
2719</dl>
2720<table class="rst-docutils field-list" frame="void" rules="none">
2721<col class="field-name" />
2722<col class="field-body" />
2723<tbody valign="top">
2724<tr class="rst-field"><th class="rst-field-name" colspan="2">param sourcepackagename:</th></tr>
2725<tr><td>&nbsp;</td><td class="rst-field-body">the source package name; can be
2726either a string or a ISourcePackageName.</td>
2727</tr>
2728<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson for whom you want to find out which
2729package sets he has access to.</td>
2730</tr>
2731<tr class="rst-field"><th class="rst-field-name" colspan="2">raises NoSuchSourcePackageName:</th></tr>
2732<tr><td>&nbsp;</td><td class="rst-field-body">if a source package with the
2733given name could not be found.</td>
2734</tr>
2735<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">ArchivePermission records for the package sets that
2736include the given source package name and to which the given
2737person may upload.</td>
2738</tr>
2739</tbody>
2740</table>
2741
2742</wadl:doc>
2743 <wadl:request>
2744
2745 <wadl:param style="query" name="ws.op"
2746 required="true"
2747 fixed="getPackagesetsForSourceUploader"/>
2748 <wadl:param style="query" required="true"
2749 name="person">
2750
2751 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
2752 </wadl:param>
2753 <wadl:param style="query" required="true"
2754 name="sourcepackagename">
2755 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2756Source package name
2757</wadl:doc>
2758
2759 </wadl:param>
2760
2761 </wadl:request>
2762 <wadl:response>
2763
2764 <wadl:representation
2765 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2766 </wadl:response>
2767 </wadl:method>
2768 <wadl:method id="archive-getPackagesetsForUploader"
2769 name="GET">
2770 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2771<p>The ArchivePermission records for the person's package sets.</p>
2772<table class="rst-docutils field-list" frame="void" rules="none">
2773<col class="field-name" />
2774<col class="field-body" />
2775<tbody valign="top">
2776<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson for whom you want to find out which
2777package sets he has access to.</td>
2778</tr>
2779<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">ArchivePermission records for all the package sets that
2780'person' is allowed to upload to.</td>
2781</tr>
2782</tbody>
2783</table>
2784
2785</wadl:doc>
2786 <wadl:request>
2787
2788 <wadl:param style="query" name="ws.op"
2789 required="true"
2790 fixed="getPackagesetsForUploader"/>
2791 <wadl:param style="query" required="true"
2792 name="person">
2793
2794 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
2795 </wadl:param>
2796
2797 </wadl:request>
2798 <wadl:response>
2799
2800 <wadl:representation
2801 href="https://api.edge.launchpad.net/beta/#archive_permission-page"/>
2802 </wadl:response>
2803 </wadl:method>
2804 <wadl:method id="archive-syncSource" name="POST">
2805 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2806<p>Synchronise (copy) a single named source into this archive.</p>
2807<p>Copy a specific version of a named source to the destination
2808archive if necessary.</p>
2809<table class="rst-docutils field-list" frame="void" rules="none">
2810<col class="field-name" />
2811<col class="field-body" />
2812<tbody valign="top">
2813<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_name:</th></tr>
2814<tr><td>&nbsp;</td><td class="rst-field-body">a string name of the package to copy.</td>
2815</tr>
2816<tr class="rst-field"><th class="rst-field-name">param version:</th><td class="rst-field-body">the version of the package to copy.</td>
2817</tr>
2818<tr class="rst-field"><th class="rst-field-name" colspan="2">param from_archive:</th></tr>
2819<tr><td>&nbsp;</td><td class="rst-field-body">the source archive from which to copy.</td>
2820</tr>
2821<tr class="rst-field"><th class="rst-field-name" colspan="2">param to_pocket:</th></tr>
2822<tr><td>&nbsp;</td><td class="rst-field-body">the target pocket (as a string).</td>
2823</tr>
2824<tr class="rst-field"><th class="rst-field-name" colspan="2">param to_series:</th></tr>
2825<tr><td>&nbsp;</td><td class="rst-field-body">the target distroseries (as a string).</td>
2826</tr>
2827<tr class="rst-field"><th class="rst-field-name" colspan="2">param include_binaries:</th></tr>
2828<tr><td>&nbsp;</td><td class="rst-field-body">optional boolean, controls whether or not
2829the published binaries for each given source should also be
2830copied along with the source.</td>
2831</tr>
2832<tr class="rst-field"><th class="rst-field-name" colspan="2">raises NoSuchSourcePackageName:</th></tr>
2833<tr><td>&nbsp;</td><td class="rst-field-body">if the source name is invalid</td>
2834</tr>
2835<tr class="rst-field"><th class="rst-field-name" colspan="2">raises PocketNotFound:</th></tr>
2836<tr><td>&nbsp;</td><td class="rst-field-body">if the pocket name is invalid</td>
2837</tr>
2838<tr class="rst-field"><th class="rst-field-name" colspan="2">raises DistroSeriesNotFound:</th></tr>
2839<tr><td>&nbsp;</td><td class="rst-field-body">if the distro series name is invalid</td>
2840</tr>
2841<tr class="rst-field"><th class="rst-field-name" colspan="2">raises CannotCopy:</th></tr>
2842<tr><td>&nbsp;</td><td class="rst-field-body">if there is a problem copying.</td>
2843</tr>
2844</tbody>
2845</table>
2846
2847</wadl:doc>
2848 <wadl:request>
2849 <wadl:representation
2850 mediaType="application/x-www-form-urlencoded">
2851 <wadl:param style="query" name="ws.op"
2852 required="true" fixed="syncSource"/>
2853 <wadl:param style="query" required="false"
2854 name="to_series">
2855 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2856Distroseries name
2857</wadl:doc>
2858
2859 </wadl:param>
2860 <wadl:param style="query" required="true"
2861 name="source_name">
2862 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2863Source package name
2864</wadl:doc>
2865
2866 </wadl:param>
2867 <wadl:param style="query" required="true"
2868 name="version">
2869 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2870Version
2871</wadl:doc>
2872
2873 </wadl:param>
2874 <wadl:param style="query" required="true"
2875 name="from_archive">
2876
2877 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
2878 </wadl:param>
2879 <wadl:param style="query" required="true"
2880 name="to_pocket">
2881 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2882Pocket name
2883</wadl:doc>
2884
2885 </wadl:param>
2886 <wadl:param style="query" required="false"
2887 name="include_binaries">
2888 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2889<p>Include Binaries</p>
2890<p>Whether or not to copy binaries already built for this source</p>
2891
2892</wadl:doc>
2893
2894 </wadl:param>
2895 </wadl:representation>
2896 </wadl:request>
2897
2898 </wadl:method>
2899 <wadl:method id="archive-deleteQueueAdmin" name="POST">
2900 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2901<p>Revoke permission for the person to administer distroseries queues.</p>
2902<p>The supplied person will lose permission to administer the
2903distroseries queue for packages in the supplied component.</p>
2904<table class="rst-docutils field-list" frame="void" rules="none">
2905<col class="field-name" />
2906<col class="field-body" />
2907<tbody valign="top">
2908<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson whose permission should be revoked.</td>
2909</tr>
2910<tr class="rst-field"><th class="rst-field-name" colspan="2">param component:</th></tr>
2911<tr><td>&nbsp;</td><td class="rst-field-body">An IComponent or textual component name.</td>
2912</tr>
2913</tbody>
2914</table>
2915
2916</wadl:doc>
2917 <wadl:request>
2918 <wadl:representation
2919 mediaType="application/x-www-form-urlencoded">
2920 <wadl:param style="query" name="ws.op"
2921 required="true"
2922 fixed="deleteQueueAdmin"/>
2923 <wadl:param style="query" required="true"
2924 name="person">
2925
2926 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
2927 </wadl:param>
2928 <wadl:param style="query" required="true"
2929 name="component_name">
2930 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2931Component Name
2932</wadl:doc>
2933
2934 </wadl:param>
2935 </wadl:representation>
2936 </wadl:request>
2937
2938 </wadl:method>
2939 <wadl:method id="archive-newComponentUploader"
2940 name="POST">
2941 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2942<p>Add permission for a person to upload to a component.</p>
2943<table class="rst-docutils field-list" frame="void" rules="none">
2944<col class="field-name" />
2945<col class="field-body" />
2946<tbody valign="top">
2947<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson whom should be given permission.</td>
2948</tr>
2949<tr class="rst-field"><th class="rst-field-name" colspan="2">param component:</th></tr>
2950<tr><td>&nbsp;</td><td class="rst-field-body">An IComponent or textual component name.</td>
2951</tr>
2952<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">An IArchivePermission which is the newly-created
2953permission.</td>
2954</tr>
2955<tr class="rst-field"><th class="rst-field-name" colspan="2">raises InvalidComponent:</th></tr>
2956<tr><td>&nbsp;</td><td class="rst-field-body">if this archive is a PPA and the component
2957is not 'main'.</td>
2958</tr>
2959</tbody>
2960</table>
2961
2962</wadl:doc>
2963 <wadl:request>
2964 <wadl:representation
2965 mediaType="application/x-www-form-urlencoded">
2966 <wadl:param style="query" name="ws.op"
2967 required="true"
2968 fixed="newComponentUploader"/>
2969 <wadl:param style="query" required="true"
2970 name="person">
2971
2972 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
2973 </wadl:param>
2974 <wadl:param style="query" required="true"
2975 name="component_name">
2976 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2977Component Name
2978</wadl:doc>
2979
2980 </wadl:param>
2981 </wadl:representation>
2982 </wadl:request>
2983 <wadl:response>
2984 <wadl:param name="Location" style="header">
2985 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_permission"/>
2986 </wadl:param>
2987
2988 </wadl:response>
2989 </wadl:method>
2990 <wadl:method id="archive-syncSources" name="POST">
2991 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
2992<p>Synchronise (copy) named sources into this archive from another.</p>
2993<p>It will copy the most recent versions of the named sources to
2994the destination archive if necessary.</p>
2995<p>This operation will only succeeds when all requested packages
2996are synchronised between the archives. If any of the requested
2997copies cannot be performed, the whole operation will fail. There
2998will be no partial changes of the destination archive.</p>
2999<table class="rst-docutils field-list" frame="void" rules="none">
3000<col class="field-name" />
3001<col class="field-body" />
3002<tbody valign="top">
3003<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_names:</th></tr>
3004<tr><td>&nbsp;</td><td class="rst-field-body">a list of string names of packages to copy.</td>
3005</tr>
3006<tr class="rst-field"><th class="rst-field-name" colspan="2">param from_archive:</th></tr>
3007<tr><td>&nbsp;</td><td class="rst-field-body">the source archive from which to copy.</td>
3008</tr>
3009<tr class="rst-field"><th class="rst-field-name" colspan="2">param to_pocket:</th></tr>
3010<tr><td>&nbsp;</td><td class="rst-field-body">the target pocket (as a string).</td>
3011</tr>
3012<tr class="rst-field"><th class="rst-field-name" colspan="2">param to_series:</th></tr>
3013<tr><td>&nbsp;</td><td class="rst-field-body">the target distroseries (as a string).</td>
3014</tr>
3015<tr class="rst-field"><th class="rst-field-name" colspan="2">param include_binaries:</th></tr>
3016<tr><td>&nbsp;</td><td class="rst-field-body">optional boolean, controls whether or not
3017the published binaries for each given source should also be
3018copied along with the source.</td>
3019</tr>
3020<tr class="rst-field"><th class="rst-field-name" colspan="2">raises NoSuchSourcePackageName:</th></tr>
3021<tr><td>&nbsp;</td><td class="rst-field-body">if the source name is invalid</td>
3022</tr>
3023<tr class="rst-field"><th class="rst-field-name" colspan="2">raises PocketNotFound:</th></tr>
3024<tr><td>&nbsp;</td><td class="rst-field-body">if the pocket name is invalid</td>
3025</tr>
3026<tr class="rst-field"><th class="rst-field-name" colspan="2">raises DistroSeriesNotFound:</th></tr>
3027<tr><td>&nbsp;</td><td class="rst-field-body">if the distro series name is invalid</td>
3028</tr>
3029<tr class="rst-field"><th class="rst-field-name" colspan="2">raises CannotCopy:</th></tr>
3030<tr><td>&nbsp;</td><td class="rst-field-body">if there is a problem copying.</td>
3031</tr>
3032</tbody>
3033</table>
3034
3035</wadl:doc>
3036 <wadl:request>
3037 <wadl:representation
3038 mediaType="application/x-www-form-urlencoded">
3039 <wadl:param style="query" name="ws.op"
3040 required="true" fixed="syncSources"/>
3041 <wadl:param style="query" required="false"
3042 name="to_series">
3043 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3044Distroseries name
3045</wadl:doc>
3046
3047 </wadl:param>
3048 <wadl:param style="query" required="true"
3049 name="to_pocket">
3050 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3051Pocket name
3052</wadl:doc>
3053
3054 </wadl:param>
3055 <wadl:param style="query" required="true"
3056 name="source_names">
3057 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3058Source package names
3059</wadl:doc>
3060
3061 </wadl:param>
3062 <wadl:param style="query" required="true"
3063 name="from_archive">
3064
3065 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
3066 </wadl:param>
3067 <wadl:param style="query" required="false"
3068 name="include_binaries">
3069 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3070<p>Include Binaries</p>
3071<p>Whether or not to copy binaries already built for this source</p>
3072
3073</wadl:doc>
3074
3075 </wadl:param>
3076 </wadl:representation>
3077 </wadl:request>
3078
3079 </wadl:method>
3080 <wadl:method id="archive-deletePackageUploader"
3081 name="POST">
3082 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3083<p>Revoke permission for the person to upload the package.</p>
3084<table class="rst-docutils field-list" frame="void" rules="none">
3085<col class="field-name" />
3086<col class="field-body" />
3087<tbody valign="top">
3088<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson whose permission should be revoked.</td>
3089</tr>
3090<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_package_name:</th></tr>
3091<tr><td>&nbsp;</td><td class="rst-field-body">An ISourcePackageName or textual package
3092name.</td>
3093</tr>
3094</tbody>
3095</table>
3096
3097</wadl:doc>
3098 <wadl:request>
3099 <wadl:representation
3100 mediaType="application/x-www-form-urlencoded">
3101 <wadl:param style="query" name="ws.op"
3102 required="true"
3103 fixed="deletePackageUploader"/>
3104 <wadl:param style="query" required="true"
3105 name="person">
3106
3107 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3108 </wadl:param>
3109 <wadl:param style="query" required="true"
3110 name="source_package_name">
3111 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3112Source Package Name
3113</wadl:doc>
3114
3115 </wadl:param>
3116 </wadl:representation>
3117 </wadl:request>
3118
3119 </wadl:method>
3120 <wadl:method id="archive-deletePackagesetUploader"
3121 name="POST">
3122 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3123<p>Revoke upload permissions for a person.</p>
3124<table class="rst-docutils field-list" frame="void" rules="none">
3125<col class="field-name" />
3126<col class="field-body" />
3127<tbody valign="top">
3128<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson for whom you want to revoke permission.</td>
3129</tr>
3130<tr class="rst-field"><th class="rst-field-name" colspan="2">param packageset:</th></tr>
3131<tr><td>&nbsp;</td><td class="rst-field-body">An IPackageset or a string package set name.</td>
3132</tr>
3133<tr class="rst-field"><th class="rst-field-name">param explicit:</th><td class="rst-field-body">The value of the 'explicit' flag for the permission
3134to be revoked.</td>
3135</tr>
3136</tbody>
3137</table>
3138
3139</wadl:doc>
3140 <wadl:request>
3141 <wadl:representation
3142 mediaType="application/x-www-form-urlencoded">
3143 <wadl:param style="query" name="ws.op"
3144 required="true"
3145 fixed="deletePackagesetUploader"/>
3146 <wadl:param style="query" required="true"
3147 name="person">
3148
3149 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3150 </wadl:param>
3151 <wadl:param style="query" required="true"
3152 name="packageset">
3153 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3154Package set
3155</wadl:doc>
3156
3157 </wadl:param>
3158 <wadl:param style="query" required="false"
3159 name="explicit">
3160 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3161Explicit
3162</wadl:doc>
3163
3164 </wadl:param>
3165 </wadl:representation>
3166 </wadl:request>
3167
3168 </wadl:method>
3169 <wadl:method id="archive-newPackageUploader"
3170 name="POST">
3171 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3172<p>Add permisson for a person to upload a package to this archive.</p>
3173<table class="rst-docutils field-list" frame="void" rules="none">
3174<col class="field-name" />
3175<col class="field-body" />
3176<tbody valign="top">
3177<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson whom should be given permission.</td>
3178</tr>
3179<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_package_name:</th></tr>
3180<tr><td>&nbsp;</td><td class="rst-field-body">An ISourcePackageName or textual package
3181name.</td>
3182</tr>
3183<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">An IArchivePermission which is the newly-created
3184permission.</td>
3185</tr>
3186</tbody>
3187</table>
3188
3189</wadl:doc>
3190 <wadl:request>
3191 <wadl:representation
3192 mediaType="application/x-www-form-urlencoded">
3193 <wadl:param style="query" name="ws.op"
3194 required="true"
3195 fixed="newPackageUploader"/>
3196 <wadl:param style="query" required="true"
3197 name="person">
3198
3199 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3200 </wadl:param>
3201 <wadl:param style="query" required="true"
3202 name="source_package_name">
3203 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3204Source Package Name
3205</wadl:doc>
3206
3207 </wadl:param>
3208 </wadl:representation>
3209 </wadl:request>
3210 <wadl:response>
3211 <wadl:param name="Location" style="header">
3212 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_permission"/>
3213 </wadl:param>
3214
3215 </wadl:response>
3216 </wadl:method>
3217 <wadl:method id="archive-deleteComponentUploader"
3218 name="POST">
3219 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3220<p>Revoke permission for the person to upload to the component.</p>
3221<table class="rst-docutils field-list" frame="void" rules="none">
3222<col class="field-name" />
3223<col class="field-body" />
3224<tbody valign="top">
3225<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson whose permission should be revoked.</td>
3226</tr>
3227<tr class="rst-field"><th class="rst-field-name" colspan="2">param component:</th></tr>
3228<tr><td>&nbsp;</td><td class="rst-field-body">An IComponent or textual component name.</td>
3229</tr>
3230</tbody>
3231</table>
3232
3233</wadl:doc>
3234 <wadl:request>
3235 <wadl:representation
3236 mediaType="application/x-www-form-urlencoded">
3237 <wadl:param style="query" name="ws.op"
3238 required="true"
3239 fixed="deleteComponentUploader"/>
3240 <wadl:param style="query" required="true"
3241 name="person">
3242
3243 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3244 </wadl:param>
3245 <wadl:param style="query" required="true"
3246 name="component_name">
3247 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3248Component Name
3249</wadl:doc>
3250
3251 </wadl:param>
3252 </wadl:representation>
3253 </wadl:request>
3254
3255 </wadl:method>
3256 <wadl:method id="archive-newPackagesetUploader"
3257 name="POST">
3258 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3259<p>Add a package set based permission for a person.</p>
3260<table class="rst-docutils field-list" frame="void" rules="none">
3261<col class="field-name" />
3262<col class="field-body" />
3263<tbody valign="top">
3264<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson for whom you want to add permission.</td>
3265</tr>
3266<tr class="rst-field"><th class="rst-field-name" colspan="2">param packageset:</th></tr>
3267<tr><td>&nbsp;</td><td class="rst-field-body">An IPackageset or a string package set name.</td>
3268</tr>
3269<tr class="rst-field"><th class="rst-field-name">param explicit:</th><td class="rst-field-body">True if the package set in question requires
3270specialist skills for proper handling.</td>
3271</tr>
3272<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">The new ArchivePermission, or the existing one if it
3273already exists.</td>
3274</tr>
3275</tbody>
3276</table>
3277
3278</wadl:doc>
3279 <wadl:request>
3280 <wadl:representation
3281 mediaType="application/x-www-form-urlencoded">
3282 <wadl:param style="query" name="ws.op"
3283 required="true"
3284 fixed="newPackagesetUploader"/>
3285 <wadl:param style="query" required="true"
3286 name="person">
3287
3288 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3289 </wadl:param>
3290 <wadl:param style="query" required="true"
3291 name="packageset">
3292 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3293Package set
3294</wadl:doc>
3295
3296 </wadl:param>
3297 <wadl:param style="query" required="false"
3298 name="explicit">
3299 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3300Explicit
3301</wadl:doc>
3302
3303 </wadl:param>
3304 </wadl:representation>
3305 </wadl:request>
3306 <wadl:response>
3307 <wadl:param name="Location" style="header">
3308 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_permission"/>
3309 </wadl:param>
3310
3311 </wadl:response>
3312 </wadl:method>
3313 <wadl:method id="archive-newSubscription" name="POST">
3314 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3315<p>Create a new subscribtion to this archive.</p>
3316<p>Create an ArchiveSubscriber record which allows an IPerson to
3317access a private repository.</p>
3318<table class="rst-docutils field-list" frame="void" rules="none">
3319<col class="field-name" />
3320<col class="field-body" />
3321<tbody valign="top">
3322<tr class="rst-field"><th class="rst-field-name" colspan="2">param subscriber:</th></tr>
3323<tr><td>&nbsp;</td><td class="rst-field-body">An IPerson who is allowed to access the
3324repository for this archive.</td>
3325</tr>
3326<tr class="rst-field"><th class="rst-field-name" colspan="2">param registrant:</th></tr>
3327<tr><td>&nbsp;</td><td class="rst-field-body">An IPerson who created this subscription.</td>
3328</tr>
3329<tr class="rst-field"><th class="rst-field-name" colspan="2">param date_expires:</th></tr>
3330<tr><td>&nbsp;</td><td class="rst-field-body">When the subscription should expire; None if
3331it should not expire (default).</td>
3332</tr>
3333<tr class="rst-field"><th class="rst-field-name" colspan="2">param description:</th></tr>
3334<tr><td>&nbsp;</td><td class="rst-field-body">An option textual description of the subscription
3335being created.</td>
3336</tr>
3337<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">The IArchiveSubscriber that was created.</td>
3338</tr>
3339</tbody>
3340</table>
3341
3342</wadl:doc>
3343 <wadl:request>
3344 <wadl:representation
3345 mediaType="application/x-www-form-urlencoded">
3346 <wadl:param style="query" name="ws.op"
3347 required="true"
3348 fixed="newSubscription"/>
3349 <wadl:param style="query" required="true"
3350 name="subscriber">
3351 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3352<p>Subscriber</p>
3353<p>The person who is subscribed.</p>
3354
3355</wadl:doc>
3356 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3357 </wadl:param>
3358 <wadl:param style="query" required="false"
3359 type="xsd:dateTime"
3360 name="date_expires">
3361 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3362<p>Date of Expiration</p>
3363<p>The timestamp when the subscription will expire.</p>
3364
3365</wadl:doc>
3366
3367 </wadl:param>
3368 <wadl:param style="query" required="false"
3369 name="description">
3370 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3371<p>Description</p>
3372<p>Free text describing this subscription.</p>
3373
3374</wadl:doc>
3375
3376 </wadl:param>
3377 </wadl:representation>
3378 </wadl:request>
3379 <wadl:response>
3380 <wadl:param name="Location" style="header">
3381 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_subscriber"/>
3382 </wadl:param>
3383
3384 </wadl:response>
3385 </wadl:method>
3386 <wadl:method id="archive-newQueueAdmin" name="POST">
3387 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3388<p>Add permission for a person to administer a distroseries queue.</p>
3389<p>The supplied person will gain permission to administer the
3390distroseries queue for packages in the supplied component.</p>
3391<table class="rst-docutils field-list" frame="void" rules="none">
3392<col class="field-name" />
3393<col class="field-body" />
3394<tbody valign="top">
3395<tr class="rst-field"><th class="rst-field-name">param person:</th><td class="rst-field-body">An IPerson whom should be given permission.</td>
3396</tr>
3397<tr class="rst-field"><th class="rst-field-name" colspan="2">param component:</th></tr>
3398<tr><td>&nbsp;</td><td class="rst-field-body">An IComponent or textual component name.</td>
3399</tr>
3400<tr class="rst-field"><th class="rst-field-name">return:</th><td class="rst-field-body">An IArchivePermission which is the newly-created
3401permission.</td>
3402</tr>
3403</tbody>
3404</table>
3405
3406</wadl:doc>
3407 <wadl:request>
3408 <wadl:representation
3409 mediaType="application/x-www-form-urlencoded">
3410 <wadl:param style="query" name="ws.op"
3411 required="true"
3412 fixed="newQueueAdmin"/>
3413 <wadl:param style="query" required="true"
3414 name="person">
3415
3416 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3417 </wadl:param>
3418 <wadl:param style="query" required="true"
3419 name="component_name">
3420 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3421Component Name
3422</wadl:doc>
3423
3424 </wadl:param>
3425 </wadl:representation>
3426 </wadl:request>
3427 <wadl:response>
3428 <wadl:param name="Location" style="header">
3429 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_permission"/>
3430 </wadl:param>
3431
3432 </wadl:response>
3433 </wadl:method>
3434 </wadl:resource_type>
3435
3436
3437 <wadl:representation mediaType="application/json"
3438 id="archive-full">
3439 <wadl:param style="plain" name="self_link" path="$['self_link']">
3440 <wadl:doc>The canonical link to this resource.</wadl:doc>
3441 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
3442 </wadl:param>
3443 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
3444 <wadl:doc>
3445 The link to the WADL description of this resource.
3446 </wadl:doc>
3447 <wadl:link/>
3448 </wadl:param>
3449 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
3450 <wadl:doc>
3451 The value of the HTTP ETag for this resource.
3452 </wadl:doc>
3453 </wadl:param>
3454 <wadl:param style="plain" required="true"
3455 path="$['owner_link']" name="owner_link">
3456 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3457<p>Owner</p>
3458<p>The archive owner.</p>
3459
3460</wadl:doc>
3461 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3462 </wadl:param>
3463 <wadl:param style="plain" required="true"
3464 path="$['displayname']" name="displayname">
3465 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3466<p>Displayname</p>
3467<p>Displayname for this archive.</p>
3468
3469</wadl:doc>
3470
3471 </wadl:param>
3472 <wadl:param style="plain" required="true"
3473 path="$['description']" name="description">
3474 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3475<p>Archive contents description</p>
3476<p>A short description of this archive's contents.</p>
3477
3478</wadl:doc>
3479
3480 </wadl:param>
3481 <wadl:param style="plain" required="true"
3482 path="$['dependencies_collection_link']"
3483 name="dependencies_collection_link">
3484 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3485Archive dependencies recorded for this archive.
3486</wadl:doc>
3487 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive_dependency-page-resource"/>
3488 </wadl:param>
3489 <wadl:param style="plain" required="true"
3490 path="$['name']" name="name">
3491 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3492<p>Name</p>
3493<p>The name of this archive.</p>
3494
3495</wadl:doc>
3496
3497 </wadl:param>
3498 <wadl:param style="plain" required="true"
3499 path="$['private']" name="private">
3500 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3501<p>Private</p>
3502<p>Whether the archive is private to the owner or not.</p>
3503
3504</wadl:doc>
3505
3506 </wadl:param>
3507 <wadl:param style="plain" required="true"
3508 path="$['distribution_link']"
3509 name="distribution_link">
3510 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3511The distribution that uses or is used by this archive.
3512</wadl:doc>
3513 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distribution"/>
3514 </wadl:param>
3515 <wadl:param style="plain" required="true"
3516 path="$['signing_key_fingerprint']"
3517 name="signing_key_fingerprint">
3518 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3519<p>Archive signing key fingerprint</p>
3520<p>A OpenPGP signing key fingerprint (40 chars) for this PPA or None if there is no signing key available.</p>
3521
3522</wadl:doc>
3523
3524 </wadl:param>
3525 </wadl:representation>
3526
3527 <wadl:representation mediaType="application/json"
3528 id="archive-diff">
3529 <wadl:param style="plain" required="false"
3530 path="$['owner_link']" name="owner_link">
3531 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3532<p>Owner</p>
3533<p>The archive owner.</p>
3534
3535</wadl:doc>
3536 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3537 </wadl:param>
3538 <wadl:param style="plain" required="false"
3539 path="$['displayname']" name="displayname">
3540 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3541<p>Displayname</p>
3542<p>Displayname for this archive.</p>
3543
3544</wadl:doc>
3545
3546 </wadl:param>
3547 <wadl:param style="plain" required="false"
3548 path="$['description']" name="description">
3549 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3550<p>Archive contents description</p>
3551<p>A short description of this archive's contents.</p>
3552
3553</wadl:doc>
3554
3555 </wadl:param>
3556 <wadl:param style="plain" required="false"
3557 path="$['name']" name="name">
3558 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3559<p>Name</p>
3560<p>The name of this archive.</p>
3561
3562</wadl:doc>
3563
3564 </wadl:param>
3565 <wadl:param style="plain" required="false"
3566 path="$['private']" name="private">
3567 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3568<p>Private</p>
3569<p>Whether the archive is private to the owner or not.</p>
3570
3571</wadl:doc>
3572
3573 </wadl:param>
3574 <wadl:param style="plain" required="false"
3575 path="$['distribution_link']"
3576 name="distribution_link">
3577 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3578The distribution that uses or is used by this archive.
3579</wadl:doc>
3580 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distribution"/>
3581 </wadl:param>
3582 <wadl:param style="plain" required="false"
3583 path="$['signing_key_fingerprint']"
3584 name="signing_key_fingerprint">
3585 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3586<p>Archive signing key fingerprint</p>
3587<p>A OpenPGP signing key fingerprint (40 chars) for this PPA or None if there is no signing key available.</p>
3588
3589</wadl:doc>
3590
3591 </wadl:param>
3592 </wadl:representation>
3593
3594 <!--Collection page for this type of entry-->
3595 <wadl:resource_type id="archive-page-resource">
3596 <wadl:method name="GET" id="archive-page-resource-get">
3597 <wadl:response>
3598 <wadl:representation href="#archive-page"/>
3599 </wadl:response>
3600 </wadl:method>
3601 </wadl:resource_type>
3602
3603 <wadl:representation mediaType="application/json"
3604 id="archive-page">
3605
3606 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
3607 <wadl:link/>
3608 </wadl:param>
3609
3610 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
3611
3612 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
3613
3614 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
3615 <wadl:link resource_type="#archive-page-resource"/>
3616 </wadl:param>
3617
3618 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
3619 <wadl:link resource_type="#archive-page-resource"/>
3620 </wadl:param>
3621
3622 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
3623
3624 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
3625 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
3626 </wadl:param>
3627 </wadl:representation>
3628
3629
3630
3631 <wadl:resource_type id="binary_package_publishing_history">
3632 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3633A binary package publishing record.
3634</wadl:doc>
3635 <wadl:method name="GET"
3636 id="binary_package_publishing_history-get">
3637 <wadl:response>
3638 <wadl:representation
3639 href="https://api.edge.launchpad.net/beta/#binary_package_publishing_history-full"/>
3640 <wadl:representation
3641 mediaType="application/xhtml+xml"
3642 id="binary_package_publishing_history-xhtml"/>
3643 <wadl:representation
3644 mediaType="application/vd.sun.wadl+xml"
3645 id="binary_package_publishing_history-wadl"/>
3646 </wadl:response>
3647 </wadl:method>
3648
3649 <wadl:method name="PUT"
3650 id="binary_package_publishing_history-put">
3651 <wadl:request>
3652 <wadl:representation
3653 href="https://api.edge.launchpad.net/beta/#binary_package_publishing_history-full"/>
3654 </wadl:request>
3655 </wadl:method>
3656
3657 <wadl:method name="PATCH"
3658 id="binary_package_publishing_history-patch">
3659 <wadl:request>
3660 <wadl:representation
3661 href="https://api.edge.launchpad.net/beta/#binary_package_publishing_history-diff"/>
3662 </wadl:request>
3663 </wadl:method>
3664
3665
3666
3667 </wadl:resource_type>
3668
3669
3670 <wadl:representation mediaType="application/json"
3671 id="binary_package_publishing_history-full">
3672 <wadl:param style="plain" name="self_link" path="$['self_link']">
3673 <wadl:doc>The canonical link to this resource.</wadl:doc>
3674 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#binary_package_publishing_history"/>
3675 </wadl:param>
3676 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
3677 <wadl:doc>
3678 The link to the WADL description of this resource.
3679 </wadl:doc>
3680 <wadl:link/>
3681 </wadl:param>
3682 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
3683 <wadl:doc>
3684 The value of the HTTP ETag for this resource.
3685 </wadl:doc>
3686 </wadl:param>
3687 <wadl:param style="plain" required="true"
3688 path="$['removal_comment']"
3689 name="removal_comment">
3690 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3691<p>Removal Comment</p>
3692<p>Reason why this publication is going to be removed.</p>
3693
3694</wadl:doc>
3695
3696 </wadl:param>
3697 <wadl:param style="plain" required="true"
3698 path="$['distro_arch_series_link']"
3699 name="distro_arch_series_link">
3700 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3701<p>Distro Arch Series</p>
3702<p>The distroarchseries being published into</p>
3703
3704</wadl:doc>
3705 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distro_arch_series"/>
3706 </wadl:param>
3707 <wadl:param style="plain" required="true"
3708 path="$['date_published']"
3709 type="xsd:dateTime" name="date_published">
3710 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3711<p>Date Published</p>
3712<p>The date on which this record was published</p>
3713
3714</wadl:doc>
3715
3716 </wadl:param>
3717 <wadl:param style="plain" required="true"
3718 path="$['date_removed']"
3719 type="xsd:dateTime" name="date_removed">
3720 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3721<p>Date Removed</p>
3722<p>The date on which this record was removed from the published set</p>
3723
3724</wadl:doc>
3725
3726 </wadl:param>
3727 <wadl:param style="plain" required="true"
3728 path="$['archive_link']"
3729 name="archive_link">
3730 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3731<p>Archive</p>
3732<p>The context archive for this publication.</p>
3733
3734</wadl:doc>
3735 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#archive"/>
3736 </wadl:param>
3737 <wadl:param style="plain" required="true"
3738 path="$['priority_name']"
3739 name="priority_name">
3740 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3741Priority Name
3742</wadl:doc>
3743
3744 </wadl:param>
3745 <wadl:param style="plain" required="true"
3746 path="$['date_superseded']"
3747 type="xsd:dateTime" name="date_superseded">
3748 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3749<p>Date Superseded</p>
3750<p>The date on which this record was marked superseded</p>
3751
3752</wadl:doc>
3753
3754 </wadl:param>
3755 <wadl:param style="plain" required="true"
3756 path="$['scheduled_deletion_date']"
3757 type="xsd:dateTime"
3758 name="scheduled_deletion_date">
3759 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3760<p>Scheduled Deletion Date</p>
3761<p>The date on which this record is scheduled for deletion</p>
3762
3763</wadl:doc>
3764
3765 </wadl:param>
3766 <wadl:param style="plain" required="true"
3767 path="$['date_made_pending']"
3768 type="xsd:dateTime"
3769 name="date_made_pending">
3770 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3771<p>Date Made Pending</p>
3772<p>The date on which this record was set as pending removal</p>
3773
3774</wadl:doc>
3775
3776 </wadl:param>
3777 <wadl:param style="plain" required="true"
3778 path="$['binary_package_version']"
3779 name="binary_package_version">
3780 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3781Binary Package Version
3782</wadl:doc>
3783
3784 </wadl:param>
3785 <wadl:param style="plain" required="true"
3786 path="$['component_name']"
3787 name="component_name">
3788 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3789Component Name
3790</wadl:doc>
3791
3792 </wadl:param>
3793 <wadl:param style="plain" required="true"
3794 path="$['status']" name="status">
3795 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3796<p>Status</p>
3797<p>The status of this publishing record</p>
3798
3799</wadl:doc>
3800
3801 <wadl:option value="Pending"/>
3802 <wadl:option value="Published"/>
3803 <wadl:option value="Superseded"/>
3804 <wadl:option value="Deleted"/>
3805 <wadl:option value="Obsolete"/>
3806 </wadl:param>
3807 <wadl:param style="plain" required="true"
3808 path="$['display_name']"
3809 name="display_name">
3810 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3811<p>Display Name</p>
3812<p>Text representation of the current record.</p>
3813
3814</wadl:doc>
3815
3816 </wadl:param>
3817 <wadl:param style="plain" required="true"
3818 path="$['pocket']" name="pocket">
3819 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3820<p>Pocket</p>
3821<p>The pocket into which this entry is published</p>
3822
3823</wadl:doc>
3824
3825 <wadl:option value="Release"/>
3826 <wadl:option value="Security"/>
3827 <wadl:option value="Updates"/>
3828 <wadl:option value="Proposed"/>
3829 <wadl:option value="Backports"/>
3830 </wadl:param>
3831 <wadl:param style="plain" required="true"
3832 path="$['section_name']"
3833 name="section_name">
3834 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3835Section Name
3836</wadl:doc>
3837
3838 </wadl:param>
3839 <wadl:param style="plain" required="true"
3840 path="$['binary_package_name']"
3841 name="binary_package_name">
3842 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3843Binary Package Name
3844</wadl:doc>
3845
3846 </wadl:param>
3847 <wadl:param style="plain" required="true"
3848 path="$['date_created']"
3849 type="xsd:dateTime" name="date_created">
3850 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3851<p>Date Created</p>
3852<p>The date on which this record was created</p>
3853
3854</wadl:doc>
3855
3856 </wadl:param>
3857 <wadl:param style="plain" required="true"
3858 path="$['removed_by_link']"
3859 name="removed_by_link">
3860 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3861<p>Removed By</p>
3862<p>The Person responsible for the removal</p>
3863
3864</wadl:doc>
3865 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3866 </wadl:param>
3867 </wadl:representation>
3868
3869 <wadl:representation mediaType="application/json"
3870 id="binary_package_publishing_history-diff">
3871 <wadl:param style="plain" required="false"
3872 path="$['removal_comment']"
3873 name="removal_comment">
3874 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3875<p>Removal Comment</p>
3876<p>Reason why this publication is going to be removed.</p>
3877
3878</wadl:doc>
3879
3880 </wadl:param>
3881 <wadl:param style="plain" required="false"
3882 path="$['distro_arch_series_link']"
3883 name="distro_arch_series_link">
3884 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3885<p>Distro Arch Series</p>
3886<p>The distroarchseries being published into</p>
3887
3888</wadl:doc>
3889 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#distro_arch_series"/>
3890 </wadl:param>
3891 <wadl:param style="plain" required="false"
3892 path="$['date_published']"
3893 type="xsd:dateTime" name="date_published">
3894 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3895<p>Date Published</p>
3896<p>The date on which this record was published</p>
3897
3898</wadl:doc>
3899
3900 </wadl:param>
3901 <wadl:param style="plain" required="false"
3902 path="$['date_removed']"
3903 type="xsd:dateTime" name="date_removed">
3904 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3905<p>Date Removed</p>
3906<p>The date on which this record was removed from the published set</p>
3907
3908</wadl:doc>
3909
3910 </wadl:param>
3911 <wadl:param style="plain" required="false"
3912 path="$['date_superseded']"
3913 type="xsd:dateTime" name="date_superseded">
3914 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3915<p>Date Superseded</p>
3916<p>The date on which this record was marked superseded</p>
3917
3918</wadl:doc>
3919
3920 </wadl:param>
3921 <wadl:param style="plain" required="false"
3922 path="$['scheduled_deletion_date']"
3923 type="xsd:dateTime"
3924 name="scheduled_deletion_date">
3925 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3926<p>Scheduled Deletion Date</p>
3927<p>The date on which this record is scheduled for deletion</p>
3928
3929</wadl:doc>
3930
3931 </wadl:param>
3932 <wadl:param style="plain" required="false"
3933 path="$['date_made_pending']"
3934 type="xsd:dateTime"
3935 name="date_made_pending">
3936 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3937<p>Date Made Pending</p>
3938<p>The date on which this record was set as pending removal</p>
3939
3940</wadl:doc>
3941
3942 </wadl:param>
3943 <wadl:param style="plain" required="false"
3944 path="$['status']" name="status">
3945 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3946<p>Status</p>
3947<p>The status of this publishing record</p>
3948
3949</wadl:doc>
3950
3951 <wadl:option value="Pending"/>
3952 <wadl:option value="Published"/>
3953 <wadl:option value="Superseded"/>
3954 <wadl:option value="Deleted"/>
3955 <wadl:option value="Obsolete"/>
3956 </wadl:param>
3957 <wadl:param style="plain" required="false"
3958 path="$['display_name']"
3959 name="display_name">
3960 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3961<p>Display Name</p>
3962<p>Text representation of the current record.</p>
3963
3964</wadl:doc>
3965
3966 </wadl:param>
3967 <wadl:param style="plain" required="false"
3968 path="$['date_created']"
3969 type="xsd:dateTime" name="date_created">
3970 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3971<p>Date Created</p>
3972<p>The date on which this record was created</p>
3973
3974</wadl:doc>
3975
3976 </wadl:param>
3977 <wadl:param style="plain" required="false"
3978 path="$['removed_by_link']"
3979 name="removed_by_link">
3980 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
3981<p>Removed By</p>
3982<p>The Person responsible for the removal</p>
3983
3984</wadl:doc>
3985 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
3986 </wadl:param>
3987 </wadl:representation>
3988
3989 <!--Collection page for this type of entry-->
3990 <wadl:resource_type id="binary_package_publishing_history-page-resource">
3991 <wadl:method name="GET"
3992 id="binary_package_publishing_history-page-resource-get">
3993 <wadl:response>
3994 <wadl:representation
3995 href="#binary_package_publishing_history-page"/>
3996 </wadl:response>
3997 </wadl:method>
3998 </wadl:resource_type>
3999
4000 <wadl:representation mediaType="application/json"
4001 id="binary_package_publishing_history-page">
4002
4003 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
4004 <wadl:link/>
4005 </wadl:param>
4006
4007 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
4008
4009 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
4010
4011 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
4012 <wadl:link resource_type="#binary_package_publishing_history-page-resource"/>
4013 </wadl:param>
4014
4015 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
4016 <wadl:link resource_type="#binary_package_publishing_history-page-resource"/>
4017 </wadl:param>
4018
4019 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
4020
4021 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
4022 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#binary_package_publishing_history"/>
4023 </wadl:param>
4024 </wadl:representation>
4025
4026
4027
4028 <wadl:resource_type id="branch_merge_proposal">
4029 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4030Branch merge proposals show intent of landing one branch on another.
4031</wadl:doc>
4032 <wadl:method name="GET" id="branch_merge_proposal-get">
4033 <wadl:response>
4034 <wadl:representation
4035 href="https://api.edge.launchpad.net/beta/#branch_merge_proposal-full"/>
4036 <wadl:representation
4037 mediaType="application/xhtml+xml"
4038 id="branch_merge_proposal-xhtml"/>
4039 <wadl:representation
4040 mediaType="application/vd.sun.wadl+xml"
4041 id="branch_merge_proposal-wadl"/>
4042 </wadl:response>
4043 </wadl:method>
4044
4045 <wadl:method name="PUT" id="branch_merge_proposal-put">
4046 <wadl:request>
4047 <wadl:representation
4048 href="https://api.edge.launchpad.net/beta/#branch_merge_proposal-full"/>
4049 </wadl:request>
4050 </wadl:method>
4051
4052 <wadl:method name="PATCH"
4053 id="branch_merge_proposal-patch">
4054 <wadl:request>
4055 <wadl:representation
4056 href="https://api.edge.launchpad.net/beta/#branch_merge_proposal-diff"/>
4057 </wadl:request>
4058 </wadl:method>
4059
4060
4061
4062 <wadl:method id="branch_merge_proposal-getComment"
4063 name="GET">
4064 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4065Return the CodeReviewComment with the specified ID.
4066</wadl:doc>
4067 <wadl:request>
4068
4069 <wadl:param style="query" name="ws.op"
4070 required="true" fixed="getComment"/>
4071 <wadl:param style="query" required="true"
4072 name="id">
4073 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4074A CodeReviewComment ID.
4075</wadl:doc>
4076
4077 </wadl:param>
4078
4079 </wadl:request>
4080 <wadl:response>
4081
4082 <wadl:representation
4083 href="https://api.edge.launchpad.net/beta/#code_review_comment-full"/>
4084 </wadl:response>
4085 </wadl:method>
4086 <wadl:method id="branch_merge_proposal-nominateReviewer"
4087 name="POST">
4088 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4089<p>Set the specified person as a reviewer.</p>
4090<p>If they are not already a reviewer, a vote is created. Otherwise,
4091the details are updated.</p>
4092
4093</wadl:doc>
4094 <wadl:request>
4095 <wadl:representation
4096 mediaType="application/x-www-form-urlencoded">
4097 <wadl:param style="query" name="ws.op"
4098 required="true"
4099 fixed="nominateReviewer"/>
4100 <wadl:param style="query" required="false"
4101 name="review_type">
4102
4103
4104 </wadl:param>
4105 <wadl:param style="query" required="true"
4106 name="reviewer">
4107 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4108A reviewer.
4109</wadl:doc>
4110 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4111 </wadl:param>
4112 </wadl:representation>
4113 </wadl:request>
4114 <wadl:response>
4115
4116 <wadl:representation
4117 href="https://api.edge.launchpad.net/beta/#code_review_vote_reference-full"/>
4118 </wadl:response>
4119 </wadl:method>
4120 <wadl:method id="branch_merge_proposal-updatePreviewDiff"
4121 name="POST">
4122 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4123<p>Update the preview diff for this proposal.</p>
4124<p>If there is not an existing preview diff, one will be created.</p>
4125<table class="rst-docutils field-list" frame="void" rules="none">
4126<col class="field-name" />
4127<col class="field-body" />
4128<tbody valign="top">
4129<tr class="rst-field"><th class="rst-field-name" colspan="2">param diff_content:</th></tr>
4130<tr><td>&nbsp;</td><td class="rst-field-body">The raw bytes of the diff content to be put in
4131the librarian.</td>
4132</tr>
4133<tr class="rst-field"><th class="rst-field-name" colspan="2">param diff_stat:</th></tr>
4134<tr><td>&nbsp;</td><td class="rst-field-body">Text describing the files added, remove or modified.</td>
4135</tr>
4136<tr class="rst-field"><th class="rst-field-name" colspan="2">param source_revision_id:</th></tr>
4137<tr><td>&nbsp;</td><td class="rst-field-body">The revision id that was used from the
4138source branch.</td>
4139</tr>
4140<tr class="rst-field"><th class="rst-field-name" colspan="2">param target_revision_id:</th></tr>
4141<tr><td>&nbsp;</td><td class="rst-field-body">The revision id that was used from the
4142target branch.</td>
4143</tr>
4144<tr class="rst-field"><th class="rst-field-name" colspan="2">param prerequisite_revision_id:</th></tr>
4145<tr><td>&nbsp;</td><td class="rst-field-body">The revision id that was used from the
4146prerequisite branch.</td>
4147</tr>
4148<tr class="rst-field"><th class="rst-field-name" colspan="2">param conflicts:</th></tr>
4149<tr><td>&nbsp;</td><td class="rst-field-body">Text describing the conflicts if any.</td>
4150</tr>
4151</tbody>
4152</table>
4153
4154</wadl:doc>
4155 <wadl:request>
4156 <wadl:representation
4157 mediaType="multipart/form-data">
4158 <wadl:param style="query" name="ws.op"
4159 required="true"
4160 fixed="updatePreviewDiff"/>
4161 <wadl:param style="query" required="false"
4162 name="conflicts">
4163
4164
4165 </wadl:param>
4166 <wadl:param style="query" required="true"
4167 name="target_revision_id">
4168
4169
4170 </wadl:param>
4171 <wadl:param style="query" required="true"
4172 type="binary" name="diff_content">
4173
4174 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#HostedFile"/>
4175 </wadl:param>
4176 <wadl:param style="query" required="true"
4177 name="source_revision_id">
4178
4179
4180 </wadl:param>
4181 <wadl:param style="query" required="false"
4182 name="prerequisite_revision_id">
4183
4184
4185 </wadl:param>
4186 </wadl:representation>
4187 </wadl:request>
4188
4189 </wadl:method>
4190 <wadl:method id="branch_merge_proposal-createComment"
4191 name="POST">
4192 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4193<p>Create an ICodeReviewComment associated with this merge proposal.</p>
4194<table class="rst-docutils field-list" frame="void" rules="none">
4195<col class="field-name" />
4196<col class="field-body" />
4197<tbody valign="top">
4198<tr class="rst-field"><th class="rst-field-name">param owner:</th><td class="rst-field-body">The person who the message is from.</td>
4199</tr>
4200<tr class="rst-field"><th class="rst-field-name">param subject:</th><td class="rst-field-body">The subject line to use for the message.</td>
4201</tr>
4202<tr class="rst-field"><th class="rst-field-name">param content:</th><td class="rst-field-body">The text to use for the message content. If
4203unspecified, the text of the merge proposal is used.</td>
4204</tr>
4205<tr class="rst-field"><th class="rst-field-name">param parent:</th><td class="rst-field-body">The previous CodeReviewComment in the thread. If
4206unspecified, the root message is used.</td>
4207</tr>
4208</tbody>
4209</table>
4210
4211</wadl:doc>
4212 <wadl:request>
4213 <wadl:representation
4214 mediaType="application/x-www-form-urlencoded">
4215 <wadl:param style="query" name="ws.op"
4216 required="true"
4217 fixed="createComment"/>
4218 <wadl:param style="query" required="false"
4219 name="review_type">
4220
4221
4222 </wadl:param>
4223 <wadl:param style="query" required="false"
4224 name="vote">
4225
4226
4227 <wadl:option value="Approve"/>
4228 <wadl:option value="Needs Fixing"/>
4229 <wadl:option value="Needs Information"/>
4230 <wadl:option value="Abstain"/>
4231 <wadl:option value="Disapprove"/>
4232 <wadl:option value="Resubmit"/>
4233 </wadl:param>
4234 <wadl:param style="query" required="false"
4235 name="content">
4236
4237
4238 </wadl:param>
4239 <wadl:param style="query" required="false"
4240 name="parent">
4241
4242 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#code_review_comment"/>
4243 </wadl:param>
4244 <wadl:param style="query" required="true"
4245 name="subject">
4246
4247
4248 </wadl:param>
4249 </wadl:representation>
4250 </wadl:request>
4251 <wadl:response>
4252 <wadl:param name="Location" style="header">
4253 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#code_review_comment"/>
4254 </wadl:param>
4255
4256 </wadl:response>
4257 </wadl:method>
4258 <wadl:method id="branch_merge_proposal-setStatus"
4259 name="POST">
4260 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4261<p>Set the state of the merge proposal to the specified status.</p>
4262<table class="rst-docutils field-list" frame="void" rules="none">
4263<col class="field-name" />
4264<col class="field-body" />
4265<tbody valign="top">
4266<tr class="rst-field"><th class="rst-field-name">param status:</th><td class="rst-field-body">The new status of the merge proposal.</td>
4267</tr>
4268<tr class="rst-field"><th class="rst-field-name">param user:</th><td class="rst-field-body">The user making the change.</td>
4269</tr>
4270<tr class="rst-field"><th class="rst-field-name" colspan="2">param revision_id:</th></tr>
4271<tr><td>&nbsp;</td><td class="rst-field-body">The revno to provide to the underlying status
4272change method.</td>
4273</tr>
4274</tbody>
4275</table>
4276
4277</wadl:doc>
4278 <wadl:request>
4279 <wadl:representation
4280 mediaType="application/x-www-form-urlencoded">
4281 <wadl:param style="query" name="ws.op"
4282 required="true" fixed="setStatus"/>
4283 <wadl:param style="query" required="true"
4284 name="status">
4285 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4286The new status of the merge proposal.
4287</wadl:doc>
4288
4289 <wadl:option value="Work in progress"/>
4290 <wadl:option value="Needs review"/>
4291 <wadl:option value="Approved"/>
4292 <wadl:option value="Rejected"/>
4293 <wadl:option value="Merged"/>
4294 <wadl:option value="Code failed to merge"/>
4295 <wadl:option value="Queued"/>
4296 <wadl:option value="Superseded"/>
4297 </wadl:param>
4298 <wadl:param style="query" required="false"
4299 name="revno">
4300 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4301An optional parameter for specifying the revision of the branch for the status change.
4302</wadl:doc>
4303
4304 </wadl:param>
4305 </wadl:representation>
4306 </wadl:request>
4307
4308 </wadl:method>
4309 </wadl:resource_type>
4310
4311
4312 <wadl:representation mediaType="application/json"
4313 id="branch_merge_proposal-full">
4314 <wadl:param style="plain" name="self_link" path="$['self_link']">
4315 <wadl:doc>The canonical link to this resource.</wadl:doc>
4316 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch_merge_proposal"/>
4317 </wadl:param>
4318 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
4319 <wadl:doc>
4320 The link to the WADL description of this resource.
4321 </wadl:doc>
4322 <wadl:link/>
4323 </wadl:param>
4324 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
4325 <wadl:doc>
4326 The value of the HTTP ETag for this resource.
4327 </wadl:doc>
4328 </wadl:param>
4329 <wadl:param style="plain" required="true"
4330 path="$['queuer_link']" name="queuer_link">
4331 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4332<p>Queuer</p>
4333<p>The person that queued up the branch.</p>
4334
4335</wadl:doc>
4336 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4337 </wadl:param>
4338 <wadl:param style="plain" required="true"
4339 path="$['source_branch_link']"
4340 name="source_branch_link">
4341 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4342<p>Source Branch</p>
4343<p>The branch that has code to land.</p>
4344
4345</wadl:doc>
4346 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch"/>
4347 </wadl:param>
4348 <wadl:param style="plain" required="true"
4349 path="$['queue_status']"
4350 name="queue_status">
4351 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4352<p>Status</p>
4353<p>The current state of the proposal.</p>
4354
4355</wadl:doc>
4356
4357 <wadl:option value="Work in progress"/>
4358 <wadl:option value="Needs review"/>
4359 <wadl:option value="Approved"/>
4360 <wadl:option value="Rejected"/>
4361 <wadl:option value="Merged"/>
4362 <wadl:option value="Code failed to merge"/>
4363 <wadl:option value="Queued"/>
4364 <wadl:option value="Superseded"/>
4365 </wadl:param>
4366 <wadl:param style="plain" required="true"
4367 path="$['private']" name="private">
4368 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4369<p>Proposal is confidential</p>
4370<p>If True, this proposal is visible only to subscribers.</p>
4371
4372</wadl:doc>
4373
4374 </wadl:param>
4375 <wadl:param style="plain" required="true"
4376 path="$['queued_revno']"
4377 name="queued_revno">
4378 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4379<p>Queued Revision ID</p>
4380<p>The revision id that has been queued for landing.</p>
4381
4382</wadl:doc>
4383
4384 </wadl:param>
4385 <wadl:param style="plain" required="true"
4386 path="$['reviewer_link']"
4387 name="reviewer_link">
4388 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4389<p>Review person or team</p>
4390<p>The person that accepted (or rejected) the code for merging.</p>
4391
4392</wadl:doc>
4393 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4394 </wadl:param>
4395 <wadl:param style="plain" required="true"
4396 path="$['registrant_link']"
4397 name="registrant_link">
4398 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4399<p>Person</p>
4400<p>The person who registered the landing target.</p>
4401
4402</wadl:doc>
4403 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4404 </wadl:param>
4405 <wadl:param style="plain" required="true"
4406 path="$['votes_collection_link']"
4407 name="votes_collection_link">
4408 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4409The votes cast or expected for this proposal
4410</wadl:doc>
4411 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#code_review_vote_reference-page-resource"/>
4412 </wadl:param>
4413 <wadl:param style="plain" required="true"
4414 path="$['target_branch_link']"
4415 name="target_branch_link">
4416 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4417<p>Target Branch</p>
4418<p>The branch that the source branch will be merged into.</p>
4419
4420</wadl:doc>
4421 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch"/>
4422 </wadl:param>
4423 <wadl:param style="plain" required="true"
4424 path="$['date_review_requested']"
4425 type="xsd:dateTime"
4426 name="date_review_requested">
4427 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4428Date Review Requested
4429</wadl:doc>
4430
4431 </wadl:param>
4432 <wadl:param style="plain" required="true"
4433 path="$['preview_diff_link']"
4434 name="preview_diff_link">
4435 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4436The current diff of the source branch against the target branch.
4437</wadl:doc>
4438 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#preview_diff"/>
4439 </wadl:param>
4440 <wadl:param style="plain" required="true"
4441 path="$['commit_message']"
4442 name="commit_message">
4443 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4444<p>Commit Message</p>
4445<p>The commit message that should be used when merging the source branch.</p>
4446
4447</wadl:doc>
4448
4449 </wadl:param>
4450 <wadl:param style="plain" required="true"
4451 path="$['supersedes_link']"
4452 name="supersedes_link">
4453 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4454<p>Supersedes</p>
4455<p>The branch merge proposal that this one supersedes.</p>
4456
4457</wadl:doc>
4458 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch_merge_proposal"/>
4459 </wadl:param>
4460 <wadl:param style="plain" required="true"
4461 path="$['queue_position']"
4462 name="queue_position">
4463 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4464<p>Queue Position</p>
4465<p>The position in the queue.</p>
4466
4467</wadl:doc>
4468
4469 </wadl:param>
4470 <wadl:param style="plain" required="true"
4471 path="$['prerequisite_branch_link']"
4472 name="prerequisite_branch_link">
4473 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4474<p>Dependent Branch</p>
4475<p>The branch that the source branch branched from. If this is the same as the target branch, then leave this field blank.</p>
4476
4477</wadl:doc>
4478 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch"/>
4479 </wadl:param>
4480 <wadl:param style="plain" required="true"
4481 path="$['date_merged']"
4482 type="xsd:dateTime" name="date_merged">
4483 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4484<p>Date Merged</p>
4485<p>The date that the source branch was merged into the target branch</p>
4486
4487</wadl:doc>
4488
4489 </wadl:param>
4490 <wadl:param style="plain" required="true"
4491 path="$['reviewed_revno']"
4492 name="reviewed_revno">
4493 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4494The revision id that has been approved by the reviewer.
4495</wadl:doc>
4496
4497 </wadl:param>
4498 <wadl:param style="plain" required="true"
4499 path="$['all_comments_collection_link']"
4500 name="all_comments_collection_link">
4501 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4502All messages discussing this merge proposal
4503</wadl:doc>
4504 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#code_review_comment-page-resource"/>
4505 </wadl:param>
4506 <wadl:param style="plain" required="true"
4507 path="$['address']" name="address">
4508 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4509<p>The email address for this proposal.</p>
4510<p>Any emails sent to this address will resultin comments being added.</p>
4511
4512</wadl:doc>
4513
4514 </wadl:param>
4515 <wadl:param style="plain" required="true"
4516 path="$['date_queued']"
4517 type="xsd:dateTime" name="date_queued">
4518 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4519Date Queued
4520</wadl:doc>
4521
4522 </wadl:param>
4523 <wadl:param style="plain" required="true"
4524 path="$['date_reviewed']"
4525 type="xsd:dateTime" name="date_reviewed">
4526 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4527Date Reviewed
4528</wadl:doc>
4529
4530 </wadl:param>
4531 <wadl:param style="plain" required="true"
4532 path="$['merged_revno']"
4533 name="merged_revno">
4534 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4535<p>Merged Revision Number</p>
4536<p>The revision number on the target branch which contains the merge from the source branch.</p>
4537
4538</wadl:doc>
4539
4540 </wadl:param>
4541 <wadl:param style="plain" required="true"
4542 path="$['superseded_by_link']"
4543 name="superseded_by_link">
4544 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4545<p>Superseded By</p>
4546<p>The branch merge proposal that supersedes this one.</p>
4547
4548</wadl:doc>
4549 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch_merge_proposal"/>
4550 </wadl:param>
4551 <wadl:param style="plain" required="true"
4552 path="$['date_created']"
4553 type="xsd:dateTime" name="date_created">
4554 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4555Date Created
4556</wadl:doc>
4557
4558 </wadl:param>
4559 <wadl:param style="plain" required="true"
4560 path="$['merge_reporter_link']"
4561 name="merge_reporter_link">
4562 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4563<p>Merge Reporter</p>
4564<p>The user that marked the branch as merged.</p>
4565
4566</wadl:doc>
4567 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4568 </wadl:param>
4569 </wadl:representation>
4570
4571 <wadl:representation mediaType="application/json"
4572 id="branch_merge_proposal-diff">
4573 <wadl:param style="plain" required="false"
4574 path="$['commit_message']"
4575 name="commit_message">
4576 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4577<p>Commit Message</p>
4578<p>The commit message that should be used when merging the source branch.</p>
4579
4580</wadl:doc>
4581
4582 </wadl:param>
4583 <wadl:param style="plain" required="false"
4584 path="$['reviewed_revno']"
4585 name="reviewed_revno">
4586 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4587The revision id that has been approved by the reviewer.
4588</wadl:doc>
4589
4590 </wadl:param>
4591 </wadl:representation>
4592
4593 <!--Collection page for this type of entry-->
4594 <wadl:resource_type id="branch_merge_proposal-page-resource">
4595 <wadl:method name="GET"
4596 id="branch_merge_proposal-page-resource-get">
4597 <wadl:response>
4598 <wadl:representation
4599 href="#branch_merge_proposal-page"/>
4600 </wadl:response>
4601 </wadl:method>
4602 </wadl:resource_type>
4603
4604 <wadl:representation mediaType="application/json"
4605 id="branch_merge_proposal-page">
4606
4607 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
4608 <wadl:link/>
4609 </wadl:param>
4610
4611 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
4612
4613 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
4614
4615 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
4616 <wadl:link resource_type="#branch_merge_proposal-page-resource"/>
4617 </wadl:param>
4618
4619 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
4620 <wadl:link resource_type="#branch_merge_proposal-page-resource"/>
4621 </wadl:param>
4622
4623 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
4624
4625 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
4626 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch_merge_proposal"/>
4627 </wadl:param>
4628 </wadl:representation>
4629
4630
4631
4632 <wadl:resource_type id="branch_subscription">
4633 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4634The relationship between a person and a branch.
4635</wadl:doc>
4636 <wadl:method name="GET" id="branch_subscription-get">
4637 <wadl:response>
4638 <wadl:representation
4639 href="https://api.edge.launchpad.net/beta/#branch_subscription-full"/>
4640 <wadl:representation
4641 mediaType="application/xhtml+xml"
4642 id="branch_subscription-xhtml"/>
4643 <wadl:representation
4644 mediaType="application/vd.sun.wadl+xml"
4645 id="branch_subscription-wadl"/>
4646 </wadl:response>
4647 </wadl:method>
4648
4649 <wadl:method name="PUT" id="branch_subscription-put">
4650 <wadl:request>
4651 <wadl:representation
4652 href="https://api.edge.launchpad.net/beta/#branch_subscription-full"/>
4653 </wadl:request>
4654 </wadl:method>
4655
4656 <wadl:method name="PATCH"
4657 id="branch_subscription-patch">
4658 <wadl:request>
4659 <wadl:representation
4660 href="https://api.edge.launchpad.net/beta/#branch_subscription-diff"/>
4661 </wadl:request>
4662 </wadl:method>
4663
4664
4665
4666 </wadl:resource_type>
4667
4668
4669 <wadl:representation mediaType="application/json"
4670 id="branch_subscription-full">
4671 <wadl:param style="plain" name="self_link" path="$['self_link']">
4672 <wadl:doc>The canonical link to this resource.</wadl:doc>
4673 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch_subscription"/>
4674 </wadl:param>
4675 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
4676 <wadl:doc>
4677 The link to the WADL description of this resource.
4678 </wadl:doc>
4679 <wadl:link/>
4680 </wadl:param>
4681 <wadl:param style="plain" name="http_etag" path="$['http_etag']">
4682 <wadl:doc>
4683 The value of the HTTP ETag for this resource.
4684 </wadl:doc>
4685 </wadl:param>
4686 <wadl:param style="plain" required="true"
4687 path="$['notification_level']"
4688 name="notification_level">
4689 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4690<p>Notification Level</p>
4691<p>Attribute notifications are sent when branch details are changed such as lifecycle status and name. Revision notifications are generated when new branch revisions are found due to the branch being updated through either pushes to the hosted branches or the mirrored branches being updated.</p>
4692
4693</wadl:doc>
4694
4695 <wadl:option value="No email"/>
4696 <wadl:option value="Branch attribute notifications only"/>
4697 <wadl:option value="Branch revision notifications only"/>
4698 <wadl:option value="Branch attribute and revision notifications"/>
4699 </wadl:param>
4700 <wadl:param style="plain" required="true"
4701 path="$['max_diff_lines']"
4702 name="max_diff_lines">
4703 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4704<p>Generated Diff Size Limit</p>
4705<p>Diffs greater than the specified number of lines will not be sent to the subscriber. The subscriber will still receive an email with the new revision details even if the diff is larger than the specified number of lines.</p>
4706
4707</wadl:doc>
4708
4709 <wadl:option value="Don't send diffs"/>
4710 <wadl:option value="500 lines"/>
4711 <wadl:option value="1000 lines"/>
4712 <wadl:option value="5000 lines"/>
4713 <wadl:option value="Send entire diff"/>
4714 </wadl:param>
4715 <wadl:param style="plain" required="true"
4716 path="$['review_level']"
4717 name="review_level">
4718 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4719<p>Code review Level</p>
4720<p>Control the kind of review activity that triggers notifications.</p>
4721
4722</wadl:doc>
4723
4724 <wadl:option value="No email"/>
4725 <wadl:option value="Status changes only"/>
4726 <wadl:option value="Email about all changes"/>
4727 </wadl:param>
4728 <wadl:param style="plain" required="true"
4729 path="$['person_link']" name="person_link">
4730 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4731<p>Person</p>
4732<p>Enter the launchpad id, or email address of the person you wish to subscribe to this branch. If you are unsure, use the &quot;Choose...&quot; option to find the person in Launchpad. You can only subscribe someone who is a registered user of the system.</p>
4733
4734</wadl:doc>
4735 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4736 </wadl:param>
4737 <wadl:param style="plain" required="true"
4738 path="$['branch_link']" name="branch_link">
4739 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4740Branch ID
4741</wadl:doc>
4742 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch"/>
4743 </wadl:param>
4744 </wadl:representation>
4745
4746 <wadl:representation mediaType="application/json"
4747 id="branch_subscription-diff">
4748 <wadl:param style="plain" required="false"
4749 path="$['notification_level']"
4750 name="notification_level">
4751 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4752<p>Notification Level</p>
4753<p>Attribute notifications are sent when branch details are changed such as lifecycle status and name. Revision notifications are generated when new branch revisions are found due to the branch being updated through either pushes to the hosted branches or the mirrored branches being updated.</p>
4754
4755</wadl:doc>
4756
4757 <wadl:option value="No email"/>
4758 <wadl:option value="Branch attribute notifications only"/>
4759 <wadl:option value="Branch revision notifications only"/>
4760 <wadl:option value="Branch attribute and revision notifications"/>
4761 </wadl:param>
4762 <wadl:param style="plain" required="false"
4763 path="$['max_diff_lines']"
4764 name="max_diff_lines">
4765 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4766<p>Generated Diff Size Limit</p>
4767<p>Diffs greater than the specified number of lines will not be sent to the subscriber. The subscriber will still receive an email with the new revision details even if the diff is larger than the specified number of lines.</p>
4768
4769</wadl:doc>
4770
4771 <wadl:option value="Don't send diffs"/>
4772 <wadl:option value="500 lines"/>
4773 <wadl:option value="1000 lines"/>
4774 <wadl:option value="5000 lines"/>
4775 <wadl:option value="Send entire diff"/>
4776 </wadl:param>
4777 <wadl:param style="plain" required="false"
4778 path="$['review_level']"
4779 name="review_level">
4780 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4781<p>Code review Level</p>
4782<p>Control the kind of review activity that triggers notifications.</p>
4783
4784</wadl:doc>
4785
4786 <wadl:option value="No email"/>
4787 <wadl:option value="Status changes only"/>
4788 <wadl:option value="Email about all changes"/>
4789 </wadl:param>
4790 </wadl:representation>
4791
4792 <!--Collection page for this type of entry-->
4793 <wadl:resource_type id="branch_subscription-page-resource">
4794 <wadl:method name="GET"
4795 id="branch_subscription-page-resource-get">
4796 <wadl:response>
4797 <wadl:representation
4798 href="#branch_subscription-page"/>
4799 </wadl:response>
4800 </wadl:method>
4801 </wadl:resource_type>
4802
4803 <wadl:representation mediaType="application/json"
4804 id="branch_subscription-page">
4805
4806 <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
4807 <wadl:link/>
4808 </wadl:param>
4809
4810 <wadl:param style="plain" name="total_size" path="$['total_size']" required="true"/>
4811
4812 <wadl:param style="plain" name="start" path="$['start']" required="true"/>
4813
4814 <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
4815 <wadl:link resource_type="#branch_subscription-page-resource"/>
4816 </wadl:param>
4817
4818 <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
4819 <wadl:link resource_type="#branch_subscription-page-resource"/>
4820 </wadl:param>
4821
4822 <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
4823
4824 <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
4825 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#branch_subscription"/>
4826 </wadl:param>
4827 </wadl:representation>
4828
4829
4830
4831 <wadl:resource_type id="branch">
4832 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4833A Bazaar branch.
4834</wadl:doc>
4835 <wadl:method name="GET" id="branch-get">
4836 <wadl:response>
4837 <wadl:representation
4838 href="https://api.edge.launchpad.net/beta/#branch-full"/>
4839 <wadl:representation
4840 mediaType="application/xhtml+xml" id="branch-xhtml"/>
4841 <wadl:representation
4842 mediaType="application/vd.sun.wadl+xml" id="branch-wadl"/>
4843 </wadl:response>
4844 </wadl:method>
4845
4846 <wadl:method name="PUT" id="branch-put">
4847 <wadl:request>
4848 <wadl:representation
4849 href="https://api.edge.launchpad.net/beta/#branch-full"/>
4850 </wadl:request>
4851 </wadl:method>
4852
4853 <wadl:method name="PATCH" id="branch-patch">
4854 <wadl:request>
4855 <wadl:representation
4856 href="https://api.edge.launchpad.net/beta/#branch-diff"/>
4857 </wadl:request>
4858 </wadl:method>
4859
4860
4861
4862 <wadl:method id="branch-getSubscription" name="GET">
4863 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4864Return the BranchSubscription for this person.
4865</wadl:doc>
4866 <wadl:request>
4867
4868 <wadl:param style="query" name="ws.op"
4869 required="true"
4870 fixed="getSubscription"/>
4871 <wadl:param style="query" required="true"
4872 name="person">
4873 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4874The person to unsubscribe
4875</wadl:doc>
4876 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4877 </wadl:param>
4878
4879 </wadl:request>
4880 <wadl:response>
4881
4882 <wadl:representation
4883 href="https://api.edge.launchpad.net/beta/#branch_subscription-full"/>
4884 </wadl:response>
4885 </wadl:method>
4886 <wadl:method id="branch-isPersonTrustedReviewer"
4887 name="GET">
4888 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4889<p>Return true if the reviewer is a trusted reviewer.</p>
4890<p>The reviewer is trusted if they are either own the branch, or are in
4891the team that owns the branch, or they are in the review team for the
4892branch.</p>
4893
4894</wadl:doc>
4895 <wadl:request>
4896
4897 <wadl:param style="query" name="ws.op"
4898 required="true"
4899 fixed="isPersonTrustedReviewer"/>
4900 <wadl:param style="query" required="true"
4901 name="reviewer">
4902 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4903A person for which the reviewer status is in question.
4904</wadl:doc>
4905 <wadl:link resource_type="https://api.edge.launchpad.net/beta/#person"/>
4906 </wadl:param>
4907
4908 </wadl:request>
4909
4910 </wadl:method>
4911 <wadl:method id="branch-getMergeProposals" name="GET">
4912 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4913<p>Returns all merge proposals of a given status.</p>
4914<table class="rst-docutils field-list" frame="void" rules="none">
4915<col class="field-name" />
4916<col class="field-body" />
4917<tbody valign="top">
4918<tr class="rst-field"><th class="rst-field-name">param status:</th><td class="rst-field-body">A list of statuses to filter with.</td>
4919</tr>
4920<tr class="rst-field"><th class="rst-field-name" colspan="2">param visible_by_user:</th></tr>
4921<tr><td>&nbsp;</td><td class="rst-field-body">Normally the user who is asking.</td>
4922</tr>
4923<tr class="rst-field"><th class="rst-field-name">returns:</th><td class="rst-field-body">A list of IBranchMergeProposal.</td>
4924</tr>
4925</tbody>
4926</table>
4927
4928</wadl:doc>
4929 <wadl:request>
4930
4931 <wadl:param style="query" name="ws.op"
4932 required="true"
4933 fixed="getMergeProposals"/>
4934 <wadl:param style="query" required="false"
4935 name="status">
4936 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4937A list of merge proposal statuses to filter by.
4938</wadl:doc>
4939
4940 </wadl:param>
4941
4942 </wadl:request>
4943 <wadl:response>
4944
4945 <wadl:representation
4946 href="https://api.edge.launchpad.net/beta/#branch_merge_proposal-page"/>
4947 </wadl:response>
4948 </wadl:method>
4949 <wadl:method id="branch-setPrivate" name="POST">
4950 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4951Set the branch privacy for this branch.
4952</wadl:doc>
4953 <wadl:request>
4954 <wadl:representation
4955 mediaType="application/x-www-form-urlencoded">
4956 <wadl:param style="query" name="ws.op"
4957 required="true" fixed="setPrivate"/>
4958 <wadl:param style="query" required="true"
4959 name="private">
4960 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4961Keep branch confidential
4962</wadl:doc>
4963
4964 </wadl:param>
4965 </wadl:representation>
4966 </wadl:request>
4967
4968 </wadl:method>
4969 <wadl:method id="branch-linkSpecification" name="POST">
4970 <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
4971<p>Link an ISpecification to a branch.</p>
4972<table class="rst-docutils field-list" frame="void" rules="none">
4973<col class="field-name" />
4974<col class="field-body" />
4975<tbody valign="top">
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches