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 profile information for the authenticated user.<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 18 | <br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 19 | Args:<br> |
| 20 | <br> |
| 21 | Returns:<br> |
| 22 | An object of the form<br> |
| 23 | <br> |
| 24 | {<br> |
| 25 | "kind": "moderator#profile",<br> |
| 26 | "attribution": {<br> |
| 27 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 28 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 29 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 30 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 31 | },<br> |
| 32 | "displayName": "A String",<br> |
| 33 | "location": "A String",<br> |
| 34 | "avatarUrl": "A String",<br> |
| 35 | },<br> |
| 36 | "id": {<br> |
| 37 | "user": "A String",<br> |
| 38 | },<br> |
| 39 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 40 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 41 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the profile information for the authenticated user. This method supports patch semantics.<br> |
| 42 | <br> |
| 43 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 44 | body: object, The request body. (required)<br> |
| 45 | The object takes the form of:<br> |
| 46 | <br> |
| 47 | {<br> |
| 48 | "kind": "moderator#profile",<br> |
| 49 | "attribution": {<br> |
| 50 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 51 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 52 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 53 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 54 | },<br> |
| 55 | "displayName": "A String",<br> |
| 56 | "location": "A String",<br> |
| 57 | "avatarUrl": "A String",<br> |
| 58 | },<br> |
| 59 | "id": {<br> |
| 60 | "user": "A String",<br> |
| 61 | },<br> |
| 62 | }<br> |
| 63 | <br> |
| 64 | <br> |
| 65 | Returns:<br> |
| 66 | An object of the form<br> |
| 67 | <br> |
| 68 | {<br> |
| 69 | "kind": "moderator#profile",<br> |
| 70 | "attribution": {<br> |
| 71 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 72 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 73 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 74 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 75 | },<br> |
| 76 | "displayName": "A String",<br> |
| 77 | "location": "A String",<br> |
| 78 | "avatarUrl": "A String",<br> |
| 79 | },<br> |
| 80 | "id": {<br> |
| 81 | "user": "A String",<br> |
| 82 | },<br> |
| 83 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 84 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 85 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the profile information for the authenticated user.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 86 | <br> |
| 87 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 88 | body: object, The request body. (required)<br> |
| 89 | The object takes the form of:<br> |
| 90 | <br> |
| 91 | {<br> |
| 92 | "kind": "moderator#profile",<br> |
| 93 | "attribution": {<br> |
| 94 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 95 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 96 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 97 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 98 | },<br> |
| 99 | "displayName": "A String",<br> |
| 100 | "location": "A String",<br> |
| 101 | "avatarUrl": "A String",<br> |
| 102 | },<br> |
| 103 | "id": {<br> |
| 104 | "user": "A String",<br> |
| 105 | },<br> |
| 106 | }<br> |
| 107 | <br> |
| 108 | <br> |
| 109 | Returns:<br> |
| 110 | An object of the form<br> |
| 111 | <br> |
| 112 | {<br> |
| 113 | "kind": "moderator#profile",<br> |
| 114 | "attribution": {<br> |
| 115 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 116 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 117 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 118 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 119 | },<br> |
| 120 | "displayName": "A String",<br> |
| 121 | "location": "A String",<br> |
| 122 | "avatarUrl": "A String",<br> |
| 123 | },<br> |
| 124 | "id": {<br> |
| 125 | "user": "A String",<br> |
| 126 | },<br> |
| 127 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 128 | |
| 129 | <hr> |
| 130 | Data descriptors defined here:<br> |
| 131 | <dl><dt><strong>__dict__</strong></dt> |
| 132 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 133 | </dl> |
| 134 | <dl><dt><strong>__weakref__</strong></dt> |
| 135 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 136 | </dl> |
| 137 | </td></tr></table> |
| 138 | </body></html> |