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 FileRevisionInfo(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
+ 'file_path': 'str',
33
+ 'revision_name': 'str',
34
+ 'revision_maturity': 'int',
35
+ 'revision_comment': 'str'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'file_path': 'FilePath',
40
+ 'revision_name': 'RevisionName',
41
+ 'revision_maturity': 'RevisionMaturity',
42
+ 'revision_comment': 'RevisionComment'
43
+ }
44
+
45
+ def __init__(self, file_path=None, revision_name=None, revision_maturity=None, revision_comment=None): # noqa: E501
46
+ """FileRevisionInfo - a model defined in Swagger""" # noqa: E501
47
+ self._file_path = None
48
+ self._revision_name = None
49
+ self._revision_maturity = None
50
+ self._revision_comment = None
51
+ self.discriminator = None
52
+ self.file_path = file_path
53
+ self.revision_name = revision_name
54
+ if revision_maturity is not None:
55
+ self.revision_maturity = revision_maturity
56
+ if revision_comment is not None:
57
+ self.revision_comment = revision_comment
58
+
59
+ @property
60
+ def file_path(self):
61
+ """Gets the file_path of this FileRevisionInfo. # noqa: E501
62
+
63
+ The path to the file containing the revisions to import # noqa: E501
64
+
65
+ :return: The file_path of this FileRevisionInfo. # noqa: E501
66
+ :rtype: str
67
+ """
68
+ return self._file_path
69
+
70
+ @file_path.setter
71
+ def file_path(self, file_path):
72
+ """Sets the file_path of this FileRevisionInfo.
73
+
74
+ The path to the file containing the revisions to import # noqa: E501
75
+
76
+ :param file_path: The file_path of this FileRevisionInfo. # noqa: E501
77
+ :type: str
78
+ """
79
+ if file_path is None:
80
+ raise ValueError("Invalid value for `file_path`, must not be `None`") # noqa: E501
81
+
82
+ self._file_path = file_path
83
+
84
+ @property
85
+ def revision_name(self):
86
+ """Gets the revision_name of this FileRevisionInfo. # noqa: E501
87
+
88
+ The revision name used to create new revisions # noqa: E501
89
+
90
+ :return: The revision_name of this FileRevisionInfo. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._revision_name
94
+
95
+ @revision_name.setter
96
+ def revision_name(self, revision_name):
97
+ """Sets the revision_name of this FileRevisionInfo.
98
+
99
+ The revision name used to create new revisions # noqa: E501
100
+
101
+ :param revision_name: The revision_name of this FileRevisionInfo. # noqa: E501
102
+ :type: str
103
+ """
104
+ if revision_name is None:
105
+ raise ValueError("Invalid value for `revision_name`, must not be `None`") # noqa: E501
106
+
107
+ self._revision_name = revision_name
108
+
109
+ @property
110
+ def revision_maturity(self):
111
+ """Gets the revision_maturity of this FileRevisionInfo. # noqa: E501
112
+
113
+ The revision maturity used when new revisions are created or null is not needed # noqa: E501
114
+
115
+ :return: The revision_maturity of this FileRevisionInfo. # noqa: E501
116
+ :rtype: int
117
+ """
118
+ return self._revision_maturity
119
+
120
+ @revision_maturity.setter
121
+ def revision_maturity(self, revision_maturity):
122
+ """Sets the revision_maturity of this FileRevisionInfo.
123
+
124
+ The revision maturity used when new revisions are created or null is not needed # noqa: E501
125
+
126
+ :param revision_maturity: The revision_maturity of this FileRevisionInfo. # noqa: E501
127
+ :type: int
128
+ """
129
+
130
+ self._revision_maturity = revision_maturity
131
+
132
+ @property
133
+ def revision_comment(self):
134
+ """Gets the revision_comment of this FileRevisionInfo. # noqa: E501
135
+
136
+ The revision comment used when new revisions are created or null is not needed # noqa: E501
137
+
138
+ :return: The revision_comment of this FileRevisionInfo. # noqa: E501
139
+ :rtype: str
140
+ """
141
+ return self._revision_comment
142
+
143
+ @revision_comment.setter
144
+ def revision_comment(self, revision_comment):
145
+ """Sets the revision_comment of this FileRevisionInfo.
146
+
147
+ The revision comment used when new revisions are created or null is not needed # noqa: E501
148
+
149
+ :param revision_comment: The revision_comment of this FileRevisionInfo. # noqa: E501
150
+ :type: str
151
+ """
152
+
153
+ self._revision_comment = revision_comment
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(FileRevisionInfo, 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, FileRevisionInfo):
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,173 @@
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
+ from teamdbapi.models.file_revision_info import FileRevisionInfo # noqa: F401,E501
18
+
19
+
20
+ class ImportRevisionsArgs(object):
21
+ """NOTE: This class is auto generated by the swagger code generator program.
22
+
23
+ Do not edit the class manually.
24
+ """
25
+ """
26
+ Attributes:
27
+ swagger_types (dict): The key is attribute name
28
+ and the value is attribute type.
29
+ attribute_map (dict): The key is attribute name
30
+ and the value is json key in definition.
31
+ """
32
+ swagger_types = {
33
+ 'version_id': 'str',
34
+ 'file_revision_infos': 'list[FileRevisionInfo]',
35
+ 'ignore_load_file_warning': 'bool'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'version_id': 'VersionId',
40
+ 'file_revision_infos': 'FileRevisionInfos',
41
+ 'ignore_load_file_warning': 'IgnoreLoadFileWarning'
42
+ }
43
+
44
+ def __init__(self, version_id=None, file_revision_infos=None, ignore_load_file_warning=None): # noqa: E501
45
+ """ImportRevisionsArgs - a model defined in Swagger""" # noqa: E501
46
+ self._version_id = None
47
+ self._file_revision_infos = None
48
+ self._ignore_load_file_warning = None
49
+ self.discriminator = None
50
+ self.version_id = version_id
51
+ self.file_revision_infos = file_revision_infos
52
+ self.ignore_load_file_warning = ignore_load_file_warning
53
+
54
+ @property
55
+ def version_id(self):
56
+ """Gets the version_id of this ImportRevisionsArgs. # noqa: E501
57
+
58
+ The version unique identifier to which import the data # noqa: E501
59
+
60
+ :return: The version_id of this ImportRevisionsArgs. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._version_id
64
+
65
+ @version_id.setter
66
+ def version_id(self, version_id):
67
+ """Sets the version_id of this ImportRevisionsArgs.
68
+
69
+ The version unique identifier to which import the data # noqa: E501
70
+
71
+ :param version_id: The version_id of this ImportRevisionsArgs. # noqa: E501
72
+ :type: str
73
+ """
74
+ if version_id is None:
75
+ raise ValueError("Invalid value for `version_id`, must not be `None`") # noqa: E501
76
+
77
+ self._version_id = version_id
78
+
79
+ @property
80
+ def file_revision_infos(self):
81
+ """Gets the file_revision_infos of this ImportRevisionsArgs. # noqa: E501
82
+
83
+ The paths to the files to import # noqa: E501
84
+
85
+ :return: The file_revision_infos of this ImportRevisionsArgs. # noqa: E501
86
+ :rtype: list[FileRevisionInfo]
87
+ """
88
+ return self._file_revision_infos
89
+
90
+ @file_revision_infos.setter
91
+ def file_revision_infos(self, file_revision_infos):
92
+ """Sets the file_revision_infos of this ImportRevisionsArgs.
93
+
94
+ The paths to the files to import # noqa: E501
95
+
96
+ :param file_revision_infos: The file_revision_infos of this ImportRevisionsArgs. # noqa: E501
97
+ :type: list[FileRevisionInfo]
98
+ """
99
+ if file_revision_infos is None:
100
+ raise ValueError("Invalid value for `file_revision_infos`, must not be `None`") # noqa: E501
101
+
102
+ self._file_revision_infos = file_revision_infos
103
+
104
+ @property
105
+ def ignore_load_file_warning(self):
106
+ """Gets the ignore_load_file_warning of this ImportRevisionsArgs. # noqa: E501
107
+
108
+ True to ignore the warnings detected before importing the file and continue the import process if they are not blocking. False to stop the import if a warning is detected. # noqa: E501
109
+
110
+ :return: The ignore_load_file_warning of this ImportRevisionsArgs. # noqa: E501
111
+ :rtype: bool
112
+ """
113
+ return self._ignore_load_file_warning
114
+
115
+ @ignore_load_file_warning.setter
116
+ def ignore_load_file_warning(self, ignore_load_file_warning):
117
+ """Sets the ignore_load_file_warning of this ImportRevisionsArgs.
118
+
119
+ True to ignore the warnings detected before importing the file and continue the import process if they are not blocking. False to stop the import if a warning is detected. # noqa: E501
120
+
121
+ :param ignore_load_file_warning: The ignore_load_file_warning of this ImportRevisionsArgs. # noqa: E501
122
+ :type: bool
123
+ """
124
+ if ignore_load_file_warning is None:
125
+ raise ValueError("Invalid value for `ignore_load_file_warning`, must not be `None`") # noqa: E501
126
+
127
+ self._ignore_load_file_warning = ignore_load_file_warning
128
+
129
+ def to_dict(self):
130
+ """Returns the model properties as a dict"""
131
+ result = {}
132
+
133
+ for attr, _ in six.iteritems(self.swagger_types):
134
+ value = getattr(self, attr)
135
+ if isinstance(value, list):
136
+ result[attr] = list(map(
137
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
138
+ value
139
+ ))
140
+ elif hasattr(value, "to_dict"):
141
+ result[attr] = value.to_dict()
142
+ elif isinstance(value, dict):
143
+ result[attr] = dict(map(
144
+ lambda item: (item[0], item[1].to_dict())
145
+ if hasattr(item[1], "to_dict") else item,
146
+ value.items()
147
+ ))
148
+ else:
149
+ result[attr] = value
150
+ if issubclass(ImportRevisionsArgs, dict):
151
+ for key, value in self.items():
152
+ result[key] = value
153
+
154
+ return result
155
+
156
+ def to_str(self):
157
+ """Returns the string representation of the model"""
158
+ return pprint.pformat(self.to_dict())
159
+
160
+ def __repr__(self):
161
+ """For `print` and `pprint`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ImportRevisionsArgs):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,197 @@
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 ImportRevisionsInfo(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
+ 'parameter_id': 'str',
34
+ 'parameter_name': 'str',
35
+ 'is_new_revision': 'bool'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'revision_id': 'RevisionId',
40
+ 'parameter_id': 'ParameterId',
41
+ 'parameter_name': 'ParameterName',
42
+ 'is_new_revision': 'IsNewRevision'
43
+ }
44
+
45
+ def __init__(self, revision_id=None, parameter_id=None, parameter_name=None, is_new_revision=None): # noqa: E501
46
+ """ImportRevisionsInfo - a model defined in Swagger""" # noqa: E501
47
+ self._revision_id = None
48
+ self._parameter_id = None
49
+ self._parameter_name = None
50
+ self._is_new_revision = None
51
+ self.discriminator = None
52
+ if revision_id is not None:
53
+ self.revision_id = revision_id
54
+ if parameter_id is not None:
55
+ self.parameter_id = parameter_id
56
+ if parameter_name is not None:
57
+ self.parameter_name = parameter_name
58
+ if is_new_revision is not None:
59
+ self.is_new_revision = is_new_revision
60
+
61
+ @property
62
+ def revision_id(self):
63
+ """Gets the revision_id of this ImportRevisionsInfo. # noqa: E501
64
+
65
+ The revision Id # noqa: E501
66
+
67
+ :return: The revision_id of this ImportRevisionsInfo. # noqa: E501
68
+ :rtype: str
69
+ """
70
+ return self._revision_id
71
+
72
+ @revision_id.setter
73
+ def revision_id(self, revision_id):
74
+ """Sets the revision_id of this ImportRevisionsInfo.
75
+
76
+ The revision Id # noqa: E501
77
+
78
+ :param revision_id: The revision_id of this ImportRevisionsInfo. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._revision_id = revision_id
83
+
84
+ @property
85
+ def parameter_id(self):
86
+ """Gets the parameter_id of this ImportRevisionsInfo. # noqa: E501
87
+
88
+ The revision parameter id # noqa: E501
89
+
90
+ :return: The parameter_id of this ImportRevisionsInfo. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._parameter_id
94
+
95
+ @parameter_id.setter
96
+ def parameter_id(self, parameter_id):
97
+ """Sets the parameter_id of this ImportRevisionsInfo.
98
+
99
+ The revision parameter id # noqa: E501
100
+
101
+ :param parameter_id: The parameter_id of this ImportRevisionsInfo. # noqa: E501
102
+ :type: str
103
+ """
104
+
105
+ self._parameter_id = parameter_id
106
+
107
+ @property
108
+ def parameter_name(self):
109
+ """Gets the parameter_name of this ImportRevisionsInfo. # noqa: E501
110
+
111
+ The revision parameter name # noqa: E501
112
+
113
+ :return: The parameter_name of this ImportRevisionsInfo. # noqa: E501
114
+ :rtype: str
115
+ """
116
+ return self._parameter_name
117
+
118
+ @parameter_name.setter
119
+ def parameter_name(self, parameter_name):
120
+ """Sets the parameter_name of this ImportRevisionsInfo.
121
+
122
+ The revision parameter name # noqa: E501
123
+
124
+ :param parameter_name: The parameter_name of this ImportRevisionsInfo. # noqa: E501
125
+ :type: str
126
+ """
127
+
128
+ self._parameter_name = parameter_name
129
+
130
+ @property
131
+ def is_new_revision(self):
132
+ """Gets the is_new_revision of this ImportRevisionsInfo. # noqa: E501
133
+
134
+ True when the revision has been created during the import. If false, the revision already existed. # noqa: E501
135
+
136
+ :return: The is_new_revision of this ImportRevisionsInfo. # noqa: E501
137
+ :rtype: bool
138
+ """
139
+ return self._is_new_revision
140
+
141
+ @is_new_revision.setter
142
+ def is_new_revision(self, is_new_revision):
143
+ """Sets the is_new_revision of this ImportRevisionsInfo.
144
+
145
+ True when the revision has been created during the import. If false, the revision already existed. # noqa: E501
146
+
147
+ :param is_new_revision: The is_new_revision of this ImportRevisionsInfo. # noqa: E501
148
+ :type: bool
149
+ """
150
+
151
+ self._is_new_revision = is_new_revision
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.swagger_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ result[attr] = value
174
+ if issubclass(ImportRevisionsInfo, dict):
175
+ for key, value in self.items():
176
+ result[key] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ return pprint.pformat(self.to_dict())
183
+
184
+ def __repr__(self):
185
+ """For `print` and `pprint`"""
186
+ return self.to_str()
187
+
188
+ def __eq__(self, other):
189
+ """Returns true if both objects are equal"""
190
+ if not isinstance(other, ImportRevisionsInfo):
191
+ return False
192
+
193
+ return self.__dict__ == other.__dict__
194
+
195
+ def __ne__(self, other):
196
+ """Returns true if both objects are not equal"""
197
+ return not self == other