Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [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-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists the projects to which you have at least read access.<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 | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 22 | pageToken: string, Page token, returned by a previous call, to request the next page of results<br> |
| 23 | maxResults: integer, Maximum number of results to return<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 24 | strict: string, A parameter<br> |
| 25 | userip: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 26 | <br> |
| 27 | Returns:<br> |
| 28 | An object of the form<br> |
| 29 | <br> |
| 30 | {<br> |
| 31 | "nextPageToken": "A String", # A token to request the next page of results.<br> |
| 32 | "totalItems": 42, # The total number of projects in the list.<br> |
| 33 | "kind": "bigquery#projectList", # The type of list.<br> |
| 34 | "etag": "A String", # A hash of the page of results<br> |
| 35 | "projects": [ # Projects to which you have at least READ access.<br> |
| 36 | {<br> |
| 37 | "friendlyName": "A String", # A descriptive name for this project.<br> |
| 38 | "kind": "bigquery#project", # The resource type.<br> |
| 39 | "id": "A String", # An opaque ID of this project.<br> |
| 40 | "projectReference": { # A unique reference to this project.<br> |
| 41 | "projectId": "A String", # [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project.<br> |
| 42 | },<br> |
| 43 | },<br> |
| 44 | ],<br> |
| 45 | }</tt></dd></dl> |
| 46 | |
| 47 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 48 | <br> |
| 49 | Args:<br> |
| 50 | previous_request: The request for the previous page.<br> |
| 51 | previous_response: The response from the request for the previous page.<br> |
| 52 | <br> |
| 53 | Returns:<br> |
| 54 | A request object that you can call 'execute()' on to request the next<br> |
| 55 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 56 | |
| 57 | <hr> |
| 58 | Data descriptors defined here:<br> |
| 59 | <dl><dt><strong>__dict__</strong></dt> |
| 60 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 61 | </dl> |
| 62 | <dl><dt><strong>__weakref__</strong></dt> |
| 63 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 64 | </dl> |
| 65 | </td></tr></table> |
| 66 | </body></html> |