-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathtag_response.py
More file actions
340 lines (259 loc) · 10.1 KB
/
Copy pathtag_response.py
File metadata and controls
340 lines (259 loc) · 10.1 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
# coding: utf-8
"""
Asana
This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class TagResponse(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_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.
"""
swagger_types = {
'gid': 'str',
'resource_type': 'str',
'name': 'str',
'color': 'str',
'notes': 'str',
'created_at': 'datetime',
'followers': 'list[CustomFieldResponsePeopleValue]',
'workspace': 'GoalResponseWorkspace',
'permalink_url': 'str'
}
attribute_map = {
'gid': 'gid',
'resource_type': 'resource_type',
'name': 'name',
'color': 'color',
'notes': 'notes',
'created_at': 'created_at',
'followers': 'followers',
'workspace': 'workspace',
'permalink_url': 'permalink_url'
}
def __init__(self, gid=None, resource_type=None, name=None, color=None, notes=None, created_at=None, followers=None, workspace=None, permalink_url=None): # noqa: E501
"""TagResponse - a model defined in Swagger""" # noqa: E501
self._gid = None
self._resource_type = None
self._name = None
self._color = None
self._notes = None
self._created_at = None
self._followers = None
self._workspace = None
self._permalink_url = None
self.discriminator = None
if gid is not None:
self.gid = gid
if resource_type is not None:
self.resource_type = resource_type
if name is not None:
self.name = name
if color is not None:
self.color = color
if notes is not None:
self.notes = notes
if created_at is not None:
self.created_at = created_at
if followers is not None:
self.followers = followers
if workspace is not None:
self.workspace = workspace
if permalink_url is not None:
self.permalink_url = permalink_url
@property
def gid(self):
"""Gets the gid of this TagResponse. # noqa: E501
Globally unique identifier of the resource, as a string. # noqa: E501
:return: The gid of this TagResponse. # noqa: E501
:rtype: str
"""
return self._gid
@gid.setter
def gid(self, gid):
"""Sets the gid of this TagResponse.
Globally unique identifier of the resource, as a string. # noqa: E501
:param gid: The gid of this TagResponse. # noqa: E501
:type: str
"""
self._gid = gid
@property
def resource_type(self):
"""Gets the resource_type of this TagResponse. # noqa: E501
The base type of this resource. # noqa: E501
:return: The resource_type of this TagResponse. # noqa: E501
:rtype: str
"""
return self._resource_type
@resource_type.setter
def resource_type(self, resource_type):
"""Sets the resource_type of this TagResponse.
The base type of this resource. # noqa: E501
:param resource_type: The resource_type of this TagResponse. # noqa: E501
:type: str
"""
self._resource_type = resource_type
@property
def name(self):
"""Gets the name of this TagResponse. # noqa: E501
Name of the tag. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer. # noqa: E501
:return: The name of this TagResponse. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this TagResponse.
Name of the tag. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer. # noqa: E501
:param name: The name of this TagResponse. # noqa: E501
:type: str
"""
self._name = name
@property
def color(self):
"""Gets the color of this TagResponse. # noqa: E501
Color of the tag. # noqa: E501
:return: The color of this TagResponse. # noqa: E501
:rtype: str
"""
return self._color
@color.setter
def color(self, color):
"""Sets the color of this TagResponse.
Color of the tag. # noqa: E501
:param color: The color of this TagResponse. # noqa: E501
:type: str
"""
allowed_values = ["dark-pink", "dark-green", "dark-blue", "dark-red", "dark-teal", "dark-brown", "dark-orange", "dark-purple", "dark-warm-gray", "light-pink", "light-green", "light-blue", "light-red", "light-teal", "light-brown", "light-orange", "light-purple", "light-warm-gray", "none", ""] # noqa: E501
if color not in allowed_values:
raise ValueError(
"Invalid value for `color` ({0}), must be one of {1}" # noqa: E501
.format(color, allowed_values)
)
self._color = color
@property
def notes(self):
"""Gets the notes of this TagResponse. # noqa: E501
Free-form textual information associated with the tag (i.e. its description). # noqa: E501
:return: The notes of this TagResponse. # noqa: E501
:rtype: str
"""
return self._notes
@notes.setter
def notes(self, notes):
"""Sets the notes of this TagResponse.
Free-form textual information associated with the tag (i.e. its description). # noqa: E501
:param notes: The notes of this TagResponse. # noqa: E501
:type: str
"""
self._notes = notes
@property
def created_at(self):
"""Gets the created_at of this TagResponse. # noqa: E501
The time at which this resource was created. # noqa: E501
:return: The created_at of this TagResponse. # noqa: E501
:rtype: datetime
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this TagResponse.
The time at which this resource was created. # noqa: E501
:param created_at: The created_at of this TagResponse. # noqa: E501
:type: datetime
"""
self._created_at = created_at
@property
def followers(self):
"""Gets the followers of this TagResponse. # noqa: E501
Array of users following this tag. # noqa: E501
:return: The followers of this TagResponse. # noqa: E501
:rtype: list[CustomFieldResponsePeopleValue]
"""
return self._followers
@followers.setter
def followers(self, followers):
"""Sets the followers of this TagResponse.
Array of users following this tag. # noqa: E501
:param followers: The followers of this TagResponse. # noqa: E501
:type: list[CustomFieldResponsePeopleValue]
"""
self._followers = followers
@property
def workspace(self):
"""Gets the workspace of this TagResponse. # noqa: E501
:return: The workspace of this TagResponse. # noqa: E501
:rtype: GoalResponseWorkspace
"""
return self._workspace
@workspace.setter
def workspace(self, workspace):
"""Sets the workspace of this TagResponse.
:param workspace: The workspace of this TagResponse. # noqa: E501
:type: GoalResponseWorkspace
"""
self._workspace = workspace
@property
def permalink_url(self):
"""Gets the permalink_url of this TagResponse. # noqa: E501
A url that points directly to the object within Asana. # noqa: E501
:return: The permalink_url of this TagResponse. # noqa: E501
:rtype: str
"""
return self._permalink_url
@permalink_url.setter
def permalink_url(self, permalink_url):
"""Sets the permalink_url of this TagResponse.
A url that points directly to the object within Asana. # noqa: E501
:param permalink_url: The permalink_url of this TagResponse. # noqa: E501
:type: str
"""
self._permalink_url = permalink_url
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(TagResponse, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, TagResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other