teamdbapi 3.0.0__py3-none-any.whl → 3.2.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.
@@ -0,0 +1,199 @@
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 IssueType(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
+ 'id': 'str',
33
+ 'name': 'str',
34
+ 'default': 'bool',
35
+ 'obsolete': 'bool'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'id': 'Id',
40
+ 'name': 'Name',
41
+ 'default': 'Default',
42
+ 'obsolete': 'Obsolete'
43
+ }
44
+
45
+ def __init__(self, id=None, name=None, default=None, obsolete=None): # noqa: E501
46
+ """IssueType - a model defined in Swagger""" # noqa: E501
47
+ self._id = None
48
+ self._name = None
49
+ self._default = None
50
+ self._obsolete = None
51
+ self.discriminator = None
52
+ self.id = id
53
+ self.name = name
54
+ if default is not None:
55
+ self.default = default
56
+ if obsolete is not None:
57
+ self.obsolete = obsolete
58
+
59
+ @property
60
+ def id(self):
61
+ """Gets the id of this IssueType. # noqa: E501
62
+
63
+ The Id of the item. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new issue list item # noqa: E501
64
+
65
+ :return: The id of this IssueType. # noqa: E501
66
+ :rtype: str
67
+ """
68
+ return self._id
69
+
70
+ @id.setter
71
+ def id(self, id):
72
+ """Sets the id of this IssueType.
73
+
74
+ The Id of the item. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new issue list item # noqa: E501
75
+
76
+ :param id: The id of this IssueType. # noqa: E501
77
+ :type: str
78
+ """
79
+ if id is None:
80
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
81
+
82
+ self._id = id
83
+
84
+ @property
85
+ def name(self):
86
+ """Gets the name of this IssueType. # noqa: E501
87
+
88
+ The name of the item. # noqa: E501
89
+
90
+ :return: The name of this IssueType. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._name
94
+
95
+ @name.setter
96
+ def name(self, name):
97
+ """Sets the name of this IssueType.
98
+
99
+ The name of the item. # noqa: E501
100
+
101
+ :param name: The name of this IssueType. # noqa: E501
102
+ :type: str
103
+ """
104
+ if name is None:
105
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
106
+
107
+ self._name = name
108
+
109
+ @property
110
+ def default(self):
111
+ """Gets the default of this IssueType. # noqa: E501
112
+
113
+ Define whether the item is the default one or not. # noqa: E501
114
+
115
+ :return: The default of this IssueType. # noqa: E501
116
+ :rtype: bool
117
+ """
118
+ return self._default
119
+
120
+ @default.setter
121
+ def default(self, default):
122
+ """Sets the default of this IssueType.
123
+
124
+ Define whether the item is the default one or not. # noqa: E501
125
+
126
+ :param default: The default of this IssueType. # noqa: E501
127
+ :type: bool
128
+ """
129
+
130
+ self._default = default
131
+
132
+ @property
133
+ def obsolete(self):
134
+ """Gets the obsolete of this IssueType. # noqa: E501
135
+
136
+ Define whether the item is obsolete or not. # noqa: E501
137
+
138
+ :return: The obsolete of this IssueType. # noqa: E501
139
+ :rtype: bool
140
+ """
141
+ return self._obsolete
142
+
143
+ @obsolete.setter
144
+ def obsolete(self, obsolete):
145
+ """Sets the obsolete of this IssueType.
146
+
147
+ Define whether the item is obsolete or not. # noqa: E501
148
+
149
+ :param obsolete: The obsolete of this IssueType. # noqa: E501
150
+ :type: bool
151
+ """
152
+
153
+ self._obsolete = obsolete
154
+
155
+ def to_dict(self):
156
+ """Returns the model properties as a dict"""
157
+ result = {}
158
+
159
+ for attr, _ in six.iteritems(self.swagger_types):
160
+ value = getattr(self, attr)
161
+ if isinstance(value, list):
162
+ result[attr] = list(map(
163
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
164
+ value
165
+ ))
166
+ elif hasattr(value, "to_dict"):
167
+ result[attr] = value.to_dict()
168
+ elif isinstance(value, dict):
169
+ result[attr] = dict(map(
170
+ lambda item: (item[0], item[1].to_dict())
171
+ if hasattr(item[1], "to_dict") else item,
172
+ value.items()
173
+ ))
174
+ else:
175
+ result[attr] = value
176
+ if issubclass(IssueType, dict):
177
+ for key, value in self.items():
178
+ result[key] = value
179
+
180
+ return result
181
+
182
+ def to_str(self):
183
+ """Returns the string representation of the model"""
184
+ return pprint.pformat(self.to_dict())
185
+
186
+ def __repr__(self):
187
+ """For `print` and `pprint`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, IssueType):
193
+ return False
194
+
195
+ return self.__dict__ == other.__dict__
196
+
197
+ def __ne__(self, other):
198
+ """Returns true if both objects are not equal"""
199
+ return not self == other
@@ -0,0 +1,199 @@
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 IssueWorkflow(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
+ 'id': 'str',
33
+ 'name': 'str',
34
+ 'description': 'str',
35
+ 'default_report_id': 'str'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'id': 'Id',
40
+ 'name': 'Name',
41
+ 'description': 'Description',
42
+ 'default_report_id': 'DefaultReportId'
43
+ }
44
+
45
+ def __init__(self, id=None, name=None, description=None, default_report_id=None): # noqa: E501
46
+ """IssueWorkflow - a model defined in Swagger""" # noqa: E501
47
+ self._id = None
48
+ self._name = None
49
+ self._description = None
50
+ self._default_report_id = None
51
+ self.discriminator = None
52
+ self.id = id
53
+ self.name = name
54
+ if description is not None:
55
+ self.description = description
56
+ if default_report_id is not None:
57
+ self.default_report_id = default_report_id
58
+
59
+ @property
60
+ def id(self):
61
+ """Gets the id of this IssueWorkflow. # noqa: E501
62
+
63
+ Unique identifier of the workflow Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new workflow # noqa: E501
64
+
65
+ :return: The id of this IssueWorkflow. # noqa: E501
66
+ :rtype: str
67
+ """
68
+ return self._id
69
+
70
+ @id.setter
71
+ def id(self, id):
72
+ """Sets the id of this IssueWorkflow.
73
+
74
+ Unique identifier of the workflow Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new workflow # noqa: E501
75
+
76
+ :param id: The id of this IssueWorkflow. # noqa: E501
77
+ :type: str
78
+ """
79
+ if id is None:
80
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
81
+
82
+ self._id = id
83
+
84
+ @property
85
+ def name(self):
86
+ """Gets the name of this IssueWorkflow. # noqa: E501
87
+
88
+ Name of the workflow # noqa: E501
89
+
90
+ :return: The name of this IssueWorkflow. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._name
94
+
95
+ @name.setter
96
+ def name(self, name):
97
+ """Sets the name of this IssueWorkflow.
98
+
99
+ Name of the workflow # noqa: E501
100
+
101
+ :param name: The name of this IssueWorkflow. # noqa: E501
102
+ :type: str
103
+ """
104
+ if name is None:
105
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
106
+
107
+ self._name = name
108
+
109
+ @property
110
+ def description(self):
111
+ """Gets the description of this IssueWorkflow. # noqa: E501
112
+
113
+ Description of the workflow # noqa: E501
114
+
115
+ :return: The description of this IssueWorkflow. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._description
119
+
120
+ @description.setter
121
+ def description(self, description):
122
+ """Sets the description of this IssueWorkflow.
123
+
124
+ Description of the workflow # noqa: E501
125
+
126
+ :param description: The description of this IssueWorkflow. # noqa: E501
127
+ :type: str
128
+ """
129
+
130
+ self._description = description
131
+
132
+ @property
133
+ def default_report_id(self):
134
+ """Gets the default_report_id of this IssueWorkflow. # noqa: E501
135
+
136
+ Unique identifier of the report associated to the workflow # noqa: E501
137
+
138
+ :return: The default_report_id of this IssueWorkflow. # noqa: E501
139
+ :rtype: str
140
+ """
141
+ return self._default_report_id
142
+
143
+ @default_report_id.setter
144
+ def default_report_id(self, default_report_id):
145
+ """Sets the default_report_id of this IssueWorkflow.
146
+
147
+ Unique identifier of the report associated to the workflow # noqa: E501
148
+
149
+ :param default_report_id: The default_report_id of this IssueWorkflow. # noqa: E501
150
+ :type: str
151
+ """
152
+
153
+ self._default_report_id = default_report_id
154
+
155
+ def to_dict(self):
156
+ """Returns the model properties as a dict"""
157
+ result = {}
158
+
159
+ for attr, _ in six.iteritems(self.swagger_types):
160
+ value = getattr(self, attr)
161
+ if isinstance(value, list):
162
+ result[attr] = list(map(
163
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
164
+ value
165
+ ))
166
+ elif hasattr(value, "to_dict"):
167
+ result[attr] = value.to_dict()
168
+ elif isinstance(value, dict):
169
+ result[attr] = dict(map(
170
+ lambda item: (item[0], item[1].to_dict())
171
+ if hasattr(item[1], "to_dict") else item,
172
+ value.items()
173
+ ))
174
+ else:
175
+ result[attr] = value
176
+ if issubclass(IssueWorkflow, dict):
177
+ for key, value in self.items():
178
+ result[key] = value
179
+
180
+ return result
181
+
182
+ def to_str(self):
183
+ """Returns the string representation of the model"""
184
+ return pprint.pformat(self.to_dict())
185
+
186
+ def __repr__(self):
187
+ """For `print` and `pprint`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, IssueWorkflow):
193
+ return False
194
+
195
+ return self.__dict__ == other.__dict__
196
+
197
+ def __ne__(self, other):
198
+ """Returns true if both objects are not equal"""
199
+ return not self == other
teamdbapi/models/part.py CHANGED
@@ -59,7 +59,8 @@ class Part(object):
59
59
  'criteria_set_id': 'str',
60
60
  'inherited_status': 'bool',
61
61
  'min_weight': 'float',
62
- 'max_weight': 'float'
62
+ 'max_weight': 'float',
63
+ 'is_sensor': 'bool'
63
64
  }
64
65
 
65
66
  attribute_map = {
@@ -93,10 +94,11 @@ class Part(object):
93
94
  'criteria_set_id': 'CriteriaSetId',
94
95
  'inherited_status': 'InheritedStatus',
95
96
  'min_weight': 'MinWeight',
96
- 'max_weight': 'MaxWeight'
97
+ 'max_weight': 'MaxWeight',
98
+ 'is_sensor': 'IsSensor'
97
99
  }
98
100
 
99
- def __init__(self, part_id=None, is_lifed=None, part_name=None, manufacturer_number=None, description=None, tags=None, is_class=None, has_expiration_date=None, max_distance=None, min_distance=None, max_time=None, date_creation_utc=None, creator=None, last_update_date_utc=None, last_update_user=None, part_status=None, part_type=None, manufacturer=None, parent_part_class=None, icon_id=None, department=None, annotation=None, multi_manufacturer=None, classification_code=None, max_distance_factored=None, factor_id=None, max_energy=None, criteria_set_id=None, inherited_status=None, min_weight=None, max_weight=None): # noqa: E501
101
+ def __init__(self, part_id=None, is_lifed=None, part_name=None, manufacturer_number=None, description=None, tags=None, is_class=None, has_expiration_date=None, max_distance=None, min_distance=None, max_time=None, date_creation_utc=None, creator=None, last_update_date_utc=None, last_update_user=None, part_status=None, part_type=None, manufacturer=None, parent_part_class=None, icon_id=None, department=None, annotation=None, multi_manufacturer=None, classification_code=None, max_distance_factored=None, factor_id=None, max_energy=None, criteria_set_id=None, inherited_status=None, min_weight=None, max_weight=None, is_sensor=None): # noqa: E501
100
102
  """Part - a model defined in Swagger""" # noqa: E501
101
103
  self._part_id = None
102
104
  self._is_lifed = None
@@ -129,6 +131,7 @@ class Part(object):
129
131
  self._inherited_status = None
130
132
  self._min_weight = None
131
133
  self._max_weight = None
134
+ self._is_sensor = None
132
135
  self.discriminator = None
133
136
  self.part_id = part_id
134
137
  if is_lifed is not None:
@@ -188,6 +191,8 @@ class Part(object):
188
191
  self.min_weight = min_weight
189
192
  if max_weight is not None:
190
193
  self.max_weight = max_weight
194
+ if is_sensor is not None:
195
+ self.is_sensor = is_sensor
191
196
 
192
197
  @property
193
198
  def part_id(self):
@@ -916,6 +921,29 @@ class Part(object):
916
921
 
917
922
  self._max_weight = max_weight
918
923
 
924
+ @property
925
+ def is_sensor(self):
926
+ """Gets the is_sensor of this Part. # noqa: E501
927
+
928
+ Indicates whether the part is a sensor # noqa: E501
929
+
930
+ :return: The is_sensor of this Part. # noqa: E501
931
+ :rtype: bool
932
+ """
933
+ return self._is_sensor
934
+
935
+ @is_sensor.setter
936
+ def is_sensor(self, is_sensor):
937
+ """Sets the is_sensor of this Part.
938
+
939
+ Indicates whether the part is a sensor # noqa: E501
940
+
941
+ :param is_sensor: The is_sensor of this Part. # noqa: E501
942
+ :type: bool
943
+ """
944
+
945
+ self._is_sensor = is_sensor
946
+
919
947
  def to_dict(self):
920
948
  """Returns the model properties as a dict"""
921
949
  result = {}