From 021c41a16769051e3ad6af4c3a2737a657166674 Mon Sep 17 00:00:00 2001 From: John Vu Date: Mon, 21 Mar 2022 10:00:27 -0700 Subject: [PATCH] Add missing resources files --- VERSION | 2 +- asana/__init__.py | 2 +- asana/client.py | 2 ++ asana/resources/__init__.py | 6 ++++++ asana/resources/audit_log_api.py | 6 ++++++ asana/resources/gen/__init__.py | 6 ++++++ asana/resources/goals.py | 6 ++++++ asana/resources/project_briefs.py | 6 ++++++ asana/resources/project_templates.py | 6 ++++++ asana/resources/status_updates.py | 6 ++++++ asana/resources/time_periods.py | 6 ++++++ asana/version.py | 2 +- setup.py | 2 +- 13 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 asana/resources/audit_log_api.py create mode 100644 asana/resources/goals.py create mode 100644 asana/resources/project_briefs.py create mode 100644 asana/resources/project_templates.py create mode 100644 asana/resources/status_updates.py create mode 100644 asana/resources/time_periods.py diff --git a/VERSION b/VERSION index cd47247a..25fb08c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.10.10 \ No newline at end of file +0.10.11 \ No newline at end of file diff --git a/asana/__init__.py b/asana/__init__.py index 30a44329..9cceb633 100644 --- a/asana/__init__.py +++ b/asana/__init__.py @@ -1,5 +1,5 @@ __title__ = 'asana' -__version__ = '0.10.10' +__version__ = '0.10.11' __license__ = 'MIT' __copyright__ = 'Copyright 2016 Asana, Inc.' diff --git a/asana/client.py b/asana/client.py index 4757b41f..46635fbd 100644 --- a/asana/client.py +++ b/asana/client.py @@ -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] diff --git a/asana/resources/__init__.py b/asana/resources/__init__.py index 41c7a3b2..3d95a8ae 100644 --- a/asana/resources/__init__.py +++ b/asana/resources/__init__.py @@ -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, diff --git a/asana/resources/audit_log_api.py b/asana/resources/audit_log_api.py new file mode 100644 index 00000000..8c170737 --- /dev/null +++ b/asana/resources/audit_log_api.py @@ -0,0 +1,6 @@ + +from .gen.audit_log_api import _AuditLogAPI + +class AuditLogAPI(_AuditLogAPI): + """AuditLogAPI resource""" + pass diff --git a/asana/resources/gen/__init__.py b/asana/resources/gen/__init__.py index 0ec811e8..2786f20b 100644 --- a/asana/resources/gen/__init__.py +++ b/asana/resources/gen/__init__.py @@ -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, diff --git a/asana/resources/goals.py b/asana/resources/goals.py new file mode 100644 index 00000000..7d2b961d --- /dev/null +++ b/asana/resources/goals.py @@ -0,0 +1,6 @@ + +from .gen.goals import _Goals + +class Goals(_Goals): + """Goals resource""" + pass diff --git a/asana/resources/project_briefs.py b/asana/resources/project_briefs.py new file mode 100644 index 00000000..ff73b5d1 --- /dev/null +++ b/asana/resources/project_briefs.py @@ -0,0 +1,6 @@ + +from .gen.project_briefs import _ProjectBriefs + +class ProjectBriefs(_ProjectBriefs): + """ProjectBriefs resource""" + pass diff --git a/asana/resources/project_templates.py b/asana/resources/project_templates.py new file mode 100644 index 00000000..3715a537 --- /dev/null +++ b/asana/resources/project_templates.py @@ -0,0 +1,6 @@ + +from .gen.project_templates import _ProjectTemplates + +class ProjectTemplates(_ProjectTemplates): + """ProjectTemplates resource""" + pass diff --git a/asana/resources/status_updates.py b/asana/resources/status_updates.py new file mode 100644 index 00000000..c061a7bb --- /dev/null +++ b/asana/resources/status_updates.py @@ -0,0 +1,6 @@ + +from .gen.status_updates import _StatusUpdates + +class StatusUpdates(_StatusUpdates): + """Goals resource""" + pass diff --git a/asana/resources/time_periods.py b/asana/resources/time_periods.py new file mode 100644 index 00000000..1980735b --- /dev/null +++ b/asana/resources/time_periods.py @@ -0,0 +1,6 @@ + +from .gen.time_periods import _TimePeriods + +class TimePeriods(_TimePeriods): + """TimePeriods resource""" + pass diff --git a/asana/version.py b/asana/version.py index 8c500218..27d83860 100644 --- a/asana/version.py +++ b/asana/version.py @@ -1 +1 @@ -VERSION = '0.10.10' +VERSION = '0.10.11' diff --git a/setup.py b/setup.py index 3fc9c3fa..6420a4d0 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='asana', - version='0.10.10', + version='0.10.11', description='Asana API client', license='MIT', classifiers=[