-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcollector_version.py
308 lines (234 loc) · 9.91 KB
/
collector_version.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
# coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account programmatically. <br> <br> Note: <ul> <li> For Python SDKs, the REQUEST parameters can contain camelCase or an underscore. </li> <li> Both underscore and camelCase are supported if parameters are encapsulated within the body. </li> <li> Only camelCase is supported if parameters are encapsulated within the body and also if the user is passing raw JSON as REQUEST parameter. However, the RESPONSE parameters always contain an underscore. For example, you can use testLocation or test_location in the REQUEST parameter. But the RESPONSE parameter will always be test_location. </li> <li> The fields parameter only supports camelCase. </li> </ul> # noqa: E501
OpenAPI spec version: 3.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class CollectorVersion(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 = {
'feature': 'bool',
'stable': 'bool',
'release_epoch': 'int',
'has32bit_windows': 'bool',
'has32bit_linux': 'bool',
'major_version': 'int',
'minor_version': 'int',
'mandatory': 'bool'
}
attribute_map = {
'feature': 'feature',
'stable': 'stable',
'release_epoch': 'releaseEpoch',
'has32bit_windows': 'has32bitWindows',
'has32bit_linux': 'has32bitLinux',
'major_version': 'majorVersion',
'minor_version': 'minorVersion',
'mandatory': 'mandatory'
}
def __init__(self, feature=None, stable=None, release_epoch=None, has32bit_windows=None, has32bit_linux=None, major_version=None, minor_version=None, mandatory=None): # noqa: E501
"""CollectorVersion - a model defined in Swagger""" # noqa: E501
self._feature = None
self._stable = None
self._release_epoch = None
self._has32bit_windows = None
self._has32bit_linux = None
self._major_version = None
self._minor_version = None
self._mandatory = None
self.discriminator = None
if feature is not None:
self.feature = feature
if stable is not None:
self.stable = stable
if release_epoch is not None:
self.release_epoch = release_epoch
if has32bit_windows is not None:
self.has32bit_windows = has32bit_windows
if has32bit_linux is not None:
self.has32bit_linux = has32bit_linux
if major_version is not None:
self.major_version = major_version
if minor_version is not None:
self.minor_version = minor_version
if mandatory is not None:
self.mandatory = mandatory
@property
def feature(self):
"""Gets the feature of this CollectorVersion. # noqa: E501
Specifies if this is a feature version # noqa: E501
:return: The feature of this CollectorVersion. # noqa: E501
:rtype: bool
"""
return self._feature
@feature.setter
def feature(self, feature):
"""Sets the feature of this CollectorVersion.
Specifies if this is a feature version # noqa: E501
:param feature: The feature of this CollectorVersion. # noqa: E501
:type: bool
"""
self._feature = feature
@property
def stable(self):
"""Gets the stable of this CollectorVersion. # noqa: E501
False for early release. True for general release # noqa: E501
:return: The stable of this CollectorVersion. # noqa: E501
:rtype: bool
"""
return self._stable
@stable.setter
def stable(self, stable):
"""Sets the stable of this CollectorVersion.
False for early release. True for general release # noqa: E501
:param stable: The stable of this CollectorVersion. # noqa: E501
:type: bool
"""
self._stable = stable
@property
def release_epoch(self):
"""Gets the release_epoch of this CollectorVersion. # noqa: E501
Release Epoch for official releases # noqa: E501
:return: The release_epoch of this CollectorVersion. # noqa: E501
:rtype: int
"""
return self._release_epoch
@release_epoch.setter
def release_epoch(self, release_epoch):
"""Sets the release_epoch of this CollectorVersion.
Release Epoch for official releases # noqa: E501
:param release_epoch: The release_epoch of this CollectorVersion. # noqa: E501
:type: int
"""
self._release_epoch = release_epoch
@property
def has32bit_windows(self):
"""Gets the has32bit_windows of this CollectorVersion. # noqa: E501
True if Windows collector available # noqa: E501
:return: The has32bit_windows of this CollectorVersion. # noqa: E501
:rtype: bool
"""
return self._has32bit_windows
@has32bit_windows.setter
def has32bit_windows(self, has32bit_windows):
"""Sets the has32bit_windows of this CollectorVersion.
True if Windows collector available # noqa: E501
:param has32bit_windows: The has32bit_windows of this CollectorVersion. # noqa: E501
:type: bool
"""
self._has32bit_windows = has32bit_windows
@property
def has32bit_linux(self):
"""Gets the has32bit_linux of this CollectorVersion. # noqa: E501
True if Linux collector available # noqa: E501
:return: The has32bit_linux of this CollectorVersion. # noqa: E501
:rtype: bool
"""
return self._has32bit_linux
@has32bit_linux.setter
def has32bit_linux(self, has32bit_linux):
"""Sets the has32bit_linux of this CollectorVersion.
True if Linux collector available # noqa: E501
:param has32bit_linux: The has32bit_linux of this CollectorVersion. # noqa: E501
:type: bool
"""
self._has32bit_linux = has32bit_linux
@property
def major_version(self):
"""Gets the major_version of this CollectorVersion. # noqa: E501
The collector major version # noqa: E501
:return: The major_version of this CollectorVersion. # noqa: E501
:rtype: int
"""
return self._major_version
@major_version.setter
def major_version(self, major_version):
"""Sets the major_version of this CollectorVersion.
The collector major version # noqa: E501
:param major_version: The major_version of this CollectorVersion. # noqa: E501
:type: int
"""
self._major_version = major_version
@property
def minor_version(self):
"""Gets the minor_version of this CollectorVersion. # noqa: E501
The collector minor version # noqa: E501
:return: The minor_version of this CollectorVersion. # noqa: E501
:rtype: int
"""
return self._minor_version
@minor_version.setter
def minor_version(self, minor_version):
"""Sets the minor_version of this CollectorVersion.
The collector minor version # noqa: E501
:param minor_version: The minor_version of this CollectorVersion. # noqa: E501
:type: int
"""
self._minor_version = minor_version
@property
def mandatory(self):
"""Gets the mandatory of this CollectorVersion. # noqa: E501
True if collector is a required release # noqa: E501
:return: The mandatory of this CollectorVersion. # noqa: E501
:rtype: bool
"""
return self._mandatory
@mandatory.setter
def mandatory(self, mandatory):
"""Sets the mandatory of this CollectorVersion.
True if collector is a required release # noqa: E501
:param mandatory: The mandatory of this CollectorVersion. # noqa: E501
:type: bool
"""
self._mandatory = mandatory
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(CollectorVersion, 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, CollectorVersion):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other