Skip to content

Commit

Permalink
Updated Python SDK: v5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jv-asana authored and actions-user committed Dec 15, 2023
1 parent 5e045d0 commit 094660d
Show file tree
Hide file tree
Showing 36 changed files with 183 additions and 183 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ It returns:
}
```

2: Endpoints that return an array of resources (EX: [get_tasks](https://github.com/Asana/python-asana/blob/v5.0.0/docs/TasksApi.md#get_tasks) ([Get multiple tasks](https://developers.asana.com/reference/gettasks)), [get_projects](https://github.com/Asana/python-asana/blob/v5.0.0/docs/ProjectsApi.md#get_projects) ([Get multiple projects](https://developers.asana.com/reference/getprojects)), etc...)
will return a generator object ([PageIterator.items](https://github.com/Asana/python-asana/blob/v5.0.0/asana/pagination/page_iterator.py)) that you can use to iterate through each result.
2: Endpoints that return an array of resources (EX: [get_tasks](https://github.com/Asana/python-asana/blob/v5.0.1/docs/TasksApi.md#get_tasks) ([Get multiple tasks](https://developers.asana.com/reference/gettasks)), [get_projects](https://github.com/Asana/python-asana/blob/v5.0.1/docs/ProjectsApi.md#get_projects) ([Get multiple projects](https://developers.asana.com/reference/getprojects)), etc...)
will return a generator object ([PageIterator.items](https://github.com/Asana/python-asana/blob/v5.0.1/asana/pagination/page_iterator.py)) that you can use to iterate through each result.

Example usage 1:
```python
Expand Down
8 changes: 4 additions & 4 deletions asana/api/attachments_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def create_attachment_for_object_with_http_info(self, opts, **kwargs): # noqa:

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -275,7 +275,7 @@ def delete_attachment_with_http_info(self, attachment_gid, **kwargs): # noqa: E
path_params = {}
path_params['attachment_gid'] = attachment_gid # noqa: E501

query_params = []
query_params = {}


header_params = kwargs.get("header_params", {})
Expand Down Expand Up @@ -413,7 +413,7 @@ def get_attachment_with_http_info(self, attachment_gid, opts, **kwargs): # noqa
path_params = {}
path_params['attachment_gid'] = attachment_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -555,7 +555,7 @@ def get_attachments_for_object_with_http_info(self, parent, opts, **kwargs): #

path_params = {}

query_params = []
query_params = {}
query_params = opts
query_params['parent'] = parent

Expand Down
2 changes: 1 addition & 1 deletion asana/api/audit_log_api_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_audit_log_events_with_http_info(self, workspace_gid, opts, **kwargs): #
path_params = {}
path_params['workspace_gid'] = workspace_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
2 changes: 1 addition & 1 deletion asana/api/batch_api_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_batch_request_with_http_info(self, body, opts, **kwargs): # noqa: E5

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down
4 changes: 2 additions & 2 deletions asana/api/custom_field_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_custom_field_settings_for_portfolio_with_http_info(self, portfolio_gid,
path_params = {}
path_params['portfolio_gid'] = portfolio_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -248,7 +248,7 @@ def get_custom_field_settings_for_project_with_http_info(self, project_gid, opts
path_params = {}
path_params['project_gid'] = project_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
16 changes: 8 additions & 8 deletions asana/api/custom_fields_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_custom_field_with_http_info(self, body, opts, **kwargs): # noqa: E50

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -242,7 +242,7 @@ def create_enum_option_for_custom_field_with_http_info(self, custom_field_gid, o
path_params = {}
path_params['custom_field_gid'] = custom_field_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -383,7 +383,7 @@ def delete_custom_field_with_http_info(self, custom_field_gid, **kwargs): # noq
path_params = {}
path_params['custom_field_gid'] = custom_field_gid # noqa: E501

query_params = []
query_params = {}


header_params = kwargs.get("header_params", {})
Expand Down Expand Up @@ -521,7 +521,7 @@ def get_custom_field_with_http_info(self, custom_field_gid, opts, **kwargs): #
path_params = {}
path_params['custom_field_gid'] = custom_field_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -664,7 +664,7 @@ def get_custom_fields_for_workspace_with_http_info(self, workspace_gid, opts, **
path_params = {}
path_params['workspace_gid'] = workspace_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -808,7 +808,7 @@ def insert_enum_option_for_custom_field_with_http_info(self, custom_field_gid, o
path_params = {}
path_params['custom_field_gid'] = custom_field_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -953,7 +953,7 @@ def update_custom_field_with_http_info(self, custom_field_gid, opts, **kwargs):
path_params = {}
path_params['custom_field_gid'] = custom_field_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -1098,7 +1098,7 @@ def update_enum_option_with_http_info(self, enum_option_gid, opts, **kwargs): #
path_params = {}
path_params['enum_option_gid'] = enum_option_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
2 changes: 1 addition & 1 deletion asana/api/events_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_events_with_http_info(self, resource, opts, **kwargs): # noqa: E501

path_params = {}

query_params = []
query_params = {}
query_params = opts
query_params['resource'] = resource

Expand Down
10 changes: 5 additions & 5 deletions asana/api/goal_relationships_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def add_supporting_relationship_with_http_info(self, body, goal_gid, opts, **kwa
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -246,7 +246,7 @@ def get_goal_relationship_with_http_info(self, goal_relationship_gid, opts, **kw
path_params = {}
path_params['goal_relationship_gid'] = goal_relationship_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -390,7 +390,7 @@ def get_goal_relationships_with_http_info(self, supported_goal, opts, **kwargs):

path_params = {}

query_params = []
query_params = {}
query_params = opts
query_params['supported_goal'] = supported_goal

Expand Down Expand Up @@ -536,7 +536,7 @@ def remove_supporting_relationship_with_http_info(self, body, goal_gid, **kwargs
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}


header_params = kwargs.get("header_params", {})
Expand Down Expand Up @@ -683,7 +683,7 @@ def update_goal_relationship_with_http_info(self, body, goal_relationship_gid, o
path_params = {}
path_params['goal_relationship_gid'] = goal_relationship_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
20 changes: 10 additions & 10 deletions asana/api/goals_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def add_followers_with_http_info(self, body, goal_gid, opts, **kwargs): # noqa:
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -245,7 +245,7 @@ def create_goal_with_http_info(self, body, opts, **kwargs): # noqa: E501

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -393,7 +393,7 @@ def create_goal_metric_with_http_info(self, body, goal_gid, opts, **kwargs): #
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -534,7 +534,7 @@ def delete_goal_with_http_info(self, goal_gid, **kwargs): # noqa: E501
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}


header_params = kwargs.get("header_params", {})
Expand Down Expand Up @@ -672,7 +672,7 @@ def get_goal_with_http_info(self, goal_gid, opts, **kwargs): # noqa: E501
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -823,7 +823,7 @@ def get_goals_with_http_info(self, opts, **kwargs): # noqa: E501

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -965,7 +965,7 @@ def get_parent_goals_for_goal_with_http_info(self, goal_gid, opts, **kwargs): #
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -1112,7 +1112,7 @@ def remove_followers_with_http_info(self, body, goal_gid, opts, **kwargs): # no
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -1260,7 +1260,7 @@ def update_goal_with_http_info(self, body, goal_gid, opts, **kwargs): # noqa: E
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -1408,7 +1408,7 @@ def update_goal_metric_with_http_info(self, body, goal_gid, opts, **kwargs): #
path_params = {}
path_params['goal_gid'] = goal_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
2 changes: 1 addition & 1 deletion asana/api/jobs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_job_with_http_info(self, job_gid, opts, **kwargs): # noqa: E501
path_params = {}
path_params['job_gid'] = job_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
8 changes: 4 additions & 4 deletions asana/api/memberships_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def create_membership_with_http_info(self, opts, **kwargs): # noqa: E501

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -233,7 +233,7 @@ def delete_membership_with_http_info(self, membership_gid, **kwargs): # noqa: E
path_params = {}
path_params['membership_gid'] = membership_gid # noqa: E501

query_params = []
query_params = {}


header_params = kwargs.get("header_params", {})
Expand Down Expand Up @@ -371,7 +371,7 @@ def get_membership_with_http_info(self, membership_gid, opts, **kwargs): # noqa
path_params = {}
path_params['membership_gid'] = membership_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -512,7 +512,7 @@ def get_memberships_with_http_info(self, opts, **kwargs): # noqa: E501

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down
4 changes: 2 additions & 2 deletions asana/api/organization_exports_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_organization_export_with_http_info(self, body, opts, **kwargs): # no

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -240,7 +240,7 @@ def get_organization_export_with_http_info(self, organization_export_gid, opts,
path_params = {}
path_params['organization_export_gid'] = organization_export_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
6 changes: 3 additions & 3 deletions asana/api/portfolio_memberships_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_portfolio_membership_with_http_info(self, portfolio_membership_gid, opts
path_params = {}
path_params['portfolio_membership_gid'] = portfolio_membership_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -241,7 +241,7 @@ def get_portfolio_memberships_with_http_info(self, opts, **kwargs): # noqa: E50

path_params = {}

query_params = []
query_params = {}
query_params = opts


Expand Down Expand Up @@ -389,7 +389,7 @@ def get_portfolio_memberships_for_portfolio_with_http_info(self, portfolio_gid,
path_params = {}
path_params['portfolio_gid'] = portfolio_gid # noqa: E501

query_params = []
query_params = {}
query_params = opts


Expand Down
Loading

0 comments on commit 094660d

Please sign in to comment.