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