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,344 @@
|
|
|
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 ArtifactProperties(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
|
+
'namespace': 'str',
|
|
32
|
+
'uuid': 'str',
|
|
33
|
+
'auid': 'str',
|
|
34
|
+
'uri': 'str',
|
|
35
|
+
'version': 'int',
|
|
36
|
+
'content_length': 'int',
|
|
37
|
+
'content_digest': 'str',
|
|
38
|
+
'collection_date': 'int',
|
|
39
|
+
'store_date': 'int',
|
|
40
|
+
'state': 'str'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'namespace': 'namespace',
|
|
45
|
+
'uuid': 'uuid',
|
|
46
|
+
'auid': 'auid',
|
|
47
|
+
'uri': 'uri',
|
|
48
|
+
'version': 'version',
|
|
49
|
+
'content_length': 'contentLength',
|
|
50
|
+
'content_digest': 'contentDigest',
|
|
51
|
+
'collection_date': 'collectionDate',
|
|
52
|
+
'store_date': 'storeDate',
|
|
53
|
+
'state': 'state'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
def __init__(self, namespace='lockss', uuid=None, auid=None, uri=None, version=None, content_length=None, content_digest=None, collection_date=None, store_date=None, state=None): # noqa: E501
|
|
57
|
+
"""ArtifactProperties - a model defined in Swagger""" # noqa: E501
|
|
58
|
+
self._namespace = None
|
|
59
|
+
self._uuid = None
|
|
60
|
+
self._auid = None
|
|
61
|
+
self._uri = None
|
|
62
|
+
self._version = None
|
|
63
|
+
self._content_length = None
|
|
64
|
+
self._content_digest = None
|
|
65
|
+
self._collection_date = None
|
|
66
|
+
self._store_date = None
|
|
67
|
+
self._state = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
if namespace is not None:
|
|
70
|
+
self.namespace = namespace
|
|
71
|
+
if uuid is not None:
|
|
72
|
+
self.uuid = uuid
|
|
73
|
+
if auid is not None:
|
|
74
|
+
self.auid = auid
|
|
75
|
+
if uri is not None:
|
|
76
|
+
self.uri = uri
|
|
77
|
+
if version is not None:
|
|
78
|
+
self.version = version
|
|
79
|
+
if content_length is not None:
|
|
80
|
+
self.content_length = content_length
|
|
81
|
+
if content_digest is not None:
|
|
82
|
+
self.content_digest = content_digest
|
|
83
|
+
if collection_date is not None:
|
|
84
|
+
self.collection_date = collection_date
|
|
85
|
+
if store_date is not None:
|
|
86
|
+
self.store_date = store_date
|
|
87
|
+
if state is not None:
|
|
88
|
+
self.state = state
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def namespace(self):
|
|
92
|
+
"""Gets the namespace of this ArtifactProperties. # noqa: E501
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:return: The namespace of this ArtifactProperties. # noqa: E501
|
|
96
|
+
:rtype: str
|
|
97
|
+
"""
|
|
98
|
+
return self._namespace
|
|
99
|
+
|
|
100
|
+
@namespace.setter
|
|
101
|
+
def namespace(self, namespace):
|
|
102
|
+
"""Sets the namespace of this ArtifactProperties.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:param namespace: The namespace of this ArtifactProperties. # noqa: E501
|
|
106
|
+
:type: str
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._namespace = namespace
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def uuid(self):
|
|
113
|
+
"""Gets the uuid of this ArtifactProperties. # noqa: E501
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:return: The uuid of this ArtifactProperties. # noqa: E501
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._uuid
|
|
120
|
+
|
|
121
|
+
@uuid.setter
|
|
122
|
+
def uuid(self, uuid):
|
|
123
|
+
"""Sets the uuid of this ArtifactProperties.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:param uuid: The uuid of this ArtifactProperties. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._uuid = uuid
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def auid(self):
|
|
134
|
+
"""Gets the auid of this ArtifactProperties. # noqa: E501
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:return: The auid of this ArtifactProperties. # noqa: E501
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._auid
|
|
141
|
+
|
|
142
|
+
@auid.setter
|
|
143
|
+
def auid(self, auid):
|
|
144
|
+
"""Sets the auid of this ArtifactProperties.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
:param auid: The auid of this ArtifactProperties. # noqa: E501
|
|
148
|
+
:type: str
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
self._auid = auid
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def uri(self):
|
|
155
|
+
"""Gets the uri of this ArtifactProperties. # noqa: E501
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:return: The uri of this ArtifactProperties. # noqa: E501
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._uri
|
|
162
|
+
|
|
163
|
+
@uri.setter
|
|
164
|
+
def uri(self, uri):
|
|
165
|
+
"""Sets the uri of this ArtifactProperties.
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
:param uri: The uri of this ArtifactProperties. # noqa: E501
|
|
169
|
+
:type: str
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
self._uri = uri
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def version(self):
|
|
176
|
+
"""Gets the version of this ArtifactProperties. # noqa: E501
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:return: The version of this ArtifactProperties. # noqa: E501
|
|
180
|
+
:rtype: int
|
|
181
|
+
"""
|
|
182
|
+
return self._version
|
|
183
|
+
|
|
184
|
+
@version.setter
|
|
185
|
+
def version(self, version):
|
|
186
|
+
"""Sets the version of this ArtifactProperties.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:param version: The version of this ArtifactProperties. # noqa: E501
|
|
190
|
+
:type: int
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
self._version = version
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
def content_length(self):
|
|
197
|
+
"""Gets the content_length of this ArtifactProperties. # noqa: E501
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:return: The content_length of this ArtifactProperties. # noqa: E501
|
|
201
|
+
:rtype: int
|
|
202
|
+
"""
|
|
203
|
+
return self._content_length
|
|
204
|
+
|
|
205
|
+
@content_length.setter
|
|
206
|
+
def content_length(self, content_length):
|
|
207
|
+
"""Sets the content_length of this ArtifactProperties.
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
:param content_length: The content_length of this ArtifactProperties. # noqa: E501
|
|
211
|
+
:type: int
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
self._content_length = content_length
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def content_digest(self):
|
|
218
|
+
"""Gets the content_digest of this ArtifactProperties. # noqa: E501
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:return: The content_digest of this ArtifactProperties. # noqa: E501
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
224
|
+
return self._content_digest
|
|
225
|
+
|
|
226
|
+
@content_digest.setter
|
|
227
|
+
def content_digest(self, content_digest):
|
|
228
|
+
"""Sets the content_digest of this ArtifactProperties.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
:param content_digest: The content_digest of this ArtifactProperties. # noqa: E501
|
|
232
|
+
:type: str
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._content_digest = content_digest
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def collection_date(self):
|
|
239
|
+
"""Gets the collection_date of this ArtifactProperties. # noqa: E501
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
:return: The collection_date of this ArtifactProperties. # noqa: E501
|
|
243
|
+
:rtype: int
|
|
244
|
+
"""
|
|
245
|
+
return self._collection_date
|
|
246
|
+
|
|
247
|
+
@collection_date.setter
|
|
248
|
+
def collection_date(self, collection_date):
|
|
249
|
+
"""Sets the collection_date of this ArtifactProperties.
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
:param collection_date: The collection_date of this ArtifactProperties. # noqa: E501
|
|
253
|
+
:type: int
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
self._collection_date = collection_date
|
|
257
|
+
|
|
258
|
+
@property
|
|
259
|
+
def store_date(self):
|
|
260
|
+
"""Gets the store_date of this ArtifactProperties. # noqa: E501
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
:return: The store_date of this ArtifactProperties. # noqa: E501
|
|
264
|
+
:rtype: int
|
|
265
|
+
"""
|
|
266
|
+
return self._store_date
|
|
267
|
+
|
|
268
|
+
@store_date.setter
|
|
269
|
+
def store_date(self, store_date):
|
|
270
|
+
"""Sets the store_date of this ArtifactProperties.
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
:param store_date: The store_date of this ArtifactProperties. # noqa: E501
|
|
274
|
+
:type: int
|
|
275
|
+
"""
|
|
276
|
+
|
|
277
|
+
self._store_date = store_date
|
|
278
|
+
|
|
279
|
+
@property
|
|
280
|
+
def state(self):
|
|
281
|
+
"""Gets the state of this ArtifactProperties. # noqa: E501
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
:return: The state of this ArtifactProperties. # noqa: E501
|
|
285
|
+
:rtype: str
|
|
286
|
+
"""
|
|
287
|
+
return self._state
|
|
288
|
+
|
|
289
|
+
@state.setter
|
|
290
|
+
def state(self, state):
|
|
291
|
+
"""Sets the state of this ArtifactProperties.
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
:param state: The state of this ArtifactProperties. # noqa: E501
|
|
295
|
+
:type: str
|
|
296
|
+
"""
|
|
297
|
+
|
|
298
|
+
self._state = state
|
|
299
|
+
|
|
300
|
+
def to_dict(self):
|
|
301
|
+
"""Returns the model properties as a dict"""
|
|
302
|
+
result = {}
|
|
303
|
+
|
|
304
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
305
|
+
value = getattr(self, attr)
|
|
306
|
+
if isinstance(value, list):
|
|
307
|
+
result[attr] = list(map(
|
|
308
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
309
|
+
value
|
|
310
|
+
))
|
|
311
|
+
elif hasattr(value, "to_dict"):
|
|
312
|
+
result[attr] = value.to_dict()
|
|
313
|
+
elif isinstance(value, dict):
|
|
314
|
+
result[attr] = dict(map(
|
|
315
|
+
lambda item: (item[0], item[1].to_dict())
|
|
316
|
+
if hasattr(item[1], "to_dict") else item,
|
|
317
|
+
value.items()
|
|
318
|
+
))
|
|
319
|
+
else:
|
|
320
|
+
result[attr] = value
|
|
321
|
+
if issubclass(ArtifactProperties, dict):
|
|
322
|
+
for key, value in self.items():
|
|
323
|
+
result[key] = value
|
|
324
|
+
|
|
325
|
+
return result
|
|
326
|
+
|
|
327
|
+
def to_str(self):
|
|
328
|
+
"""Returns the string representation of the model"""
|
|
329
|
+
return pprint.pformat(self.to_dict())
|
|
330
|
+
|
|
331
|
+
def __repr__(self):
|
|
332
|
+
"""For `print` and `pprint`"""
|
|
333
|
+
return self.to_str()
|
|
334
|
+
|
|
335
|
+
def __eq__(self, other):
|
|
336
|
+
"""Returns true if both objects are equal"""
|
|
337
|
+
if not isinstance(other, ArtifactProperties):
|
|
338
|
+
return False
|
|
339
|
+
|
|
340
|
+
return self.__dict__ == other.__dict__
|
|
341
|
+
|
|
342
|
+
def __ne__(self, other):
|
|
343
|
+
"""Returns true if both objects are not equal"""
|
|
344
|
+
return not self == other
|
|
@@ -0,0 +1,170 @@
|
|
|
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 ArtifactsBody(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
|
+
'artifact_props': 'str',
|
|
32
|
+
'payload': 'str',
|
|
33
|
+
'http_response_header': 'str'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'artifact_props': 'artifactProps',
|
|
38
|
+
'payload': 'payload',
|
|
39
|
+
'http_response_header': 'httpResponseHeader'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, artifact_props=None, payload=None, http_response_header=None): # noqa: E501
|
|
43
|
+
"""ArtifactsBody - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._artifact_props = None
|
|
45
|
+
self._payload = None
|
|
46
|
+
self._http_response_header = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
self.artifact_props = artifact_props
|
|
49
|
+
self.payload = payload
|
|
50
|
+
if http_response_header is not None:
|
|
51
|
+
self.http_response_header = http_response_header
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def artifact_props(self):
|
|
55
|
+
"""Gets the artifact_props of this ArtifactsBody. # noqa: E501
|
|
56
|
+
|
|
57
|
+
Artifact properties (JSON) # noqa: E501
|
|
58
|
+
|
|
59
|
+
:return: The artifact_props of this ArtifactsBody. # noqa: E501
|
|
60
|
+
:rtype: str
|
|
61
|
+
"""
|
|
62
|
+
return self._artifact_props
|
|
63
|
+
|
|
64
|
+
@artifact_props.setter
|
|
65
|
+
def artifact_props(self, artifact_props):
|
|
66
|
+
"""Sets the artifact_props of this ArtifactsBody.
|
|
67
|
+
|
|
68
|
+
Artifact properties (JSON) # noqa: E501
|
|
69
|
+
|
|
70
|
+
:param artifact_props: The artifact_props of this ArtifactsBody. # noqa: E501
|
|
71
|
+
:type: str
|
|
72
|
+
"""
|
|
73
|
+
if artifact_props is None:
|
|
74
|
+
raise ValueError("Invalid value for `artifact_props`, must not be `None`") # noqa: E501
|
|
75
|
+
|
|
76
|
+
self._artifact_props = artifact_props
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def payload(self):
|
|
80
|
+
"""Gets the payload of this ArtifactsBody. # noqa: E501
|
|
81
|
+
|
|
82
|
+
Artifact payload data # noqa: E501
|
|
83
|
+
|
|
84
|
+
:return: The payload of this ArtifactsBody. # noqa: E501
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._payload
|
|
88
|
+
|
|
89
|
+
@payload.setter
|
|
90
|
+
def payload(self, payload):
|
|
91
|
+
"""Sets the payload of this ArtifactsBody.
|
|
92
|
+
|
|
93
|
+
Artifact payload data # noqa: E501
|
|
94
|
+
|
|
95
|
+
:param payload: The payload of this ArtifactsBody. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
if payload is None:
|
|
99
|
+
raise ValueError("Invalid value for `payload`, must not be `None`") # noqa: E501
|
|
100
|
+
|
|
101
|
+
self._payload = payload
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def http_response_header(self):
|
|
105
|
+
"""Gets the http_response_header of this ArtifactsBody. # noqa: E501
|
|
106
|
+
|
|
107
|
+
HTTP response status and headers (optional) # noqa: E501
|
|
108
|
+
|
|
109
|
+
:return: The http_response_header of this ArtifactsBody. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._http_response_header
|
|
113
|
+
|
|
114
|
+
@http_response_header.setter
|
|
115
|
+
def http_response_header(self, http_response_header):
|
|
116
|
+
"""Sets the http_response_header of this ArtifactsBody.
|
|
117
|
+
|
|
118
|
+
HTTP response status and headers (optional) # noqa: E501
|
|
119
|
+
|
|
120
|
+
:param http_response_header: The http_response_header of this ArtifactsBody. # noqa: E501
|
|
121
|
+
:type: str
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
self._http_response_header = http_response_header
|
|
125
|
+
|
|
126
|
+
def to_dict(self):
|
|
127
|
+
"""Returns the model properties as a dict"""
|
|
128
|
+
result = {}
|
|
129
|
+
|
|
130
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
131
|
+
value = getattr(self, attr)
|
|
132
|
+
if isinstance(value, list):
|
|
133
|
+
result[attr] = list(map(
|
|
134
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
135
|
+
value
|
|
136
|
+
))
|
|
137
|
+
elif hasattr(value, "to_dict"):
|
|
138
|
+
result[attr] = value.to_dict()
|
|
139
|
+
elif isinstance(value, dict):
|
|
140
|
+
result[attr] = dict(map(
|
|
141
|
+
lambda item: (item[0], item[1].to_dict())
|
|
142
|
+
if hasattr(item[1], "to_dict") else item,
|
|
143
|
+
value.items()
|
|
144
|
+
))
|
|
145
|
+
else:
|
|
146
|
+
result[attr] = value
|
|
147
|
+
if issubclass(ArtifactsBody, dict):
|
|
148
|
+
for key, value in self.items():
|
|
149
|
+
result[key] = value
|
|
150
|
+
|
|
151
|
+
return result
|
|
152
|
+
|
|
153
|
+
def to_str(self):
|
|
154
|
+
"""Returns the string representation of the model"""
|
|
155
|
+
return pprint.pformat(self.to_dict())
|
|
156
|
+
|
|
157
|
+
def __repr__(self):
|
|
158
|
+
"""For `print` and `pprint`"""
|
|
159
|
+
return self.to_str()
|
|
160
|
+
|
|
161
|
+
def __eq__(self, other):
|
|
162
|
+
"""Returns true if both objects are equal"""
|
|
163
|
+
if not isinstance(other, ArtifactsBody):
|
|
164
|
+
return False
|
|
165
|
+
|
|
166
|
+
return self.__dict__ == other.__dict__
|
|
167
|
+
|
|
168
|
+
def __ne__(self, other):
|
|
169
|
+
"""Returns true if both objects are not equal"""
|
|
170
|
+
return not self == other
|
|
@@ -0,0 +1,162 @@
|
|
|
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 AuSize(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
|
+
'total_latest_versions': 'int',
|
|
32
|
+
'total_all_versions': 'int',
|
|
33
|
+
'total_warc_size': 'int'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'total_latest_versions': 'totalLatestVersions',
|
|
38
|
+
'total_all_versions': 'totalAllVersions',
|
|
39
|
+
'total_warc_size': 'totalWarcSize'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, total_latest_versions=None, total_all_versions=None, total_warc_size=None): # noqa: E501
|
|
43
|
+
"""AuSize - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._total_latest_versions = None
|
|
45
|
+
self._total_all_versions = None
|
|
46
|
+
self._total_warc_size = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
if total_latest_versions is not None:
|
|
49
|
+
self.total_latest_versions = total_latest_versions
|
|
50
|
+
if total_all_versions is not None:
|
|
51
|
+
self.total_all_versions = total_all_versions
|
|
52
|
+
if total_warc_size is not None:
|
|
53
|
+
self.total_warc_size = total_warc_size
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def total_latest_versions(self):
|
|
57
|
+
"""Gets the total_latest_versions of this AuSize. # noqa: E501
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:return: The total_latest_versions of this AuSize. # noqa: E501
|
|
61
|
+
:rtype: int
|
|
62
|
+
"""
|
|
63
|
+
return self._total_latest_versions
|
|
64
|
+
|
|
65
|
+
@total_latest_versions.setter
|
|
66
|
+
def total_latest_versions(self, total_latest_versions):
|
|
67
|
+
"""Sets the total_latest_versions of this AuSize.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:param total_latest_versions: The total_latest_versions of this AuSize. # noqa: E501
|
|
71
|
+
:type: int
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
self._total_latest_versions = total_latest_versions
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def total_all_versions(self):
|
|
78
|
+
"""Gets the total_all_versions of this AuSize. # noqa: E501
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
:return: The total_all_versions of this AuSize. # noqa: E501
|
|
82
|
+
:rtype: int
|
|
83
|
+
"""
|
|
84
|
+
return self._total_all_versions
|
|
85
|
+
|
|
86
|
+
@total_all_versions.setter
|
|
87
|
+
def total_all_versions(self, total_all_versions):
|
|
88
|
+
"""Sets the total_all_versions of this AuSize.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:param total_all_versions: The total_all_versions of this AuSize. # noqa: E501
|
|
92
|
+
:type: int
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
self._total_all_versions = total_all_versions
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def total_warc_size(self):
|
|
99
|
+
"""Gets the total_warc_size of this AuSize. # noqa: E501
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
:return: The total_warc_size of this AuSize. # noqa: E501
|
|
103
|
+
:rtype: int
|
|
104
|
+
"""
|
|
105
|
+
return self._total_warc_size
|
|
106
|
+
|
|
107
|
+
@total_warc_size.setter
|
|
108
|
+
def total_warc_size(self, total_warc_size):
|
|
109
|
+
"""Sets the total_warc_size of this AuSize.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:param total_warc_size: The total_warc_size of this AuSize. # noqa: E501
|
|
113
|
+
:type: int
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
self._total_warc_size = total_warc_size
|
|
117
|
+
|
|
118
|
+
def to_dict(self):
|
|
119
|
+
"""Returns the model properties as a dict"""
|
|
120
|
+
result = {}
|
|
121
|
+
|
|
122
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
123
|
+
value = getattr(self, attr)
|
|
124
|
+
if isinstance(value, list):
|
|
125
|
+
result[attr] = list(map(
|
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
127
|
+
value
|
|
128
|
+
))
|
|
129
|
+
elif hasattr(value, "to_dict"):
|
|
130
|
+
result[attr] = value.to_dict()
|
|
131
|
+
elif isinstance(value, dict):
|
|
132
|
+
result[attr] = dict(map(
|
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
|
135
|
+
value.items()
|
|
136
|
+
))
|
|
137
|
+
else:
|
|
138
|
+
result[attr] = value
|
|
139
|
+
if issubclass(AuSize, dict):
|
|
140
|
+
for key, value in self.items():
|
|
141
|
+
result[key] = value
|
|
142
|
+
|
|
143
|
+
return result
|
|
144
|
+
|
|
145
|
+
def to_str(self):
|
|
146
|
+
"""Returns the string representation of the model"""
|
|
147
|
+
return pprint.pformat(self.to_dict())
|
|
148
|
+
|
|
149
|
+
def __repr__(self):
|
|
150
|
+
"""For `print` and `pprint`"""
|
|
151
|
+
return self.to_str()
|
|
152
|
+
|
|
153
|
+
def __eq__(self, other):
|
|
154
|
+
"""Returns true if both objects are equal"""
|
|
155
|
+
if not isinstance(other, AuSize):
|
|
156
|
+
return False
|
|
157
|
+
|
|
158
|
+
return self.__dict__ == other.__dict__
|
|
159
|
+
|
|
160
|
+
def __ne__(self, other):
|
|
161
|
+
"""Returns true if both objects are not equal"""
|
|
162
|
+
return not self == other
|