Skip to content

Commit edceca8

Browse files
committed
Removed attachment POST generation
1 parent 7705810 commit edceca8

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

asana/resources/gen/attachments.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ class _Attachments:
44
def __init__(self, client=None):
55
self.client = client
66

7-
def create_attachment_for_task(self, task_gid, params=None, **options):
8-
"""Upload an attachment
9-
:param str task_gid: (required) The task to operate on.
10-
:param Object params: Parameters for the request
11-
:param **options
12-
- 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.'
13-
- limit {int}: Results per page. The number of objects to return per page. The value must be between 1 and 100.
14-
- opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
15-
- opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
16-
:return: Object
17-
"""
18-
if params is None:
19-
params = {}
20-
path = "/tasks/{task_gid}/attachments".replace("{task_gid}", task_gid)
21-
return self.client.post(path, params, **options)
22-
237
def delete_attachment(self, attachment_gid, params=None, **options):
248
"""Delete an attachment
259
:param str attachment_gid: (required) Globally unique identifier for the attachment.

swagger_templates/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class _{{classname}}:
44

55
def __init__(self, client=None):
66
self.client = client
7-
{{#operation}}
7+
{{#operation}}{{^formParams}}
88
{{#contents}}
99

1010
def {{operationId}}(self, {{#pathParams}}{{paramName}}, {{/pathParams}}params=None, **options):
@@ -23,5 +23,5 @@ class _{{classname}}:
2323
path = "{{path}}"{{#pathParams}}.replace("{ {{~baseName~}} }", {{paramName}}){{/pathParams}}
2424
return self.client.{{#neq "GET" httpMethod}}{{toLowerCase httpMethod}}{{/neq}}{{#eq "GET" httpMethod}}{{returnContainer}}{{/eq}}(path, params, **options)
2525
{{/contents}}
26-
{{/operation}}
26+
{{/formParams}}{{/operation}}
2727
{{/operations}}

0 commit comments

Comments
 (0)