teamdbapi 2.37.2__py3-none-any.whl → 3.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- teamdbapi/__init__.py +11 -0
- teamdbapi/api/__init__.py +5 -0
- teamdbapi/api/assembly_api.py +23 -23
- teamdbapi/api/component_api.py +954 -0
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/import_export_api.py +85 -0
- teamdbapi/api/lap_report_api.py +5 -1
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/part_api.py +304 -0
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +5 -12
- teamdbapi/models/__init__.py +6 -0
- teamdbapi/models/assembly.py +1 -0
- teamdbapi/models/bleed_adjustment.py +1 -0
- teamdbapi/models/calibration.py +1 -0
- teamdbapi/models/car.py +1 -0
- teamdbapi/models/car_parameters_context.py +1 -0
- teamdbapi/models/compare_options.py +1 -0
- teamdbapi/models/compare_result.py +1 -0
- teamdbapi/models/compare_result_detail.py +2 -0
- teamdbapi/models/component.py +1217 -0
- teamdbapi/models/copy_from_tags_args.py +2 -0
- teamdbapi/models/couple_guid_text.py +1 -0
- teamdbapi/models/criteria.py +430 -0
- teamdbapi/models/criteria_value.py +197 -0
- teamdbapi/models/event.py +1 -0
- teamdbapi/models/fixed_field.py +2 -1
- teamdbapi/models/group.py +1 -0
- teamdbapi/models/import_parameters_args.py +1 -0
- teamdbapi/models/import_parameters_results.py +2 -0
- teamdbapi/models/item_value.py +1 -0
- teamdbapi/models/item_value_key.py +1 -0
- teamdbapi/models/lap.py +1 -0
- teamdbapi/models/lap_report_options.py +1 -0
- teamdbapi/models/model_field.py +3 -1
- teamdbapi/models/model_field_authorization.py +1 -0
- teamdbapi/models/mounting.py +489 -0
- teamdbapi/models/notes_authorization.py +1 -0
- teamdbapi/models/notes_context.py +1 -0
- teamdbapi/models/parameter.py +2 -0
- teamdbapi/models/parameter_cross_table.py +1 -0
- teamdbapi/models/part.py +963 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +88 -3
- teamdbapi/models/revision_value.py +1 -0
- teamdbapi/models/run.py +1 -0
- teamdbapi/models/script.py +1 -0
- teamdbapi/models/session.py +1 -0
- teamdbapi/models/string_with_font_style.py +1 -0
- teamdbapi/models/target.py +64 -7
- teamdbapi/models/team_db_list.py +1 -0
- teamdbapi/models/team_db_list_item.py +1 -0
- teamdbapi/models/tire.py +2 -0
- teamdbapi/models/tire_set.py +2 -0
- teamdbapi/models/track.py +1 -0
- teamdbapi/models/track_layout.py +1 -0
- teamdbapi/models/user.py +1 -0
- teamdbapi/models/user_group.py +1 -0
- teamdbapi/models/value_field.py +1 -0
- teamdbapi/models/version.py +1 -0
- teamdbapi/rest.py +6 -1
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +3 -3
- teamdbapi-3.0.0.dist-info/RECORD +93 -0
- teamdbapi-2.37.2.dist-info/RECORD +0 -82
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
teamdbapi/models/item_value.py
CHANGED
teamdbapi/models/lap.py
CHANGED
teamdbapi/models/model_field.py
CHANGED
|
@@ -14,6 +14,8 @@ import pprint
|
|
|
14
14
|
import re # noqa: F401
|
|
15
15
|
|
|
16
16
|
import six
|
|
17
|
+
from teamdbapi.models.couple_guid_text import CoupleGuidText # noqa: F401,E501
|
|
18
|
+
|
|
17
19
|
|
|
18
20
|
class ModelField(object):
|
|
19
21
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -279,7 +281,7 @@ class ModelField(object):
|
|
|
279
281
|
"""
|
|
280
282
|
if type_of_value is None:
|
|
281
283
|
raise ValueError("Invalid value for `type_of_value`, must not be `None`") # noqa: E501
|
|
282
|
-
allowed_values = ["Double", "String", "Bool", "TimeSpan", "DateTime", "TeamDBList", "Int", "Rtf", "StringMultiline", "TeamDBGrid", "Image", "File", "RevisionSelector", "RevisionEditor", "HyperlinkTextBox", "HyperlinkIntTextBox", "LifingRunMountingDiff", "Files", "Text"] # noqa: E501
|
|
284
|
+
allowed_values = ["Double", "String", "Bool", "TimeSpan", "DateTime", "TeamDBList", "Int", "Rtf", "StringMultiline", "TeamDBGrid", "Image", "File", "RevisionSelector", "RevisionEditor", "HyperlinkTextBox", "HyperlinkIntTextBox", "LifingRunMountingDiff", "Files", "Text", "Spreadsheet"] # noqa: E501
|
|
283
285
|
if type_of_value not in allowed_values:
|
|
284
286
|
raise ValueError(
|
|
285
287
|
"Invalid value for `type_of_value` ({0}), must be one of {1}" # noqa: E501
|
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Trackside Software TeamDB API v2.0
|
|
5
|
+
|
|
6
|
+
This API enables you to access TeamDB data # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0
|
|
9
|
+
Contact: support@trackside.fr
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Mounting(object):
|
|
20
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
21
|
+
|
|
22
|
+
Do not edit the class manually.
|
|
23
|
+
"""
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
swagger_types (dict): The key is attribute name
|
|
27
|
+
and the value is attribute type.
|
|
28
|
+
attribute_map (dict): The key is attribute name
|
|
29
|
+
and the value is json key in definition.
|
|
30
|
+
"""
|
|
31
|
+
swagger_types = {
|
|
32
|
+
'revision_id': 'str',
|
|
33
|
+
'mounting_id': 'str',
|
|
34
|
+
'name': 'str',
|
|
35
|
+
'description': 'str',
|
|
36
|
+
'creation_date_utc': 'datetime',
|
|
37
|
+
'creator': 'str',
|
|
38
|
+
'revision_name': 'str',
|
|
39
|
+
'date_exploitation_start_utc': 'datetime',
|
|
40
|
+
'date_exploitation_end_utc': 'datetime',
|
|
41
|
+
'last_update_date_utc': 'datetime',
|
|
42
|
+
'last_update_user': 'str',
|
|
43
|
+
'template_id': 'str',
|
|
44
|
+
'tags': 'str',
|
|
45
|
+
'replication_filter': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'revision_id': 'RevisionId',
|
|
50
|
+
'mounting_id': 'MountingId',
|
|
51
|
+
'name': 'Name',
|
|
52
|
+
'description': 'Description',
|
|
53
|
+
'creation_date_utc': 'CreationDateUtc',
|
|
54
|
+
'creator': 'Creator',
|
|
55
|
+
'revision_name': 'RevisionName',
|
|
56
|
+
'date_exploitation_start_utc': 'DateExploitationStartUtc',
|
|
57
|
+
'date_exploitation_end_utc': 'DateExploitationEndUtc',
|
|
58
|
+
'last_update_date_utc': 'LastUpdateDateUtc',
|
|
59
|
+
'last_update_user': 'LastUpdateUser',
|
|
60
|
+
'template_id': 'TemplateId',
|
|
61
|
+
'tags': 'Tags',
|
|
62
|
+
'replication_filter': 'ReplicationFilter'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, revision_id=None, mounting_id=None, name=None, description=None, creation_date_utc=None, creator=None, revision_name=None, date_exploitation_start_utc=None, date_exploitation_end_utc=None, last_update_date_utc=None, last_update_user=None, template_id=None, tags=None, replication_filter=None): # noqa: E501
|
|
66
|
+
"""Mounting - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
self._revision_id = None
|
|
68
|
+
self._mounting_id = None
|
|
69
|
+
self._name = None
|
|
70
|
+
self._description = None
|
|
71
|
+
self._creation_date_utc = None
|
|
72
|
+
self._creator = None
|
|
73
|
+
self._revision_name = None
|
|
74
|
+
self._date_exploitation_start_utc = None
|
|
75
|
+
self._date_exploitation_end_utc = None
|
|
76
|
+
self._last_update_date_utc = None
|
|
77
|
+
self._last_update_user = None
|
|
78
|
+
self._template_id = None
|
|
79
|
+
self._tags = None
|
|
80
|
+
self._replication_filter = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
self.revision_id = revision_id
|
|
83
|
+
self.mounting_id = mounting_id
|
|
84
|
+
self.name = name
|
|
85
|
+
if description is not None:
|
|
86
|
+
self.description = description
|
|
87
|
+
if creation_date_utc is not None:
|
|
88
|
+
self.creation_date_utc = creation_date_utc
|
|
89
|
+
if creator is not None:
|
|
90
|
+
self.creator = creator
|
|
91
|
+
self.revision_name = revision_name
|
|
92
|
+
self.date_exploitation_start_utc = date_exploitation_start_utc
|
|
93
|
+
self.date_exploitation_end_utc = date_exploitation_end_utc
|
|
94
|
+
if last_update_date_utc is not None:
|
|
95
|
+
self.last_update_date_utc = last_update_date_utc
|
|
96
|
+
if last_update_user is not None:
|
|
97
|
+
self.last_update_user = last_update_user
|
|
98
|
+
if template_id is not None:
|
|
99
|
+
self.template_id = template_id
|
|
100
|
+
if tags is not None:
|
|
101
|
+
self.tags = tags
|
|
102
|
+
if replication_filter is not None:
|
|
103
|
+
self.replication_filter = replication_filter
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def revision_id(self):
|
|
107
|
+
"""Gets the revision_id of this Mounting. # noqa: E501
|
|
108
|
+
|
|
109
|
+
Mounting revision unique identifier. Set the RevisionId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new mounting revision. # noqa: E501
|
|
110
|
+
|
|
111
|
+
:return: The revision_id of this Mounting. # noqa: E501
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._revision_id
|
|
115
|
+
|
|
116
|
+
@revision_id.setter
|
|
117
|
+
def revision_id(self, revision_id):
|
|
118
|
+
"""Sets the revision_id of this Mounting.
|
|
119
|
+
|
|
120
|
+
Mounting revision unique identifier. Set the RevisionId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new mounting revision. # noqa: E501
|
|
121
|
+
|
|
122
|
+
:param revision_id: The revision_id of this Mounting. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
if revision_id is None:
|
|
126
|
+
raise ValueError("Invalid value for `revision_id`, must not be `None`") # noqa: E501
|
|
127
|
+
|
|
128
|
+
self._revision_id = revision_id
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def mounting_id(self):
|
|
132
|
+
"""Gets the mounting_id of this Mounting. # noqa: E501
|
|
133
|
+
|
|
134
|
+
Mounting unique identifier, common to all revisions of the same mounting Set the MountingId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new mounting. # noqa: E501
|
|
135
|
+
|
|
136
|
+
:return: The mounting_id of this Mounting. # noqa: E501
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._mounting_id
|
|
140
|
+
|
|
141
|
+
@mounting_id.setter
|
|
142
|
+
def mounting_id(self, mounting_id):
|
|
143
|
+
"""Sets the mounting_id of this Mounting.
|
|
144
|
+
|
|
145
|
+
Mounting unique identifier, common to all revisions of the same mounting Set the MountingId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new mounting. # noqa: E501
|
|
146
|
+
|
|
147
|
+
:param mounting_id: The mounting_id of this Mounting. # noqa: E501
|
|
148
|
+
:type: str
|
|
149
|
+
"""
|
|
150
|
+
if mounting_id is None:
|
|
151
|
+
raise ValueError("Invalid value for `mounting_id`, must not be `None`") # noqa: E501
|
|
152
|
+
|
|
153
|
+
self._mounting_id = mounting_id
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def name(self):
|
|
157
|
+
"""Gets the name of this Mounting. # noqa: E501
|
|
158
|
+
|
|
159
|
+
Mounting name # noqa: E501
|
|
160
|
+
|
|
161
|
+
:return: The name of this Mounting. # noqa: E501
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._name
|
|
165
|
+
|
|
166
|
+
@name.setter
|
|
167
|
+
def name(self, name):
|
|
168
|
+
"""Sets the name of this Mounting.
|
|
169
|
+
|
|
170
|
+
Mounting name # noqa: E501
|
|
171
|
+
|
|
172
|
+
:param name: The name of this Mounting. # noqa: E501
|
|
173
|
+
:type: str
|
|
174
|
+
"""
|
|
175
|
+
if name is None:
|
|
176
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
177
|
+
|
|
178
|
+
self._name = name
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
def description(self):
|
|
182
|
+
"""Gets the description of this Mounting. # noqa: E501
|
|
183
|
+
|
|
184
|
+
Mounting description # noqa: E501
|
|
185
|
+
|
|
186
|
+
:return: The description of this Mounting. # noqa: E501
|
|
187
|
+
:rtype: str
|
|
188
|
+
"""
|
|
189
|
+
return self._description
|
|
190
|
+
|
|
191
|
+
@description.setter
|
|
192
|
+
def description(self, description):
|
|
193
|
+
"""Sets the description of this Mounting.
|
|
194
|
+
|
|
195
|
+
Mounting description # noqa: E501
|
|
196
|
+
|
|
197
|
+
:param description: The description of this Mounting. # noqa: E501
|
|
198
|
+
:type: str
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._description = description
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def creation_date_utc(self):
|
|
205
|
+
"""Gets the creation_date_utc of this Mounting. # noqa: E501
|
|
206
|
+
|
|
207
|
+
Mounting creation utc date # noqa: E501
|
|
208
|
+
|
|
209
|
+
:return: The creation_date_utc of this Mounting. # noqa: E501
|
|
210
|
+
:rtype: datetime
|
|
211
|
+
"""
|
|
212
|
+
return self._creation_date_utc
|
|
213
|
+
|
|
214
|
+
@creation_date_utc.setter
|
|
215
|
+
def creation_date_utc(self, creation_date_utc):
|
|
216
|
+
"""Sets the creation_date_utc of this Mounting.
|
|
217
|
+
|
|
218
|
+
Mounting creation utc date # noqa: E501
|
|
219
|
+
|
|
220
|
+
:param creation_date_utc: The creation_date_utc of this Mounting. # noqa: E501
|
|
221
|
+
:type: datetime
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
self._creation_date_utc = creation_date_utc
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
def creator(self):
|
|
228
|
+
"""Gets the creator of this Mounting. # noqa: E501
|
|
229
|
+
|
|
230
|
+
Mounting creator username # noqa: E501
|
|
231
|
+
|
|
232
|
+
:return: The creator of this Mounting. # noqa: E501
|
|
233
|
+
:rtype: str
|
|
234
|
+
"""
|
|
235
|
+
return self._creator
|
|
236
|
+
|
|
237
|
+
@creator.setter
|
|
238
|
+
def creator(self, creator):
|
|
239
|
+
"""Sets the creator of this Mounting.
|
|
240
|
+
|
|
241
|
+
Mounting creator username # noqa: E501
|
|
242
|
+
|
|
243
|
+
:param creator: The creator of this Mounting. # noqa: E501
|
|
244
|
+
:type: str
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
self._creator = creator
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
def revision_name(self):
|
|
251
|
+
"""Gets the revision_name of this Mounting. # noqa: E501
|
|
252
|
+
|
|
253
|
+
Mounting revision name # noqa: E501
|
|
254
|
+
|
|
255
|
+
:return: The revision_name of this Mounting. # noqa: E501
|
|
256
|
+
:rtype: str
|
|
257
|
+
"""
|
|
258
|
+
return self._revision_name
|
|
259
|
+
|
|
260
|
+
@revision_name.setter
|
|
261
|
+
def revision_name(self, revision_name):
|
|
262
|
+
"""Sets the revision_name of this Mounting.
|
|
263
|
+
|
|
264
|
+
Mounting revision name # noqa: E501
|
|
265
|
+
|
|
266
|
+
:param revision_name: The revision_name of this Mounting. # noqa: E501
|
|
267
|
+
:type: str
|
|
268
|
+
"""
|
|
269
|
+
if revision_name is None:
|
|
270
|
+
raise ValueError("Invalid value for `revision_name`, must not be `None`") # noqa: E501
|
|
271
|
+
|
|
272
|
+
self._revision_name = revision_name
|
|
273
|
+
|
|
274
|
+
@property
|
|
275
|
+
def date_exploitation_start_utc(self):
|
|
276
|
+
"""Gets the date_exploitation_start_utc of this Mounting. # noqa: E501
|
|
277
|
+
|
|
278
|
+
Mounting utc start date # noqa: E501
|
|
279
|
+
|
|
280
|
+
:return: The date_exploitation_start_utc of this Mounting. # noqa: E501
|
|
281
|
+
:rtype: datetime
|
|
282
|
+
"""
|
|
283
|
+
return self._date_exploitation_start_utc
|
|
284
|
+
|
|
285
|
+
@date_exploitation_start_utc.setter
|
|
286
|
+
def date_exploitation_start_utc(self, date_exploitation_start_utc):
|
|
287
|
+
"""Sets the date_exploitation_start_utc of this Mounting.
|
|
288
|
+
|
|
289
|
+
Mounting utc start date # noqa: E501
|
|
290
|
+
|
|
291
|
+
:param date_exploitation_start_utc: The date_exploitation_start_utc of this Mounting. # noqa: E501
|
|
292
|
+
:type: datetime
|
|
293
|
+
"""
|
|
294
|
+
if date_exploitation_start_utc is None:
|
|
295
|
+
raise ValueError("Invalid value for `date_exploitation_start_utc`, must not be `None`") # noqa: E501
|
|
296
|
+
|
|
297
|
+
self._date_exploitation_start_utc = date_exploitation_start_utc
|
|
298
|
+
|
|
299
|
+
@property
|
|
300
|
+
def date_exploitation_end_utc(self):
|
|
301
|
+
"""Gets the date_exploitation_end_utc of this Mounting. # noqa: E501
|
|
302
|
+
|
|
303
|
+
End utc date of mounting operation (or dismantling date) # noqa: E501
|
|
304
|
+
|
|
305
|
+
:return: The date_exploitation_end_utc of this Mounting. # noqa: E501
|
|
306
|
+
:rtype: datetime
|
|
307
|
+
"""
|
|
308
|
+
return self._date_exploitation_end_utc
|
|
309
|
+
|
|
310
|
+
@date_exploitation_end_utc.setter
|
|
311
|
+
def date_exploitation_end_utc(self, date_exploitation_end_utc):
|
|
312
|
+
"""Sets the date_exploitation_end_utc of this Mounting.
|
|
313
|
+
|
|
314
|
+
End utc date of mounting operation (or dismantling date) # noqa: E501
|
|
315
|
+
|
|
316
|
+
:param date_exploitation_end_utc: The date_exploitation_end_utc of this Mounting. # noqa: E501
|
|
317
|
+
:type: datetime
|
|
318
|
+
"""
|
|
319
|
+
if date_exploitation_end_utc is None:
|
|
320
|
+
raise ValueError("Invalid value for `date_exploitation_end_utc`, must not be `None`") # noqa: E501
|
|
321
|
+
|
|
322
|
+
self._date_exploitation_end_utc = date_exploitation_end_utc
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
def last_update_date_utc(self):
|
|
326
|
+
"""Gets the last_update_date_utc of this Mounting. # noqa: E501
|
|
327
|
+
|
|
328
|
+
Mounting last update utc date # noqa: E501
|
|
329
|
+
|
|
330
|
+
:return: The last_update_date_utc of this Mounting. # noqa: E501
|
|
331
|
+
:rtype: datetime
|
|
332
|
+
"""
|
|
333
|
+
return self._last_update_date_utc
|
|
334
|
+
|
|
335
|
+
@last_update_date_utc.setter
|
|
336
|
+
def last_update_date_utc(self, last_update_date_utc):
|
|
337
|
+
"""Sets the last_update_date_utc of this Mounting.
|
|
338
|
+
|
|
339
|
+
Mounting last update utc date # noqa: E501
|
|
340
|
+
|
|
341
|
+
:param last_update_date_utc: The last_update_date_utc of this Mounting. # noqa: E501
|
|
342
|
+
:type: datetime
|
|
343
|
+
"""
|
|
344
|
+
|
|
345
|
+
self._last_update_date_utc = last_update_date_utc
|
|
346
|
+
|
|
347
|
+
@property
|
|
348
|
+
def last_update_user(self):
|
|
349
|
+
"""Gets the last_update_user of this Mounting. # noqa: E501
|
|
350
|
+
|
|
351
|
+
The name of the user who performed the last update on the mounting # noqa: E501
|
|
352
|
+
|
|
353
|
+
:return: The last_update_user of this Mounting. # noqa: E501
|
|
354
|
+
:rtype: str
|
|
355
|
+
"""
|
|
356
|
+
return self._last_update_user
|
|
357
|
+
|
|
358
|
+
@last_update_user.setter
|
|
359
|
+
def last_update_user(self, last_update_user):
|
|
360
|
+
"""Sets the last_update_user of this Mounting.
|
|
361
|
+
|
|
362
|
+
The name of the user who performed the last update on the mounting # noqa: E501
|
|
363
|
+
|
|
364
|
+
:param last_update_user: The last_update_user of this Mounting. # noqa: E501
|
|
365
|
+
:type: str
|
|
366
|
+
"""
|
|
367
|
+
|
|
368
|
+
self._last_update_user = last_update_user
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def template_id(self):
|
|
372
|
+
"""Gets the template_id of this Mounting. # noqa: E501
|
|
373
|
+
|
|
374
|
+
Mounting related template id # noqa: E501
|
|
375
|
+
|
|
376
|
+
:return: The template_id of this Mounting. # noqa: E501
|
|
377
|
+
:rtype: str
|
|
378
|
+
"""
|
|
379
|
+
return self._template_id
|
|
380
|
+
|
|
381
|
+
@template_id.setter
|
|
382
|
+
def template_id(self, template_id):
|
|
383
|
+
"""Sets the template_id of this Mounting.
|
|
384
|
+
|
|
385
|
+
Mounting related template id # noqa: E501
|
|
386
|
+
|
|
387
|
+
:param template_id: The template_id of this Mounting. # noqa: E501
|
|
388
|
+
:type: str
|
|
389
|
+
"""
|
|
390
|
+
|
|
391
|
+
self._template_id = template_id
|
|
392
|
+
|
|
393
|
+
@property
|
|
394
|
+
def tags(self):
|
|
395
|
+
"""Gets the tags of this Mounting. # noqa: E501
|
|
396
|
+
|
|
397
|
+
Mounting tags. Each tag must be separated by a semicolon. # noqa: E501
|
|
398
|
+
|
|
399
|
+
:return: The tags of this Mounting. # noqa: E501
|
|
400
|
+
:rtype: str
|
|
401
|
+
"""
|
|
402
|
+
return self._tags
|
|
403
|
+
|
|
404
|
+
@tags.setter
|
|
405
|
+
def tags(self, tags):
|
|
406
|
+
"""Sets the tags of this Mounting.
|
|
407
|
+
|
|
408
|
+
Mounting tags. Each tag must be separated by a semicolon. # noqa: E501
|
|
409
|
+
|
|
410
|
+
:param tags: The tags of this Mounting. # noqa: E501
|
|
411
|
+
:type: str
|
|
412
|
+
"""
|
|
413
|
+
|
|
414
|
+
self._tags = tags
|
|
415
|
+
|
|
416
|
+
@property
|
|
417
|
+
def replication_filter(self):
|
|
418
|
+
"""Gets the replication_filter of this Mounting. # noqa: E501
|
|
419
|
+
|
|
420
|
+
Filter level used for replication of large tables # noqa: E501
|
|
421
|
+
|
|
422
|
+
:return: The replication_filter of this Mounting. # noqa: E501
|
|
423
|
+
:rtype: str
|
|
424
|
+
"""
|
|
425
|
+
return self._replication_filter
|
|
426
|
+
|
|
427
|
+
@replication_filter.setter
|
|
428
|
+
def replication_filter(self, replication_filter):
|
|
429
|
+
"""Sets the replication_filter of this Mounting.
|
|
430
|
+
|
|
431
|
+
Filter level used for replication of large tables # noqa: E501
|
|
432
|
+
|
|
433
|
+
:param replication_filter: The replication_filter of this Mounting. # noqa: E501
|
|
434
|
+
:type: str
|
|
435
|
+
"""
|
|
436
|
+
allowed_values = ["NotForReplication", "ForReplication"] # noqa: E501
|
|
437
|
+
if replication_filter not in allowed_values:
|
|
438
|
+
raise ValueError(
|
|
439
|
+
"Invalid value for `replication_filter` ({0}), must be one of {1}" # noqa: E501
|
|
440
|
+
.format(replication_filter, allowed_values)
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
self._replication_filter = replication_filter
|
|
444
|
+
|
|
445
|
+
def to_dict(self):
|
|
446
|
+
"""Returns the model properties as a dict"""
|
|
447
|
+
result = {}
|
|
448
|
+
|
|
449
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
450
|
+
value = getattr(self, attr)
|
|
451
|
+
if isinstance(value, list):
|
|
452
|
+
result[attr] = list(map(
|
|
453
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
454
|
+
value
|
|
455
|
+
))
|
|
456
|
+
elif hasattr(value, "to_dict"):
|
|
457
|
+
result[attr] = value.to_dict()
|
|
458
|
+
elif isinstance(value, dict):
|
|
459
|
+
result[attr] = dict(map(
|
|
460
|
+
lambda item: (item[0], item[1].to_dict())
|
|
461
|
+
if hasattr(item[1], "to_dict") else item,
|
|
462
|
+
value.items()
|
|
463
|
+
))
|
|
464
|
+
else:
|
|
465
|
+
result[attr] = value
|
|
466
|
+
if issubclass(Mounting, dict):
|
|
467
|
+
for key, value in self.items():
|
|
468
|
+
result[key] = value
|
|
469
|
+
|
|
470
|
+
return result
|
|
471
|
+
|
|
472
|
+
def to_str(self):
|
|
473
|
+
"""Returns the string representation of the model"""
|
|
474
|
+
return pprint.pformat(self.to_dict())
|
|
475
|
+
|
|
476
|
+
def __repr__(self):
|
|
477
|
+
"""For `print` and `pprint`"""
|
|
478
|
+
return self.to_str()
|
|
479
|
+
|
|
480
|
+
def __eq__(self, other):
|
|
481
|
+
"""Returns true if both objects are equal"""
|
|
482
|
+
if not isinstance(other, Mounting):
|
|
483
|
+
return False
|
|
484
|
+
|
|
485
|
+
return self.__dict__ == other.__dict__
|
|
486
|
+
|
|
487
|
+
def __ne__(self, other):
|
|
488
|
+
"""Returns true if both objects are not equal"""
|
|
489
|
+
return not self == other
|
teamdbapi/models/parameter.py
CHANGED