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,111 +28,85 @@ class Artifact(object):
|
|
|
28
28
|
and the value is json key in definition.
|
|
29
29
|
"""
|
|
30
30
|
swagger_types = {
|
|
31
|
-
'committed': 'bool',
|
|
32
|
-
'storage_url': 'str',
|
|
33
|
-
'namespace': 'str',
|
|
34
31
|
'uuid': 'str',
|
|
32
|
+
'namespace': 'str',
|
|
35
33
|
'auid': 'str',
|
|
36
34
|
'uri': 'str',
|
|
37
35
|
'version': 'int',
|
|
36
|
+
'committed': 'bool',
|
|
37
|
+
'storage_url': 'str',
|
|
38
38
|
'content_length': 'int',
|
|
39
39
|
'content_digest': 'str',
|
|
40
40
|
'collection_date': 'int'
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
attribute_map = {
|
|
44
|
-
'committed': 'committed',
|
|
45
|
-
'storage_url': 'storageUrl',
|
|
46
|
-
'namespace': 'namespace',
|
|
47
44
|
'uuid': 'uuid',
|
|
45
|
+
'namespace': 'namespace',
|
|
48
46
|
'auid': 'auid',
|
|
49
47
|
'uri': 'uri',
|
|
50
48
|
'version': 'version',
|
|
49
|
+
'committed': 'committed',
|
|
50
|
+
'storage_url': 'storageUrl',
|
|
51
51
|
'content_length': 'contentLength',
|
|
52
52
|
'content_digest': 'contentDigest',
|
|
53
53
|
'collection_date': 'collectionDate'
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
def __init__(self,
|
|
56
|
+
def __init__(self, uuid=None, namespace='lockss', auid=None, uri=None, version=None, committed=None, storage_url=None, content_length=None, content_digest=None, collection_date=None): # noqa: E501
|
|
57
57
|
"""Artifact - a model defined in Swagger""" # noqa: E501
|
|
58
|
-
self._committed = None
|
|
59
|
-
self._storage_url = None
|
|
60
|
-
self._namespace = None
|
|
61
58
|
self._uuid = None
|
|
59
|
+
self._namespace = None
|
|
62
60
|
self._auid = None
|
|
63
61
|
self._uri = None
|
|
64
62
|
self._version = None
|
|
63
|
+
self._committed = None
|
|
64
|
+
self._storage_url = None
|
|
65
65
|
self._content_length = None
|
|
66
66
|
self._content_digest = None
|
|
67
67
|
self._collection_date = None
|
|
68
68
|
self.discriminator = None
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if uri is not None:
|
|
80
|
-
self.uri = uri
|
|
81
|
-
if version is not None:
|
|
82
|
-
self.version = version
|
|
83
|
-
if content_length is not None:
|
|
84
|
-
self.content_length = content_length
|
|
85
|
-
if content_digest is not None:
|
|
86
|
-
self.content_digest = content_digest
|
|
87
|
-
if collection_date is not None:
|
|
88
|
-
self.collection_date = collection_date
|
|
89
|
-
|
|
90
|
-
@property
|
|
91
|
-
def committed(self):
|
|
92
|
-
"""Gets the committed of this Artifact. # noqa: E501
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
:return: The committed of this Artifact. # noqa: E501
|
|
96
|
-
:rtype: bool
|
|
97
|
-
"""
|
|
98
|
-
return self._committed
|
|
99
|
-
|
|
100
|
-
@committed.setter
|
|
101
|
-
def committed(self, committed):
|
|
102
|
-
"""Sets the committed of this Artifact.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
:param committed: The committed of this Artifact. # noqa: E501
|
|
106
|
-
:type: bool
|
|
107
|
-
"""
|
|
108
|
-
|
|
109
|
-
self._committed = committed
|
|
69
|
+
self.uuid = uuid
|
|
70
|
+
self.namespace = namespace
|
|
71
|
+
self.auid = auid
|
|
72
|
+
self.uri = uri
|
|
73
|
+
self.version = version
|
|
74
|
+
self.committed = committed
|
|
75
|
+
self.storage_url = storage_url
|
|
76
|
+
self.content_length = content_length
|
|
77
|
+
self.content_digest = content_digest
|
|
78
|
+
self.collection_date = collection_date
|
|
110
79
|
|
|
111
80
|
@property
|
|
112
|
-
def
|
|
113
|
-
"""Gets the
|
|
81
|
+
def uuid(self):
|
|
82
|
+
"""Gets the uuid of this Artifact. # noqa: E501
|
|
114
83
|
|
|
84
|
+
The artifact's UUID # noqa: E501
|
|
115
85
|
|
|
116
|
-
:return: The
|
|
86
|
+
:return: The uuid of this Artifact. # noqa: E501
|
|
117
87
|
:rtype: str
|
|
118
88
|
"""
|
|
119
|
-
return self.
|
|
89
|
+
return self._uuid
|
|
120
90
|
|
|
121
|
-
@
|
|
122
|
-
def
|
|
123
|
-
"""Sets the
|
|
91
|
+
@uuid.setter
|
|
92
|
+
def uuid(self, uuid):
|
|
93
|
+
"""Sets the uuid of this Artifact.
|
|
124
94
|
|
|
95
|
+
The artifact's UUID # noqa: E501
|
|
125
96
|
|
|
126
|
-
:param
|
|
97
|
+
:param uuid: The uuid of this Artifact. # noqa: E501
|
|
127
98
|
:type: str
|
|
128
99
|
"""
|
|
100
|
+
if uuid is None:
|
|
101
|
+
raise ValueError("Invalid value for `uuid`, must not be `None`") # noqa: E501
|
|
129
102
|
|
|
130
|
-
self.
|
|
103
|
+
self._uuid = uuid
|
|
131
104
|
|
|
132
105
|
@property
|
|
133
106
|
def namespace(self):
|
|
134
107
|
"""Gets the namespace of this Artifact. # noqa: E501
|
|
135
108
|
|
|
109
|
+
The artifact's namespace # noqa: E501
|
|
136
110
|
|
|
137
111
|
:return: The namespace of this Artifact. # noqa: E501
|
|
138
112
|
:rtype: str
|
|
@@ -143,38 +117,21 @@ class Artifact(object):
|
|
|
143
117
|
def namespace(self, namespace):
|
|
144
118
|
"""Sets the namespace of this Artifact.
|
|
145
119
|
|
|
120
|
+
The artifact's namespace # noqa: E501
|
|
146
121
|
|
|
147
122
|
:param namespace: The namespace of this Artifact. # noqa: E501
|
|
148
123
|
:type: str
|
|
149
124
|
"""
|
|
125
|
+
if namespace is None:
|
|
126
|
+
raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501
|
|
150
127
|
|
|
151
128
|
self._namespace = namespace
|
|
152
129
|
|
|
153
|
-
@property
|
|
154
|
-
def uuid(self):
|
|
155
|
-
"""Gets the uuid of this Artifact. # noqa: E501
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
:return: The uuid of this Artifact. # noqa: E501
|
|
159
|
-
:rtype: str
|
|
160
|
-
"""
|
|
161
|
-
return self._uuid
|
|
162
|
-
|
|
163
|
-
@uuid.setter
|
|
164
|
-
def uuid(self, uuid):
|
|
165
|
-
"""Sets the uuid of this Artifact.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
:param uuid: The uuid of this Artifact. # noqa: E501
|
|
169
|
-
:type: str
|
|
170
|
-
"""
|
|
171
|
-
|
|
172
|
-
self._uuid = uuid
|
|
173
|
-
|
|
174
130
|
@property
|
|
175
131
|
def auid(self):
|
|
176
132
|
"""Gets the auid of this Artifact. # noqa: E501
|
|
177
133
|
|
|
134
|
+
The artifact's AUID # noqa: E501
|
|
178
135
|
|
|
179
136
|
:return: The auid of this Artifact. # noqa: E501
|
|
180
137
|
:rtype: str
|
|
@@ -185,10 +142,13 @@ class Artifact(object):
|
|
|
185
142
|
def auid(self, auid):
|
|
186
143
|
"""Sets the auid of this Artifact.
|
|
187
144
|
|
|
145
|
+
The artifact's AUID # noqa: E501
|
|
188
146
|
|
|
189
147
|
:param auid: The auid of this Artifact. # noqa: E501
|
|
190
148
|
:type: str
|
|
191
149
|
"""
|
|
150
|
+
if auid is None:
|
|
151
|
+
raise ValueError("Invalid value for `auid`, must not be `None`") # noqa: E501
|
|
192
152
|
|
|
193
153
|
self._auid = auid
|
|
194
154
|
|
|
@@ -196,6 +156,7 @@ class Artifact(object):
|
|
|
196
156
|
def uri(self):
|
|
197
157
|
"""Gets the uri of this Artifact. # noqa: E501
|
|
198
158
|
|
|
159
|
+
The artifact's URI # noqa: E501
|
|
199
160
|
|
|
200
161
|
:return: The uri of this Artifact. # noqa: E501
|
|
201
162
|
:rtype: str
|
|
@@ -206,10 +167,13 @@ class Artifact(object):
|
|
|
206
167
|
def uri(self, uri):
|
|
207
168
|
"""Sets the uri of this Artifact.
|
|
208
169
|
|
|
170
|
+
The artifact's URI # noqa: E501
|
|
209
171
|
|
|
210
172
|
:param uri: The uri of this Artifact. # noqa: E501
|
|
211
173
|
:type: str
|
|
212
174
|
"""
|
|
175
|
+
if uri is None:
|
|
176
|
+
raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501
|
|
213
177
|
|
|
214
178
|
self._uri = uri
|
|
215
179
|
|
|
@@ -217,6 +181,7 @@ class Artifact(object):
|
|
|
217
181
|
def version(self):
|
|
218
182
|
"""Gets the version of this Artifact. # noqa: E501
|
|
219
183
|
|
|
184
|
+
The artifact's version number # noqa: E501
|
|
220
185
|
|
|
221
186
|
:return: The version of this Artifact. # noqa: E501
|
|
222
187
|
:rtype: int
|
|
@@ -227,17 +192,71 @@ class Artifact(object):
|
|
|
227
192
|
def version(self, version):
|
|
228
193
|
"""Sets the version of this Artifact.
|
|
229
194
|
|
|
195
|
+
The artifact's version number # noqa: E501
|
|
230
196
|
|
|
231
197
|
:param version: The version of this Artifact. # noqa: E501
|
|
232
198
|
:type: int
|
|
233
199
|
"""
|
|
200
|
+
if version is None:
|
|
201
|
+
raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501
|
|
234
202
|
|
|
235
203
|
self._version = version
|
|
236
204
|
|
|
205
|
+
@property
|
|
206
|
+
def committed(self):
|
|
207
|
+
"""Gets the committed of this Artifact. # noqa: E501
|
|
208
|
+
|
|
209
|
+
The artifact's committed flag # noqa: E501
|
|
210
|
+
|
|
211
|
+
:return: The committed of this Artifact. # noqa: E501
|
|
212
|
+
:rtype: bool
|
|
213
|
+
"""
|
|
214
|
+
return self._committed
|
|
215
|
+
|
|
216
|
+
@committed.setter
|
|
217
|
+
def committed(self, committed):
|
|
218
|
+
"""Sets the committed of this Artifact.
|
|
219
|
+
|
|
220
|
+
The artifact's committed flag # noqa: E501
|
|
221
|
+
|
|
222
|
+
:param committed: The committed of this Artifact. # noqa: E501
|
|
223
|
+
:type: bool
|
|
224
|
+
"""
|
|
225
|
+
if committed is None:
|
|
226
|
+
raise ValueError("Invalid value for `committed`, must not be `None`") # noqa: E501
|
|
227
|
+
|
|
228
|
+
self._committed = committed
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def storage_url(self):
|
|
232
|
+
"""Gets the storage_url of this Artifact. # noqa: E501
|
|
233
|
+
|
|
234
|
+
The artifact's storage URL # noqa: E501
|
|
235
|
+
|
|
236
|
+
:return: The storage_url of this Artifact. # noqa: E501
|
|
237
|
+
:rtype: str
|
|
238
|
+
"""
|
|
239
|
+
return self._storage_url
|
|
240
|
+
|
|
241
|
+
@storage_url.setter
|
|
242
|
+
def storage_url(self, storage_url):
|
|
243
|
+
"""Sets the storage_url of this Artifact.
|
|
244
|
+
|
|
245
|
+
The artifact's storage URL # noqa: E501
|
|
246
|
+
|
|
247
|
+
:param storage_url: The storage_url of this Artifact. # noqa: E501
|
|
248
|
+
:type: str
|
|
249
|
+
"""
|
|
250
|
+
if storage_url is None:
|
|
251
|
+
raise ValueError("Invalid value for `storage_url`, must not be `None`") # noqa: E501
|
|
252
|
+
|
|
253
|
+
self._storage_url = storage_url
|
|
254
|
+
|
|
237
255
|
@property
|
|
238
256
|
def content_length(self):
|
|
239
257
|
"""Gets the content_length of this Artifact. # noqa: E501
|
|
240
258
|
|
|
259
|
+
The length of the artifact's content # noqa: E501
|
|
241
260
|
|
|
242
261
|
:return: The content_length of this Artifact. # noqa: E501
|
|
243
262
|
:rtype: int
|
|
@@ -248,10 +267,13 @@ class Artifact(object):
|
|
|
248
267
|
def content_length(self, content_length):
|
|
249
268
|
"""Sets the content_length of this Artifact.
|
|
250
269
|
|
|
270
|
+
The length of the artifact's content # noqa: E501
|
|
251
271
|
|
|
252
272
|
:param content_length: The content_length of this Artifact. # noqa: E501
|
|
253
273
|
:type: int
|
|
254
274
|
"""
|
|
275
|
+
if content_length is None:
|
|
276
|
+
raise ValueError("Invalid value for `content_length`, must not be `None`") # noqa: E501
|
|
255
277
|
|
|
256
278
|
self._content_length = content_length
|
|
257
279
|
|
|
@@ -259,6 +281,7 @@ class Artifact(object):
|
|
|
259
281
|
def content_digest(self):
|
|
260
282
|
"""Gets the content_digest of this Artifact. # noqa: E501
|
|
261
283
|
|
|
284
|
+
The digest of the artifact's content # noqa: E501
|
|
262
285
|
|
|
263
286
|
:return: The content_digest of this Artifact. # noqa: E501
|
|
264
287
|
:rtype: str
|
|
@@ -269,10 +292,13 @@ class Artifact(object):
|
|
|
269
292
|
def content_digest(self, content_digest):
|
|
270
293
|
"""Sets the content_digest of this Artifact.
|
|
271
294
|
|
|
295
|
+
The digest of the artifact's content # noqa: E501
|
|
272
296
|
|
|
273
297
|
:param content_digest: The content_digest of this Artifact. # noqa: E501
|
|
274
298
|
:type: str
|
|
275
299
|
"""
|
|
300
|
+
if content_digest is None:
|
|
301
|
+
raise ValueError("Invalid value for `content_digest`, must not be `None`") # noqa: E501
|
|
276
302
|
|
|
277
303
|
self._content_digest = content_digest
|
|
278
304
|
|
|
@@ -280,6 +306,7 @@ class Artifact(object):
|
|
|
280
306
|
def collection_date(self):
|
|
281
307
|
"""Gets the collection_date of this Artifact. # noqa: E501
|
|
282
308
|
|
|
309
|
+
The artifact's collection date # noqa: E501
|
|
283
310
|
|
|
284
311
|
:return: The collection_date of this Artifact. # noqa: E501
|
|
285
312
|
:rtype: int
|
|
@@ -290,10 +317,13 @@ class Artifact(object):
|
|
|
290
317
|
def collection_date(self, collection_date):
|
|
291
318
|
"""Sets the collection_date of this Artifact.
|
|
292
319
|
|
|
320
|
+
The artifact's collection date # noqa: E501
|
|
293
321
|
|
|
294
322
|
:param collection_date: The collection_date of this Artifact. # noqa: E501
|
|
295
323
|
:type: int
|
|
296
324
|
"""
|
|
325
|
+
if collection_date is None:
|
|
326
|
+
raise ValueError("Invalid value for `collection_date`, must not be `None`") # noqa: E501
|
|
297
327
|
|
|
298
328
|
self._collection_date = collection_date
|
|
299
329
|
|
|
@@ -56,6 +56,7 @@ class AuSize(object):
|
|
|
56
56
|
def total_latest_versions(self):
|
|
57
57
|
"""Gets the total_latest_versions of this AuSize. # noqa: E501
|
|
58
58
|
|
|
59
|
+
Total content size of all latest versions # noqa: E501
|
|
59
60
|
|
|
60
61
|
:return: The total_latest_versions of this AuSize. # noqa: E501
|
|
61
62
|
:rtype: int
|
|
@@ -66,6 +67,7 @@ class AuSize(object):
|
|
|
66
67
|
def total_latest_versions(self, total_latest_versions):
|
|
67
68
|
"""Sets the total_latest_versions of this AuSize.
|
|
68
69
|
|
|
70
|
+
Total content size of all latest versions # noqa: E501
|
|
69
71
|
|
|
70
72
|
:param total_latest_versions: The total_latest_versions of this AuSize. # noqa: E501
|
|
71
73
|
:type: int
|
|
@@ -77,6 +79,7 @@ class AuSize(object):
|
|
|
77
79
|
def total_all_versions(self):
|
|
78
80
|
"""Gets the total_all_versions of this AuSize. # noqa: E501
|
|
79
81
|
|
|
82
|
+
Total content size of all versions # noqa: E501
|
|
80
83
|
|
|
81
84
|
:return: The total_all_versions of this AuSize. # noqa: E501
|
|
82
85
|
:rtype: int
|
|
@@ -87,6 +90,7 @@ class AuSize(object):
|
|
|
87
90
|
def total_all_versions(self, total_all_versions):
|
|
88
91
|
"""Sets the total_all_versions of this AuSize.
|
|
89
92
|
|
|
93
|
+
Total content size of all versions # noqa: E501
|
|
90
94
|
|
|
91
95
|
:param total_all_versions: The total_all_versions of this AuSize. # noqa: E501
|
|
92
96
|
:type: int
|
|
@@ -98,6 +102,7 @@ class AuSize(object):
|
|
|
98
102
|
def total_warc_size(self):
|
|
99
103
|
"""Gets the total_warc_size of this AuSize. # noqa: E501
|
|
100
104
|
|
|
105
|
+
Total WARC file size # noqa: E501
|
|
101
106
|
|
|
102
107
|
:return: The total_warc_size of this AuSize. # noqa: E501
|
|
103
108
|
:rtype: int
|
|
@@ -108,6 +113,7 @@ class AuSize(object):
|
|
|
108
113
|
def total_warc_size(self, total_warc_size):
|
|
109
114
|
"""Sets the total_warc_size of this AuSize.
|
|
110
115
|
|
|
116
|
+
Total WARC file size # noqa: E501
|
|
111
117
|
|
|
112
118
|
:param total_warc_size: The total_warc_size of this AuSize. # noqa: E501
|
|
113
119
|
:type: int
|
|
@@ -49,7 +49,7 @@ class AuidPageInfo(object):
|
|
|
49
49
|
def auids(self):
|
|
50
50
|
"""Gets the auids of this AuidPageInfo. # noqa: E501
|
|
51
51
|
|
|
52
|
-
The
|
|
52
|
+
The AUIDs included in the page # noqa: E501
|
|
53
53
|
|
|
54
54
|
:return: The auids of this AuidPageInfo. # noqa: E501
|
|
55
55
|
:rtype: list[str]
|
|
@@ -60,7 +60,7 @@ class AuidPageInfo(object):
|
|
|
60
60
|
def auids(self, auids):
|
|
61
61
|
"""Sets the auids of this AuidPageInfo.
|
|
62
62
|
|
|
63
|
-
The
|
|
63
|
+
The AUIDs included in the page # noqa: E501
|
|
64
64
|
|
|
65
65
|
:param auids: The auids of this AuidPageInfo. # noqa: E501
|
|
66
66
|
:type: list[str]
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Repository Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Repository 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 BulkAuOpEnum(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
|
+
"""
|
|
25
|
+
allowed enum values
|
|
26
|
+
"""
|
|
27
|
+
START = "start"
|
|
28
|
+
FINISH = "finish"
|
|
29
|
+
"""
|
|
30
|
+
Attributes:
|
|
31
|
+
swagger_types (dict): The key is attribute name
|
|
32
|
+
and the value is attribute type.
|
|
33
|
+
attribute_map (dict): The key is attribute name
|
|
34
|
+
and the value is json key in definition.
|
|
35
|
+
"""
|
|
36
|
+
swagger_types = {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self): # noqa: E501
|
|
43
|
+
"""BulkAuOpEnum - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
def to_dict(self):
|
|
47
|
+
"""Returns the model properties as a dict"""
|
|
48
|
+
result = {}
|
|
49
|
+
|
|
50
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
51
|
+
value = getattr(self, attr)
|
|
52
|
+
if isinstance(value, list):
|
|
53
|
+
result[attr] = list(map(
|
|
54
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
55
|
+
value
|
|
56
|
+
))
|
|
57
|
+
elif hasattr(value, "to_dict"):
|
|
58
|
+
result[attr] = value.to_dict()
|
|
59
|
+
elif isinstance(value, dict):
|
|
60
|
+
result[attr] = dict(map(
|
|
61
|
+
lambda item: (item[0], item[1].to_dict())
|
|
62
|
+
if hasattr(item[1], "to_dict") else item,
|
|
63
|
+
value.items()
|
|
64
|
+
))
|
|
65
|
+
else:
|
|
66
|
+
result[attr] = value
|
|
67
|
+
if issubclass(BulkAuOpEnum, dict):
|
|
68
|
+
for key, value in self.items():
|
|
69
|
+
result[key] = value
|
|
70
|
+
|
|
71
|
+
return result
|
|
72
|
+
|
|
73
|
+
def to_str(self):
|
|
74
|
+
"""Returns the string representation of the model"""
|
|
75
|
+
return pprint.pformat(self.to_dict())
|
|
76
|
+
|
|
77
|
+
def __repr__(self):
|
|
78
|
+
"""For `print` and `pprint`"""
|
|
79
|
+
return self.to_str()
|
|
80
|
+
|
|
81
|
+
def __eq__(self, other):
|
|
82
|
+
"""Returns true if both objects are equal"""
|
|
83
|
+
if not isinstance(other, BulkAuOpEnum):
|
|
84
|
+
return False
|
|
85
|
+
|
|
86
|
+
return self.__dict__ == other.__dict__
|
|
87
|
+
|
|
88
|
+
def __ne__(self, other):
|
|
89
|
+
"""Returns true if both objects are not equal"""
|
|
90
|
+
return not self == other
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Repository Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Repository 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 IncludeContentEnum(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
|
+
"""
|
|
25
|
+
allowed enum values
|
|
26
|
+
"""
|
|
27
|
+
NEVER = "NEVER"
|
|
28
|
+
IF_SMALL = "IF_SMALL"
|
|
29
|
+
ALWAYS = "ALWAYS"
|
|
30
|
+
"""
|
|
31
|
+
Attributes:
|
|
32
|
+
swagger_types (dict): The key is attribute name
|
|
33
|
+
and the value is attribute type.
|
|
34
|
+
attribute_map (dict): The key is attribute name
|
|
35
|
+
and the value is json key in definition.
|
|
36
|
+
"""
|
|
37
|
+
swagger_types = {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self): # noqa: E501
|
|
44
|
+
"""IncludeContentEnum - a model defined in Swagger""" # noqa: E501
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
def to_dict(self):
|
|
48
|
+
"""Returns the model properties as a dict"""
|
|
49
|
+
result = {}
|
|
50
|
+
|
|
51
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
52
|
+
value = getattr(self, attr)
|
|
53
|
+
if isinstance(value, list):
|
|
54
|
+
result[attr] = list(map(
|
|
55
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
56
|
+
value
|
|
57
|
+
))
|
|
58
|
+
elif hasattr(value, "to_dict"):
|
|
59
|
+
result[attr] = value.to_dict()
|
|
60
|
+
elif isinstance(value, dict):
|
|
61
|
+
result[attr] = dict(map(
|
|
62
|
+
lambda item: (item[0], item[1].to_dict())
|
|
63
|
+
if hasattr(item[1], "to_dict") else item,
|
|
64
|
+
value.items()
|
|
65
|
+
))
|
|
66
|
+
else:
|
|
67
|
+
result[attr] = value
|
|
68
|
+
if issubclass(IncludeContentEnum, dict):
|
|
69
|
+
for key, value in self.items():
|
|
70
|
+
result[key] = value
|
|
71
|
+
|
|
72
|
+
return result
|
|
73
|
+
|
|
74
|
+
def to_str(self):
|
|
75
|
+
"""Returns the string representation of the model"""
|
|
76
|
+
return pprint.pformat(self.to_dict())
|
|
77
|
+
|
|
78
|
+
def __repr__(self):
|
|
79
|
+
"""For `print` and `pprint`"""
|
|
80
|
+
return self.to_str()
|
|
81
|
+
|
|
82
|
+
def __eq__(self, other):
|
|
83
|
+
"""Returns true if both objects are equal"""
|
|
84
|
+
if not isinstance(other, IncludeContentEnum):
|
|
85
|
+
return False
|
|
86
|
+
|
|
87
|
+
return self.__dict__ == other.__dict__
|
|
88
|
+
|
|
89
|
+
def __ne__(self, other):
|
|
90
|
+
"""Returns true if both objects are not equal"""
|
|
91
|
+
return not self == other
|