Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [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 | |
| 17 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets the visibility of an existing activity.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 20 | pp: string, A parameter<br> |
| 21 | trace: string, A parameter<br> |
| 22 | strict: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 23 | activityId: string, ID of the activity to get the visibility. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 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": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"<br> |
| 31 | "visibility": "A String", # The visibility of the resource. Possible values are:<br> |
| 32 | # - default: not hidden by the user<br> |
| 33 | # - hidden: hidden<br> |
| 34 | "links": [ # List of resources for the visibility item.<br> |
| 35 | { # Links to resources related to the parent object.<br> |
| 36 | "href": "A String", # URL of the link.<br> |
| 37 | "type": "A String", # Media type of the link.<br> |
| 38 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 39 | "title": "A String", # Title of the link.<br> |
| 40 | },<br> |
| 41 | ],<br> |
| 42 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 43 | |
| 44 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the visibility of an existing activity. This method supports patch semantics.<br> |
| 45 | <br> |
| 46 | Args:<br> |
| 47 | body: object, The request body. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 48 | The object takes the form of:<br> |
| 49 | <br> |
| 50 | {<br> |
| 51 | "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"<br> |
| 52 | "visibility": "A String", # The visibility of the resource. Possible values are:<br> |
| 53 | # - default: not hidden by the user<br> |
| 54 | # - hidden: hidden<br> |
| 55 | "links": [ # List of resources for the visibility item.<br> |
| 56 | { # Links to resources related to the parent object.<br> |
| 57 | "href": "A String", # URL of the link.<br> |
| 58 | "type": "A String", # Media type of the link.<br> |
| 59 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 60 | "title": "A String", # Title of the link.<br> |
| 61 | },<br> |
| 62 | ],<br> |
| 63 | }<br> |
| 64 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 65 | pp: string, A parameter<br> |
| 66 | trace: string, A parameter<br> |
| 67 | strict: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 68 | activityId: string, ID of the activity. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 69 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 70 | <br> |
| 71 | Returns:<br> |
| 72 | An object of the form<br> |
| 73 | <br> |
| 74 | {<br> |
| 75 | "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"<br> |
| 76 | "visibility": "A String", # The visibility of the resource. Possible values are:<br> |
| 77 | # - default: not hidden by the user<br> |
| 78 | # - hidden: hidden<br> |
| 79 | "links": [ # List of resources for the visibility item.<br> |
| 80 | { # Links to resources related to the parent object.<br> |
| 81 | "href": "A String", # URL of the link.<br> |
| 82 | "type": "A String", # Media type of the link.<br> |
| 83 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 84 | "title": "A String", # Title of the link.<br> |
| 85 | },<br> |
| 86 | ],<br> |
| 87 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 88 | |
| 89 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the visibility of an existing activity.<br> |
| 90 | <br> |
| 91 | Args:<br> |
| 92 | body: object, The request body. (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 93 | The object takes the form of:<br> |
| 94 | <br> |
| 95 | {<br> |
| 96 | "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"<br> |
| 97 | "visibility": "A String", # The visibility of the resource. Possible values are:<br> |
| 98 | # - default: not hidden by the user<br> |
| 99 | # - hidden: hidden<br> |
| 100 | "links": [ # List of resources for the visibility item.<br> |
| 101 | { # Links to resources related to the parent object.<br> |
| 102 | "href": "A String", # URL of the link.<br> |
| 103 | "type": "A String", # Media type of the link.<br> |
| 104 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 105 | "title": "A String", # Title of the link.<br> |
| 106 | },<br> |
| 107 | ],<br> |
| 108 | }<br> |
| 109 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 110 | pp: string, A parameter<br> |
| 111 | trace: string, A parameter<br> |
| 112 | strict: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 113 | activityId: string, ID of the activity. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 114 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 115 | <br> |
| 116 | Returns:<br> |
| 117 | An object of the form<br> |
| 118 | <br> |
| 119 | {<br> |
| 120 | "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"<br> |
| 121 | "visibility": "A String", # The visibility of the resource. Possible values are:<br> |
| 122 | # - default: not hidden by the user<br> |
| 123 | # - hidden: hidden<br> |
| 124 | "links": [ # List of resources for the visibility item.<br> |
| 125 | { # Links to resources related to the parent object.<br> |
| 126 | "href": "A String", # URL of the link.<br> |
| 127 | "type": "A String", # Media type of the link.<br> |
| 128 | "rel": "A String", # Relation between the resource and the parent object.<br> |
| 129 | "title": "A String", # Title of the link.<br> |
| 130 | },<br> |
| 131 | ],<br> |
| 132 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 133 | |
| 134 | <hr> |
| 135 | Data descriptors defined here:<br> |
| 136 | <dl><dt><strong>__dict__</strong></dt> |
| 137 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 138 | </dl> |
| 139 | <dl><dt><strong>__weakref__</strong></dt> |
| 140 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 141 | </dl> |
| 142 | </td></tr></table> |
| 143 | </body></html> |