Skip to content

Commit 878a1af

Browse files
Updated Python SDK: v5.0.16
1 parent bea3f2d commit 878a1af

File tree

112 files changed

+1498
-970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1498
-970
lines changed

README.md

Lines changed: 195 additions & 193 deletions
Large diffs are not rendered by default.

asana/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from asana.api.batch_api_api import BatchAPIApi
2222
from asana.api.custom_field_settings_api import CustomFieldSettingsApi
2323
from asana.api.custom_fields_api import CustomFieldsApi
24+
from asana.api.custom_types_api import CustomTypesApi
2425
from asana.api.events_api import EventsApi
2526
from asana.api.goal_relationships_api import GoalRelationshipsApi
2627
from asana.api.goals_api import GoalsApi

asana/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from asana.api.batch_api_api import BatchAPIApi
1010
from asana.api.custom_field_settings_api import CustomFieldSettingsApi
1111
from asana.api.custom_fields_api import CustomFieldsApi
12+
from asana.api.custom_types_api import CustomTypesApi
1213
from asana.api.events_api import EventsApi
1314
from asana.api.goal_relationships_api import GoalRelationshipsApi
1415
from asana.api.goals_api import GoalsApi

asana/api/allocations_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def create_allocation(self, body, opts, **kwargs): # noqa: E501
4343
4444
:param async_req bool
4545
:param dict body: The allocation to create. (required)
46-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
46+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
4747
:return: AllocationResponseData
4848
If the method is called asynchronously,
4949
returns the request thread.
@@ -66,7 +66,7 @@ def create_allocation_with_http_info(self, body, opts, **kwargs): # noqa: E501
6666
6767
:param async_req bool
6868
:param dict body: The allocation to create. (required)
69-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
69+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
7070
:return: AllocationResponseData
7171
If the method is called asynchronously,
7272
returns the request thread.
@@ -321,7 +321,7 @@ def get_allocation(self, allocation_gid, opts, **kwargs): # noqa: E501
321321
322322
:param async_req bool
323323
:param str allocation_gid: Globally unique identifier for the allocation. (required)
324-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
324+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
325325
:return: AllocationResponseData
326326
If the method is called asynchronously,
327327
returns the request thread.
@@ -344,7 +344,7 @@ def get_allocation_with_http_info(self, allocation_gid, opts, **kwargs): # noqa
344344
345345
:param async_req bool
346346
:param str allocation_gid: Globally unique identifier for the allocation. (required)
347-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
347+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
348348
:return: AllocationResponseData
349349
If the method is called asynchronously,
350350
returns the request thread.
@@ -464,7 +464,7 @@ def get_allocations(self, opts, **kwargs): # noqa: E501
464464
:param str workspace: Globally unique identifier for the workspace.
465465
:param int limit: Results per page. The number of objects to return per page. The value must be between 1 and 100.
466466
:param str offset: 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.*
467-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
467+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
468468
:return: AllocationResponseArray
469469
If the method is called asynchronously,
470470
returns the request thread.
@@ -491,7 +491,7 @@ def get_allocations_with_http_info(self, opts, **kwargs): # noqa: E501
491491
:param str workspace: Globally unique identifier for the workspace.
492492
:param int limit: Results per page. The number of objects to return per page. The value must be between 1 and 100.
493493
:param str offset: 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.*
494-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
494+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
495495
:return: AllocationResponseArray
496496
If the method is called asynchronously,
497497
returns the request thread.
@@ -607,7 +607,7 @@ def update_allocation(self, body, allocation_gid, opts, **kwargs): # noqa: E501
607607
:param async_req bool
608608
:param dict body: The updated fields for the allocation. (required)
609609
:param str allocation_gid: Globally unique identifier for the allocation. (required)
610-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
610+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
611611
:return: AllocationResponseData
612612
If the method is called asynchronously,
613613
returns the request thread.
@@ -631,7 +631,7 @@ def update_allocation_with_http_info(self, body, allocation_gid, opts, **kwargs)
631631
:param async_req bool
632632
:param dict body: The updated fields for the allocation. (required)
633633
:param str allocation_gid: Globally unique identifier for the allocation. (required)
634-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
634+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
635635
:return: AllocationResponseData
636636
If the method is called asynchronously,
637637
returns the request thread.

asana/api/attachments_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def create_attachment_for_object(self, opts, **kwargs): # noqa: E501
4848
:param str url:
4949
:param str name:
5050
:param bool connect_to_app:
51-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
51+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
5252
:return: AttachmentResponseData
5353
If the method is called asynchronously,
5454
returns the request thread.
@@ -76,7 +76,7 @@ def create_attachment_for_object_with_http_info(self, opts, **kwargs): # noqa:
7676
:param str url:
7777
:param str name:
7878
:param bool connect_to_app:
79-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
79+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
8080
:return: AttachmentResponseData
8181
If the method is called asynchronously,
8282
returns the request thread.
@@ -358,7 +358,7 @@ def get_attachment(self, attachment_gid, opts, **kwargs): # noqa: E501
358358
359359
:param async_req bool
360360
:param str attachment_gid: Globally unique identifier for the attachment. (required)
361-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
361+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
362362
:return: AttachmentResponseData
363363
If the method is called asynchronously,
364364
returns the request thread.
@@ -381,7 +381,7 @@ def get_attachment_with_http_info(self, attachment_gid, opts, **kwargs): # noqa
381381
382382
:param async_req bool
383383
:param str attachment_gid: Globally unique identifier for the attachment. (required)
384-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
384+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
385385
:return: AttachmentResponseData
386386
If the method is called asynchronously,
387387
returns the request thread.
@@ -499,7 +499,7 @@ def get_attachments_for_object(self, parent, opts, **kwargs): # noqa: E501
499499
:param str parent: Globally unique identifier for object to fetch statuses from. Must be a GID for a `project`, `project_brief`, or `task`. (required)
500500
:param int limit: Results per page. The number of objects to return per page. The value must be between 1 and 100.
501501
:param str offset: 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.*
502-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
502+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
503503
:return: AttachmentResponseArray
504504
If the method is called asynchronously,
505505
returns the request thread.
@@ -524,7 +524,7 @@ def get_attachments_for_object_with_http_info(self, parent, opts, **kwargs): #
524524
:param str parent: Globally unique identifier for object to fetch statuses from. Must be a GID for a `project`, `project_brief`, or `task`. (required)
525525
:param int limit: Results per page. The number of objects to return per page. The value must be between 1 and 100.
526526
:param str offset: 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.*
527-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
527+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
528528
:return: AttachmentResponseArray
529529
If the method is called asynchronously,
530530
returns the request thread.

asana/api/batch_api_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def create_batch_request(self, body, opts, **kwargs): # noqa: E501
4343
4444
:param async_req bool
4545
:param dict body: The requests to batch together via the Batch API. (required)
46-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
46+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
4747
:return: BatchResponseArray
4848
If the method is called asynchronously,
4949
returns the request thread.
@@ -66,7 +66,7 @@ def create_batch_request_with_http_info(self, body, opts, **kwargs): # noqa: E5
6666
6767
:param async_req bool
6868
:param dict body: The requests to batch together via the Batch API. (required)
69-
:param list[str] opt_fields: This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
69+
:param list[str] opt_fields: This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
7070
:return: BatchResponseArray
7171
If the method is called asynchronously,
7272
returns the request thread.

0 commit comments

Comments
 (0)