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,228 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Crawler Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Crawler 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 PageInfo(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_count': 'int',
|
|
32
|
+
'results_per_page': 'int',
|
|
33
|
+
'continuation_token': 'str',
|
|
34
|
+
'cur_link': 'str',
|
|
35
|
+
'next_link': 'str'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'total_count': 'totalCount',
|
|
40
|
+
'results_per_page': 'resultsPerPage',
|
|
41
|
+
'continuation_token': 'continuationToken',
|
|
42
|
+
'cur_link': 'curLink',
|
|
43
|
+
'next_link': 'nextLink'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
def __init__(self, total_count=None, results_per_page=None, continuation_token=None, cur_link=None, next_link=None): # noqa: E501
|
|
47
|
+
"""PageInfo - a model defined in Swagger""" # noqa: E501
|
|
48
|
+
self._total_count = None
|
|
49
|
+
self._results_per_page = None
|
|
50
|
+
self._continuation_token = None
|
|
51
|
+
self._cur_link = None
|
|
52
|
+
self._next_link = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
self.total_count = total_count
|
|
55
|
+
self.results_per_page = results_per_page
|
|
56
|
+
self.continuation_token = continuation_token
|
|
57
|
+
self.cur_link = cur_link
|
|
58
|
+
if next_link is not None:
|
|
59
|
+
self.next_link = next_link
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def total_count(self):
|
|
63
|
+
"""Gets the total_count of this PageInfo. # noqa: E501
|
|
64
|
+
|
|
65
|
+
The total number of elements to be paginated # noqa: E501
|
|
66
|
+
|
|
67
|
+
:return: The total_count of this PageInfo. # noqa: E501
|
|
68
|
+
:rtype: int
|
|
69
|
+
"""
|
|
70
|
+
return self._total_count
|
|
71
|
+
|
|
72
|
+
@total_count.setter
|
|
73
|
+
def total_count(self, total_count):
|
|
74
|
+
"""Sets the total_count of this PageInfo.
|
|
75
|
+
|
|
76
|
+
The total number of elements to be paginated # noqa: E501
|
|
77
|
+
|
|
78
|
+
:param total_count: The total_count of this PageInfo. # noqa: E501
|
|
79
|
+
:type: int
|
|
80
|
+
"""
|
|
81
|
+
if total_count is None:
|
|
82
|
+
raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
|
|
83
|
+
|
|
84
|
+
self._total_count = total_count
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def results_per_page(self):
|
|
88
|
+
"""Gets the results_per_page of this PageInfo. # noqa: E501
|
|
89
|
+
|
|
90
|
+
The number of results per page. # noqa: E501
|
|
91
|
+
|
|
92
|
+
:return: The results_per_page of this PageInfo. # noqa: E501
|
|
93
|
+
:rtype: int
|
|
94
|
+
"""
|
|
95
|
+
return self._results_per_page
|
|
96
|
+
|
|
97
|
+
@results_per_page.setter
|
|
98
|
+
def results_per_page(self, results_per_page):
|
|
99
|
+
"""Sets the results_per_page of this PageInfo.
|
|
100
|
+
|
|
101
|
+
The number of results per page. # noqa: E501
|
|
102
|
+
|
|
103
|
+
:param results_per_page: The results_per_page of this PageInfo. # noqa: E501
|
|
104
|
+
:type: int
|
|
105
|
+
"""
|
|
106
|
+
if results_per_page is None:
|
|
107
|
+
raise ValueError("Invalid value for `results_per_page`, must not be `None`") # noqa: E501
|
|
108
|
+
|
|
109
|
+
self._results_per_page = results_per_page
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def continuation_token(self):
|
|
113
|
+
"""Gets the continuation_token of this PageInfo. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The continuation token. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The continuation_token of this PageInfo. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._continuation_token
|
|
121
|
+
|
|
122
|
+
@continuation_token.setter
|
|
123
|
+
def continuation_token(self, continuation_token):
|
|
124
|
+
"""Sets the continuation_token of this PageInfo.
|
|
125
|
+
|
|
126
|
+
The continuation token. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param continuation_token: The continuation_token of this PageInfo. # noqa: E501
|
|
129
|
+
:type: str
|
|
130
|
+
"""
|
|
131
|
+
if continuation_token is None:
|
|
132
|
+
raise ValueError("Invalid value for `continuation_token`, must not be `None`") # noqa: E501
|
|
133
|
+
|
|
134
|
+
self._continuation_token = continuation_token
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def cur_link(self):
|
|
138
|
+
"""Gets the cur_link of this PageInfo. # noqa: E501
|
|
139
|
+
|
|
140
|
+
The link to the current page. # noqa: E501
|
|
141
|
+
|
|
142
|
+
:return: The cur_link of this PageInfo. # noqa: E501
|
|
143
|
+
:rtype: str
|
|
144
|
+
"""
|
|
145
|
+
return self._cur_link
|
|
146
|
+
|
|
147
|
+
@cur_link.setter
|
|
148
|
+
def cur_link(self, cur_link):
|
|
149
|
+
"""Sets the cur_link of this PageInfo.
|
|
150
|
+
|
|
151
|
+
The link to the current page. # noqa: E501
|
|
152
|
+
|
|
153
|
+
:param cur_link: The cur_link of this PageInfo. # noqa: E501
|
|
154
|
+
:type: str
|
|
155
|
+
"""
|
|
156
|
+
if cur_link is None:
|
|
157
|
+
raise ValueError("Invalid value for `cur_link`, must not be `None`") # noqa: E501
|
|
158
|
+
|
|
159
|
+
self._cur_link = cur_link
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def next_link(self):
|
|
163
|
+
"""Gets the next_link of this PageInfo. # noqa: E501
|
|
164
|
+
|
|
165
|
+
The link to the next page. # noqa: E501
|
|
166
|
+
|
|
167
|
+
:return: The next_link of this PageInfo. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._next_link
|
|
171
|
+
|
|
172
|
+
@next_link.setter
|
|
173
|
+
def next_link(self, next_link):
|
|
174
|
+
"""Sets the next_link of this PageInfo.
|
|
175
|
+
|
|
176
|
+
The link to the next page. # noqa: E501
|
|
177
|
+
|
|
178
|
+
:param next_link: The next_link of this PageInfo. # noqa: E501
|
|
179
|
+
:type: str
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
self._next_link = next_link
|
|
183
|
+
|
|
184
|
+
def to_dict(self):
|
|
185
|
+
"""Returns the model properties as a dict"""
|
|
186
|
+
result = {}
|
|
187
|
+
|
|
188
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
189
|
+
value = getattr(self, attr)
|
|
190
|
+
if isinstance(value, list):
|
|
191
|
+
result[attr] = list(map(
|
|
192
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
193
|
+
value
|
|
194
|
+
))
|
|
195
|
+
elif hasattr(value, "to_dict"):
|
|
196
|
+
result[attr] = value.to_dict()
|
|
197
|
+
elif isinstance(value, dict):
|
|
198
|
+
result[attr] = dict(map(
|
|
199
|
+
lambda item: (item[0], item[1].to_dict())
|
|
200
|
+
if hasattr(item[1], "to_dict") else item,
|
|
201
|
+
value.items()
|
|
202
|
+
))
|
|
203
|
+
else:
|
|
204
|
+
result[attr] = value
|
|
205
|
+
if issubclass(PageInfo, dict):
|
|
206
|
+
for key, value in self.items():
|
|
207
|
+
result[key] = value
|
|
208
|
+
|
|
209
|
+
return result
|
|
210
|
+
|
|
211
|
+
def to_str(self):
|
|
212
|
+
"""Returns the string representation of the model"""
|
|
213
|
+
return pprint.pformat(self.to_dict())
|
|
214
|
+
|
|
215
|
+
def __repr__(self):
|
|
216
|
+
"""For `print` and `pprint`"""
|
|
217
|
+
return self.to_str()
|
|
218
|
+
|
|
219
|
+
def __eq__(self, other):
|
|
220
|
+
"""Returns true if both objects are equal"""
|
|
221
|
+
if not isinstance(other, PageInfo):
|
|
222
|
+
return False
|
|
223
|
+
|
|
224
|
+
return self.__dict__ == other.__dict__
|
|
225
|
+
|
|
226
|
+
def __ne__(self, other):
|
|
227
|
+
"""Returns true if both objects are not equal"""
|
|
228
|
+
return not self == other
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Crawler Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Crawler 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 UrlError(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
|
+
'message': 'str',
|
|
32
|
+
'severity': 'str'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'message': 'message',
|
|
37
|
+
'severity': 'severity'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, message=None, severity=None): # noqa: E501
|
|
41
|
+
"""UrlError - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._message = None
|
|
43
|
+
self._severity = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.message = message
|
|
46
|
+
self.severity = severity
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def message(self):
|
|
50
|
+
"""Gets the message of this UrlError. # noqa: E501
|
|
51
|
+
|
|
52
|
+
The error message # noqa: E501
|
|
53
|
+
|
|
54
|
+
:return: The message of this UrlError. # noqa: E501
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._message
|
|
58
|
+
|
|
59
|
+
@message.setter
|
|
60
|
+
def message(self, message):
|
|
61
|
+
"""Sets the message of this UrlError.
|
|
62
|
+
|
|
63
|
+
The error message # noqa: E501
|
|
64
|
+
|
|
65
|
+
:param message: The message of this UrlError. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
if message is None:
|
|
69
|
+
raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
|
|
70
|
+
|
|
71
|
+
self._message = message
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def severity(self):
|
|
75
|
+
"""Gets the severity of this UrlError. # noqa: E501
|
|
76
|
+
|
|
77
|
+
the severity of the error. # noqa: E501
|
|
78
|
+
|
|
79
|
+
:return: The severity of this UrlError. # noqa: E501
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._severity
|
|
83
|
+
|
|
84
|
+
@severity.setter
|
|
85
|
+
def severity(self, severity):
|
|
86
|
+
"""Sets the severity of this UrlError.
|
|
87
|
+
|
|
88
|
+
the severity of the error. # noqa: E501
|
|
89
|
+
|
|
90
|
+
:param severity: The severity of this UrlError. # noqa: E501
|
|
91
|
+
:type: str
|
|
92
|
+
"""
|
|
93
|
+
if severity is None:
|
|
94
|
+
raise ValueError("Invalid value for `severity`, must not be `None`") # noqa: E501
|
|
95
|
+
allowed_values = ["Warning", "Error", "Fatal"] # noqa: E501
|
|
96
|
+
if severity not in allowed_values:
|
|
97
|
+
raise ValueError(
|
|
98
|
+
"Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501
|
|
99
|
+
.format(severity, allowed_values)
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
self._severity = severity
|
|
103
|
+
|
|
104
|
+
def to_dict(self):
|
|
105
|
+
"""Returns the model properties as a dict"""
|
|
106
|
+
result = {}
|
|
107
|
+
|
|
108
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
109
|
+
value = getattr(self, attr)
|
|
110
|
+
if isinstance(value, list):
|
|
111
|
+
result[attr] = list(map(
|
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
113
|
+
value
|
|
114
|
+
))
|
|
115
|
+
elif hasattr(value, "to_dict"):
|
|
116
|
+
result[attr] = value.to_dict()
|
|
117
|
+
elif isinstance(value, dict):
|
|
118
|
+
result[attr] = dict(map(
|
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
|
121
|
+
value.items()
|
|
122
|
+
))
|
|
123
|
+
else:
|
|
124
|
+
result[attr] = value
|
|
125
|
+
if issubclass(UrlError, dict):
|
|
126
|
+
for key, value in self.items():
|
|
127
|
+
result[key] = value
|
|
128
|
+
|
|
129
|
+
return result
|
|
130
|
+
|
|
131
|
+
def to_str(self):
|
|
132
|
+
"""Returns the string representation of the model"""
|
|
133
|
+
return pprint.pformat(self.to_dict())
|
|
134
|
+
|
|
135
|
+
def __repr__(self):
|
|
136
|
+
"""For `print` and `pprint`"""
|
|
137
|
+
return self.to_str()
|
|
138
|
+
|
|
139
|
+
def __eq__(self, other):
|
|
140
|
+
"""Returns true if both objects are equal"""
|
|
141
|
+
if not isinstance(other, UrlError):
|
|
142
|
+
return False
|
|
143
|
+
|
|
144
|
+
return self.__dict__ == other.__dict__
|
|
145
|
+
|
|
146
|
+
def __ne__(self, other):
|
|
147
|
+
"""Returns true if both objects are not equal"""
|
|
148
|
+
return not self == other
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Crawler Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Crawler 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 UrlInfo(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
|
+
'url': 'str',
|
|
32
|
+
'error': 'UrlError',
|
|
33
|
+
'referrers': 'list[str]'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'url': 'url',
|
|
38
|
+
'error': 'error',
|
|
39
|
+
'referrers': 'referrers'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, url=None, error=None, referrers=None): # noqa: E501
|
|
43
|
+
"""UrlInfo - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._url = None
|
|
45
|
+
self._error = None
|
|
46
|
+
self._referrers = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
self.url = url
|
|
49
|
+
if error is not None:
|
|
50
|
+
self.error = error
|
|
51
|
+
if referrers is not None:
|
|
52
|
+
self.referrers = referrers
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def url(self):
|
|
56
|
+
"""Gets the url of this UrlInfo. # noqa: E501
|
|
57
|
+
|
|
58
|
+
The url string # noqa: E501
|
|
59
|
+
|
|
60
|
+
:return: The url of this UrlInfo. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._url
|
|
64
|
+
|
|
65
|
+
@url.setter
|
|
66
|
+
def url(self, url):
|
|
67
|
+
"""Sets the url of this UrlInfo.
|
|
68
|
+
|
|
69
|
+
The url string # noqa: E501
|
|
70
|
+
|
|
71
|
+
:param url: The url of this UrlInfo. # noqa: E501
|
|
72
|
+
:type: str
|
|
73
|
+
"""
|
|
74
|
+
if url is None:
|
|
75
|
+
raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
|
|
76
|
+
|
|
77
|
+
self._url = url
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def error(self):
|
|
81
|
+
"""Gets the error of this UrlInfo. # noqa: E501
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:return: The error of this UrlInfo. # noqa: E501
|
|
85
|
+
:rtype: UrlError
|
|
86
|
+
"""
|
|
87
|
+
return self._error
|
|
88
|
+
|
|
89
|
+
@error.setter
|
|
90
|
+
def error(self, error):
|
|
91
|
+
"""Sets the error of this UrlInfo.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:param error: The error of this UrlInfo. # noqa: E501
|
|
95
|
+
:type: UrlError
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
self._error = error
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def referrers(self):
|
|
102
|
+
"""Gets the referrers of this UrlInfo. # noqa: E501
|
|
103
|
+
|
|
104
|
+
An optional list of referrers. # noqa: E501
|
|
105
|
+
|
|
106
|
+
:return: The referrers of this UrlInfo. # noqa: E501
|
|
107
|
+
:rtype: list[str]
|
|
108
|
+
"""
|
|
109
|
+
return self._referrers
|
|
110
|
+
|
|
111
|
+
@referrers.setter
|
|
112
|
+
def referrers(self, referrers):
|
|
113
|
+
"""Sets the referrers of this UrlInfo.
|
|
114
|
+
|
|
115
|
+
An optional list of referrers. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:param referrers: The referrers of this UrlInfo. # noqa: E501
|
|
118
|
+
:type: list[str]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
self._referrers = referrers
|
|
122
|
+
|
|
123
|
+
def to_dict(self):
|
|
124
|
+
"""Returns the model properties as a dict"""
|
|
125
|
+
result = {}
|
|
126
|
+
|
|
127
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
128
|
+
value = getattr(self, attr)
|
|
129
|
+
if isinstance(value, list):
|
|
130
|
+
result[attr] = list(map(
|
|
131
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
132
|
+
value
|
|
133
|
+
))
|
|
134
|
+
elif hasattr(value, "to_dict"):
|
|
135
|
+
result[attr] = value.to_dict()
|
|
136
|
+
elif isinstance(value, dict):
|
|
137
|
+
result[attr] = dict(map(
|
|
138
|
+
lambda item: (item[0], item[1].to_dict())
|
|
139
|
+
if hasattr(item[1], "to_dict") else item,
|
|
140
|
+
value.items()
|
|
141
|
+
))
|
|
142
|
+
else:
|
|
143
|
+
result[attr] = value
|
|
144
|
+
if issubclass(UrlInfo, dict):
|
|
145
|
+
for key, value in self.items():
|
|
146
|
+
result[key] = value
|
|
147
|
+
|
|
148
|
+
return result
|
|
149
|
+
|
|
150
|
+
def to_str(self):
|
|
151
|
+
"""Returns the string representation of the model"""
|
|
152
|
+
return pprint.pformat(self.to_dict())
|
|
153
|
+
|
|
154
|
+
def __repr__(self):
|
|
155
|
+
"""For `print` and `pprint`"""
|
|
156
|
+
return self.to_str()
|
|
157
|
+
|
|
158
|
+
def __eq__(self, other):
|
|
159
|
+
"""Returns true if both objects are equal"""
|
|
160
|
+
if not isinstance(other, UrlInfo):
|
|
161
|
+
return False
|
|
162
|
+
|
|
163
|
+
return self.__dict__ == other.__dict__
|
|
164
|
+
|
|
165
|
+
def __ne__(self, other):
|
|
166
|
+
"""Returns true if both objects are not equal"""
|
|
167
|
+
return not self == other
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Crawler Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Crawler 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 UrlPager(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
|
+
'page_info': 'PageInfo',
|
|
32
|
+
'urls': 'list[UrlInfo]'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'page_info': 'pageInfo',
|
|
37
|
+
'urls': 'urls'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, page_info=None, urls=None): # noqa: E501
|
|
41
|
+
"""UrlPager - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._page_info = None
|
|
43
|
+
self._urls = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.page_info = page_info
|
|
46
|
+
self.urls = urls
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def page_info(self):
|
|
50
|
+
"""Gets the page_info of this UrlPager. # noqa: E501
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
:return: The page_info of this UrlPager. # noqa: E501
|
|
54
|
+
:rtype: PageInfo
|
|
55
|
+
"""
|
|
56
|
+
return self._page_info
|
|
57
|
+
|
|
58
|
+
@page_info.setter
|
|
59
|
+
def page_info(self, page_info):
|
|
60
|
+
"""Sets the page_info of this UrlPager.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:param page_info: The page_info of this UrlPager. # noqa: E501
|
|
64
|
+
:type: PageInfo
|
|
65
|
+
"""
|
|
66
|
+
if page_info is None:
|
|
67
|
+
raise ValueError("Invalid value for `page_info`, must not be `None`") # noqa: E501
|
|
68
|
+
|
|
69
|
+
self._page_info = page_info
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def urls(self):
|
|
73
|
+
"""Gets the urls of this UrlPager. # noqa: E501
|
|
74
|
+
|
|
75
|
+
An list of url with related info. # noqa: E501
|
|
76
|
+
|
|
77
|
+
:return: The urls of this UrlPager. # noqa: E501
|
|
78
|
+
:rtype: list[UrlInfo]
|
|
79
|
+
"""
|
|
80
|
+
return self._urls
|
|
81
|
+
|
|
82
|
+
@urls.setter
|
|
83
|
+
def urls(self, urls):
|
|
84
|
+
"""Sets the urls of this UrlPager.
|
|
85
|
+
|
|
86
|
+
An list of url with related info. # noqa: E501
|
|
87
|
+
|
|
88
|
+
:param urls: The urls of this UrlPager. # noqa: E501
|
|
89
|
+
:type: list[UrlInfo]
|
|
90
|
+
"""
|
|
91
|
+
if urls is None:
|
|
92
|
+
raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
|
|
93
|
+
|
|
94
|
+
self._urls = urls
|
|
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(UrlPager, 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, UrlPager):
|
|
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
|