lockss-pyclient 0.1.0.dev1__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 +67 -0
- lockss/pyclient/config/__init__.py +42 -0
- lockss/pyclient/config/api/__init__.py +12 -0
- lockss/pyclient/config/api/aus_api.py +2195 -0
- lockss/pyclient/config/api/config_api.py +718 -0
- lockss/pyclient/config/api/plugins_api.py +128 -0
- lockss/pyclient/config/api/status_api.py +120 -0
- lockss/pyclient/config/api/tdb_api.py +318 -0
- lockss/pyclient/config/api/users_api.py +516 -0
- lockss/pyclient/config/api/utils_api.py +128 -0
- lockss/pyclient/config/api_client.py +632 -0
- lockss/pyclient/config/configuration.py +254 -0
- lockss/pyclient/config/models/__init__.py +30 -0
- lockss/pyclient/config/models/api_status.py +344 -0
- lockss/pyclient/config/models/au_configuration.py +142 -0
- lockss/pyclient/config/models/au_status.py +113 -0
- lockss/pyclient/config/models/au_ws_result.py +113 -0
- lockss/pyclient/config/models/auids_body.py +168 -0
- lockss/pyclient/config/models/check_substance_result.py +212 -0
- lockss/pyclient/config/models/content_configuration_result.py +200 -0
- lockss/pyclient/config/models/file_section_name_body.py +113 -0
- lockss/pyclient/config/models/platform_configuration_ws_result.py +113 -0
- lockss/pyclient/config/models/plugin_ws_result.py +345 -0
- lockss/pyclient/config/models/request_au_control_result.py +171 -0
- lockss/pyclient/config/models/tdb_au_ws_result.py +360 -0
- lockss/pyclient/config/models/tdb_publisher_ws_result.py +113 -0
- lockss/pyclient/config/models/tdb_title_ws_result.py +390 -0
- lockss/pyclient/config/rest.py +317 -0
- lockss/pyclient/crawler/__init__.py +45 -0
- lockss/pyclient/crawler/api/__init__.py +10 -0
- lockss/pyclient/crawler/api/crawlers_api.py +215 -0
- lockss/pyclient/crawler/api/crawls_api.py +952 -0
- lockss/pyclient/crawler/api/jobs_api.py +504 -0
- lockss/pyclient/crawler/api/status_api.py +120 -0
- lockss/pyclient/crawler/api/ws_api.py +128 -0
- lockss/pyclient/crawler/api_client.py +632 -0
- lockss/pyclient/crawler/configuration.py +254 -0
- lockss/pyclient/crawler/models/__init__.py +35 -0
- lockss/pyclient/crawler/models/api_status.py +344 -0
- lockss/pyclient/crawler/models/counter.py +142 -0
- lockss/pyclient/crawler/models/crawl_desc.py +344 -0
- lockss/pyclient/crawler/models/crawl_job.py +280 -0
- lockss/pyclient/crawler/models/crawl_pager.py +140 -0
- lockss/pyclient/crawler/models/crawl_status.py +780 -0
- lockss/pyclient/crawler/models/crawl_ws_result.py +814 -0
- lockss/pyclient/crawler/models/crawl_ws_result_pages_with_errors.py +162 -0
- lockss/pyclient/crawler/models/crawler_config.py +142 -0
- lockss/pyclient/crawler/models/crawler_status.py +279 -0
- lockss/pyclient/crawler/models/crawler_statuses.py +112 -0
- lockss/pyclient/crawler/models/error_result.py +164 -0
- lockss/pyclient/crawler/models/job_pager.py +140 -0
- lockss/pyclient/crawler/models/job_status.py +147 -0
- lockss/pyclient/crawler/models/mime_counter.py +169 -0
- lockss/pyclient/crawler/models/page_info.py +228 -0
- lockss/pyclient/crawler/models/url_error.py +148 -0
- lockss/pyclient/crawler/models/url_info.py +167 -0
- lockss/pyclient/crawler/models/url_pager.py +140 -0
- lockss/pyclient/crawler/rest.py +317 -0
- lockss/pyclient/md/__init__.py +36 -0
- lockss/pyclient/md/api/__init__.py +9 -0
- lockss/pyclient/md/api/mdupdates_api.py +508 -0
- lockss/pyclient/md/api/metadata_api.py +136 -0
- lockss/pyclient/md/api/status_api.py +120 -0
- lockss/pyclient/md/api/urls_api.py +224 -0
- lockss/pyclient/md/api_client.py +632 -0
- lockss/pyclient/md/configuration.py +254 -0
- lockss/pyclient/md/models/__init__.py +27 -0
- lockss/pyclient/md/models/api_status.py +344 -0
- lockss/pyclient/md/models/au.py +169 -0
- lockss/pyclient/md/models/au_metadata_page_info.py +140 -0
- lockss/pyclient/md/models/error_result.py +164 -0
- lockss/pyclient/md/models/item_metadata.py +196 -0
- lockss/pyclient/md/models/job.py +280 -0
- lockss/pyclient/md/models/job_page_info.py +140 -0
- lockss/pyclient/md/models/metadata_update_spec.py +142 -0
- lockss/pyclient/md/models/page_info.py +228 -0
- lockss/pyclient/md/models/status.py +142 -0
- lockss/pyclient/md/models/url_info.py +142 -0
- lockss/pyclient/md/rest.py +317 -0
- lockss/pyclient/poller/__init__.py +54 -0
- lockss/pyclient/poller/api/__init__.py +13 -0
- lockss/pyclient/poller/api/export_api.py +156 -0
- lockss/pyclient/poller/api/hash_api.py +413 -0
- lockss/pyclient/poller/api/import_api.py +157 -0
- lockss/pyclient/poller/api/poll_detail_api.py +374 -0
- lockss/pyclient/poller/api/poller_polls_api.py +223 -0
- lockss/pyclient/poller/api/repo_api.py +223 -0
- lockss/pyclient/poller/api/service_api.py +694 -0
- lockss/pyclient/poller/api/voter_polls_api.py +223 -0
- lockss/pyclient/poller/api_client.py +632 -0
- lockss/pyclient/poller/configuration.py +254 -0
- lockss/pyclient/poller/models/__init__.py +41 -0
- lockss/pyclient/poller/models/api_status.py +344 -0
- lockss/pyclient/poller/models/aus_import_body.py +199 -0
- lockss/pyclient/poller/models/cached_uri_set_spec.py +169 -0
- lockss/pyclient/poller/models/error_result.py +164 -0
- lockss/pyclient/poller/models/hasher_ws_params.py +432 -0
- lockss/pyclient/poller/models/link_desc.py +141 -0
- lockss/pyclient/poller/models/page_desc.py +227 -0
- lockss/pyclient/poller/models/peer_data.py +638 -0
- lockss/pyclient/poller/models/peer_ws_result.py +113 -0
- lockss/pyclient/poller/models/poll_desc.py +285 -0
- lockss/pyclient/poller/models/poll_ws_result.py +142 -0
- lockss/pyclient/poller/models/poller_detail.py +613 -0
- lockss/pyclient/poller/models/poller_pager.py +139 -0
- lockss/pyclient/poller/models/poller_summary.py +452 -0
- lockss/pyclient/poller/models/repair_data.py +176 -0
- lockss/pyclient/poller/models/repair_pager.py +139 -0
- lockss/pyclient/poller/models/repair_queue.py +249 -0
- lockss/pyclient/poller/models/repository_space_ws_result.py +113 -0
- lockss/pyclient/poller/models/repository_ws_result.py +113 -0
- lockss/pyclient/poller/models/tally_data.py +471 -0
- lockss/pyclient/poller/models/url_pager.py +139 -0
- lockss/pyclient/poller/models/vote_ws_result.py +142 -0
- lockss/pyclient/poller/models/voter_detail.py +701 -0
- lockss/pyclient/poller/models/voter_pager.py +139 -0
- lockss/pyclient/poller/models/voter_summary.py +284 -0
- lockss/pyclient/poller/rest.py +317 -0
- lockss/pyclient/rs/__init__.py +41 -0
- lockss/pyclient/rs/api/__init__.py +10 -0
- lockss/pyclient/rs/api/artifacts_api.py +988 -0
- lockss/pyclient/rs/api/aus_api.py +334 -0
- lockss/pyclient/rs/api/repo_api.py +379 -0
- lockss/pyclient/rs/api/status_api.py +120 -0
- lockss/pyclient/rs/api/wayback_api.py +386 -0
- lockss/pyclient/rs/api_client.py +632 -0
- lockss/pyclient/rs/configuration.py +247 -0
- lockss/pyclient/rs/models/__init__.py +31 -0
- lockss/pyclient/rs/models/api_status.py +344 -0
- lockss/pyclient/rs/models/archives_body.py +142 -0
- lockss/pyclient/rs/models/artifact.py +344 -0
- lockss/pyclient/rs/models/artifact_page_info.py +140 -0
- lockss/pyclient/rs/models/artifact_properties.py +344 -0
- lockss/pyclient/rs/models/artifacts_body.py +170 -0
- lockss/pyclient/rs/models/au_size.py +162 -0
- lockss/pyclient/rs/models/auid_page_info.py +140 -0
- lockss/pyclient/rs/models/error_result.py +164 -0
- lockss/pyclient/rs/models/import_status.py +298 -0
- lockss/pyclient/rs/models/page_info.py +229 -0
- lockss/pyclient/rs/models/repository_info.py +164 -0
- lockss/pyclient/rs/models/repository_statistics.py +112 -0
- lockss/pyclient/rs/models/storage_info.py +287 -0
- lockss/pyclient/rs/models/streaming_response_body.py +84 -0
- lockss/pyclient/rs/rest.py +317 -0
- lockss_pyclient-0.1.0.dev1.dist-info/LICENSE +27 -0
- lockss_pyclient-0.1.0.dev1.dist-info/METADATA +29 -0
- lockss_pyclient-0.1.0.dev1.dist-info/RECORD +148 -0
- lockss_pyclient-0.1.0.dev1.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Metadata Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Metadata 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 Job(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
|
+
'au': 'Au',
|
|
32
|
+
'id': 'str',
|
|
33
|
+
'description': 'str',
|
|
34
|
+
'creation_date': 'date',
|
|
35
|
+
'start_date': 'date',
|
|
36
|
+
'end_date': 'date',
|
|
37
|
+
'status': 'Status'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'au': 'au',
|
|
42
|
+
'id': 'id',
|
|
43
|
+
'description': 'description',
|
|
44
|
+
'creation_date': 'creationDate',
|
|
45
|
+
'start_date': 'startDate',
|
|
46
|
+
'end_date': 'endDate',
|
|
47
|
+
'status': 'status'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
def __init__(self, au=None, id=None, description=None, creation_date=None, start_date=None, end_date=None, status=None): # noqa: E501
|
|
51
|
+
"""Job - a model defined in Swagger""" # noqa: E501
|
|
52
|
+
self._au = None
|
|
53
|
+
self._id = None
|
|
54
|
+
self._description = None
|
|
55
|
+
self._creation_date = None
|
|
56
|
+
self._start_date = None
|
|
57
|
+
self._end_date = None
|
|
58
|
+
self._status = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
self.au = au
|
|
61
|
+
self.id = id
|
|
62
|
+
if description is not None:
|
|
63
|
+
self.description = description
|
|
64
|
+
self.creation_date = creation_date
|
|
65
|
+
if start_date is not None:
|
|
66
|
+
self.start_date = start_date
|
|
67
|
+
if end_date is not None:
|
|
68
|
+
self.end_date = end_date
|
|
69
|
+
self.status = status
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def au(self):
|
|
73
|
+
"""Gets the au of this Job. # noqa: E501
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
:return: The au of this Job. # noqa: E501
|
|
77
|
+
:rtype: Au
|
|
78
|
+
"""
|
|
79
|
+
return self._au
|
|
80
|
+
|
|
81
|
+
@au.setter
|
|
82
|
+
def au(self, au):
|
|
83
|
+
"""Sets the au of this Job.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:param au: The au of this Job. # noqa: E501
|
|
87
|
+
:type: Au
|
|
88
|
+
"""
|
|
89
|
+
if au is None:
|
|
90
|
+
raise ValueError("Invalid value for `au`, must not be `None`") # noqa: E501
|
|
91
|
+
|
|
92
|
+
self._au = au
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def id(self):
|
|
96
|
+
"""Gets the id of this Job. # noqa: E501
|
|
97
|
+
|
|
98
|
+
The identifier of this job # noqa: E501
|
|
99
|
+
|
|
100
|
+
:return: The id of this Job. # noqa: E501
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._id
|
|
104
|
+
|
|
105
|
+
@id.setter
|
|
106
|
+
def id(self, id):
|
|
107
|
+
"""Sets the id of this Job.
|
|
108
|
+
|
|
109
|
+
The identifier of this job # noqa: E501
|
|
110
|
+
|
|
111
|
+
:param id: The id of this Job. # noqa: E501
|
|
112
|
+
:type: str
|
|
113
|
+
"""
|
|
114
|
+
if id is None:
|
|
115
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
116
|
+
|
|
117
|
+
self._id = id
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def description(self):
|
|
121
|
+
"""Gets the description of this Job. # noqa: E501
|
|
122
|
+
|
|
123
|
+
A description of the task being performed by this job # noqa: E501
|
|
124
|
+
|
|
125
|
+
:return: The description of this Job. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._description
|
|
129
|
+
|
|
130
|
+
@description.setter
|
|
131
|
+
def description(self, description):
|
|
132
|
+
"""Sets the description of this Job.
|
|
133
|
+
|
|
134
|
+
A description of the task being performed by this job # noqa: E501
|
|
135
|
+
|
|
136
|
+
:param description: The description of this Job. # noqa: E501
|
|
137
|
+
:type: str
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
self._description = description
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def creation_date(self):
|
|
144
|
+
"""Gets the creation_date of this Job. # noqa: E501
|
|
145
|
+
|
|
146
|
+
The timestamp when this job was created # noqa: E501
|
|
147
|
+
|
|
148
|
+
:return: The creation_date of this Job. # noqa: E501
|
|
149
|
+
:rtype: date
|
|
150
|
+
"""
|
|
151
|
+
return self._creation_date
|
|
152
|
+
|
|
153
|
+
@creation_date.setter
|
|
154
|
+
def creation_date(self, creation_date):
|
|
155
|
+
"""Sets the creation_date of this Job.
|
|
156
|
+
|
|
157
|
+
The timestamp when this job was created # noqa: E501
|
|
158
|
+
|
|
159
|
+
:param creation_date: The creation_date of this Job. # noqa: E501
|
|
160
|
+
:type: date
|
|
161
|
+
"""
|
|
162
|
+
if creation_date is None:
|
|
163
|
+
raise ValueError("Invalid value for `creation_date`, must not be `None`") # noqa: E501
|
|
164
|
+
|
|
165
|
+
self._creation_date = creation_date
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def start_date(self):
|
|
169
|
+
"""Gets the start_date of this Job. # noqa: E501
|
|
170
|
+
|
|
171
|
+
The timestamp when this job processing started # noqa: E501
|
|
172
|
+
|
|
173
|
+
:return: The start_date of this Job. # noqa: E501
|
|
174
|
+
:rtype: date
|
|
175
|
+
"""
|
|
176
|
+
return self._start_date
|
|
177
|
+
|
|
178
|
+
@start_date.setter
|
|
179
|
+
def start_date(self, start_date):
|
|
180
|
+
"""Sets the start_date of this Job.
|
|
181
|
+
|
|
182
|
+
The timestamp when this job processing started # noqa: E501
|
|
183
|
+
|
|
184
|
+
:param start_date: The start_date of this Job. # noqa: E501
|
|
185
|
+
:type: date
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
self._start_date = start_date
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def end_date(self):
|
|
192
|
+
"""Gets the end_date of this Job. # noqa: E501
|
|
193
|
+
|
|
194
|
+
The timestamp when this job processing ended # noqa: E501
|
|
195
|
+
|
|
196
|
+
:return: The end_date of this Job. # noqa: E501
|
|
197
|
+
:rtype: date
|
|
198
|
+
"""
|
|
199
|
+
return self._end_date
|
|
200
|
+
|
|
201
|
+
@end_date.setter
|
|
202
|
+
def end_date(self, end_date):
|
|
203
|
+
"""Sets the end_date of this Job.
|
|
204
|
+
|
|
205
|
+
The timestamp when this job processing ended # noqa: E501
|
|
206
|
+
|
|
207
|
+
:param end_date: The end_date of this Job. # noqa: E501
|
|
208
|
+
:type: date
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
self._end_date = end_date
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def status(self):
|
|
215
|
+
"""Gets the status of this Job. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The status of this Job. # noqa: E501
|
|
219
|
+
:rtype: Status
|
|
220
|
+
"""
|
|
221
|
+
return self._status
|
|
222
|
+
|
|
223
|
+
@status.setter
|
|
224
|
+
def status(self, status):
|
|
225
|
+
"""Sets the status of this Job.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param status: The status of this Job. # noqa: E501
|
|
229
|
+
:type: Status
|
|
230
|
+
"""
|
|
231
|
+
if status is None:
|
|
232
|
+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
|
233
|
+
|
|
234
|
+
self._status = status
|
|
235
|
+
|
|
236
|
+
def to_dict(self):
|
|
237
|
+
"""Returns the model properties as a dict"""
|
|
238
|
+
result = {}
|
|
239
|
+
|
|
240
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
241
|
+
value = getattr(self, attr)
|
|
242
|
+
if isinstance(value, list):
|
|
243
|
+
result[attr] = list(map(
|
|
244
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
245
|
+
value
|
|
246
|
+
))
|
|
247
|
+
elif hasattr(value, "to_dict"):
|
|
248
|
+
result[attr] = value.to_dict()
|
|
249
|
+
elif isinstance(value, dict):
|
|
250
|
+
result[attr] = dict(map(
|
|
251
|
+
lambda item: (item[0], item[1].to_dict())
|
|
252
|
+
if hasattr(item[1], "to_dict") else item,
|
|
253
|
+
value.items()
|
|
254
|
+
))
|
|
255
|
+
else:
|
|
256
|
+
result[attr] = value
|
|
257
|
+
if issubclass(Job, dict):
|
|
258
|
+
for key, value in self.items():
|
|
259
|
+
result[key] = value
|
|
260
|
+
|
|
261
|
+
return result
|
|
262
|
+
|
|
263
|
+
def to_str(self):
|
|
264
|
+
"""Returns the string representation of the model"""
|
|
265
|
+
return pprint.pformat(self.to_dict())
|
|
266
|
+
|
|
267
|
+
def __repr__(self):
|
|
268
|
+
"""For `print` and `pprint`"""
|
|
269
|
+
return self.to_str()
|
|
270
|
+
|
|
271
|
+
def __eq__(self, other):
|
|
272
|
+
"""Returns true if both objects are equal"""
|
|
273
|
+
if not isinstance(other, Job):
|
|
274
|
+
return False
|
|
275
|
+
|
|
276
|
+
return self.__dict__ == other.__dict__
|
|
277
|
+
|
|
278
|
+
def __ne__(self, other):
|
|
279
|
+
"""Returns true if both objects are not equal"""
|
|
280
|
+
return not self == other
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Metadata Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Metadata 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 JobPageInfo(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
|
+
'jobs': 'list[Job]',
|
|
32
|
+
'page_info': 'PageInfo'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'jobs': 'jobs',
|
|
37
|
+
'page_info': 'pageInfo'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, jobs=None, page_info=None): # noqa: E501
|
|
41
|
+
"""JobPageInfo - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._jobs = None
|
|
43
|
+
self._page_info = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.jobs = jobs
|
|
46
|
+
self.page_info = page_info
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def jobs(self):
|
|
50
|
+
"""Gets the jobs of this JobPageInfo. # noqa: E501
|
|
51
|
+
|
|
52
|
+
The jobs displayed in the page # noqa: E501
|
|
53
|
+
|
|
54
|
+
:return: The jobs of this JobPageInfo. # noqa: E501
|
|
55
|
+
:rtype: list[Job]
|
|
56
|
+
"""
|
|
57
|
+
return self._jobs
|
|
58
|
+
|
|
59
|
+
@jobs.setter
|
|
60
|
+
def jobs(self, jobs):
|
|
61
|
+
"""Sets the jobs of this JobPageInfo.
|
|
62
|
+
|
|
63
|
+
The jobs displayed in the page # noqa: E501
|
|
64
|
+
|
|
65
|
+
:param jobs: The jobs of this JobPageInfo. # noqa: E501
|
|
66
|
+
:type: list[Job]
|
|
67
|
+
"""
|
|
68
|
+
if jobs is None:
|
|
69
|
+
raise ValueError("Invalid value for `jobs`, must not be `None`") # noqa: E501
|
|
70
|
+
|
|
71
|
+
self._jobs = jobs
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def page_info(self):
|
|
75
|
+
"""Gets the page_info of this JobPageInfo. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The page_info of this JobPageInfo. # noqa: E501
|
|
79
|
+
:rtype: PageInfo
|
|
80
|
+
"""
|
|
81
|
+
return self._page_info
|
|
82
|
+
|
|
83
|
+
@page_info.setter
|
|
84
|
+
def page_info(self, page_info):
|
|
85
|
+
"""Sets the page_info of this JobPageInfo.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param page_info: The page_info of this JobPageInfo. # noqa: E501
|
|
89
|
+
:type: PageInfo
|
|
90
|
+
"""
|
|
91
|
+
if page_info is None:
|
|
92
|
+
raise ValueError("Invalid value for `page_info`, must not be `None`") # noqa: E501
|
|
93
|
+
|
|
94
|
+
self._page_info = page_info
|
|
95
|
+
|
|
96
|
+
def to_dict(self):
|
|
97
|
+
"""Returns the model properties as a dict"""
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
result[attr] = value
|
|
117
|
+
if issubclass(JobPageInfo, dict):
|
|
118
|
+
for key, value in self.items():
|
|
119
|
+
result[key] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
return pprint.pformat(self.to_dict())
|
|
126
|
+
|
|
127
|
+
def __repr__(self):
|
|
128
|
+
"""For `print` and `pprint`"""
|
|
129
|
+
return self.to_str()
|
|
130
|
+
|
|
131
|
+
def __eq__(self, other):
|
|
132
|
+
"""Returns true if both objects are equal"""
|
|
133
|
+
if not isinstance(other, JobPageInfo):
|
|
134
|
+
return False
|
|
135
|
+
|
|
136
|
+
return self.__dict__ == other.__dict__
|
|
137
|
+
|
|
138
|
+
def __ne__(self, other):
|
|
139
|
+
"""Returns true if both objects are not equal"""
|
|
140
|
+
return not self == other
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Metadata Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Metadata 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 MetadataUpdateSpec(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
|
+
'auid': 'str',
|
|
32
|
+
'update_type': 'str'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'auid': 'auid',
|
|
37
|
+
'update_type': 'updateType'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, auid=None, update_type=None): # noqa: E501
|
|
41
|
+
"""MetadataUpdateSpec - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._auid = None
|
|
43
|
+
self._update_type = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.auid = auid
|
|
46
|
+
self.update_type = update_type
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def auid(self):
|
|
50
|
+
"""Gets the auid of this MetadataUpdateSpec. # noqa: E501
|
|
51
|
+
|
|
52
|
+
The identifier of the AU for which the metadata update is to be performed # noqa: E501
|
|
53
|
+
|
|
54
|
+
:return: The auid of this MetadataUpdateSpec. # noqa: E501
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._auid
|
|
58
|
+
|
|
59
|
+
@auid.setter
|
|
60
|
+
def auid(self, auid):
|
|
61
|
+
"""Sets the auid of this MetadataUpdateSpec.
|
|
62
|
+
|
|
63
|
+
The identifier of the AU for which the metadata update is to be performed # noqa: E501
|
|
64
|
+
|
|
65
|
+
:param auid: The auid of this MetadataUpdateSpec. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
if auid is None:
|
|
69
|
+
raise ValueError("Invalid value for `auid`, must not be `None`") # noqa: E501
|
|
70
|
+
|
|
71
|
+
self._auid = auid
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def update_type(self):
|
|
75
|
+
"""Gets the update_type of this MetadataUpdateSpec. # noqa: E501
|
|
76
|
+
|
|
77
|
+
The type of metadata update to be performed # noqa: E501
|
|
78
|
+
|
|
79
|
+
:return: The update_type of this MetadataUpdateSpec. # noqa: E501
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._update_type
|
|
83
|
+
|
|
84
|
+
@update_type.setter
|
|
85
|
+
def update_type(self, update_type):
|
|
86
|
+
"""Sets the update_type of this MetadataUpdateSpec.
|
|
87
|
+
|
|
88
|
+
The type of metadata update to be performed # noqa: E501
|
|
89
|
+
|
|
90
|
+
:param update_type: The update_type of this MetadataUpdateSpec. # noqa: E501
|
|
91
|
+
:type: str
|
|
92
|
+
"""
|
|
93
|
+
if update_type is None:
|
|
94
|
+
raise ValueError("Invalid value for `update_type`, must not be `None`") # noqa: E501
|
|
95
|
+
|
|
96
|
+
self._update_type = update_type
|
|
97
|
+
|
|
98
|
+
def to_dict(self):
|
|
99
|
+
"""Returns the model properties as a dict"""
|
|
100
|
+
result = {}
|
|
101
|
+
|
|
102
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
103
|
+
value = getattr(self, attr)
|
|
104
|
+
if isinstance(value, list):
|
|
105
|
+
result[attr] = list(map(
|
|
106
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
107
|
+
value
|
|
108
|
+
))
|
|
109
|
+
elif hasattr(value, "to_dict"):
|
|
110
|
+
result[attr] = value.to_dict()
|
|
111
|
+
elif isinstance(value, dict):
|
|
112
|
+
result[attr] = dict(map(
|
|
113
|
+
lambda item: (item[0], item[1].to_dict())
|
|
114
|
+
if hasattr(item[1], "to_dict") else item,
|
|
115
|
+
value.items()
|
|
116
|
+
))
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
if issubclass(MetadataUpdateSpec, dict):
|
|
120
|
+
for key, value in self.items():
|
|
121
|
+
result[key] = value
|
|
122
|
+
|
|
123
|
+
return result
|
|
124
|
+
|
|
125
|
+
def to_str(self):
|
|
126
|
+
"""Returns the string representation of the model"""
|
|
127
|
+
return pprint.pformat(self.to_dict())
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print` and `pprint`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, MetadataUpdateSpec):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|