blob: cea34bfdcce850f0d44f5b25b0fc132cf7968873 [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">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080090 <code><a href="#list">list(calendarId, pageToken=None, maxResults=None, syncToken=None, showDeleted=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">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800102 <code><a href="#watch">watch(calendarId, body=None, pageToken=None, syncToken=None, maxResults=None, showDeleted=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 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800132 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
133 &quot;scope&quot;: { # The scope of the rule.
134 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
135 # - &quot;default&quot; - The public scope. This is the default value.
136 # - &quot;user&quot; - Limits the scope to a single user.
137 # - &quot;group&quot; - Limits the scope to a group.
138 # - &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.
139 &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;.
140 },
141 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
142 # - &quot;none&quot; - Provides no access.
143 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
144 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
145 # - &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.
146 # - &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.
147 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
148 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
149 }</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{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800162 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
163 &quot;scope&quot;: { # The scope of the rule.
164 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
165 # - &quot;default&quot; - The public scope. This is the default value.
166 # - &quot;user&quot; - Limits the scope to a single user.
167 # - &quot;group&quot; - Limits the scope to a group.
168 # - &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.
169 &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;.
170 },
171 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
172 # - &quot;none&quot; - Provides no access.
173 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
174 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
175 # - &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.
176 # - &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.
177 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
178 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
179}
180
181 sendNotifications: boolean, Whether to send notifications about the calendar sharing change. Optional. The default is True.
182
183Returns:
184 An object of the form:
185
186 {
187 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700188 &quot;scope&quot;: { # The scope of the rule.
189 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
190 # - &quot;default&quot; - The public scope. This is the default value.
191 # - &quot;user&quot; - Limits the scope to a single user.
192 # - &quot;group&quot; - Limits the scope to a group.
193 # - &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.
194 &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;.
195 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
197 # - &quot;none&quot; - Provides no access.
198 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
199 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
200 # - &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.
201 # - &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.
202 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800204 }</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205</div>
206
207<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800208 <code class="details" id="list">list(calendarId, pageToken=None, maxResults=None, syncToken=None, showDeleted=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)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700213 pageToken: string, Token specifying which result page to return. Optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800214 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 -0700215 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.
216If 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.
217Learn more about incremental synchronization.
218Optional. The default is to return all entries.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 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 -0700220
221Returns:
222 An object of the form:
223
224 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800225 &quot;kind&quot;: &quot;calendar#acl&quot;, # Type of the collection (&quot;calendar#acl&quot;).
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;items&quot;: [ # List of rules on the access control list.
John Asmuth614db982014-04-24 15:46:26 -0400227 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800228 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
229 &quot;scope&quot;: { # The scope of the rule.
230 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
231 # - &quot;default&quot; - The public scope. This is the default value.
232 # - &quot;user&quot; - Limits the scope to a single user.
233 # - &quot;group&quot; - Limits the scope to a group.
234 # - &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.
235 &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;.
John Asmuth614db982014-04-24 15:46:26 -0400236 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800237 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
238 # - &quot;none&quot; - Provides no access.
239 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
240 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
241 # - &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.
242 # - &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.
243 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
244 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
245 },
John Asmuth614db982014-04-24 15:46:26 -0400246 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &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 -0700248 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800249 &quot;etag&quot;: &quot;A String&quot;, # ETag of the collection.
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{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800278 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
279 &quot;scope&quot;: { # The scope of the rule.
280 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
281 # - &quot;default&quot; - The public scope. This is the default value.
282 # - &quot;user&quot; - Limits the scope to a single user.
283 # - &quot;group&quot; - Limits the scope to a group.
284 # - &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.
285 &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;.
286 },
287 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
288 # - &quot;none&quot; - Provides no access.
289 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
290 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
291 # - &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.
292 # - &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.
293 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
294 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
295}
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 {
303 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700304 &quot;scope&quot;: { # The scope of the rule.
305 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
306 # - &quot;default&quot; - The public scope. This is the default value.
307 # - &quot;user&quot; - Limits the scope to a single user.
308 # - &quot;group&quot; - Limits the scope to a group.
309 # - &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.
310 &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;.
311 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800312 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
313 # - &quot;none&quot; - Provides no access.
314 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
315 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
316 # - &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.
317 # - &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.
318 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700319 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800320 }</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{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800334 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
335 &quot;scope&quot;: { # The scope of the rule.
336 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
337 # - &quot;default&quot; - The public scope. This is the default value.
338 # - &quot;user&quot; - Limits the scope to a single user.
339 # - &quot;group&quot; - Limits the scope to a group.
340 # - &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.
341 &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;.
342 },
343 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
344 # - &quot;none&quot; - Provides no access.
345 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
346 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
347 # - &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.
348 # - &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.
349 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
350 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
351}
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 {
359 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700360 &quot;scope&quot;: { # The scope of the rule.
361 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
362 # - &quot;default&quot; - The public scope. This is the default value.
363 # - &quot;user&quot; - Limits the scope to a single user.
364 # - &quot;group&quot; - Limits the scope to a group.
365 # - &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.
366 &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;.
367 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800368 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
369 # - &quot;none&quot; - Provides no access.
370 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
371 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
372 # - &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.
373 # - &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.
374 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700375 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800376 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400377</div>
378
379<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800380 <code class="details" id="watch">watch(calendarId, body=None, pageToken=None, syncToken=None, maxResults=None, showDeleted=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{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800389 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700390 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
391 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700393 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800394 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
395 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
397 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
John Asmuth614db982014-04-24 15:46:26 -0400398 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800399 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
400 &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;.
John Asmuth614db982014-04-24 15:46:26 -0400401 }
402
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700403 pageToken: string, Token specifying which result page to return. 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800408 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700409 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.
John Asmuth614db982014-04-24 15:46:26 -0400410
411Returns:
412 An object of the form:
413
414 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800415 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700416 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
417 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700419 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800420 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
421 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
423 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
John Asmuth614db982014-04-24 15:46:26 -0400424 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800425 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
426 &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;.
John Asmuth614db982014-04-24 15:46:26 -0400427 }</pre>
428</div>
429
430</body></html>