59 lines
5.1 KiB
HTML
59 lines
5.1 KiB
HTML
|
|
<!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-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists all accounts to which the user has access.<br>
|
|
<br>
|
|
Args:<br>
|
|
max_results: integer, The maximum number of accounts to include in this response.<br>
|
|
start_index: integer, An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"username": "A String", # Email ID of the authenticated user<br>
|
|
"kind": "analytics#accounts", # Collection type.<br>
|
|
"items": [ # A list of accounts.<br>
|
|
{<br>
|
|
"kind": "analytics#account", # Resource type for Analytics account.<br>
|
|
"name": "A String", # Account name.<br>
|
|
"created": "A String", # Time the account was created.<br>
|
|
"updated": "A String", # Time the account was last modified.<br>
|
|
"childLink": { # Child link for an account entry. Points to the list of web properties for this account.<br>
|
|
"href": "A String", # Link to the list of web properties for this account.<br>
|
|
"type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties".<br>
|
|
},<br>
|
|
"id": "A String", # Account ID.<br>
|
|
"selfLink": "A String", # Link for this account.<br>
|
|
},<br>
|
|
],<br>
|
|
"itemsPerPage": 42, # The maximum number of entries the response can contain, regardless of the actual number of entries 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>
|
|
"previousLink": "A String", # Previous link for this account collection.<br>
|
|
"startIndex": 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.<br>
|
|
"nextLink": "A String", # Next link for this account collection.<br>
|
|
"totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.<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> |