forked from XeroAPI/xero-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfolder.py
More file actions
184 lines (135 loc) · 4.51 KB
/
Copy pathfolder.py
File metadata and controls
184 lines (135 loc) · 4.51 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
# coding: utf-8
"""
Xero Files API
These endpoints are specific to Xero Files API # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class Folder(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 = {
"name": "str",
"file_count": "int",
"email": "str",
"is_inbox": "bool",
"id": "str",
}
attribute_map = {
"name": "Name",
"file_count": "FileCount",
"email": "Email",
"is_inbox": "IsInbox",
"id": "Id",
}
def __init__(
self, name=None, file_count=None, email=None, is_inbox=None, id=None
): # noqa: E501
"""Folder - a model defined in OpenAPI""" # noqa: E501
self._name = None
self._file_count = None
self._email = None
self._is_inbox = None
self._id = None
self.discriminator = None
if name is not None:
self.name = name
if file_count is not None:
self.file_count = file_count
if email is not None:
self.email = email
if is_inbox is not None:
self.is_inbox = is_inbox
if id is not None:
self.id = id
@property
def name(self):
"""Gets the name of this Folder. # noqa: E501
The name of the folder # noqa: E501
:return: The name of this Folder. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Folder.
The name of the folder # noqa: E501
:param name: The name of this Folder. # noqa: E501
:type: str
"""
self._name = name
@property
def file_count(self):
"""Gets the file_count of this Folder. # noqa: E501
The number of files in the folder # noqa: E501
:return: The file_count of this Folder. # noqa: E501
:rtype: int
"""
return self._file_count
@file_count.setter
def file_count(self, file_count):
"""Sets the file_count of this Folder.
The number of files in the folder # noqa: E501
:param file_count: The file_count of this Folder. # noqa: E501
:type: int
"""
self._file_count = file_count
@property
def email(self):
"""Gets the email of this Folder. # noqa: E501
The email address used to email files to the inbox. Only the inbox will have this element. # noqa: E501
:return: The email of this Folder. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Folder.
The email address used to email files to the inbox. Only the inbox will have this element. # noqa: E501
:param email: The email of this Folder. # noqa: E501
:type: str
"""
self._email = email
@property
def is_inbox(self):
"""Gets the is_inbox of this Folder. # noqa: E501
to indicate if the folder is the Inbox. The Inbox cannot be renamed or deleted. # noqa: E501
:return: The is_inbox of this Folder. # noqa: E501
:rtype: bool
"""
return self._is_inbox
@is_inbox.setter
def is_inbox(self, is_inbox):
"""Sets the is_inbox of this Folder.
to indicate if the folder is the Inbox. The Inbox cannot be renamed or deleted. # noqa: E501
:param is_inbox: The is_inbox of this Folder. # noqa: E501
:type: bool
"""
self._is_inbox = is_inbox
@property
def id(self):
"""Gets the id of this Folder. # noqa: E501
Xero unique identifier for a folder Files # noqa: E501
:return: The id of this Folder. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Folder.
Xero unique identifier for a folder Files # noqa: E501
:param id: The id of this Folder. # noqa: E501
:type: str
"""
self._id = id