blob: 4bba7fc4748a6053c7411404c25e0172f5c1fbff [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="calendar_v3.html">Calendar API</a> . <a href="calendar_v3.acl.html">acl</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040081 <code><a href="#delete">delete(calendarId, ruleId)</a></code></p>
82<p class="firstline">Deletes an access control rule.</p>
83<p class="toc_element">
84 <code><a href="#get">get(calendarId, ruleId)</a></code></p>
85<p class="firstline">Returns an access control rule.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(calendarId, body=None, sendNotifications=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Creates an access control rule.</p>
89<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#list">list(calendarId, maxResults=None, syncToken=None, showDeleted=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Returns the rules in the access control list for the calendar.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(calendarId, ruleId, body=None, sendNotifications=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Updates an access control rule. This method supports patch semantics.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#update">update(calendarId, ruleId, body=None, sendNotifications=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400100<p class="firstline">Updates an access control rule.</p>
101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#watch">watch(calendarId, body=None, maxResults=None, syncToken=None, showDeleted=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400103<p class="firstline">Watch for changes to ACL resources.</p>
104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400111 <code class="details" id="delete">delete(calendarId, ruleId)</code>
112 <pre>Deletes an access control rule.
113
114Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 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)
John Asmuth614db982014-04-24 15:46:26 -0400116 ruleId: string, ACL rule identifier. (required)
117</pre>
118</div>
119
120<div class="method">
121 <code class="details" id="get">get(calendarId, ruleId)</code>
122 <pre>Returns an access control rule.
123
124Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 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)
John Asmuth614db982014-04-24 15:46:26 -0400126 ruleId: string, ACL rule identifier. (required)
127
128Returns:
129 An object of the form:
130
131 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700132 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700134 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
135 &quot;scope&quot;: { # The scope of the rule.
136 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
137 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
138 # - &quot;default&quot; - The public scope. This is the default value.
139 # - &quot;user&quot; - Limits the scope to a single user.
140 # - &quot;group&quot; - Limits the scope to a group.
141 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
142 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700143 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
144 # - &quot;none&quot; - Provides no access.
145 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
146 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
147 # - &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.
148 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700149 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400150</div>
151
152<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700153 <code class="details" id="insert">insert(calendarId, body=None, sendNotifications=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400154 <pre>Creates an access control rule.
155
156Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400159 The object takes the form of:
160
161{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700164 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
165 &quot;scope&quot;: { # The scope of the rule.
166 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
167 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
168 # - &quot;default&quot; - The public scope. This is the default value.
169 # - &quot;user&quot; - Limits the scope to a single user.
170 # - &quot;group&quot; - Limits the scope to a group.
171 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
172 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
174 # - &quot;none&quot; - Provides no access.
175 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
176 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
177 # - &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.
178 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700179 }
John Asmuth614db982014-04-24 15:46:26 -0400180
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700181 sendNotifications: boolean, Whether to send notifications about the calendar sharing change. Optional. The default is True.
John Asmuth614db982014-04-24 15:46:26 -0400182
183Returns:
184 An object of the form:
185
186 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700187 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700188 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700189 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
190 &quot;scope&quot;: { # The scope of the rule.
191 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
192 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
193 # - &quot;default&quot; - The public scope. This is the default value.
194 # - &quot;user&quot; - Limits the scope to a single user.
195 # - &quot;group&quot; - Limits the scope to a group.
196 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
197 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
199 # - &quot;none&quot; - Provides no access.
200 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
201 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
202 # - &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.
203 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700204 }</pre>
205</div>
206
207<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700208 <code class="details" id="list">list(calendarId, maxResults=None, syncToken=None, showDeleted=None, pageToken=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700209 <pre>Returns the rules in the access control list for the calendar.
210
211Args:
212 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)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700214 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. All entries deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False.
215If 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.
216Learn more about incremental synchronization.
217Optional. The default is to return all entries.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700218 showDeleted: boolean, Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to &quot;none&quot;. Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.
219 pageToken: string, Token specifying which result page to return. Optional.
220
221Returns:
222 An object of the form:
223
224 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;items&quot;: [ # List of rules on the access control list.
John Asmuth614db982014-04-24 15:46:26 -0400226 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700227 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
230 &quot;scope&quot;: { # The scope of the rule.
231 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
232 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
233 # - &quot;default&quot; - The public scope. This is the default value.
234 # - &quot;user&quot; - Limits the scope to a single user.
235 # - &quot;group&quot; - Limits the scope to a group.
236 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
237 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700238 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
239 # - &quot;none&quot; - Provides no access.
240 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
241 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
242 # - &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.
243 # - &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.
John Asmuth614db982014-04-24 15:46:26 -0400244 },
245 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700246 &quot;etag&quot;: &quot;A String&quot;, # ETag of the collection.
247 &quot;kind&quot;: &quot;calendar#acl&quot;, # Type of the collection (&quot;calendar#acl&quot;).
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700249 &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.
John Asmuth614db982014-04-24 15:46:26 -0400250 }</pre>
251</div>
252
253<div class="method">
254 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
255 <pre>Retrieves the next page of results.
256
257Args:
258 previous_request: The request for the previous page. (required)
259 previous_response: The response from the request for the previous page. (required)
260
261Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400263 page. Returns None if there are no more items in the collection.
264 </pre>
265</div>
266
267<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700268 <code class="details" id="patch">patch(calendarId, ruleId, body=None, sendNotifications=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400269 <pre>Updates an access control rule. This method supports patch semantics.
270
271Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 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)
John Asmuth614db982014-04-24 15:46:26 -0400273 ruleId: string, ACL rule identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700274 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400275 The object takes the form of:
276
277{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700278 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700280 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
281 &quot;scope&quot;: { # The scope of the rule.
282 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
283 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
284 # - &quot;default&quot; - The public scope. This is the default value.
285 # - &quot;user&quot; - Limits the scope to a single user.
286 # - &quot;group&quot; - Limits the scope to a group.
287 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
288 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
290 # - &quot;none&quot; - Provides no access.
291 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
292 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
293 # - &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.
294 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700295 }
296
297 sendNotifications: boolean, Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.
298
299Returns:
300 An object of the form:
301
302 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700303 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700304 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700305 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
306 &quot;scope&quot;: { # The scope of the rule.
307 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
308 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
309 # - &quot;default&quot; - The public scope. This is the default value.
310 # - &quot;user&quot; - Limits the scope to a single user.
311 # - &quot;group&quot; - Limits the scope to a group.
312 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
313 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700314 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
315 # - &quot;none&quot; - Provides no access.
316 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
317 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
318 # - &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.
319 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700320 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400321</div>
322
323<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700324 <code class="details" id="update">update(calendarId, ruleId, body=None, sendNotifications=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400325 <pre>Updates an access control rule.
326
327Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 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)
John Asmuth614db982014-04-24 15:46:26 -0400329 ruleId: string, ACL rule identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700330 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400331 The object takes the form of:
332
333{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700334 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700336 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
337 &quot;scope&quot;: { # The scope of the rule.
338 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
339 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
340 # - &quot;default&quot; - The public scope. This is the default value.
341 # - &quot;user&quot; - Limits the scope to a single user.
342 # - &quot;group&quot; - Limits the scope to a group.
343 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
344 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
346 # - &quot;none&quot; - Provides no access.
347 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
348 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
349 # - &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.
350 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700351 }
352
353 sendNotifications: boolean, Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.
354
355Returns:
356 An object of the form:
357
358 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700359 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700360 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700361 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
362 &quot;scope&quot;: { # The scope of the rule.
363 &quot;value&quot;: &quot;A String&quot;, # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type &quot;default&quot;.
364 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
365 # - &quot;default&quot; - The public scope. This is the default value.
366 # - &quot;user&quot; - Limits the scope to a single user.
367 # - &quot;group&quot; - Limits the scope to a group.
368 # - &quot;domain&quot; - Limits the scope to a domain. Note: The permissions granted to the &quot;default&quot;, or public, scope apply to any user, authenticated or not.
369 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700370 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
371 # - &quot;none&quot; - Provides no access.
372 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
373 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
374 # - &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.
375 # - &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700376 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400377</div>
378
379<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700380 <code class="details" id="watch">watch(calendarId, body=None, maxResults=None, syncToken=None, showDeleted=None, pageToken=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400381 <pre>Watch for changes to ACL resources.
382
383Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700385 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400386 The object takes the form of:
387
388{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389 &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;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700390 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700391 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
392 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
393 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
394 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
395 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
396 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
398 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
John Asmuth614db982014-04-24 15:46:26 -0400399 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
John Asmuth614db982014-04-24 15:46:26 -0400401 }
402
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700403 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.
Craig Citro065b5302014-08-14 00:47:23 -0700404 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. All entries deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False.
405If 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.
406Learn more about incremental synchronization.
407Optional. The default is to return all entries.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700408 showDeleted: boolean, Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to &quot;none&quot;. Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700409 pageToken: string, Token specifying which result page to return. Optional.
John Asmuth614db982014-04-24 15:46:26 -0400410
411Returns:
412 An object of the form:
413
414 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700415 &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;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700416 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700417 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
418 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
419 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
420 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
421 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
422 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
424 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
John Asmuth614db982014-04-24 15:46:26 -0400425 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700426 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
John Asmuth614db982014-04-24 15:46:26 -0400427 }</pre>
428</div>
429
430</body></html>