146 lines
11 KiB
HTML
146 lines
11 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: class Resource</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<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>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<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>
|
|
<br>
|
|
Args:<br>
|
|
calendarId: string, Calendar identifier. (required)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes a secondary calendar.<br>
|
|
<br>
|
|
Args:<br>
|
|
calendarId: string, Calendar identifier. (required)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns metadata for a calendar.<br>
|
|
<br>
|
|
Args:<br>
|
|
calendarId: string, Calendar identifier. (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates a secondary calendar.<br>
|
|
<br>
|
|
Args:<br>
|
|
body: object, The request body. (required)<br>
|
|
The object takes the form of:<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}<br>
|
|
<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<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>
|
|
<br>
|
|
Args:<br>
|
|
body: object, The request body. (required)<br>
|
|
The object takes the form of:<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}<br>
|
|
<br>
|
|
calendarId: string, Calendar identifier. (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates metadata for a calendar.<br>
|
|
<br>
|
|
Args:<br>
|
|
body: object, The request body. (required)<br>
|
|
The object takes the form of:<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}<br>
|
|
<br>
|
|
calendarId: string, Calendar identifier. (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar").<br>
|
|
"description": "A String", # Description of the calendar. Optional.<br>
|
|
"summary": "A String", # Title of the calendar.<br>
|
|
"etag": "A String", # ETag of the resource.<br>
|
|
"location": "A String", # Geographic location of the calendar as free-form text. Optional.<br>
|
|
"timeZone": "A String", # The time zone of the calendar. Optional.<br>
|
|
"id": "A String", # Identifier of the calendar.<br>
|
|
}</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data descriptors defined here:<br>
|
|
<dl><dt><strong>__dict__</strong></dt>
|
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
</dl>
|
|
<dl><dt><strong>__weakref__</strong></dt>
|
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
</dl>
|
|
</td></tr></table>
|
|
</body></html> |