Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 17 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the specified series.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 20 | seriesId: integer, The decimal ID of the Series. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 21 | pp: string, A parameter<br> |
| 22 | trace: string, A parameter<br> |
| 23 | strict: string, A parameter<br> |
| 24 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 25 | <br> |
| 26 | Returns:<br> |
| 27 | An object of the form<br> |
| 28 | <br> |
| 29 | {<br> |
| 30 | "kind": "moderator#series",<br> |
| 31 | "description": "A String",<br> |
| 32 | "rules": {<br> |
| 33 | "votes": {<br> |
| 34 | "close": "A String",<br> |
| 35 | "open": "A String",<br> |
| 36 | },<br> |
| 37 | "submissions": {<br> |
| 38 | "close": "A String",<br> |
| 39 | "open": "A String",<br> |
| 40 | },<br> |
| 41 | },<br> |
| 42 | "unauthVotingAllowed": True or False,<br> |
| 43 | "videoSubmissionAllowed": True or False,<br> |
| 44 | "name": "A String",<br> |
| 45 | "numTopics": 42,<br> |
| 46 | "anonymousSubmissionAllowed": True or False,<br> |
| 47 | "unauthSubmissionAllowed": True or False,<br> |
| 48 | "id": {<br> |
| 49 | "seriesId": "A String",<br> |
| 50 | },<br> |
| 51 | "counters": {<br> |
| 52 | "users": 42,<br> |
| 53 | "noneVotes": 42,<br> |
| 54 | "videoSubmissions": 42,<br> |
| 55 | "minusVotes": 42,<br> |
| 56 | "anonymousSubmissions": 42,<br> |
| 57 | "submissions": 42,<br> |
| 58 | "plusVotes": 42,<br> |
| 59 | },<br> |
| 60 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 61 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 62 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new series.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 63 | <br> |
| 64 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 65 | body: object, The request body. (required)<br> |
| 66 | The object takes the form of:<br> |
| 67 | <br> |
| 68 | {<br> |
| 69 | "kind": "moderator#series",<br> |
| 70 | "description": "A String",<br> |
| 71 | "rules": {<br> |
| 72 | "votes": {<br> |
| 73 | "close": "A String",<br> |
| 74 | "open": "A String",<br> |
| 75 | },<br> |
| 76 | "submissions": {<br> |
| 77 | "close": "A String",<br> |
| 78 | "open": "A String",<br> |
| 79 | },<br> |
| 80 | },<br> |
| 81 | "unauthVotingAllowed": True or False,<br> |
| 82 | "videoSubmissionAllowed": True or False,<br> |
| 83 | "name": "A String",<br> |
| 84 | "numTopics": 42,<br> |
| 85 | "anonymousSubmissionAllowed": True or False,<br> |
| 86 | "unauthSubmissionAllowed": True or False,<br> |
| 87 | "id": {<br> |
| 88 | "seriesId": "A String",<br> |
| 89 | },<br> |
| 90 | "counters": {<br> |
| 91 | "users": 42,<br> |
| 92 | "noneVotes": 42,<br> |
| 93 | "videoSubmissions": 42,<br> |
| 94 | "minusVotes": 42,<br> |
| 95 | "anonymousSubmissions": 42,<br> |
| 96 | "submissions": 42,<br> |
| 97 | "plusVotes": 42,<br> |
| 98 | },<br> |
| 99 | }<br> |
| 100 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 101 | pp: string, A parameter<br> |
| 102 | trace: string, A parameter<br> |
| 103 | strict: string, A parameter<br> |
| 104 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 105 | <br> |
| 106 | Returns:<br> |
| 107 | An object of the form<br> |
| 108 | <br> |
| 109 | {<br> |
| 110 | "kind": "moderator#series",<br> |
| 111 | "description": "A String",<br> |
| 112 | "rules": {<br> |
| 113 | "votes": {<br> |
| 114 | "close": "A String",<br> |
| 115 | "open": "A String",<br> |
| 116 | },<br> |
| 117 | "submissions": {<br> |
| 118 | "close": "A String",<br> |
| 119 | "open": "A String",<br> |
| 120 | },<br> |
| 121 | },<br> |
| 122 | "unauthVotingAllowed": True or False,<br> |
| 123 | "videoSubmissionAllowed": True or False,<br> |
| 124 | "name": "A String",<br> |
| 125 | "numTopics": 42,<br> |
| 126 | "anonymousSubmissionAllowed": True or False,<br> |
| 127 | "unauthSubmissionAllowed": True or False,<br> |
| 128 | "id": {<br> |
| 129 | "seriesId": "A String",<br> |
| 130 | },<br> |
| 131 | "counters": {<br> |
| 132 | "users": 42,<br> |
| 133 | "noneVotes": 42,<br> |
| 134 | "videoSubmissions": 42,<br> |
| 135 | "minusVotes": 42,<br> |
| 136 | "anonymousSubmissions": 42,<br> |
| 137 | "submissions": 42,<br> |
| 138 | "plusVotes": 42,<br> |
| 139 | },<br> |
| 140 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 141 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 142 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the series and returns the search results.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 143 | <br> |
| 144 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 145 | q: string, Search query.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 146 | pp: string, A parameter<br> |
| 147 | trace: string, A parameter<br> |
| 148 | strict: string, A parameter<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 149 | max_results: integer, Maximum number of results to return.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 150 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 151 | start_index: integer, Index of the first result to be retrieved.<br> |
| 152 | <br> |
| 153 | Returns:<br> |
| 154 | An object of the form<br> |
| 155 | <br> |
| 156 | {<br> |
| 157 | "items": [<br> |
| 158 | {<br> |
| 159 | "kind": "moderator#series",<br> |
| 160 | "description": "A String",<br> |
| 161 | "rules": {<br> |
| 162 | "votes": {<br> |
| 163 | "close": "A String",<br> |
| 164 | "open": "A String",<br> |
| 165 | },<br> |
| 166 | "submissions": {<br> |
| 167 | "close": "A String",<br> |
| 168 | "open": "A String",<br> |
| 169 | },<br> |
| 170 | },<br> |
| 171 | "unauthVotingAllowed": True or False,<br> |
| 172 | "videoSubmissionAllowed": True or False,<br> |
| 173 | "name": "A String",<br> |
| 174 | "numTopics": 42,<br> |
| 175 | "anonymousSubmissionAllowed": True or False,<br> |
| 176 | "unauthSubmissionAllowed": True or False,<br> |
| 177 | "id": {<br> |
| 178 | "seriesId": "A String",<br> |
| 179 | },<br> |
| 180 | "counters": {<br> |
| 181 | "users": 42,<br> |
| 182 | "noneVotes": 42,<br> |
| 183 | "videoSubmissions": 42,<br> |
| 184 | "minusVotes": 42,<br> |
| 185 | "anonymousSubmissions": 42,<br> |
| 186 | "submissions": 42,<br> |
| 187 | "plusVotes": 42,<br> |
| 188 | },<br> |
| 189 | },<br> |
| 190 | ],<br> |
| 191 | "kind": "moderator#seriesList",<br> |
| 192 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 193 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 194 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the specified series. This method supports patch semantics.<br> |
| 195 | <br> |
| 196 | Args:<br> |
| 197 | seriesId: integer, The decimal ID of the Series. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 198 | body: object, The request body. (required)<br> |
| 199 | The object takes the form of:<br> |
| 200 | <br> |
| 201 | {<br> |
| 202 | "kind": "moderator#series",<br> |
| 203 | "description": "A String",<br> |
| 204 | "rules": {<br> |
| 205 | "votes": {<br> |
| 206 | "close": "A String",<br> |
| 207 | "open": "A String",<br> |
| 208 | },<br> |
| 209 | "submissions": {<br> |
| 210 | "close": "A String",<br> |
| 211 | "open": "A String",<br> |
| 212 | },<br> |
| 213 | },<br> |
| 214 | "unauthVotingAllowed": True or False,<br> |
| 215 | "videoSubmissionAllowed": True or False,<br> |
| 216 | "name": "A String",<br> |
| 217 | "numTopics": 42,<br> |
| 218 | "anonymousSubmissionAllowed": True or False,<br> |
| 219 | "unauthSubmissionAllowed": True or False,<br> |
| 220 | "id": {<br> |
| 221 | "seriesId": "A String",<br> |
| 222 | },<br> |
| 223 | "counters": {<br> |
| 224 | "users": 42,<br> |
| 225 | "noneVotes": 42,<br> |
| 226 | "videoSubmissions": 42,<br> |
| 227 | "minusVotes": 42,<br> |
| 228 | "anonymousSubmissions": 42,<br> |
| 229 | "submissions": 42,<br> |
| 230 | "plusVotes": 42,<br> |
| 231 | },<br> |
| 232 | }<br> |
| 233 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 234 | pp: string, A parameter<br> |
| 235 | trace: string, A parameter<br> |
| 236 | strict: string, A parameter<br> |
| 237 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 238 | <br> |
| 239 | Returns:<br> |
| 240 | An object of the form<br> |
| 241 | <br> |
| 242 | {<br> |
| 243 | "kind": "moderator#series",<br> |
| 244 | "description": "A String",<br> |
| 245 | "rules": {<br> |
| 246 | "votes": {<br> |
| 247 | "close": "A String",<br> |
| 248 | "open": "A String",<br> |
| 249 | },<br> |
| 250 | "submissions": {<br> |
| 251 | "close": "A String",<br> |
| 252 | "open": "A String",<br> |
| 253 | },<br> |
| 254 | },<br> |
| 255 | "unauthVotingAllowed": True or False,<br> |
| 256 | "videoSubmissionAllowed": True or False,<br> |
| 257 | "name": "A String",<br> |
| 258 | "numTopics": 42,<br> |
| 259 | "anonymousSubmissionAllowed": True or False,<br> |
| 260 | "unauthSubmissionAllowed": True or False,<br> |
| 261 | "id": {<br> |
| 262 | "seriesId": "A String",<br> |
| 263 | },<br> |
| 264 | "counters": {<br> |
| 265 | "users": 42,<br> |
| 266 | "noneVotes": 42,<br> |
| 267 | "videoSubmissions": 42,<br> |
| 268 | "minusVotes": 42,<br> |
| 269 | "anonymousSubmissions": 42,<br> |
| 270 | "submissions": 42,<br> |
| 271 | "plusVotes": 42,<br> |
| 272 | },<br> |
| 273 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 274 | |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 275 | <dl><dt><a name="Resource-responses"><strong><a href="moderator.v1.series.responses.html">responses</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 276 | |
| 277 | <dl><dt><a name="Resource-submissions"><strong><a href="moderator.v1.series.submissions.html">submissions</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 278 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 279 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the specified series.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 280 | <br> |
| 281 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 282 | seriesId: integer, The decimal ID of the Series. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 283 | body: object, The request body. (required)<br> |
| 284 | The object takes the form of:<br> |
| 285 | <br> |
| 286 | {<br> |
| 287 | "kind": "moderator#series",<br> |
| 288 | "description": "A String",<br> |
| 289 | "rules": {<br> |
| 290 | "votes": {<br> |
| 291 | "close": "A String",<br> |
| 292 | "open": "A String",<br> |
| 293 | },<br> |
| 294 | "submissions": {<br> |
| 295 | "close": "A String",<br> |
| 296 | "open": "A String",<br> |
| 297 | },<br> |
| 298 | },<br> |
| 299 | "unauthVotingAllowed": True or False,<br> |
| 300 | "videoSubmissionAllowed": True or False,<br> |
| 301 | "name": "A String",<br> |
| 302 | "numTopics": 42,<br> |
| 303 | "anonymousSubmissionAllowed": True or False,<br> |
| 304 | "unauthSubmissionAllowed": True or False,<br> |
| 305 | "id": {<br> |
| 306 | "seriesId": "A String",<br> |
| 307 | },<br> |
| 308 | "counters": {<br> |
| 309 | "users": 42,<br> |
| 310 | "noneVotes": 42,<br> |
| 311 | "videoSubmissions": 42,<br> |
| 312 | "minusVotes": 42,<br> |
| 313 | "anonymousSubmissions": 42,<br> |
| 314 | "submissions": 42,<br> |
| 315 | "plusVotes": 42,<br> |
| 316 | },<br> |
| 317 | }<br> |
| 318 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 319 | pp: string, A parameter<br> |
| 320 | trace: string, A parameter<br> |
| 321 | strict: string, A parameter<br> |
| 322 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 323 | <br> |
| 324 | Returns:<br> |
| 325 | An object of the form<br> |
| 326 | <br> |
| 327 | {<br> |
| 328 | "kind": "moderator#series",<br> |
| 329 | "description": "A String",<br> |
| 330 | "rules": {<br> |
| 331 | "votes": {<br> |
| 332 | "close": "A String",<br> |
| 333 | "open": "A String",<br> |
| 334 | },<br> |
| 335 | "submissions": {<br> |
| 336 | "close": "A String",<br> |
| 337 | "open": "A String",<br> |
| 338 | },<br> |
| 339 | },<br> |
| 340 | "unauthVotingAllowed": True or False,<br> |
| 341 | "videoSubmissionAllowed": True or False,<br> |
| 342 | "name": "A String",<br> |
| 343 | "numTopics": 42,<br> |
| 344 | "anonymousSubmissionAllowed": True or False,<br> |
| 345 | "unauthSubmissionAllowed": True or False,<br> |
| 346 | "id": {<br> |
| 347 | "seriesId": "A String",<br> |
| 348 | },<br> |
| 349 | "counters": {<br> |
| 350 | "users": 42,<br> |
| 351 | "noneVotes": 42,<br> |
| 352 | "videoSubmissions": 42,<br> |
| 353 | "minusVotes": 42,<br> |
| 354 | "anonymousSubmissions": 42,<br> |
| 355 | "submissions": 42,<br> |
| 356 | "plusVotes": 42,<br> |
| 357 | },<br> |
| 358 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 359 | |
| 360 | <hr> |
| 361 | Data descriptors defined here:<br> |
| 362 | <dl><dt><strong>__dict__</strong></dt> |
| 363 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 364 | </dl> |
| 365 | <dl><dt><strong>__weakref__</strong></dt> |
| 366 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 367 | </dl> |
| 368 | </td></tr></table> |
| 369 | </body></html> |