-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathattachment.py
More file actions
218 lines (162 loc) · 5.62 KB
/
attachment.py
File metadata and controls
218 lines (162 loc) · 5.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# coding: utf-8
"""
Xero Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class Attachment(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
"attachment_id": "str",
"file_name": "str",
"url": "str",
"mime_type": "str",
"content_length": "int",
"include_online": "bool",
}
attribute_map = {
"attachment_id": "AttachmentID",
"file_name": "FileName",
"url": "Url",
"mime_type": "MimeType",
"content_length": "ContentLength",
"include_online": "IncludeOnline",
}
def __init__(
self,
attachment_id=None,
file_name=None,
url=None,
mime_type=None,
content_length=None,
include_online=None,
): # noqa: E501
"""Attachment - a model defined in OpenAPI""" # noqa: E501
self._attachment_id = None
self._file_name = None
self._url = None
self._mime_type = None
self._content_length = None
self._include_online = None
self.discriminator = None
if attachment_id is not None:
self.attachment_id = attachment_id
if file_name is not None:
self.file_name = file_name
if url is not None:
self.url = url
if mime_type is not None:
self.mime_type = mime_type
if content_length is not None:
self.content_length = content_length
if include_online is not None:
self.include_online = include_online
@property
def attachment_id(self):
"""Gets the attachment_id of this Attachment. # noqa: E501
Unique ID for the file # noqa: E501
:return: The attachment_id of this Attachment. # noqa: E501
:rtype: str
"""
return self._attachment_id
@attachment_id.setter
def attachment_id(self, attachment_id):
"""Sets the attachment_id of this Attachment.
Unique ID for the file # noqa: E501
:param attachment_id: The attachment_id of this Attachment. # noqa: E501
:type: str
"""
self._attachment_id = attachment_id
@property
def file_name(self):
"""Gets the file_name of this Attachment. # noqa: E501
Name of the file # noqa: E501
:return: The file_name of this Attachment. # noqa: E501
:rtype: str
"""
return self._file_name
@file_name.setter
def file_name(self, file_name):
"""Sets the file_name of this Attachment.
Name of the file # noqa: E501
:param file_name: The file_name of this Attachment. # noqa: E501
:type: str
"""
self._file_name = file_name
@property
def url(self):
"""Gets the url of this Attachment. # noqa: E501
URL to the file on xero.com # noqa: E501
:return: The url of this Attachment. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this Attachment.
URL to the file on xero.com # noqa: E501
:param url: The url of this Attachment. # noqa: E501
:type: str
"""
self._url = url
@property
def mime_type(self):
"""Gets the mime_type of this Attachment. # noqa: E501
Type of file # noqa: E501
:return: The mime_type of this Attachment. # noqa: E501
:rtype: str
"""
return self._mime_type
@mime_type.setter
def mime_type(self, mime_type):
"""Sets the mime_type of this Attachment.
Type of file # noqa: E501
:param mime_type: The mime_type of this Attachment. # noqa: E501
:type: str
"""
self._mime_type = mime_type
@property
def content_length(self):
"""Gets the content_length of this Attachment. # noqa: E501
Length of the file content # noqa: E501
:return: The content_length of this Attachment. # noqa: E501
:rtype: int
"""
return self._content_length
@content_length.setter
def content_length(self, content_length):
"""Sets the content_length of this Attachment.
Length of the file content # noqa: E501
:param content_length: The content_length of this Attachment. # noqa: E501
:type: int
"""
self._content_length = content_length
@property
def include_online(self):
"""Gets the include_online of this Attachment. # noqa: E501
Include the file with the online invoice # noqa: E501
:return: The include_online of this Attachment. # noqa: E501
:rtype: bool
"""
return self._include_online
@include_online.setter
def include_online(self, include_online):
"""Sets the include_online of this Attachment.
Include the file with the online invoice # noqa: E501
:param include_online: The include_online of this Attachment. # noqa: E501
:type: bool
"""
self._include_online = include_online