Skip to content

Commit 9b54ab9

Browse files
authored
Merge pull request #132 from Asana/openapi-sync
Generated from OpenAPI
2 parents 8b3f067 + 1460228 commit 9b54ab9

File tree

6 files changed

+38
-4
lines changed

6 files changed

+38
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.7
1+
0.10.8

asana/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = 'asana'
2-
__version__ = '0.10.7'
2+
__version__ = '0.10.8'
33
__license__ = 'MIT'
44
__copyright__ = 'Copyright 2016 Asana, Inc.'
55

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# coding=utf-8
2+
class _AuditLogAPI:
3+
4+
def __init__(self, client=None):
5+
self.client = client
6+
7+
def get_audit_log_events(self, workspace_gid, params=None, **options):
8+
"""Get audit log events
9+
:param str workspace_gid: (required) Globally unique identifier for the workspace or organization.
10+
:param Object params: Parameters for the request
11+
- start_at {datetime}: Filter to events created after this time (inclusive).
12+
- end_at {datetime}: Filter to events created before this time (exclusive).
13+
- event_type {str}: Filter to events of this type. Refer to the [Supported AuditLogEvents](/docs/supported-auditlogevents) for a full list of values.
14+
- actor_type {str}: Filter to events with an actor of this type. This only needs to be included if querying for actor types without an ID. If `actor_gid` is included, this should be excluded.
15+
- actor_gid {str}: Filter to events triggered by the actor with this ID.
16+
- resource_gid {str}: Filter to events with this resource ID.
17+
:param **options
18+
- offset {str}: Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
19+
- limit {int}: Results per page. The number of objects to return per page. The value must be between 1 and 100.
20+
:return: Object
21+
"""
22+
if params is None:
23+
params = {}
24+
path = "/workspaces/{workspace_gid}/audit_log_events".replace("{workspace_gid}", workspace_gid)
25+
return self.client.get_collection(path, params, **options)

asana/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '0.10.7'
1+
VERSION = '0.10.8'

samples/audit_log_api_sample.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
auditlogapi:
2+
get_audit_log_events: >-
3+
import asana
4+
5+
6+
client = asana.Client.access_token('PERSONAL_ACCESS_TOKEN')
7+
8+
9+
result = client.audit_log_api.get_audit_log_events(workspace_gid, {'param': 'value', 'param': 'value'}, opt_pretty=True)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='asana',
13-
version='0.10.7',
13+
version='0.10.8',
1414
description='Asana API client',
1515
license='MIT',
1616
classifiers=[

0 commit comments

Comments
 (0)