/
shared_lines.py
545 lines (397 loc) · 15.4 KB
/
shared_lines.py
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
# coding: utf-8
"""
OOXML Automation
This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501
The version of the OpenAPI document: 0.1.0-no-tags
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class SharedLines(object):
"""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 = {
'connector_id': 'str',
'shape_id': 'str',
'dash_type_id': 'int',
'head_end_type_id': 'int',
'tail_end_type_id': 'int',
'weight': 'int',
'head_end_height_id': 'int',
'head_end_width_id': 'int',
'tail_end_height_id': 'int',
'tail_end_width_id': 'int',
'top_border_id': 'str',
'bottom_border_id': 'str',
'right_border_id': 'str',
'left_border_id': 'str',
't_lto_br_border_id': 'str',
'b_lto_tr_border_id': 'str',
'line_map_id': 'str',
'id': 'str'
}
attribute_map = {
'connector_id': 'connectorId',
'shape_id': 'shapeId',
'dash_type_id': 'dashTypeId',
'head_end_type_id': 'headEndTypeId',
'tail_end_type_id': 'tailEndTypeId',
'weight': 'weight',
'head_end_height_id': 'headEndHeightId',
'head_end_width_id': 'headEndWidthId',
'tail_end_height_id': 'tailEndHeightId',
'tail_end_width_id': 'tailEndWidthId',
'top_border_id': 'topBorderId',
'bottom_border_id': 'bottomBorderId',
'right_border_id': 'rightBorderId',
'left_border_id': 'leftBorderId',
't_lto_br_border_id': 'tLtoBRBorderId',
'b_lto_tr_border_id': 'bLtoTRBorderId',
'line_map_id': 'lineMapId',
'id': 'id'
}
def __init__(self, connector_id=None, shape_id=None, dash_type_id=None, head_end_type_id=None, tail_end_type_id=None, weight=None, head_end_height_id=None, head_end_width_id=None, tail_end_height_id=None, tail_end_width_id=None, top_border_id=None, bottom_border_id=None, right_border_id=None, left_border_id=None, t_lto_br_border_id=None, b_lto_tr_border_id=None, line_map_id=None, id=None): # noqa: E501
"""SharedLines - a model defined in OpenAPI""" # noqa: E501
self._connector_id = None
self._shape_id = None
self._dash_type_id = None
self._head_end_type_id = None
self._tail_end_type_id = None
self._weight = None
self._head_end_height_id = None
self._head_end_width_id = None
self._tail_end_height_id = None
self._tail_end_width_id = None
self._top_border_id = None
self._bottom_border_id = None
self._right_border_id = None
self._left_border_id = None
self._t_lto_br_border_id = None
self._b_lto_tr_border_id = None
self._line_map_id = None
self._id = None
self.discriminator = None
self.connector_id = connector_id
self.shape_id = shape_id
if dash_type_id is not None:
self.dash_type_id = dash_type_id
if head_end_type_id is not None:
self.head_end_type_id = head_end_type_id
if tail_end_type_id is not None:
self.tail_end_type_id = tail_end_type_id
if weight is not None:
self.weight = weight
if head_end_height_id is not None:
self.head_end_height_id = head_end_height_id
if head_end_width_id is not None:
self.head_end_width_id = head_end_width_id
if tail_end_height_id is not None:
self.tail_end_height_id = tail_end_height_id
if tail_end_width_id is not None:
self.tail_end_width_id = tail_end_width_id
self.top_border_id = top_border_id
self.bottom_border_id = bottom_border_id
self.right_border_id = right_border_id
self.left_border_id = left_border_id
self.t_lto_br_border_id = t_lto_br_border_id
self.b_lto_tr_border_id = b_lto_tr_border_id
self.line_map_id = line_map_id
if id is not None:
self.id = id
@property
def connector_id(self):
"""Gets the connector_id of this SharedLines. # noqa: E501
:return: The connector_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._connector_id
@connector_id.setter
def connector_id(self, connector_id):
"""Sets the connector_id of this SharedLines.
:param connector_id: The connector_id of this SharedLines. # noqa: E501
:type: str
"""
self._connector_id = connector_id
@property
def shape_id(self):
"""Gets the shape_id of this SharedLines. # noqa: E501
:return: The shape_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._shape_id
@shape_id.setter
def shape_id(self, shape_id):
"""Sets the shape_id of this SharedLines.
:param shape_id: The shape_id of this SharedLines. # noqa: E501
:type: str
"""
self._shape_id = shape_id
@property
def dash_type_id(self):
"""Gets the dash_type_id of this SharedLines. # noqa: E501
:return: The dash_type_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._dash_type_id
@dash_type_id.setter
def dash_type_id(self, dash_type_id):
"""Sets the dash_type_id of this SharedLines.
:param dash_type_id: The dash_type_id of this SharedLines. # noqa: E501
:type: int
"""
self._dash_type_id = dash_type_id
@property
def head_end_type_id(self):
"""Gets the head_end_type_id of this SharedLines. # noqa: E501
:return: The head_end_type_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._head_end_type_id
@head_end_type_id.setter
def head_end_type_id(self, head_end_type_id):
"""Sets the head_end_type_id of this SharedLines.
:param head_end_type_id: The head_end_type_id of this SharedLines. # noqa: E501
:type: int
"""
self._head_end_type_id = head_end_type_id
@property
def tail_end_type_id(self):
"""Gets the tail_end_type_id of this SharedLines. # noqa: E501
:return: The tail_end_type_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._tail_end_type_id
@tail_end_type_id.setter
def tail_end_type_id(self, tail_end_type_id):
"""Sets the tail_end_type_id of this SharedLines.
:param tail_end_type_id: The tail_end_type_id of this SharedLines. # noqa: E501
:type: int
"""
self._tail_end_type_id = tail_end_type_id
@property
def weight(self):
"""Gets the weight of this SharedLines. # noqa: E501
:return: The weight of this SharedLines. # noqa: E501
:rtype: int
"""
return self._weight
@weight.setter
def weight(self, weight):
"""Sets the weight of this SharedLines.
:param weight: The weight of this SharedLines. # noqa: E501
:type: int
"""
self._weight = weight
@property
def head_end_height_id(self):
"""Gets the head_end_height_id of this SharedLines. # noqa: E501
:return: The head_end_height_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._head_end_height_id
@head_end_height_id.setter
def head_end_height_id(self, head_end_height_id):
"""Sets the head_end_height_id of this SharedLines.
:param head_end_height_id: The head_end_height_id of this SharedLines. # noqa: E501
:type: int
"""
self._head_end_height_id = head_end_height_id
@property
def head_end_width_id(self):
"""Gets the head_end_width_id of this SharedLines. # noqa: E501
:return: The head_end_width_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._head_end_width_id
@head_end_width_id.setter
def head_end_width_id(self, head_end_width_id):
"""Sets the head_end_width_id of this SharedLines.
:param head_end_width_id: The head_end_width_id of this SharedLines. # noqa: E501
:type: int
"""
self._head_end_width_id = head_end_width_id
@property
def tail_end_height_id(self):
"""Gets the tail_end_height_id of this SharedLines. # noqa: E501
:return: The tail_end_height_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._tail_end_height_id
@tail_end_height_id.setter
def tail_end_height_id(self, tail_end_height_id):
"""Sets the tail_end_height_id of this SharedLines.
:param tail_end_height_id: The tail_end_height_id of this SharedLines. # noqa: E501
:type: int
"""
self._tail_end_height_id = tail_end_height_id
@property
def tail_end_width_id(self):
"""Gets the tail_end_width_id of this SharedLines. # noqa: E501
:return: The tail_end_width_id of this SharedLines. # noqa: E501
:rtype: int
"""
return self._tail_end_width_id
@tail_end_width_id.setter
def tail_end_width_id(self, tail_end_width_id):
"""Sets the tail_end_width_id of this SharedLines.
:param tail_end_width_id: The tail_end_width_id of this SharedLines. # noqa: E501
:type: int
"""
self._tail_end_width_id = tail_end_width_id
@property
def top_border_id(self):
"""Gets the top_border_id of this SharedLines. # noqa: E501
:return: The top_border_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._top_border_id
@top_border_id.setter
def top_border_id(self, top_border_id):
"""Sets the top_border_id of this SharedLines.
:param top_border_id: The top_border_id of this SharedLines. # noqa: E501
:type: str
"""
self._top_border_id = top_border_id
@property
def bottom_border_id(self):
"""Gets the bottom_border_id of this SharedLines. # noqa: E501
:return: The bottom_border_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._bottom_border_id
@bottom_border_id.setter
def bottom_border_id(self, bottom_border_id):
"""Sets the bottom_border_id of this SharedLines.
:param bottom_border_id: The bottom_border_id of this SharedLines. # noqa: E501
:type: str
"""
self._bottom_border_id = bottom_border_id
@property
def right_border_id(self):
"""Gets the right_border_id of this SharedLines. # noqa: E501
:return: The right_border_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._right_border_id
@right_border_id.setter
def right_border_id(self, right_border_id):
"""Sets the right_border_id of this SharedLines.
:param right_border_id: The right_border_id of this SharedLines. # noqa: E501
:type: str
"""
self._right_border_id = right_border_id
@property
def left_border_id(self):
"""Gets the left_border_id of this SharedLines. # noqa: E501
:return: The left_border_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._left_border_id
@left_border_id.setter
def left_border_id(self, left_border_id):
"""Sets the left_border_id of this SharedLines.
:param left_border_id: The left_border_id of this SharedLines. # noqa: E501
:type: str
"""
self._left_border_id = left_border_id
@property
def t_lto_br_border_id(self):
"""Gets the t_lto_br_border_id of this SharedLines. # noqa: E501
:return: The t_lto_br_border_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._t_lto_br_border_id
@t_lto_br_border_id.setter
def t_lto_br_border_id(self, t_lto_br_border_id):
"""Sets the t_lto_br_border_id of this SharedLines.
:param t_lto_br_border_id: The t_lto_br_border_id of this SharedLines. # noqa: E501
:type: str
"""
self._t_lto_br_border_id = t_lto_br_border_id
@property
def b_lto_tr_border_id(self):
"""Gets the b_lto_tr_border_id of this SharedLines. # noqa: E501
:return: The b_lto_tr_border_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._b_lto_tr_border_id
@b_lto_tr_border_id.setter
def b_lto_tr_border_id(self, b_lto_tr_border_id):
"""Sets the b_lto_tr_border_id of this SharedLines.
:param b_lto_tr_border_id: The b_lto_tr_border_id of this SharedLines. # noqa: E501
:type: str
"""
self._b_lto_tr_border_id = b_lto_tr_border_id
@property
def line_map_id(self):
"""Gets the line_map_id of this SharedLines. # noqa: E501
:return: The line_map_id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._line_map_id
@line_map_id.setter
def line_map_id(self, line_map_id):
"""Sets the line_map_id of this SharedLines.
:param line_map_id: The line_map_id of this SharedLines. # noqa: E501
:type: str
"""
self._line_map_id = line_map_id
@property
def id(self):
"""Gets the id of this SharedLines. # noqa: E501
:return: The id of this SharedLines. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this SharedLines.
:param id: The id of this SharedLines. # noqa: E501
:type: str
"""
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_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
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, SharedLines):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other