Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -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 | |
| 17 | <dl><dt><a name="Resource-clear"><strong>clear</strong></a> = method(self, **kwargs)</dt><dd><tt>Clears a primary calendar. This operation deletes all data associated with the primary calendar of an account and cannot be undone.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | body: object, The request body. (required)<br> |
| 21 | calendarId: string, Calendar identifier. (required)</tt></dd></dl> |
| 22 | |
| 23 | <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes a secondary calendar.<br> |
| 24 | <br> |
| 25 | Args:<br> |
| 26 | calendarId: string, Calendar identifier. (required)</tt></dd></dl> |
| 27 | |
| 28 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns metadata for a calendar.<br> |
| 29 | <br> |
| 30 | Args:<br> |
| 31 | calendarId: string, Calendar identifier. (required)<br> |
| 32 | <br> |
| 33 | Returns:<br> |
| 34 | An object of the form<br> |
| 35 | <br> |
| 36 | {<br> |
| 37 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 38 | "description": "A String", # Description of the calendar. Optional.<br> |
| 39 | "summary": "A String", # Title of the calendar.<br> |
| 40 | "etag": "A String", # ETag of the resource.<br> |
| 41 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 42 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 43 | "id": "A String", # Identifier of the calendar.<br> |
| 44 | }</tt></dd></dl> |
| 45 | |
| 46 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates a secondary calendar.<br> |
| 47 | <br> |
| 48 | Args:<br> |
| 49 | body: object, The request body. (required)<br> |
| 50 | The object takes the form of:<br> |
| 51 | <br> |
| 52 | {<br> |
| 53 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 54 | "description": "A String", # Description of the calendar. Optional.<br> |
| 55 | "summary": "A String", # Title of the calendar.<br> |
| 56 | "etag": "A String", # ETag of the resource.<br> |
| 57 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 58 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 59 | "id": "A String", # Identifier of the calendar.<br> |
| 60 | }<br> |
| 61 | <br> |
| 62 | <br> |
| 63 | Returns:<br> |
| 64 | An object of the form<br> |
| 65 | <br> |
| 66 | {<br> |
| 67 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 68 | "description": "A String", # Description of the calendar. Optional.<br> |
| 69 | "summary": "A String", # Title of the calendar.<br> |
| 70 | "etag": "A String", # ETag of the resource.<br> |
| 71 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 72 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 73 | "id": "A String", # Identifier of the calendar.<br> |
| 74 | }</tt></dd></dl> |
| 75 | |
| 76 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates metadata for a calendar. This method supports patch semantics.<br> |
| 77 | <br> |
| 78 | Args:<br> |
| 79 | body: object, The request body. (required)<br> |
| 80 | The object takes the form of:<br> |
| 81 | <br> |
| 82 | {<br> |
| 83 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 84 | "description": "A String", # Description of the calendar. Optional.<br> |
| 85 | "summary": "A String", # Title of the calendar.<br> |
| 86 | "etag": "A String", # ETag of the resource.<br> |
| 87 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 88 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 89 | "id": "A String", # Identifier of the calendar.<br> |
| 90 | }<br> |
| 91 | <br> |
| 92 | calendarId: string, Calendar identifier. (required)<br> |
| 93 | <br> |
| 94 | Returns:<br> |
| 95 | An object of the form<br> |
| 96 | <br> |
| 97 | {<br> |
| 98 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 99 | "description": "A String", # Description of the calendar. Optional.<br> |
| 100 | "summary": "A String", # Title of the calendar.<br> |
| 101 | "etag": "A String", # ETag of the resource.<br> |
| 102 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 103 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 104 | "id": "A String", # Identifier of the calendar.<br> |
| 105 | }</tt></dd></dl> |
| 106 | |
| 107 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates metadata for a calendar.<br> |
| 108 | <br> |
| 109 | Args:<br> |
| 110 | body: object, The request body. (required)<br> |
| 111 | The object takes the form of:<br> |
| 112 | <br> |
| 113 | {<br> |
| 114 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 115 | "description": "A String", # Description of the calendar. Optional.<br> |
| 116 | "summary": "A String", # Title of the calendar.<br> |
| 117 | "etag": "A String", # ETag of the resource.<br> |
| 118 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 119 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 120 | "id": "A String", # Identifier of the calendar.<br> |
| 121 | }<br> |
| 122 | <br> |
| 123 | calendarId: string, Calendar identifier. (required)<br> |
| 124 | <br> |
| 125 | Returns:<br> |
| 126 | An object of the form<br> |
| 127 | <br> |
| 128 | {<br> |
| 129 | "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br> |
| 130 | "description": "A String", # Description of the calendar. Optional.<br> |
| 131 | "summary": "A String", # Title of the calendar.<br> |
| 132 | "etag": "A String", # ETag of the resource.<br> |
| 133 | "location": "A String", # Geographic location of the calendar as free-form text. Optional.<br> |
| 134 | "timeZone": "A String", # The time zone of the calendar. Optional.<br> |
| 135 | "id": "A String", # Identifier of the calendar.<br> |
| 136 | }</tt></dd></dl> |
| 137 | |
| 138 | <hr> |
| 139 | Data descriptors defined here:<br> |
| 140 | <dl><dt><strong>__dict__</strong></dt> |
| 141 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 142 | </dl> |
| 143 | <dl><dt><strong>__weakref__</strong></dt> |
| 144 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 145 | </dl> |
| 146 | </td></tr></table> |
| 147 | </body></html> |