| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><title>Python: class Resource</title> |
| </head><body bgcolor="#f0f0f8"> |
| <p> |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| <tr bgcolor="#ffc8d8"> |
| <td colspan=3 valign=bottom> <br> |
| <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> |
| |
| <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| <tr><td> </td> |
| <td width="100%">Methods defined here:<br> |
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| |
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Get detailed information about a TaskQueue.<br> |
| <br> |
| Args:<br> |
| project: string, The project under which the queue lies. (required)<br> |
| pp: string, A parameter<br> |
| trace: string, A parameter<br> |
| taskqueue: string, The id of the taskqueue to get the properties of. (required)<br> |
| strict: string, A parameter<br> |
| getStats: boolean, Whether to get stats. Optional.<br> |
| userip: string, A parameter<br> |
| <br> |
| Returns:<br> |
| An object of the form<br> |
| <br> |
| {<br> |
| "kind": "taskqueues#taskqueue", # The kind of REST object returned, in this case taskqueue.<br> |
| "stats": { # Statistics for the TaskQueue object in question.<br> |
| "oldestTask": "A String", # The timestamp (in seconds since the epoch) of the oldest unfinished task.<br> |
| "leasedLastMinute": "A String", # Number of tasks leased in the last minute.<br> |
| "totalTasks": 42, # Number of tasks in the queue.<br> |
| "leasedLastHour": "A String", # Number of tasks leased in the last hour.<br> |
| },<br> |
| "id": "A String", # Name of the taskqueue.<br> |
| "maxLeases": 42, # The number of times we should lease out tasks before giving up on them. If unset we lease them out forever until a worker deletes the task.<br> |
| "acl": { # ACLs that are applicable to this TaskQueue object.<br> |
| "consumerEmails": [ # Email addresses of users who can "consume" tasks from the TaskQueue. This means they can Dequeue and Delete tasks from the queue.<br> |
| "A String",<br> |
| ],<br> |
| "producerEmails": [ # Email addresses of users who can "produce" tasks into the TaskQueue. This means they can Insert tasks into the queue.<br> |
| "A String",<br> |
| ],<br> |
| "adminEmails": [ # Email addresses of users who are "admins" of the TaskQueue. This means they can control the queue, eg set ACLs for the queue.<br> |
| "A String",<br> |
| ],<br> |
| },<br> |
| }</tt></dd></dl> |
| |
| <hr> |
| Data descriptors defined here:<br> |
| <dl><dt><strong>__dict__</strong></dt> |
| <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| </dl> |
| <dl><dt><strong>__weakref__</strong></dt> |
| <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| </dl> |
| </td></tr></table> |
| </body></html> |