Skip to content

Commit

Permalink
Merge pull request #138 from Asana/jv-asana-add-missing-resources
Browse files Browse the repository at this point in the history
Add missing resources files
  • Loading branch information
jv-asana authored Mar 21, 2022
2 parents b6e4ff4 + 021c41a commit c75ad7d
Show file tree
Hide file tree
Showing 13 changed files with 54 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.10
0.10.11
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.10'
__version__ = '0.10.11'
__license__ = 'MIT'
__copyright__ = 'Copyright 2016 Asana, Inc.'

Expand Down
2 changes: 2 additions & 0 deletions asana/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
classified_name = string.capwords(name, '_').replace('_', '')
if classified_name == "BatchApi":
classified_name = "BatchAPI"
if classified_name == "AuditLogApi":
classified_name = "AuditLogAPI"
if isinstance(module, ModuleType) and classified_name in module.__dict__:
RESOURCE_CLASSES[name] = module.__dict__[classified_name]

Expand Down
6 changes: 6 additions & 0 deletions asana/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
from . import (
attachments,
audit_log_api,
batch_api,
custom_field_settings,
custom_fields,
events,
goals,
jobs,
organization_exports,
portfolios,
portfolio_memberships,
project_briefs,
project_memberships,
project_statuses,
project_templates,
projects,
sections,
status_updates,
stories,
tags,
tasks,
teams,
time_periods,
team_memberships,
typeahead,
users,
Expand Down
6 changes: 6 additions & 0 deletions asana/resources/audit_log_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .gen.audit_log_api import _AuditLogAPI

class AuditLogAPI(_AuditLogAPI):
"""AuditLogAPI resource"""
pass
6 changes: 6 additions & 0 deletions asana/resources/gen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
from . import (
attachments,
audit_log_api,
batch_api,
custom_field_settings,
custom_fields,
events,
goals,
jobs,
organization_exports,
portfolios,
portfolio_memberships,
project_briefs,
project_memberships,
project_statuses,
project_templates,
projects,
sections,
status_updates,
stories,
tags,
tasks,
team_memberships,
teams,
time_periods,
typeahead,
users,
user_task_lists,
Expand Down
6 changes: 6 additions & 0 deletions asana/resources/goals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .gen.goals import _Goals

class Goals(_Goals):
"""Goals resource"""
pass
6 changes: 6 additions & 0 deletions asana/resources/project_briefs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .gen.project_briefs import _ProjectBriefs

class ProjectBriefs(_ProjectBriefs):
"""ProjectBriefs resource"""
pass
6 changes: 6 additions & 0 deletions asana/resources/project_templates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .gen.project_templates import _ProjectTemplates

class ProjectTemplates(_ProjectTemplates):
"""ProjectTemplates resource"""
pass
6 changes: 6 additions & 0 deletions asana/resources/status_updates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .gen.status_updates import _StatusUpdates

class StatusUpdates(_StatusUpdates):
"""Goals resource"""
pass
6 changes: 6 additions & 0 deletions asana/resources/time_periods.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .gen.time_periods import _TimePeriods

class TimePeriods(_TimePeriods):
"""TimePeriods resource"""
pass
2 changes: 1 addition & 1 deletion asana/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.10.10'
VERSION = '0.10.11'
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.10',
version='0.10.11',
description='Asana API client',
license='MIT',
classifiers=[
Expand Down

0 comments on commit c75ad7d

Please sign in to comment.