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> |
| 20 | ruleId: string, ACL rule identifier. (required)<br> |
| 21 | calendarId: string, Calendar identifier. (required)</tt></dd></dl> |
| 22 | |
| 23 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns an access control rule.<br> |
| 24 | <br> |
| 25 | Args:<br> |
| 26 | ruleId: string, ACL rule identifier. (required)<br> |
| 27 | calendarId: string, Calendar identifier. (required)<br> |
| 28 | <br> |
| 29 | Returns:<br> |
| 30 | An object of the form<br> |
| 31 | <br> |
| 32 | {<br> |
| 33 | "scope": { # The scope of the rule.<br> |
| 34 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 35 | # - "default" - The public scope. This is the default value.<br> |
| 36 | # - "user" - Limits the scope to a single user.<br> |
| 37 | # - "group" - Limits the scope to a group.<br> |
| 38 | # - "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> |
| 39 | "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> |
| 40 | },<br> |
| 41 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 42 | "etag": "A String", # ETag of the resource.<br> |
| 43 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 44 | # - "none" - Provides no access.<br> |
| 45 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 46 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 47 | # - "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> |
| 48 | # - "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> |
| 49 | "id": "A String", # Identifier of the ACL rule.<br> |
| 50 | }</tt></dd></dl> |
| 51 | |
| 52 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates an access control rule.<br> |
| 53 | <br> |
| 54 | Args:<br> |
| 55 | body: object, The request body. (required)<br> |
| 56 | The object takes the form of:<br> |
| 57 | <br> |
| 58 | {<br> |
| 59 | "scope": { # The scope of the rule.<br> |
| 60 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 61 | # - "default" - The public scope. This is the default value.<br> |
| 62 | # - "user" - Limits the scope to a single user.<br> |
| 63 | # - "group" - Limits the scope to a group.<br> |
| 64 | # - "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> |
| 65 | "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> |
| 66 | },<br> |
| 67 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 68 | "etag": "A String", # ETag of the resource.<br> |
| 69 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 70 | # - "none" - Provides no access.<br> |
| 71 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 72 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 73 | # - "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> |
| 74 | # - "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> |
| 75 | "id": "A String", # Identifier of the ACL rule.<br> |
| 76 | }<br> |
| 77 | <br> |
| 78 | calendarId: string, Calendar identifier. (required)<br> |
| 79 | <br> |
| 80 | Returns:<br> |
| 81 | An object of the form<br> |
| 82 | <br> |
| 83 | {<br> |
| 84 | "scope": { # The scope of the rule.<br> |
| 85 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 86 | # - "default" - The public scope. This is the default value.<br> |
| 87 | # - "user" - Limits the scope to a single user.<br> |
| 88 | # - "group" - Limits the scope to a group.<br> |
| 89 | # - "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> |
| 90 | "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> |
| 91 | },<br> |
| 92 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 93 | "etag": "A String", # ETag of the resource.<br> |
| 94 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 95 | # - "none" - Provides no access.<br> |
| 96 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 97 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 98 | # - "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> |
| 99 | # - "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> |
| 100 | "id": "A String", # Identifier of the ACL rule.<br> |
| 101 | }</tt></dd></dl> |
| 102 | |
| 103 | <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> |
| 104 | <br> |
| 105 | Args:<br> |
| 106 | calendarId: string, Calendar identifier. (required)<br> |
| 107 | <br> |
| 108 | Returns:<br> |
| 109 | An object of the form<br> |
| 110 | <br> |
| 111 | {<br> |
| 112 | "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available.<br> |
| 113 | "items": [ # List of rules on the access control list.<br> |
| 114 | {<br> |
| 115 | "scope": { # The scope of the rule.<br> |
| 116 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 117 | # - "default" - The public scope. This is the default value.<br> |
| 118 | # - "user" - Limits the scope to a single user.<br> |
| 119 | # - "group" - Limits the scope to a group.<br> |
| 120 | # - "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> |
| 121 | "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> |
| 122 | },<br> |
| 123 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 124 | "etag": "A String", # ETag of the resource.<br> |
| 125 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 126 | # - "none" - Provides no access.<br> |
| 127 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 128 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 129 | # - "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> |
| 130 | # - "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> |
| 131 | "id": "A String", # Identifier of the ACL rule.<br> |
| 132 | },<br> |
| 133 | ],<br> |
| 134 | "kind": "calendar#acl", # Type of the collection ("calendar#acl").<br> |
| 135 | "etag": "A String", # ETag of the collection.<br> |
| 136 | }</tt></dd></dl> |
| 137 | |
| 138 | <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> |
| 139 | <br> |
| 140 | Args:<br> |
| 141 | body: object, The request body. (required)<br> |
| 142 | The object takes the form of:<br> |
| 143 | <br> |
| 144 | {<br> |
| 145 | "scope": { # The scope of the rule.<br> |
| 146 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 147 | # - "default" - The public scope. This is the default value.<br> |
| 148 | # - "user" - Limits the scope to a single user.<br> |
| 149 | # - "group" - Limits the scope to a group.<br> |
| 150 | # - "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> |
| 151 | "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> |
| 152 | },<br> |
| 153 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 154 | "etag": "A String", # ETag of the resource.<br> |
| 155 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 156 | # - "none" - Provides no access.<br> |
| 157 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 158 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 159 | # - "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> |
| 160 | # - "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> |
| 161 | "id": "A String", # Identifier of the ACL rule.<br> |
| 162 | }<br> |
| 163 | <br> |
| 164 | ruleId: string, ACL rule identifier. (required)<br> |
| 165 | calendarId: string, Calendar identifier. (required)<br> |
| 166 | <br> |
| 167 | Returns:<br> |
| 168 | An object of the form<br> |
| 169 | <br> |
| 170 | {<br> |
| 171 | "scope": { # The scope of the rule.<br> |
| 172 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 173 | # - "default" - The public scope. This is the default value.<br> |
| 174 | # - "user" - Limits the scope to a single user.<br> |
| 175 | # - "group" - Limits the scope to a group.<br> |
| 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.<br> |
| 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".<br> |
| 178 | },<br> |
| 179 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 180 | "etag": "A String", # ETag of the resource.<br> |
| 181 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 182 | # - "none" - Provides no access.<br> |
| 183 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 184 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 185 | # - "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> |
| 186 | # - "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> |
| 187 | "id": "A String", # Identifier of the ACL rule.<br> |
| 188 | }</tt></dd></dl> |
| 189 | |
| 190 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an access control rule.<br> |
| 191 | <br> |
| 192 | Args:<br> |
| 193 | body: object, The request body. (required)<br> |
| 194 | The object takes the form of:<br> |
| 195 | <br> |
| 196 | {<br> |
| 197 | "scope": { # The scope of the rule.<br> |
| 198 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 199 | # - "default" - The public scope. This is the default value.<br> |
| 200 | # - "user" - Limits the scope to a single user.<br> |
| 201 | # - "group" - Limits the scope to a group.<br> |
| 202 | # - "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> |
| 203 | "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> |
| 204 | },<br> |
| 205 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 206 | "etag": "A String", # ETag of the resource.<br> |
| 207 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 208 | # - "none" - Provides no access.<br> |
| 209 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 210 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 211 | # - "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> |
| 212 | # - "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> |
| 213 | "id": "A String", # Identifier of the ACL rule.<br> |
| 214 | }<br> |
| 215 | <br> |
| 216 | ruleId: string, ACL rule identifier. (required)<br> |
| 217 | calendarId: string, Calendar identifier. (required)<br> |
| 218 | <br> |
| 219 | Returns:<br> |
| 220 | An object of the form<br> |
| 221 | <br> |
| 222 | {<br> |
| 223 | "scope": { # The scope of the rule.<br> |
| 224 | "type": "A String", # The type of the scope. Possible values are:<br> |
| 225 | # - "default" - The public scope. This is the default value.<br> |
| 226 | # - "user" - Limits the scope to a single user.<br> |
| 227 | # - "group" - Limits the scope to a group.<br> |
| 228 | # - "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> |
| 229 | "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> |
| 230 | },<br> |
| 231 | "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").<br> |
| 232 | "etag": "A String", # ETag of the resource.<br> |
| 233 | "role": "A String", # The role assigned to the scope. Possible values are:<br> |
| 234 | # - "none" - Provides no access.<br> |
| 235 | # - "freeBusyReader" - Provides read access to free/busy information.<br> |
| 236 | # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.<br> |
| 237 | # - "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> |
| 238 | # - "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> |
| 239 | "id": "A String", # Identifier of the ACL rule.<br> |
| 240 | }</tt></dd></dl> |
| 241 | |
| 242 | <hr> |
| 243 | Data descriptors defined here:<br> |
| 244 | <dl><dt><strong>__dict__</strong></dt> |
| 245 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 246 | </dl> |
| 247 | <dl><dt><strong>__weakref__</strong></dt> |
| 248 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 249 | </dl> |
| 250 | </td></tr></table> |
| 251 | </body></html> |