blob: a0d07f0e62d73bb9defccd9f417f23484a48ef8a [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="calendar_v3.html">Calendar API</a> . <a href="calendar_v3.calendarList.html">calendarList</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#delete">delete(calendarId)</a></code></p>
<p class="firstline">Removes a calendar from the user's calendar list.</p>
<p class="toc_element">
<code><a href="#get">get(calendarId)</a></code></p>
<p class="firstline">Returns a calendar from the user's calendar list.</p>
<p class="toc_element">
<code><a href="#insert">insert(body=None, colorRgbFormat=None)</a></code></p>
<p class="firstline">Inserts an existing calendar into the user's calendar list.</p>
<p class="toc_element">
<code><a href="#list">list(showHidden=None, syncToken=None, pageToken=None, showDeleted=None, maxResults=None, minAccessRole=None)</a></code></p>
<p class="firstline">Returns the calendars on the user's calendar list.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(calendarId, body=None, colorRgbFormat=None)</a></code></p>
<p class="firstline">Updates an existing calendar on the user's calendar list. This method supports patch semantics.</p>
<p class="toc_element">
<code><a href="#update">update(calendarId, body=None, colorRgbFormat=None)</a></code></p>
<p class="firstline">Updates an existing calendar on the user's calendar list.</p>
<p class="toc_element">
<code><a href="#watch">watch(body=None, showHidden=None, showDeleted=None, minAccessRole=None, syncToken=None, maxResults=None, pageToken=None)</a></code></p>
<p class="firstline">Watch for changes to CalendarList resources.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="delete">delete(calendarId)</code>
<pre>Removes a calendar from the user&#x27;s calendar list.
Args:
calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the &quot;primary&quot; keyword. (required)
</pre>
</div>
<div class="method">
<code class="details" id="get">get(calendarId)</code>
<pre>Returns a calendar from the user&#x27;s calendar list.
Args:
calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the &quot;primary&quot; keyword. (required)
Returns:
An object of the form:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}</pre>
</div>
<div class="method">
<code class="details" id="insert">insert(body=None, colorRgbFormat=None)</code>
<pre>Inserts an existing calendar into the user&#x27;s calendar list.
Args:
body: object, The request body.
The object takes the form of:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}
colorRgbFormat: boolean, Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False.
Returns:
An object of the form:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(showHidden=None, syncToken=None, pageToken=None, showDeleted=None, maxResults=None, minAccessRole=None)</code>
<pre>Returns the calendars on the user&#x27;s calendar list.
Args:
showHidden: boolean, Whether to show hidden entries. Optional. The default is False.
syncToken: string, Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If only read-only fields such as calendar properties or ACLs have changed, the entry won&#x27;t be returned. All entries deleted and hidden since the previous list request will always be in the result set and it is not allowed to set showDeleted neither showHidden to False.
To ensure client state consistency minAccessRole query parameter cannot be specified together with nextSyncToken.
If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.
pageToken: string, Token specifying which result page to return. Optional.
showDeleted: boolean, Whether to include deleted calendar list entries in the result. Optional. The default is False.
maxResults: integer, Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.
minAccessRole: string, The minimum access role for the user in the returned entries. Optional. The default is no restriction.
Allowed values
freeBusyReader - The user can read free/busy information.
owner - The user can read and modify events and access control lists.
reader - The user can read events that are not private.
writer - The user can read and modify events.
Returns:
An object of the form:
{
&quot;etag&quot;: &quot;A String&quot;, # ETag of the collection.
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
&quot;items&quot;: [ # Calendars that are present on the user&#x27;s calendar list.
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
},
],
&quot;kind&quot;: &quot;calendar#calendarList&quot;, # Type of the collection (&quot;calendar#calendarList&quot;).
&quot;nextSyncToken&quot;: &quot;A String&quot;, # Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
<div class="method">
<code class="details" id="patch">patch(calendarId, body=None, colorRgbFormat=None)</code>
<pre>Updates an existing calendar on the user&#x27;s calendar list. This method supports patch semantics.
Args:
calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the &quot;primary&quot; keyword. (required)
body: object, The request body.
The object takes the form of:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}
colorRgbFormat: boolean, Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False.
Returns:
An object of the form:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}</pre>
</div>
<div class="method">
<code class="details" id="update">update(calendarId, body=None, colorRgbFormat=None)</code>
<pre>Updates an existing calendar on the user&#x27;s calendar list.
Args:
calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the &quot;primary&quot; keyword. (required)
body: object, The request body.
The object takes the form of:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}
colorRgbFormat: boolean, Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False.
Returns:
An object of the form:
{
&quot;summaryOverride&quot;: &quot;A String&quot;, # The summary that the authenticated user has set for this calendar. Optional.
&quot;summary&quot;: &quot;A String&quot;, # Title of the calendar. Read-only.
&quot;hidden&quot;: false, # Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
&quot;colorId&quot;: &quot;A String&quot;, # The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
&quot;selected&quot;: false, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
&quot;timeZone&quot;: &quot;A String&quot;, # The time zone of the calendar. Optional. Read-only.
&quot;conferenceProperties&quot;: { # Conferencing properties for this calendar, for example what types of conferences are allowed.
&quot;allowedConferenceSolutionTypes&quot;: [ # The types of conference solutions that are supported for this calendar.
# The possible values are:
# - &quot;eventHangout&quot;
# - &quot;eventNamedHangout&quot;
# - &quot;hangoutsMeet&quot; Optional.
&quot;A String&quot;,
],
},
&quot;location&quot;: &quot;A String&quot;, # Geographic location of the calendar as free-form text. Optional. Read-only.
&quot;notificationSettings&quot;: { # The notifications that the authenticated user is receiving for this calendar.
&quot;notifications&quot;: [ # The list of notifications set for this calendar.
{
&quot;type&quot;: &quot;A String&quot;, # The type of notification. Possible values are:
# - &quot;eventCreation&quot; - Notification sent when a new event is put on the calendar.
# - &quot;eventChange&quot; - Notification sent when an event is changed.
# - &quot;eventCancellation&quot; - Notification sent when an event is cancelled.
# - &quot;eventResponse&quot; - Notification sent when an attendee responds to the event invitation.
# - &quot;agenda&quot; - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
&quot;method&quot;: &quot;A String&quot;, # The method used to deliver the notification. The possible value is:
# - &quot;email&quot; - Notifications are sent via email.
# Required when adding a notification.
},
],
},
&quot;kind&quot;: &quot;calendar#calendarListEntry&quot;, # Type of the resource (&quot;calendar#calendarListEntry&quot;).
&quot;primary&quot;: false, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
&quot;description&quot;: &quot;A String&quot;, # Description of the calendar. Optional. Read-only.
&quot;foregroundColor&quot;: &quot;A String&quot;, # The foreground color of the calendar in the hexadecimal format &quot;#ffffff&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;backgroundColor&quot;: &quot;A String&quot;, # The main color of the calendar in the hexadecimal format &quot;#0088aa&quot;. This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
&quot;accessRole&quot;: &quot;A String&quot;, # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
# - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
&quot;deleted&quot;: false, # Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
&quot;defaultReminders&quot;: [ # The default reminders that the authenticated user has for this calendar.
{
&quot;method&quot;: &quot;A String&quot;, # The method used by this reminder. Possible values are:
# - &quot;email&quot; - Reminders are sent via email.
# - &quot;popup&quot; - Reminders are sent via a UI popup.
# Required when adding a reminder.
&quot;minutes&quot;: 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
},
],
&quot;id&quot;: &quot;A String&quot;, # Identifier of the calendar.
&quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
}</pre>
</div>
<div class="method">
<code class="details" id="watch">watch(body=None, showHidden=None, showDeleted=None, minAccessRole=None, syncToken=None, maxResults=None, pageToken=None)</code>
<pre>Watch for changes to CalendarList resources.
Args:
body: object, The request body.
The object takes the form of:
{
&quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
&quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
&quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
&quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
&quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
},
&quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
&quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
&quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
&quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
&quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
&quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
}
showHidden: boolean, Whether to show hidden entries. Optional. The default is False.
showDeleted: boolean, Whether to include deleted calendar list entries in the result. Optional. The default is False.
minAccessRole: string, The minimum access role for the user in the returned entries. Optional. The default is no restriction.
Allowed values
freeBusyReader - The user can read free/busy information.
owner - The user can read and modify events and access control lists.
reader - The user can read events that are not private.
writer - The user can read and modify events.
syncToken: string, Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If only read-only fields such as calendar properties or ACLs have changed, the entry won&#x27;t be returned. All entries deleted and hidden since the previous list request will always be in the result set and it is not allowed to set showDeleted neither showHidden to False.
To ensure client state consistency minAccessRole query parameter cannot be specified together with nextSyncToken.
If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.
maxResults: integer, Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.
pageToken: string, Token specifying which result page to return. Optional.
Returns:
An object of the form:
{
&quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
&quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
&quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
&quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
&quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
},
&quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
&quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
&quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
&quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
&quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
&quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
}</pre>
</div>
</body></html>