• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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">
78  <code><a href="#delete">delete(calendarId, ruleId)</a></code></p>
79<p class="firstline">Deletes an access control rule.</p>
80<p class="toc_element">
81  <code><a href="#get">get(calendarId, ruleId)</a></code></p>
82<p class="firstline">Returns an access control rule.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(calendarId, body)</a></code></p>
85<p class="firstline">Creates an access control rule.</p>
86<p class="toc_element">
87  <code><a href="#list">list(calendarId, syncToken=None, pageToken=None, maxResults=None, showDeleted=None)</a></code></p>
88<p class="firstline">Returns the rules in the access control list for the calendar.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#patch">patch(calendarId, ruleId, body)</a></code></p>
94<p class="firstline">Updates an access control rule. This method supports patch semantics.</p>
95<p class="toc_element">
96  <code><a href="#update">update(calendarId, ruleId, body)</a></code></p>
97<p class="firstline">Updates an access control rule.</p>
98<p class="toc_element">
99  <code><a href="#watch">watch(calendarId, body, syncToken=None, pageToken=None, maxResults=None, showDeleted=None)</a></code></p>
100<p class="firstline">Watch for changes to ACL resources.</p>
101<h3>Method Details</h3>
102<div class="method">
103    <code class="details" id="delete">delete(calendarId, ruleId)</code>
104  <pre>Deletes an access control rule.
105
106Args:
107  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 "primary" keyword. (required)
108  ruleId: string, ACL rule identifier. (required)
109</pre>
110</div>
111
112<div class="method">
113    <code class="details" id="get">get(calendarId, ruleId)</code>
114  <pre>Returns an access control rule.
115
116Args:
117  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 "primary" keyword. (required)
118  ruleId: string, ACL rule identifier. (required)
119
120Returns:
121  An object of the form:
122
123    {
124      "scope": { # The scope of the rule.
125        "type": "A String", # The type of the scope. Possible values are:
126            # - "default" - The public scope. This is the default value.
127            # - "user" - Limits the scope to a single user.
128            # - "group" - Limits the scope to a group.
129            # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
130        "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
131      },
132      "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
133      "etag": "A String", # ETag of the resource.
134      "role": "A String", # The role assigned to the scope. Possible values are:
135          # - "none" - Provides no access.
136          # - "freeBusyReader" - Provides read access to free/busy information.
137          # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
138          # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
139          # - "owner" - 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.
140      "id": "A String", # Identifier of the ACL rule.
141    }</pre>
142</div>
143
144<div class="method">
145    <code class="details" id="insert">insert(calendarId, body)</code>
146  <pre>Creates an access control rule.
147
148Args:
149  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 "primary" keyword. (required)
150  body: object, The request body. (required)
151    The object takes the form of:
152
153{
154    "scope": { # The scope of the rule.
155      "type": "A String", # The type of the scope. Possible values are:
156          # - "default" - The public scope. This is the default value.
157          # - "user" - Limits the scope to a single user.
158          # - "group" - Limits the scope to a group.
159          # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
160      "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
161    },
162    "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
163    "etag": "A String", # ETag of the resource.
164    "role": "A String", # The role assigned to the scope. Possible values are:
165        # - "none" - Provides no access.
166        # - "freeBusyReader" - Provides read access to free/busy information.
167        # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
168        # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
169        # - "owner" - 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.
170    "id": "A String", # Identifier of the ACL rule.
171  }
172
173
174Returns:
175  An object of the form:
176
177    {
178      "scope": { # The scope of the rule.
179        "type": "A String", # The type of the scope. Possible values are:
180            # - "default" - The public scope. This is the default value.
181            # - "user" - Limits the scope to a single user.
182            # - "group" - Limits the scope to a group.
183            # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
184        "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
185      },
186      "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
187      "etag": "A String", # ETag of the resource.
188      "role": "A String", # The role assigned to the scope. Possible values are:
189          # - "none" - Provides no access.
190          # - "freeBusyReader" - Provides read access to free/busy information.
191          # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
192          # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
193          # - "owner" - 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.
194      "id": "A String", # Identifier of the ACL rule.
195    }</pre>
196</div>
197
198<div class="method">
199    <code class="details" id="list">list(calendarId, syncToken=None, pageToken=None, maxResults=None, showDeleted=None)</code>
200  <pre>Returns the rules in the access control list for the calendar.
201
202Args:
203  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 "primary" keyword. (required)
204  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.
205If 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.
206Learn more about incremental synchronization.
207Optional. The default is to return all entries.
208  pageToken: string, Token specifying which result page to return. Optional.
209  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.
210  showDeleted: boolean, Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.
211
212Returns:
213  An object of the form:
214
215    {
216    "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
217    "items": [ # List of rules on the access control list.
218      {
219          "scope": { # The scope of the rule.
220            "type": "A String", # The type of the scope. Possible values are:
221                # - "default" - The public scope. This is the default value.
222                # - "user" - Limits the scope to a single user.
223                # - "group" - Limits the scope to a group.
224                # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
225            "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
226          },
227          "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
228          "etag": "A String", # ETag of the resource.
229          "role": "A String", # The role assigned to the scope. Possible values are:
230              # - "none" - Provides no access.
231              # - "freeBusyReader" - Provides read access to free/busy information.
232              # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
233              # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
234              # - "owner" - 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.
235          "id": "A String", # Identifier of the ACL rule.
236        },
237    ],
238    "kind": "calendar#acl", # Type of the collection ("calendar#acl").
239    "etag": "A String", # ETag of the collection.
240    "nextSyncToken": "A String", # 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.
241  }</pre>
242</div>
243
244<div class="method">
245    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
246  <pre>Retrieves the next page of results.
247
248Args:
249  previous_request: The request for the previous page. (required)
250  previous_response: The response from the request for the previous page. (required)
251
252Returns:
253  A request object that you can call 'execute()' on to request the next
254  page. Returns None if there are no more items in the collection.
255    </pre>
256</div>
257
258<div class="method">
259    <code class="details" id="patch">patch(calendarId, ruleId, body)</code>
260  <pre>Updates an access control rule. This method supports patch semantics.
261
262Args:
263  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 "primary" keyword. (required)
264  ruleId: string, ACL rule identifier. (required)
265  body: object, The request body. (required)
266    The object takes the form of:
267
268{
269    "scope": { # The scope of the rule.
270      "type": "A String", # The type of the scope. Possible values are:
271          # - "default" - The public scope. This is the default value.
272          # - "user" - Limits the scope to a single user.
273          # - "group" - Limits the scope to a group.
274          # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
275      "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
276    },
277    "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
278    "etag": "A String", # ETag of the resource.
279    "role": "A String", # The role assigned to the scope. Possible values are:
280        # - "none" - Provides no access.
281        # - "freeBusyReader" - Provides read access to free/busy information.
282        # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
283        # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
284        # - "owner" - 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.
285    "id": "A String", # Identifier of the ACL rule.
286  }
287
288
289Returns:
290  An object of the form:
291
292    {
293      "scope": { # The scope of the rule.
294        "type": "A String", # The type of the scope. Possible values are:
295            # - "default" - The public scope. This is the default value.
296            # - "user" - Limits the scope to a single user.
297            # - "group" - Limits the scope to a group.
298            # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
299        "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
300      },
301      "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
302      "etag": "A String", # ETag of the resource.
303      "role": "A String", # The role assigned to the scope. Possible values are:
304          # - "none" - Provides no access.
305          # - "freeBusyReader" - Provides read access to free/busy information.
306          # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
307          # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
308          # - "owner" - 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.
309      "id": "A String", # Identifier of the ACL rule.
310    }</pre>
311</div>
312
313<div class="method">
314    <code class="details" id="update">update(calendarId, ruleId, body)</code>
315  <pre>Updates an access control rule.
316
317Args:
318  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 "primary" keyword. (required)
319  ruleId: string, ACL rule identifier. (required)
320  body: object, The request body. (required)
321    The object takes the form of:
322
323{
324    "scope": { # The scope of the rule.
325      "type": "A String", # The type of the scope. Possible values are:
326          # - "default" - The public scope. This is the default value.
327          # - "user" - Limits the scope to a single user.
328          # - "group" - Limits the scope to a group.
329          # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
330      "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
331    },
332    "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
333    "etag": "A String", # ETag of the resource.
334    "role": "A String", # The role assigned to the scope. Possible values are:
335        # - "none" - Provides no access.
336        # - "freeBusyReader" - Provides read access to free/busy information.
337        # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
338        # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
339        # - "owner" - 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.
340    "id": "A String", # Identifier of the ACL rule.
341  }
342
343
344Returns:
345  An object of the form:
346
347    {
348      "scope": { # The scope of the rule.
349        "type": "A String", # The type of the scope. Possible values are:
350            # - "default" - The public scope. This is the default value.
351            # - "user" - Limits the scope to a single user.
352            # - "group" - Limits the scope to a group.
353            # - "domain" - Limits the scope to a domain.  Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
354        "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
355      },
356      "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
357      "etag": "A String", # ETag of the resource.
358      "role": "A String", # The role assigned to the scope. Possible values are:
359          # - "none" - Provides no access.
360          # - "freeBusyReader" - Provides read access to free/busy information.
361          # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
362          # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
363          # - "owner" - 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.
364      "id": "A String", # Identifier of the ACL rule.
365    }</pre>
366</div>
367
368<div class="method">
369    <code class="details" id="watch">watch(calendarId, body, syncToken=None, pageToken=None, maxResults=None, showDeleted=None)</code>
370  <pre>Watch for changes to ACL resources.
371
372Args:
373  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 "primary" keyword. (required)
374  body: object, The request body. (required)
375    The object takes the form of:
376
377{
378    "resourceUri": "A String", # A version-specific identifier for the watched resource.
379    "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
380    "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
381    "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
382    "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
383    "params": { # Additional parameters controlling delivery channel behavior. Optional.
384      "a_key": "A String", # Declares a new parameter by name.
385    },
386    "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
387    "address": "A String", # The address where notifications are delivered for this channel.
388    "type": "A String", # The type of delivery mechanism used for this channel.
389    "id": "A String", # A UUID or similar unique string that identifies this channel.
390  }
391
392  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.
393If 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.
394Learn more about incremental synchronization.
395Optional. The default is to return all entries.
396  pageToken: string, Token specifying which result page to return. Optional.
397  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.
398  showDeleted: boolean, Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.
399
400Returns:
401  An object of the form:
402
403    {
404      "resourceUri": "A String", # A version-specific identifier for the watched resource.
405      "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
406      "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
407      "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
408      "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
409      "params": { # Additional parameters controlling delivery channel behavior. Optional.
410        "a_key": "A String", # Declares a new parameter by name.
411      },
412      "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
413      "address": "A String", # The address where notifications are delivered for this channel.
414      "type": "A String", # The type of delivery mechanism used for this channel.
415      "id": "A String", # A UUID or similar unique string that identifies this channel.
416    }</pre>
417</div>
418
419</body></html>