blob: fd6a3ba1695b67c9ee409bf5d5cf64322b8d7573 [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 Botb6971b02020-11-26 17:16:03 -080090 <code><a href="#list">list(calendarId, maxResults=None, pageToken=None, showDeleted=None, syncToken=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 Botb6971b02020-11-26 17:16:03 -0800102 <code><a href="#watch">watch(calendarId, body=None, syncToken=None, showDeleted=None, maxResults=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 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800132 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800133 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
134 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800135 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
136 # - &quot;none&quot; - Provides no access.
137 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
138 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
139 # - &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.
140 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800141 &quot;scope&quot;: { # The scope of the rule.
142 &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;.
143 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
144 # - &quot;default&quot; - The public scope. This is the default value.
145 # - &quot;user&quot; - Limits the scope to a single user.
146 # - &quot;group&quot; - Limits the scope to a group.
147 # - &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.
148 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 }</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 Bot0d561ef2020-11-25 07:50:41 -0800162 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800163 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
164 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800165 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
166 # - &quot;none&quot; - Provides no access.
167 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
168 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
169 # - &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.
170 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800171 &quot;scope&quot;: { # The scope of the rule.
172 &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;.
173 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
174 # - &quot;default&quot; - The public scope. This is the default value.
175 # - &quot;user&quot; - Limits the scope to a single user.
176 # - &quot;group&quot; - Limits the scope to a group.
177 # - &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.
178 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800179}
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 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800187 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800188 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
189 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800190 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
191 # - &quot;none&quot; - Provides no access.
192 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
193 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
194 # - &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.
195 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800196 &quot;scope&quot;: { # The scope of the rule.
197 &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;.
198 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
199 # - &quot;default&quot; - The public scope. This is the default value.
200 # - &quot;user&quot; - Limits the scope to a single user.
201 # - &quot;group&quot; - Limits the scope to a group.
202 # - &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.
203 },
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 Botb6971b02020-11-26 17:16:03 -0800208 <code class="details" id="list">list(calendarId, maxResults=None, pageToken=None, showDeleted=None, syncToken=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)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800213 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800214 pageToken: string, Token specifying which result page to return. Optional.
215 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 -0700216 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.
217If 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.
218Learn more about incremental synchronization.
219Optional. The default is to return all entries.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700220
221Returns:
222 An object of the form:
223
224 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800225 &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.
226 &quot;etag&quot;: &quot;A String&quot;, # ETag of the collection.
227 &quot;kind&quot;: &quot;calendar#acl&quot;, # Type of the collection (&quot;calendar#acl&quot;).
228 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;items&quot;: [ # List of rules on the access control list.
John Asmuth614db982014-04-24 15:46:26 -0400230 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800231 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800232 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
233 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800234 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
235 # - &quot;none&quot; - Provides no access.
236 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
237 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
238 # - &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.
239 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800240 &quot;scope&quot;: { # The scope of the rule.
241 &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;.
242 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
243 # - &quot;default&quot; - The public scope. This is the default value.
244 # - &quot;user&quot; - Limits the scope to a single user.
245 # - &quot;group&quot; - Limits the scope to a group.
246 # - &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.
247 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800248 },
John Asmuth614db982014-04-24 15:46:26 -0400249 ],
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 Bot0d561ef2020-11-25 07:50:41 -0800278 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800279 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
280 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800281 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
282 # - &quot;none&quot; - Provides no access.
283 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
284 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
285 # - &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.
286 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800287 &quot;scope&quot;: { # The scope of the rule.
288 &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;.
289 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
290 # - &quot;default&quot; - The public scope. This is the default value.
291 # - &quot;user&quot; - Limits the scope to a single user.
292 # - &quot;group&quot; - Limits the scope to a group.
293 # - &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.
294 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800295}
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 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800303 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800304 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
305 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800306 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
307 # - &quot;none&quot; - Provides no access.
308 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
309 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
310 # - &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.
311 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800312 &quot;scope&quot;: { # The scope of the rule.
313 &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;.
314 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
315 # - &quot;default&quot; - The public scope. This is the default value.
316 # - &quot;user&quot; - Limits the scope to a single user.
317 # - &quot;group&quot; - Limits the scope to a group.
318 # - &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.
319 },
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 Bot0d561ef2020-11-25 07:50:41 -0800334 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800335 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
336 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800337 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
338 # - &quot;none&quot; - Provides no access.
339 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
340 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
341 # - &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.
342 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800343 &quot;scope&quot;: { # The scope of the rule.
344 &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;.
345 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
346 # - &quot;default&quot; - The public scope. This is the default value.
347 # - &quot;user&quot; - Limits the scope to a single user.
348 # - &quot;group&quot; - Limits the scope to a group.
349 # - &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.
350 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800351}
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 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800359 &quot;kind&quot;: &quot;calendar#aclRule&quot;, # Type of the resource (&quot;calendar#aclRule&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800360 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
361 &quot;id&quot;: &quot;A String&quot;, # Identifier of the ACL rule.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800362 &quot;role&quot;: &quot;A String&quot;, # The role assigned to the scope. Possible values are:
363 # - &quot;none&quot; - Provides no access.
364 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
365 # - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
366 # - &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.
367 # - &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800368 &quot;scope&quot;: { # The scope of the rule.
369 &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;.
370 &quot;type&quot;: &quot;A String&quot;, # The type of the scope. Possible values are:
371 # - &quot;default&quot; - The public scope. This is the default value.
372 # - &quot;user&quot; - Limits the scope to a single user.
373 # - &quot;group&quot; - Limits the scope to a group.
374 # - &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.
375 },
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 Botb6971b02020-11-26 17:16:03 -0800380 <code class="details" id="watch">watch(calendarId, body=None, syncToken=None, showDeleted=None, maxResults=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{
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800389 &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;.
390 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800391 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
392 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
393 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
394 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
395 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
396 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800397 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700398 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
399 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
John Asmuth614db982014-04-24 15:46:26 -0400400 },
John Asmuth614db982014-04-24 15:46:26 -0400401 }
402
Craig Citro065b5302014-08-14 00:47:23 -0700403 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.
404If 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.
405Learn more about incremental synchronization.
406Optional. The default is to return all entries.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800407 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.
408 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.
409 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 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800415 &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;.
416 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800417 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
418 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
419 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
420 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
421 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
422 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800423 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
425 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
John Asmuth614db982014-04-24 15:46:26 -0400426 },
John Asmuth614db982014-04-24 15:46:26 -0400427 }</pre>
428</div>
429
430</body></html>