Skip to content

Commit

Permalink
Generated from OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-asana committed Oct 20, 2021
1 parent 8b3f067 commit 1460228
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.7
0.10.8
2 changes: 1 addition & 1 deletion asana/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'asana'
__version__ = '0.10.7'
__version__ = '0.10.8'
__license__ = 'MIT'
__copyright__ = 'Copyright 2016 Asana, Inc.'

Expand Down
25 changes: 25 additions & 0 deletions asana/resources/gen/audit_log_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# coding=utf-8
class _AuditLogAPI:

def __init__(self, client=None):
self.client = client

def get_audit_log_events(self, workspace_gid, params=None, **options):
"""Get audit log events
:param str workspace_gid: (required) Globally unique identifier for the workspace or organization.
:param Object params: Parameters for the request
- start_at {datetime}: Filter to events created after this time (inclusive).
- end_at {datetime}: Filter to events created before this time (exclusive).
- event_type {str}: Filter to events of this type. Refer to the [Supported AuditLogEvents](/docs/supported-auditlogevents) for a full list of values.
- 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.
- actor_gid {str}: Filter to events triggered by the actor with this ID.
- resource_gid {str}: Filter to events with this resource ID.
:param **options
- 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.'
- limit {int}: Results per page. The number of objects to return per page. The value must be between 1 and 100.
:return: Object
"""
if params is None:
params = {}
path = "/workspaces/{workspace_gid}/audit_log_events".replace("{workspace_gid}", workspace_gid)
return self.client.get_collection(path, params, **options)
2 changes: 1 addition & 1 deletion asana/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.10.7'
VERSION = '0.10.8'
9 changes: 9 additions & 0 deletions samples/audit_log_api_sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
auditlogapi:
get_audit_log_events: >-
import asana
client = asana.Client.access_token('PERSONAL_ACCESS_TOKEN')
result = client.audit_log_api.get_audit_log_events(workspace_gid, {'param': 'value', 'param': 'value'}, opt_pretty=True)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='asana',
version='0.10.7',
version='0.10.8',
description='Asana API client',
license='MIT',
classifiers=[
Expand Down

0 comments on commit 1460228

Please sign in to comment.