lockss-pyclient 0.1.0.dev2__py3-none-any.whl → 0.1.0.dev3__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.
- lockss/pyclient/__init__.py +8 -29
- lockss/pyclient/__main__.py +37 -0
- lockss/pyclient/_internal_common.py +395 -0
- lockss/pyclient/_internal_config.py +207 -0
- lockss/pyclient/_internal_crawler.py +251 -0
- lockss/pyclient/_internal_md.py +111 -0
- lockss/pyclient/_internal_poller.py +174 -0
- lockss/pyclient/_internal_rs.py +232 -0
- lockss/pyclient/cli.py +839 -0
- lockss/pyclient/config/__init__.py +15 -0
- lockss/pyclient/config/api/aus_api.py +14 -6
- lockss/pyclient/config/api/config_api.py +12 -12
- lockss/pyclient/config/api/utils_api.py +2 -2
- lockss/pyclient/config/configuration.py +1 -1
- lockss/pyclient/config/models/__init__.py +15 -0
- lockss/pyclient/config/models/access_type.py +90 -0
- lockss/pyclient/config/models/au_agreements.py +136 -0
- lockss/pyclient/config/models/au_config_page_info.py +140 -0
- lockss/pyclient/config/models/au_state_bean.py +942 -0
- lockss/pyclient/config/models/au_status.py +837 -8
- lockss/pyclient/config/models/au_suspect_url_versions.py +136 -0
- lockss/pyclient/config/models/check_substance_result.py +6 -22
- lockss/pyclient/config/models/dated_peer_id_set_impl.py +162 -0
- lockss/pyclient/config/models/hash_result.py +136 -0
- lockss/pyclient/config/models/page_info.py +226 -0
- lockss/pyclient/config/models/peer_agreement.py +188 -0
- lockss/pyclient/config/models/peer_agreements.py +136 -0
- lockss/pyclient/config/models/platform_configuration_ws_result.py +421 -8
- lockss/pyclient/config/models/platform_configuration_ws_result_daemon_version.py +188 -0
- lockss/pyclient/config/models/platform_configuration_ws_result_java_version.py +188 -0
- lockss/pyclient/config/models/platform_configuration_ws_result_platform.py +162 -0
- lockss/pyclient/config/models/substance_checker_state.py +91 -0
- lockss/pyclient/config/models/suspect_url_version.py +214 -0
- lockss/pyclient/config/swagger.yaml +2031 -0
- lockss/pyclient/crawler/__init__.py +1 -0
- lockss/pyclient/crawler/api/crawls_api.py +2 -2
- lockss/pyclient/crawler/configuration.py +1 -1
- lockss/pyclient/crawler/models/__init__.py +1 -0
- lockss/pyclient/crawler/models/crawl_desc.py +4 -12
- lockss/pyclient/crawler/models/crawl_kind_enum.py +90 -0
- lockss/pyclient/crawler/models/page_info.py +22 -24
- lockss/pyclient/crawler/swagger.yaml +1197 -0
- lockss/pyclient/md/configuration.py +1 -1
- lockss/pyclient/md/models/page_info.py +22 -24
- lockss/pyclient/md/swagger.yaml +583 -0
- lockss/pyclient/output.py +131 -0
- lockss/pyclient/poller/__init__.py +11 -5
- lockss/pyclient/poller/api/export_api.py +5 -5
- lockss/pyclient/poller/api/hash_api.py +3 -3
- lockss/pyclient/poller/api/poll_detail_api.py +42 -42
- lockss/pyclient/poller/api/poller_polls_api.py +18 -18
- lockss/pyclient/poller/api/service_api.py +2 -2
- lockss/pyclient/poller/api/voter_polls_api.py +18 -18
- lockss/pyclient/poller/configuration.py +1 -1
- lockss/pyclient/poller/models/__init__.py +11 -5
- lockss/pyclient/poller/models/export_file_type_enum.py +93 -0
- lockss/pyclient/poller/models/export_filename_translation_enum.py +91 -0
- lockss/pyclient/poller/models/page_info.py +226 -0
- lockss/pyclient/poller/models/poll_desc.py +3 -11
- lockss/pyclient/poller/models/poll_variant_enum.py +92 -0
- lockss/pyclient/poller/models/poller_page_info.py +140 -0
- lockss/pyclient/poller/models/repair_page_info.py +140 -0
- lockss/pyclient/poller/models/repair_type_enum.py +91 -0
- lockss/pyclient/poller/models/tally_type_enum.py +93 -0
- lockss/pyclient/poller/models/url_page_info.py +140 -0
- lockss/pyclient/poller/models/voter_page_info.py +140 -0
- lockss/pyclient/poller/models/voter_urls_enum.py +92 -0
- lockss/pyclient/poller/swagger.yaml +1658 -0
- lockss/pyclient/rs/__init__.py +6 -0
- lockss/pyclient/rs/api/artifacts_api.py +20 -20
- lockss/pyclient/rs/api/aus_api.py +5 -5
- lockss/pyclient/rs/api/repo_api.py +4 -4
- lockss/pyclient/rs/api/status_api.py +1 -1
- lockss/pyclient/rs/api/wayback_api.py +12 -12
- lockss/pyclient/rs/configuration.py +8 -1
- lockss/pyclient/rs/models/__init__.py +6 -0
- lockss/pyclient/rs/models/artifact.py +111 -81
- lockss/pyclient/rs/models/au_size.py +6 -0
- lockss/pyclient/rs/models/auid_page_info.py +2 -2
- lockss/pyclient/rs/models/bulk_au_op_enum.py +90 -0
- lockss/pyclient/rs/models/include_content_enum.py +91 -0
- lockss/pyclient/rs/models/page_info.py +26 -29
- lockss/pyclient/rs/models/pywb_match_enum.py +93 -0
- lockss/pyclient/rs/models/pywb_output_enum.py +90 -0
- lockss/pyclient/rs/models/pywb_sort_enum.py +91 -0
- lockss/pyclient/rs/models/storage_info.py +131 -80
- lockss/pyclient/rs/models/versions_enum.py +90 -0
- lockss/pyclient/rs/swagger.yaml +1306 -0
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/METADATA +10 -3
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/RECORD +93 -45
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/WHEEL +1 -1
- lockss_pyclient-0.1.0.dev3.dist-info/entry_points.txt +3 -0
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info/licenses}/LICENSE +0 -0
|
@@ -28,24 +28,104 @@ class PlatformConfigurationWsResult(object):
|
|
|
28
28
|
and the value is json key in definition.
|
|
29
29
|
"""
|
|
30
30
|
swagger_types = {
|
|
31
|
-
'host_name': 'str'
|
|
31
|
+
'host_name': 'str',
|
|
32
|
+
'ip_address': 'str',
|
|
33
|
+
'groups': 'list[str]',
|
|
34
|
+
'project': 'str',
|
|
35
|
+
'v3_identity': 'str',
|
|
36
|
+
'mail_relay': 'str',
|
|
37
|
+
'admin_email': 'str',
|
|
38
|
+
'disks': 'list[str]',
|
|
39
|
+
'current_time': 'int',
|
|
40
|
+
'uptime': 'int',
|
|
41
|
+
'daemon_version': 'PlatformConfigurationWsResultDaemonVersion',
|
|
42
|
+
'java_version': 'PlatformConfigurationWsResultJavaVersion',
|
|
43
|
+
'platform': 'PlatformConfigurationWsResultPlatform',
|
|
44
|
+
'current_working_directory': 'str',
|
|
45
|
+
'properties': 'list[str]',
|
|
46
|
+
'build_host': 'str',
|
|
47
|
+
'build_timestamp': 'int'
|
|
32
48
|
}
|
|
33
49
|
|
|
34
50
|
attribute_map = {
|
|
35
|
-
'host_name': 'hostName'
|
|
51
|
+
'host_name': 'hostName',
|
|
52
|
+
'ip_address': 'ipAddress',
|
|
53
|
+
'groups': 'groups',
|
|
54
|
+
'project': 'project',
|
|
55
|
+
'v3_identity': 'v3Identity',
|
|
56
|
+
'mail_relay': 'mailRelay',
|
|
57
|
+
'admin_email': 'adminEmail',
|
|
58
|
+
'disks': 'disks',
|
|
59
|
+
'current_time': 'currentTime',
|
|
60
|
+
'uptime': 'uptime',
|
|
61
|
+
'daemon_version': 'daemonVersion',
|
|
62
|
+
'java_version': 'javaVersion',
|
|
63
|
+
'platform': 'platform',
|
|
64
|
+
'current_working_directory': 'currentWorkingDirectory',
|
|
65
|
+
'properties': 'properties',
|
|
66
|
+
'build_host': 'buildHost',
|
|
67
|
+
'build_timestamp': 'buildTimestamp'
|
|
36
68
|
}
|
|
37
69
|
|
|
38
|
-
def __init__(self, host_name=None): # noqa: E501
|
|
70
|
+
def __init__(self, host_name=None, ip_address=None, groups=None, project=None, v3_identity=None, mail_relay=None, admin_email=None, disks=None, current_time=None, uptime=None, daemon_version=None, java_version=None, platform=None, current_working_directory=None, properties=None, build_host=None, build_timestamp=None): # noqa: E501
|
|
39
71
|
"""PlatformConfigurationWsResult - a model defined in Swagger""" # noqa: E501
|
|
40
72
|
self._host_name = None
|
|
73
|
+
self._ip_address = None
|
|
74
|
+
self._groups = None
|
|
75
|
+
self._project = None
|
|
76
|
+
self._v3_identity = None
|
|
77
|
+
self._mail_relay = None
|
|
78
|
+
self._admin_email = None
|
|
79
|
+
self._disks = None
|
|
80
|
+
self._current_time = None
|
|
81
|
+
self._uptime = None
|
|
82
|
+
self._daemon_version = None
|
|
83
|
+
self._java_version = None
|
|
84
|
+
self._platform = None
|
|
85
|
+
self._current_working_directory = None
|
|
86
|
+
self._properties = None
|
|
87
|
+
self._build_host = None
|
|
88
|
+
self._build_timestamp = None
|
|
41
89
|
self.discriminator = None
|
|
42
|
-
|
|
90
|
+
if host_name is not None:
|
|
91
|
+
self.host_name = host_name
|
|
92
|
+
if ip_address is not None:
|
|
93
|
+
self.ip_address = ip_address
|
|
94
|
+
if groups is not None:
|
|
95
|
+
self.groups = groups
|
|
96
|
+
if project is not None:
|
|
97
|
+
self.project = project
|
|
98
|
+
if v3_identity is not None:
|
|
99
|
+
self.v3_identity = v3_identity
|
|
100
|
+
if mail_relay is not None:
|
|
101
|
+
self.mail_relay = mail_relay
|
|
102
|
+
if admin_email is not None:
|
|
103
|
+
self.admin_email = admin_email
|
|
104
|
+
if disks is not None:
|
|
105
|
+
self.disks = disks
|
|
106
|
+
if current_time is not None:
|
|
107
|
+
self.current_time = current_time
|
|
108
|
+
if uptime is not None:
|
|
109
|
+
self.uptime = uptime
|
|
110
|
+
if daemon_version is not None:
|
|
111
|
+
self.daemon_version = daemon_version
|
|
112
|
+
if java_version is not None:
|
|
113
|
+
self.java_version = java_version
|
|
114
|
+
if platform is not None:
|
|
115
|
+
self.platform = platform
|
|
116
|
+
if current_working_directory is not None:
|
|
117
|
+
self.current_working_directory = current_working_directory
|
|
118
|
+
if properties is not None:
|
|
119
|
+
self.properties = properties
|
|
120
|
+
if build_host is not None:
|
|
121
|
+
self.build_host = build_host
|
|
122
|
+
if build_timestamp is not None:
|
|
123
|
+
self.build_timestamp = build_timestamp
|
|
43
124
|
|
|
44
125
|
@property
|
|
45
126
|
def host_name(self):
|
|
46
127
|
"""Gets the host_name of this PlatformConfigurationWsResult. # noqa: E501
|
|
47
128
|
|
|
48
|
-
name of the host server # noqa: E501
|
|
49
129
|
|
|
50
130
|
:return: The host_name of this PlatformConfigurationWsResult. # noqa: E501
|
|
51
131
|
:rtype: str
|
|
@@ -56,16 +136,349 @@ class PlatformConfigurationWsResult(object):
|
|
|
56
136
|
def host_name(self, host_name):
|
|
57
137
|
"""Sets the host_name of this PlatformConfigurationWsResult.
|
|
58
138
|
|
|
59
|
-
name of the host server # noqa: E501
|
|
60
139
|
|
|
61
140
|
:param host_name: The host_name of this PlatformConfigurationWsResult. # noqa: E501
|
|
62
141
|
:type: str
|
|
63
142
|
"""
|
|
64
|
-
if host_name is None:
|
|
65
|
-
raise ValueError("Invalid value for `host_name`, must not be `None`") # noqa: E501
|
|
66
143
|
|
|
67
144
|
self._host_name = host_name
|
|
68
145
|
|
|
146
|
+
@property
|
|
147
|
+
def ip_address(self):
|
|
148
|
+
"""Gets the ip_address of this PlatformConfigurationWsResult. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The ip_address of this PlatformConfigurationWsResult. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._ip_address
|
|
155
|
+
|
|
156
|
+
@ip_address.setter
|
|
157
|
+
def ip_address(self, ip_address):
|
|
158
|
+
"""Sets the ip_address of this PlatformConfigurationWsResult.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param ip_address: The ip_address of this PlatformConfigurationWsResult. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._ip_address = ip_address
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def groups(self):
|
|
169
|
+
"""Gets the groups of this PlatformConfigurationWsResult. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The groups of this PlatformConfigurationWsResult. # noqa: E501
|
|
173
|
+
:rtype: list[str]
|
|
174
|
+
"""
|
|
175
|
+
return self._groups
|
|
176
|
+
|
|
177
|
+
@groups.setter
|
|
178
|
+
def groups(self, groups):
|
|
179
|
+
"""Sets the groups of this PlatformConfigurationWsResult.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param groups: The groups of this PlatformConfigurationWsResult. # noqa: E501
|
|
183
|
+
:type: list[str]
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._groups = groups
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def project(self):
|
|
190
|
+
"""Gets the project of this PlatformConfigurationWsResult. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The project of this PlatformConfigurationWsResult. # noqa: E501
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._project
|
|
197
|
+
|
|
198
|
+
@project.setter
|
|
199
|
+
def project(self, project):
|
|
200
|
+
"""Sets the project of this PlatformConfigurationWsResult.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param project: The project of this PlatformConfigurationWsResult. # noqa: E501
|
|
204
|
+
:type: str
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._project = project
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
def v3_identity(self):
|
|
211
|
+
"""Gets the v3_identity of this PlatformConfigurationWsResult. # noqa: E501
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
:return: The v3_identity of this PlatformConfigurationWsResult. # noqa: E501
|
|
215
|
+
:rtype: str
|
|
216
|
+
"""
|
|
217
|
+
return self._v3_identity
|
|
218
|
+
|
|
219
|
+
@v3_identity.setter
|
|
220
|
+
def v3_identity(self, v3_identity):
|
|
221
|
+
"""Sets the v3_identity of this PlatformConfigurationWsResult.
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:param v3_identity: The v3_identity of this PlatformConfigurationWsResult. # noqa: E501
|
|
225
|
+
:type: str
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
self._v3_identity = v3_identity
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def mail_relay(self):
|
|
232
|
+
"""Gets the mail_relay of this PlatformConfigurationWsResult. # noqa: E501
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
:return: The mail_relay of this PlatformConfigurationWsResult. # noqa: E501
|
|
236
|
+
:rtype: str
|
|
237
|
+
"""
|
|
238
|
+
return self._mail_relay
|
|
239
|
+
|
|
240
|
+
@mail_relay.setter
|
|
241
|
+
def mail_relay(self, mail_relay):
|
|
242
|
+
"""Sets the mail_relay of this PlatformConfigurationWsResult.
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:param mail_relay: The mail_relay of this PlatformConfigurationWsResult. # noqa: E501
|
|
246
|
+
:type: str
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
self._mail_relay = mail_relay
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def admin_email(self):
|
|
253
|
+
"""Gets the admin_email of this PlatformConfigurationWsResult. # noqa: E501
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:return: The admin_email of this PlatformConfigurationWsResult. # noqa: E501
|
|
257
|
+
:rtype: str
|
|
258
|
+
"""
|
|
259
|
+
return self._admin_email
|
|
260
|
+
|
|
261
|
+
@admin_email.setter
|
|
262
|
+
def admin_email(self, admin_email):
|
|
263
|
+
"""Sets the admin_email of this PlatformConfigurationWsResult.
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
:param admin_email: The admin_email of this PlatformConfigurationWsResult. # noqa: E501
|
|
267
|
+
:type: str
|
|
268
|
+
"""
|
|
269
|
+
|
|
270
|
+
self._admin_email = admin_email
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def disks(self):
|
|
274
|
+
"""Gets the disks of this PlatformConfigurationWsResult. # noqa: E501
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
:return: The disks of this PlatformConfigurationWsResult. # noqa: E501
|
|
278
|
+
:rtype: list[str]
|
|
279
|
+
"""
|
|
280
|
+
return self._disks
|
|
281
|
+
|
|
282
|
+
@disks.setter
|
|
283
|
+
def disks(self, disks):
|
|
284
|
+
"""Sets the disks of this PlatformConfigurationWsResult.
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
:param disks: The disks of this PlatformConfigurationWsResult. # noqa: E501
|
|
288
|
+
:type: list[str]
|
|
289
|
+
"""
|
|
290
|
+
|
|
291
|
+
self._disks = disks
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
def current_time(self):
|
|
295
|
+
"""Gets the current_time of this PlatformConfigurationWsResult. # noqa: E501
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
:return: The current_time of this PlatformConfigurationWsResult. # noqa: E501
|
|
299
|
+
:rtype: int
|
|
300
|
+
"""
|
|
301
|
+
return self._current_time
|
|
302
|
+
|
|
303
|
+
@current_time.setter
|
|
304
|
+
def current_time(self, current_time):
|
|
305
|
+
"""Sets the current_time of this PlatformConfigurationWsResult.
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
:param current_time: The current_time of this PlatformConfigurationWsResult. # noqa: E501
|
|
309
|
+
:type: int
|
|
310
|
+
"""
|
|
311
|
+
|
|
312
|
+
self._current_time = current_time
|
|
313
|
+
|
|
314
|
+
@property
|
|
315
|
+
def uptime(self):
|
|
316
|
+
"""Gets the uptime of this PlatformConfigurationWsResult. # noqa: E501
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
:return: The uptime of this PlatformConfigurationWsResult. # noqa: E501
|
|
320
|
+
:rtype: int
|
|
321
|
+
"""
|
|
322
|
+
return self._uptime
|
|
323
|
+
|
|
324
|
+
@uptime.setter
|
|
325
|
+
def uptime(self, uptime):
|
|
326
|
+
"""Sets the uptime of this PlatformConfigurationWsResult.
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:param uptime: The uptime of this PlatformConfigurationWsResult. # noqa: E501
|
|
330
|
+
:type: int
|
|
331
|
+
"""
|
|
332
|
+
|
|
333
|
+
self._uptime = uptime
|
|
334
|
+
|
|
335
|
+
@property
|
|
336
|
+
def daemon_version(self):
|
|
337
|
+
"""Gets the daemon_version of this PlatformConfigurationWsResult. # noqa: E501
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
:return: The daemon_version of this PlatformConfigurationWsResult. # noqa: E501
|
|
341
|
+
:rtype: PlatformConfigurationWsResultDaemonVersion
|
|
342
|
+
"""
|
|
343
|
+
return self._daemon_version
|
|
344
|
+
|
|
345
|
+
@daemon_version.setter
|
|
346
|
+
def daemon_version(self, daemon_version):
|
|
347
|
+
"""Sets the daemon_version of this PlatformConfigurationWsResult.
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
:param daemon_version: The daemon_version of this PlatformConfigurationWsResult. # noqa: E501
|
|
351
|
+
:type: PlatformConfigurationWsResultDaemonVersion
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
self._daemon_version = daemon_version
|
|
355
|
+
|
|
356
|
+
@property
|
|
357
|
+
def java_version(self):
|
|
358
|
+
"""Gets the java_version of this PlatformConfigurationWsResult. # noqa: E501
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
:return: The java_version of this PlatformConfigurationWsResult. # noqa: E501
|
|
362
|
+
:rtype: PlatformConfigurationWsResultJavaVersion
|
|
363
|
+
"""
|
|
364
|
+
return self._java_version
|
|
365
|
+
|
|
366
|
+
@java_version.setter
|
|
367
|
+
def java_version(self, java_version):
|
|
368
|
+
"""Sets the java_version of this PlatformConfigurationWsResult.
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
:param java_version: The java_version of this PlatformConfigurationWsResult. # noqa: E501
|
|
372
|
+
:type: PlatformConfigurationWsResultJavaVersion
|
|
373
|
+
"""
|
|
374
|
+
|
|
375
|
+
self._java_version = java_version
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
def platform(self):
|
|
379
|
+
"""Gets the platform of this PlatformConfigurationWsResult. # noqa: E501
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
:return: The platform of this PlatformConfigurationWsResult. # noqa: E501
|
|
383
|
+
:rtype: PlatformConfigurationWsResultPlatform
|
|
384
|
+
"""
|
|
385
|
+
return self._platform
|
|
386
|
+
|
|
387
|
+
@platform.setter
|
|
388
|
+
def platform(self, platform):
|
|
389
|
+
"""Sets the platform of this PlatformConfigurationWsResult.
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
:param platform: The platform of this PlatformConfigurationWsResult. # noqa: E501
|
|
393
|
+
:type: PlatformConfigurationWsResultPlatform
|
|
394
|
+
"""
|
|
395
|
+
|
|
396
|
+
self._platform = platform
|
|
397
|
+
|
|
398
|
+
@property
|
|
399
|
+
def current_working_directory(self):
|
|
400
|
+
"""Gets the current_working_directory of this PlatformConfigurationWsResult. # noqa: E501
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
:return: The current_working_directory of this PlatformConfigurationWsResult. # noqa: E501
|
|
404
|
+
:rtype: str
|
|
405
|
+
"""
|
|
406
|
+
return self._current_working_directory
|
|
407
|
+
|
|
408
|
+
@current_working_directory.setter
|
|
409
|
+
def current_working_directory(self, current_working_directory):
|
|
410
|
+
"""Sets the current_working_directory of this PlatformConfigurationWsResult.
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
:param current_working_directory: The current_working_directory of this PlatformConfigurationWsResult. # noqa: E501
|
|
414
|
+
:type: str
|
|
415
|
+
"""
|
|
416
|
+
|
|
417
|
+
self._current_working_directory = current_working_directory
|
|
418
|
+
|
|
419
|
+
@property
|
|
420
|
+
def properties(self):
|
|
421
|
+
"""Gets the properties of this PlatformConfigurationWsResult. # noqa: E501
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
:return: The properties of this PlatformConfigurationWsResult. # noqa: E501
|
|
425
|
+
:rtype: list[str]
|
|
426
|
+
"""
|
|
427
|
+
return self._properties
|
|
428
|
+
|
|
429
|
+
@properties.setter
|
|
430
|
+
def properties(self, properties):
|
|
431
|
+
"""Sets the properties of this PlatformConfigurationWsResult.
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
:param properties: The properties of this PlatformConfigurationWsResult. # noqa: E501
|
|
435
|
+
:type: list[str]
|
|
436
|
+
"""
|
|
437
|
+
|
|
438
|
+
self._properties = properties
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
def build_host(self):
|
|
442
|
+
"""Gets the build_host of this PlatformConfigurationWsResult. # noqa: E501
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
:return: The build_host of this PlatformConfigurationWsResult. # noqa: E501
|
|
446
|
+
:rtype: str
|
|
447
|
+
"""
|
|
448
|
+
return self._build_host
|
|
449
|
+
|
|
450
|
+
@build_host.setter
|
|
451
|
+
def build_host(self, build_host):
|
|
452
|
+
"""Sets the build_host of this PlatformConfigurationWsResult.
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
:param build_host: The build_host of this PlatformConfigurationWsResult. # noqa: E501
|
|
456
|
+
:type: str
|
|
457
|
+
"""
|
|
458
|
+
|
|
459
|
+
self._build_host = build_host
|
|
460
|
+
|
|
461
|
+
@property
|
|
462
|
+
def build_timestamp(self):
|
|
463
|
+
"""Gets the build_timestamp of this PlatformConfigurationWsResult. # noqa: E501
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
:return: The build_timestamp of this PlatformConfigurationWsResult. # noqa: E501
|
|
467
|
+
:rtype: int
|
|
468
|
+
"""
|
|
469
|
+
return self._build_timestamp
|
|
470
|
+
|
|
471
|
+
@build_timestamp.setter
|
|
472
|
+
def build_timestamp(self, build_timestamp):
|
|
473
|
+
"""Sets the build_timestamp of this PlatformConfigurationWsResult.
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
:param build_timestamp: The build_timestamp of this PlatformConfigurationWsResult. # noqa: E501
|
|
477
|
+
:type: int
|
|
478
|
+
"""
|
|
479
|
+
|
|
480
|
+
self._build_timestamp = build_timestamp
|
|
481
|
+
|
|
69
482
|
def to_dict(self):
|
|
70
483
|
"""Returns the model properties as a dict"""
|
|
71
484
|
result = {}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Configuration Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Configuration Service # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0.0
|
|
9
|
+
Contact: lockss-support@lockss.org
|
|
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
|
+
class PlatformConfigurationWsResultDaemonVersion(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'full_version': 'str',
|
|
32
|
+
'major_version': 'int',
|
|
33
|
+
'minor_version': 'int',
|
|
34
|
+
'build_version': 'int'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'full_version': 'fullVersion',
|
|
39
|
+
'major_version': 'majorVersion',
|
|
40
|
+
'minor_version': 'minorVersion',
|
|
41
|
+
'build_version': 'buildVersion'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, full_version=None, major_version=None, minor_version=None, build_version=None): # noqa: E501
|
|
45
|
+
"""PlatformConfigurationWsResultDaemonVersion - a model defined in Swagger""" # noqa: E501
|
|
46
|
+
self._full_version = None
|
|
47
|
+
self._major_version = None
|
|
48
|
+
self._minor_version = None
|
|
49
|
+
self._build_version = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
if full_version is not None:
|
|
52
|
+
self.full_version = full_version
|
|
53
|
+
if major_version is not None:
|
|
54
|
+
self.major_version = major_version
|
|
55
|
+
if minor_version is not None:
|
|
56
|
+
self.minor_version = minor_version
|
|
57
|
+
if build_version is not None:
|
|
58
|
+
self.build_version = build_version
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def full_version(self):
|
|
62
|
+
"""Gets the full_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The full_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._full_version
|
|
69
|
+
|
|
70
|
+
@full_version.setter
|
|
71
|
+
def full_version(self, full_version):
|
|
72
|
+
"""Sets the full_version of this PlatformConfigurationWsResultDaemonVersion.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param full_version: The full_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._full_version = full_version
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def major_version(self):
|
|
83
|
+
"""Gets the major_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The major_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
87
|
+
:rtype: int
|
|
88
|
+
"""
|
|
89
|
+
return self._major_version
|
|
90
|
+
|
|
91
|
+
@major_version.setter
|
|
92
|
+
def major_version(self, major_version):
|
|
93
|
+
"""Sets the major_version of this PlatformConfigurationWsResultDaemonVersion.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param major_version: The major_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
97
|
+
:type: int
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._major_version = major_version
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def minor_version(self):
|
|
104
|
+
"""Gets the minor_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
:return: The minor_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
108
|
+
:rtype: int
|
|
109
|
+
"""
|
|
110
|
+
return self._minor_version
|
|
111
|
+
|
|
112
|
+
@minor_version.setter
|
|
113
|
+
def minor_version(self, minor_version):
|
|
114
|
+
"""Sets the minor_version of this PlatformConfigurationWsResultDaemonVersion.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:param minor_version: The minor_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
118
|
+
:type: int
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
self._minor_version = minor_version
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def build_version(self):
|
|
125
|
+
"""Gets the build_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:return: The build_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
129
|
+
:rtype: int
|
|
130
|
+
"""
|
|
131
|
+
return self._build_version
|
|
132
|
+
|
|
133
|
+
@build_version.setter
|
|
134
|
+
def build_version(self, build_version):
|
|
135
|
+
"""Sets the build_version of this PlatformConfigurationWsResultDaemonVersion.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param build_version: The build_version of this PlatformConfigurationWsResultDaemonVersion. # noqa: E501
|
|
139
|
+
:type: int
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
self._build_version = build_version
|
|
143
|
+
|
|
144
|
+
def to_dict(self):
|
|
145
|
+
"""Returns the model properties as a dict"""
|
|
146
|
+
result = {}
|
|
147
|
+
|
|
148
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
149
|
+
value = getattr(self, attr)
|
|
150
|
+
if isinstance(value, list):
|
|
151
|
+
result[attr] = list(map(
|
|
152
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
153
|
+
value
|
|
154
|
+
))
|
|
155
|
+
elif hasattr(value, "to_dict"):
|
|
156
|
+
result[attr] = value.to_dict()
|
|
157
|
+
elif isinstance(value, dict):
|
|
158
|
+
result[attr] = dict(map(
|
|
159
|
+
lambda item: (item[0], item[1].to_dict())
|
|
160
|
+
if hasattr(item[1], "to_dict") else item,
|
|
161
|
+
value.items()
|
|
162
|
+
))
|
|
163
|
+
else:
|
|
164
|
+
result[attr] = value
|
|
165
|
+
if issubclass(PlatformConfigurationWsResultDaemonVersion, dict):
|
|
166
|
+
for key, value in self.items():
|
|
167
|
+
result[key] = value
|
|
168
|
+
|
|
169
|
+
return result
|
|
170
|
+
|
|
171
|
+
def to_str(self):
|
|
172
|
+
"""Returns the string representation of the model"""
|
|
173
|
+
return pprint.pformat(self.to_dict())
|
|
174
|
+
|
|
175
|
+
def __repr__(self):
|
|
176
|
+
"""For `print` and `pprint`"""
|
|
177
|
+
return self.to_str()
|
|
178
|
+
|
|
179
|
+
def __eq__(self, other):
|
|
180
|
+
"""Returns true if both objects are equal"""
|
|
181
|
+
if not isinstance(other, PlatformConfigurationWsResultDaemonVersion):
|
|
182
|
+
return False
|
|
183
|
+
|
|
184
|
+
return self.__dict__ == other.__dict__
|
|
185
|
+
|
|
186
|
+
def __ne__(self, other):
|
|
187
|
+
"""Returns true if both objects are not equal"""
|
|
188
|
+
return not self == other
|