84 lines
7.6 KiB
HTML
84 lines
7.6 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>Retrieves a list of activities for a specific customer and application.<br>
|
|
<br>
|
|
Args:<br>
|
|
caller: string, Type of the caller.<br>
|
|
Allowed values<br>
|
|
application_owner - Caller is an application owner.<br>
|
|
customer - Caller is a customer.<br>
|
|
actorApplicationId: string, Application ID of the application which interacted on behalf of the user while performing the event.<br>
|
|
actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.<br>
|
|
actorEmail: string, Email address of the user who performed the action.<br>
|
|
maxResults: integer, Number of activity records to be shown in each page.<br>
|
|
continuationToken: string, Next page URL.<br>
|
|
eventName: string, Name of the event being queried.<br>
|
|
endTime: string, Return events which occured at or before this time.<br>
|
|
startTime: string, Return events which occured at or after this time.<br>
|
|
parameters: string, Event parameters in the form [parameter1 name]:[parameter1 value],[parameter2 name]:[parameter2 value],...<br>
|
|
applicationId: string, Application ID of the application on which the event was performed. (required)<br>
|
|
customerId: string, Represents the customer who is the owner of target object on which action was performed. (required)<br>
|
|
<br>
|
|
Returns:<br>
|
|
An object of the form<br>
|
|
<br>
|
|
{<br>
|
|
"items": [ # Each record in read response.<br>
|
|
{<br>
|
|
"kind": "audit#activity", # Kind of resource this is.<br>
|
|
"ownerDomain": "A String", # Domain of source customer.<br>
|
|
"actor": { # User doing the action.<br>
|
|
"applicationId": "A String", # ID of application which interacted on behalf of the user.<br>
|
|
"email": "A String", # Email address of the user.<br>
|
|
"key": "A String", # For OAuth 2LO API requests, consumer_key of the requestor.<br>
|
|
"callerType": "A String", # User or OAuth 2LO request.<br>
|
|
},<br>
|
|
"id": { # Unique identifier for each activity record.<br>
|
|
"uniqQualifier": "A String", # Unique qualifier if multiple events have the same time.<br>
|
|
"applicationId": "A String", # Application ID of the source application.<br>
|
|
"customerId": "A String", # Obfuscated customer ID of the source customer.<br>
|
|
"time": "A String", # Time of occurrence of the activity.<br>
|
|
},<br>
|
|
"ipAddress": "A String", # IP Address of the user doing the action.<br>
|
|
"events": [ # Activity events.<br>
|
|
{<br>
|
|
"eventType": "A String", # Type of event.<br>
|
|
"name": "A String", # Name of event.<br>
|
|
"parameters": [ # Event parameters.<br>
|
|
{<br>
|
|
"name": "A String", # Name of the parameter.<br>
|
|
"value": "A String", # Value of the parameter.<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
},<br>
|
|
],<br>
|
|
"kind": "audit#activities", # Kind of list response this is.<br>
|
|
"next": "A String", # Next page URL.<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> |