Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes an access control rule.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 20 | pp: string, A parameter<br> |
| 21 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 22 | ruleId: string, ACL rule identifier. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 23 | calendarId: string, Calendar identifier. (required)<br> |
| 24 | userip: string, A parameter<br> |
| 25 | strict: string, A parameter</tt></dd></dl> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 26 | |
| 27 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns an access control rule.<br> |
| 28 | <br> |
| 29 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 30 | pp: string, A parameter<br> |
| 31 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 32 | ruleId: string, ACL rule identifier. (required)<br> |
| 33 | calendarId: string, Calendar identifier. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 34 | userip: string, A parameter<br> |
| 35 | strict: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 36 | <br> |
| 37 | Returns:<br> |
| 38 | An object of the form<br> |
| 39 | <br> |
| 40 | {<br> |
| 41 | "scope": { # The scope of the rule.<br> |
| 42 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 43 | # - "default" - The public scope. This is the default value.<br> |
| 44 | # - "user" - Limits the scope to a single user.<br> |
| 45 | # - "group" - Limits the scope to a group.<br> |
| 46 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 47 | "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".<br> |
| 48 | },<br> |
| 49 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 50 | "etag": "A String", # ETag of the resource.<br> |
| 51 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 52 | # - "none" - Provides no access.<br> |
| 53 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 54 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 55 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 56 | # - "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.<br> |
| 57 | "id": "A String", # Identifier of the ACL rule.<br> |
| 58 | }</tt></dd></dl> |
| 59 | |
| 60 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates an access control rule.<br> |
| 61 | <br> |
| 62 | Args:<br> |
| 63 | body: object, The request body. (required)<br> |
| 64 | The object takes the form of:<br> |
| 65 | <br> |
| 66 | {<br> |
| 67 | "scope": { # The scope of the rule.<br> |
| 68 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 69 | # - "default" - The public scope. This is the default value.<br> |
| 70 | # - "user" - Limits the scope to a single user.<br> |
| 71 | # - "group" - Limits the scope to a group.<br> |
| 72 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 73 | "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".<br> |
| 74 | },<br> |
| 75 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 76 | "etag": "A String", # ETag of the resource.<br> |
| 77 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 78 | # - "none" - Provides no access.<br> |
| 79 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 80 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 81 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 82 | # - "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.<br> |
| 83 | "id": "A String", # Identifier of the ACL rule.<br> |
| 84 | }<br> |
| 85 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 86 | pp: string, A parameter<br> |
| 87 | trace: string, A parameter<br> |
| 88 | strict: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 89 | calendarId: string, Calendar identifier. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 90 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 91 | <br> |
| 92 | Returns:<br> |
| 93 | An object of the form<br> |
| 94 | <br> |
| 95 | {<br> |
| 96 | "scope": { # The scope of the rule.<br> |
| 97 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 98 | # - "default" - The public scope. This is the default value.<br> |
| 99 | # - "user" - Limits the scope to a single user.<br> |
| 100 | # - "group" - Limits the scope to a group.<br> |
| 101 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 102 | "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".<br> |
| 103 | },<br> |
| 104 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 105 | "etag": "A String", # ETag of the resource.<br> |
| 106 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 107 | # - "none" - Provides no access.<br> |
| 108 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 109 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 110 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 111 | # - "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.<br> |
| 112 | "id": "A String", # Identifier of the ACL rule.<br> |
| 113 | }</tt></dd></dl> |
| 114 | |
| 115 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the rules in the access control list for the calendar.<br> |
| 116 | <br> |
| 117 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 118 | pp: string, A parameter<br> |
| 119 | trace: string, A parameter<br> |
| 120 | strict: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 121 | calendarId: string, Calendar identifier. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 122 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 123 | <br> |
| 124 | Returns:<br> |
| 125 | An object of the form<br> |
| 126 | <br> |
| 127 | {<br> |
| 128 | "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available.<br> |
| 129 | "items": [ # List of rules on the access control list.<br> |
| 130 | {<br> |
| 131 | "scope": { # The scope of the rule.<br> |
| 132 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 133 | # - "default" - The public scope. This is the default value.<br> |
| 134 | # - "user" - Limits the scope to a single user.<br> |
| 135 | # - "group" - Limits the scope to a group.<br> |
| 136 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 137 | "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".<br> |
| 138 | },<br> |
| 139 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 140 | "etag": "A String", # ETag of the resource.<br> |
| 141 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 142 | # - "none" - Provides no access.<br> |
| 143 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 144 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 145 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 146 | # - "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.<br> |
| 147 | "id": "A String", # Identifier of the ACL rule.<br> |
| 148 | },<br> |
| 149 | ],<br> |
| 150 | "kind": "calendar#acl", # Type of the collection ("calendar#acl").<br> |
| 151 | "etag": "A String", # ETag of the collection.<br> |
| 152 | }</tt></dd></dl> |
| 153 | |
| 154 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an access control rule. This method supports patch semantics.<br> |
| 155 | <br> |
| 156 | Args:<br> |
| 157 | body: object, The request body. (required)<br> |
| 158 | The object takes the form of:<br> |
| 159 | <br> |
| 160 | {<br> |
| 161 | "scope": { # The scope of the rule.<br> |
| 162 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 163 | # - "default" - The public scope. This is the default value.<br> |
| 164 | # - "user" - Limits the scope to a single user.<br> |
| 165 | # - "group" - Limits the scope to a group.<br> |
| 166 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 167 | "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".<br> |
| 168 | },<br> |
| 169 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 170 | "etag": "A String", # ETag of the resource.<br> |
| 171 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 172 | # - "none" - Provides no access.<br> |
| 173 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 174 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 175 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 176 | # - "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.<br> |
| 177 | "id": "A String", # Identifier of the ACL rule.<br> |
| 178 | }<br> |
| 179 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 180 | pp: string, A parameter<br> |
| 181 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 182 | ruleId: string, ACL rule identifier. (required)<br> |
| 183 | calendarId: string, Calendar identifier. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 184 | userip: string, A parameter<br> |
| 185 | strict: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 186 | <br> |
| 187 | Returns:<br> |
| 188 | An object of the form<br> |
| 189 | <br> |
| 190 | {<br> |
| 191 | "scope": { # The scope of the rule.<br> |
| 192 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 193 | # - "default" - The public scope. This is the default value.<br> |
| 194 | # - "user" - Limits the scope to a single user.<br> |
| 195 | # - "group" - Limits the scope to a group.<br> |
| 196 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 197 | "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".<br> |
| 198 | },<br> |
| 199 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 200 | "etag": "A String", # ETag of the resource.<br> |
| 201 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 202 | # - "none" - Provides no access.<br> |
| 203 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 204 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 205 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 206 | # - "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.<br> |
| 207 | "id": "A String", # Identifier of the ACL rule.<br> |
| 208 | }</tt></dd></dl> |
| 209 | |
| 210 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an access control rule.<br> |
| 211 | <br> |
| 212 | Args:<br> |
| 213 | body: object, The request body. (required)<br> |
| 214 | The object takes the form of:<br> |
| 215 | <br> |
| 216 | {<br> |
| 217 | "scope": { # The scope of the rule.<br> |
| 218 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 219 | # - "default" - The public scope. This is the default value.<br> |
| 220 | # - "user" - Limits the scope to a single user.<br> |
| 221 | # - "group" - Limits the scope to a group.<br> |
| 222 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 223 | "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".<br> |
| 224 | },<br> |
| 225 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 226 | "etag": "A String", # ETag of the resource.<br> |
| 227 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 228 | # - "none" - Provides no access.<br> |
| 229 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 230 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 231 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 232 | # - "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.<br> |
| 233 | "id": "A String", # Identifier of the ACL rule.<br> |
| 234 | }<br> |
| 235 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 236 | pp: string, A parameter<br> |
| 237 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 238 | ruleId: string, ACL rule identifier. (required)<br> |
| 239 | calendarId: string, Calendar identifier. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 240 | userip: string, A parameter<br> |
| 241 | strict: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 242 | <br> |
| 243 | Returns:<br> |
| 244 | An object of the form<br> |
| 245 | <br> |
| 246 | {<br> |
| 247 | "scope": { # The scope of the rule.<br> |
| 248 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 249 | # - "default" - The public scope. This is the default value.<br> |
| 250 | # - "user" - Limits the scope to a single user.<br> |
| 251 | # - "group" - Limits the scope to a group.<br> |
| 252 | # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.<br> |
| 253 | "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".<br> |
| 254 | },<br> |
| 255 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 256 | "etag": "A String", # ETag of the resource.<br> |
| 257 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 258 | # - "none" - Provides no access.<br> |
| 259 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 260 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 261 | # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.<br> |
| 262 | # - "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.<br> |
| 263 | "id": "A String", # Identifier of the ACL rule.<br> |
| 264 | }</tt></dd></dl> |
| 265 | |
| 266 | <hr> |
| 267 | Data descriptors defined here:<br> |
| 268 | <dl><dt><strong>__dict__</strong></dt> |
| 269 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 270 | </dl> |
| 271 | <dl><dt><strong>__weakref__</strong></dt> |
| 272 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 273 | </dl> |
| 274 | </td></tr></table> |
| 275 | </body></html> |