| Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -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 web properties to which the user has 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> | 
 | 22 |   strict: string, A parameter<br> | 
| Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 23 |   max_results: integer, The maximum number of web properties to include in this response.<br> | 
| Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 24 |   userip: string, A parameter<br> | 
| Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 25 |   start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.<br> | 
| Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 26 |   accountId: string, Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to. (required)<br> | 
| Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 27 |  <br> | 
 | 28 | Returns:<br> | 
 | 29 |   An object of the form<br> | 
 | 30 |  <br> | 
 | 31 |     {<br> | 
 | 32 |     "username": "A String", # Email ID of the authenticated user<br> | 
 | 33 |     "kind": "analytics#webproperties", # Collection type.<br> | 
 | 34 |     "items": [ # A list of web properties.<br> | 
 | 35 |       {<br> | 
 | 36 |         "kind": "analytics#webproperty", # Resource type for Analytics WebProperty.<br> | 
 | 37 |         "name": "A String", # Name of this web property.<br> | 
 | 38 |         "created": "A String", # Time this web property was created.<br> | 
 | 39 |         "updated": "A String", # Time this web property was last modified.<br> | 
 | 40 |         "websiteUrl": "A String", # Website url for this web property.<br> | 
 | 41 |         "internalWebPropertyId": "A String", # Internal ID for this web property.<br> | 
 | 42 |         "childLink": { # Child link for this web property. Points to the list of profiles for this web property.<br> | 
 | 43 |           "href": "A String", # Link to the list of profiles for this web property.<br> | 
 | 44 |           "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles".<br> | 
 | 45 |         },<br> | 
 | 46 |         "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs.<br> | 
 | 47 |           "href": "A String", # Link to the account for this web property.<br> | 
 | 48 |           "type": "analytics#account", # Type of the parent link. Its value is "analytics#account".<br> | 
 | 49 |         },<br> | 
 | 50 |         "id": "A String", # Web property ID of the form UA-XXXXX-YY.<br> | 
 | 51 |         "selfLink": "A String", # Link for this web property.<br> | 
 | 52 |         "accountId": "A String", # Account ID to which this web property belongs.<br> | 
 | 53 |       },<br> | 
 | 54 |     ],<br> | 
 | 55 |     "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.<br> | 
 | 56 |     "previousLink": "A String", # Link to previous page for this web property collection.<br> | 
 | 57 |     "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.<br> | 
 | 58 |     "nextLink": "A String", # Link to next page for this web property collection.<br> | 
 | 59 |     "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.<br> | 
 | 60 |   }</tt></dd></dl> | 
| Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 61 |  | 
 | 62 | <hr> | 
 | 63 | Data descriptors defined here:<br> | 
 | 64 | <dl><dt><strong>__dict__</strong></dt> | 
 | 65 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> | 
 | 66 | </dl> | 
 | 67 | <dl><dt><strong>__weakref__</strong></dt> | 
 | 68 | <dd><tt>list of weak references to the object (if defined)</tt></dd> | 
 | 69 | </dl> | 
 | 70 | </td></tr></table> | 
 | 71 | </body></html> |