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,199 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Poller Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Poller 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 AusImportBody(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
|
+
'target_base_url_path': 'str',
|
|
32
|
+
'target_url': 'str',
|
|
33
|
+
'file': 'str',
|
|
34
|
+
'user_properties': 'list[str]'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'target_base_url_path': 'targetBaseUrlPath',
|
|
39
|
+
'target_url': 'targetUrl',
|
|
40
|
+
'file': 'file',
|
|
41
|
+
'user_properties': 'userProperties'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, target_base_url_path=None, target_url=None, file=None, user_properties=None): # noqa: E501
|
|
45
|
+
"""AusImportBody - a model defined in Swagger""" # noqa: E501
|
|
46
|
+
self._target_base_url_path = None
|
|
47
|
+
self._target_url = None
|
|
48
|
+
self._file = None
|
|
49
|
+
self._user_properties = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
self.target_base_url_path = target_base_url_path
|
|
52
|
+
self.target_url = target_url
|
|
53
|
+
self.file = file
|
|
54
|
+
if user_properties is not None:
|
|
55
|
+
self.user_properties = user_properties
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def target_base_url_path(self):
|
|
59
|
+
"""Gets the target_base_url_path of this AusImportBody. # noqa: E501
|
|
60
|
+
|
|
61
|
+
The base URL path of the target AU # noqa: E501
|
|
62
|
+
|
|
63
|
+
:return: The target_base_url_path of this AusImportBody. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._target_base_url_path
|
|
67
|
+
|
|
68
|
+
@target_base_url_path.setter
|
|
69
|
+
def target_base_url_path(self, target_base_url_path):
|
|
70
|
+
"""Sets the target_base_url_path of this AusImportBody.
|
|
71
|
+
|
|
72
|
+
The base URL path of the target AU # noqa: E501
|
|
73
|
+
|
|
74
|
+
:param target_base_url_path: The target_base_url_path of this AusImportBody. # noqa: E501
|
|
75
|
+
:type: str
|
|
76
|
+
"""
|
|
77
|
+
if target_base_url_path is None:
|
|
78
|
+
raise ValueError("Invalid value for `target_base_url_path`, must not be `None`") # noqa: E501
|
|
79
|
+
|
|
80
|
+
self._target_base_url_path = target_base_url_path
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def target_url(self):
|
|
84
|
+
"""Gets the target_url of this AusImportBody. # noqa: E501
|
|
85
|
+
|
|
86
|
+
The target AU URL # noqa: E501
|
|
87
|
+
|
|
88
|
+
:return: The target_url of this AusImportBody. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._target_url
|
|
92
|
+
|
|
93
|
+
@target_url.setter
|
|
94
|
+
def target_url(self, target_url):
|
|
95
|
+
"""Sets the target_url of this AusImportBody.
|
|
96
|
+
|
|
97
|
+
The target AU URL # noqa: E501
|
|
98
|
+
|
|
99
|
+
:param target_url: The target_url of this AusImportBody. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
if target_url is None:
|
|
103
|
+
raise ValueError("Invalid value for `target_url`, must not be `None`") # noqa: E501
|
|
104
|
+
|
|
105
|
+
self._target_url = target_url
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def file(self):
|
|
109
|
+
"""Gets the file of this AusImportBody. # noqa: E501
|
|
110
|
+
|
|
111
|
+
The content of the file to be imported # noqa: E501
|
|
112
|
+
|
|
113
|
+
:return: The file of this AusImportBody. # noqa: E501
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._file
|
|
117
|
+
|
|
118
|
+
@file.setter
|
|
119
|
+
def file(self, file):
|
|
120
|
+
"""Sets the file of this AusImportBody.
|
|
121
|
+
|
|
122
|
+
The content of the file to be imported # noqa: E501
|
|
123
|
+
|
|
124
|
+
:param file: The file of this AusImportBody. # noqa: E501
|
|
125
|
+
:type: str
|
|
126
|
+
"""
|
|
127
|
+
if file is None:
|
|
128
|
+
raise ValueError("Invalid value for `file`, must not be `None`") # noqa: E501
|
|
129
|
+
|
|
130
|
+
self._file = file
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def user_properties(self):
|
|
134
|
+
"""Gets the user_properties of this AusImportBody. # noqa: E501
|
|
135
|
+
|
|
136
|
+
The user-specified properties # noqa: E501
|
|
137
|
+
|
|
138
|
+
:return: The user_properties of this AusImportBody. # noqa: E501
|
|
139
|
+
:rtype: list[str]
|
|
140
|
+
"""
|
|
141
|
+
return self._user_properties
|
|
142
|
+
|
|
143
|
+
@user_properties.setter
|
|
144
|
+
def user_properties(self, user_properties):
|
|
145
|
+
"""Sets the user_properties of this AusImportBody.
|
|
146
|
+
|
|
147
|
+
The user-specified properties # noqa: E501
|
|
148
|
+
|
|
149
|
+
:param user_properties: The user_properties of this AusImportBody. # noqa: E501
|
|
150
|
+
:type: list[str]
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._user_properties = user_properties
|
|
154
|
+
|
|
155
|
+
def to_dict(self):
|
|
156
|
+
"""Returns the model properties as a dict"""
|
|
157
|
+
result = {}
|
|
158
|
+
|
|
159
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
160
|
+
value = getattr(self, attr)
|
|
161
|
+
if isinstance(value, list):
|
|
162
|
+
result[attr] = list(map(
|
|
163
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
164
|
+
value
|
|
165
|
+
))
|
|
166
|
+
elif hasattr(value, "to_dict"):
|
|
167
|
+
result[attr] = value.to_dict()
|
|
168
|
+
elif isinstance(value, dict):
|
|
169
|
+
result[attr] = dict(map(
|
|
170
|
+
lambda item: (item[0], item[1].to_dict())
|
|
171
|
+
if hasattr(item[1], "to_dict") else item,
|
|
172
|
+
value.items()
|
|
173
|
+
))
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
if issubclass(AusImportBody, dict):
|
|
177
|
+
for key, value in self.items():
|
|
178
|
+
result[key] = value
|
|
179
|
+
|
|
180
|
+
return result
|
|
181
|
+
|
|
182
|
+
def to_str(self):
|
|
183
|
+
"""Returns the string representation of the model"""
|
|
184
|
+
return pprint.pformat(self.to_dict())
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print` and `pprint`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, AusImportBody):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.__dict__ == other.__dict__
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
return not self == other
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Poller Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Poller 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 CachedUriSetSpec(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_prefix': 'str',
|
|
32
|
+
'lower_bound': 'str',
|
|
33
|
+
'upper_bound': 'str'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'url_prefix': 'urlPrefix',
|
|
38
|
+
'lower_bound': 'lowerBound',
|
|
39
|
+
'upper_bound': 'upperBound'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, url_prefix=None, lower_bound=None, upper_bound=None): # noqa: E501
|
|
43
|
+
"""CachedUriSetSpec - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._url_prefix = None
|
|
45
|
+
self._lower_bound = None
|
|
46
|
+
self._upper_bound = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
self.url_prefix = url_prefix
|
|
49
|
+
if lower_bound is not None:
|
|
50
|
+
self.lower_bound = lower_bound
|
|
51
|
+
if upper_bound is not None:
|
|
52
|
+
self.upper_bound = upper_bound
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def url_prefix(self):
|
|
56
|
+
"""Gets the url_prefix of this CachedUriSetSpec. # noqa: E501
|
|
57
|
+
|
|
58
|
+
The base which roots the lower and upper bound # noqa: E501
|
|
59
|
+
|
|
60
|
+
:return: The url_prefix of this CachedUriSetSpec. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._url_prefix
|
|
64
|
+
|
|
65
|
+
@url_prefix.setter
|
|
66
|
+
def url_prefix(self, url_prefix):
|
|
67
|
+
"""Sets the url_prefix of this CachedUriSetSpec.
|
|
68
|
+
|
|
69
|
+
The base which roots the lower and upper bound # noqa: E501
|
|
70
|
+
|
|
71
|
+
:param url_prefix: The url_prefix of this CachedUriSetSpec. # noqa: E501
|
|
72
|
+
:type: str
|
|
73
|
+
"""
|
|
74
|
+
if url_prefix is None:
|
|
75
|
+
raise ValueError("Invalid value for `url_prefix`, must not be `None`") # noqa: E501
|
|
76
|
+
|
|
77
|
+
self._url_prefix = url_prefix
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def lower_bound(self):
|
|
81
|
+
"""Gets the lower_bound of this CachedUriSetSpec. # noqa: E501
|
|
82
|
+
|
|
83
|
+
lower bound of the prefix range, inclusive. # noqa: E501
|
|
84
|
+
|
|
85
|
+
:return: The lower_bound of this CachedUriSetSpec. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._lower_bound
|
|
89
|
+
|
|
90
|
+
@lower_bound.setter
|
|
91
|
+
def lower_bound(self, lower_bound):
|
|
92
|
+
"""Sets the lower_bound of this CachedUriSetSpec.
|
|
93
|
+
|
|
94
|
+
lower bound of the prefix range, inclusive. # noqa: E501
|
|
95
|
+
|
|
96
|
+
:param lower_bound: The lower_bound of this CachedUriSetSpec. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._lower_bound = lower_bound
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def upper_bound(self):
|
|
104
|
+
"""Gets the upper_bound of this CachedUriSetSpec. # noqa: E501
|
|
105
|
+
|
|
106
|
+
upper bound of prefix range, inclusive. # noqa: E501
|
|
107
|
+
|
|
108
|
+
:return: The upper_bound of this CachedUriSetSpec. # noqa: E501
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._upper_bound
|
|
112
|
+
|
|
113
|
+
@upper_bound.setter
|
|
114
|
+
def upper_bound(self, upper_bound):
|
|
115
|
+
"""Sets the upper_bound of this CachedUriSetSpec.
|
|
116
|
+
|
|
117
|
+
upper bound of prefix range, inclusive. # noqa: E501
|
|
118
|
+
|
|
119
|
+
:param upper_bound: The upper_bound of this CachedUriSetSpec. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._upper_bound = upper_bound
|
|
124
|
+
|
|
125
|
+
def to_dict(self):
|
|
126
|
+
"""Returns the model properties as a dict"""
|
|
127
|
+
result = {}
|
|
128
|
+
|
|
129
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
130
|
+
value = getattr(self, attr)
|
|
131
|
+
if isinstance(value, list):
|
|
132
|
+
result[attr] = list(map(
|
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
134
|
+
value
|
|
135
|
+
))
|
|
136
|
+
elif hasattr(value, "to_dict"):
|
|
137
|
+
result[attr] = value.to_dict()
|
|
138
|
+
elif isinstance(value, dict):
|
|
139
|
+
result[attr] = dict(map(
|
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
|
142
|
+
value.items()
|
|
143
|
+
))
|
|
144
|
+
else:
|
|
145
|
+
result[attr] = value
|
|
146
|
+
if issubclass(CachedUriSetSpec, dict):
|
|
147
|
+
for key, value in self.items():
|
|
148
|
+
result[key] = value
|
|
149
|
+
|
|
150
|
+
return result
|
|
151
|
+
|
|
152
|
+
def to_str(self):
|
|
153
|
+
"""Returns the string representation of the model"""
|
|
154
|
+
return pprint.pformat(self.to_dict())
|
|
155
|
+
|
|
156
|
+
def __repr__(self):
|
|
157
|
+
"""For `print` and `pprint`"""
|
|
158
|
+
return self.to_str()
|
|
159
|
+
|
|
160
|
+
def __eq__(self, other):
|
|
161
|
+
"""Returns true if both objects are equal"""
|
|
162
|
+
if not isinstance(other, CachedUriSetSpec):
|
|
163
|
+
return False
|
|
164
|
+
|
|
165
|
+
return self.__dict__ == other.__dict__
|
|
166
|
+
|
|
167
|
+
def __ne__(self, other):
|
|
168
|
+
"""Returns true if both objects are not equal"""
|
|
169
|
+
return not self == other
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Poller Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Poller 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 ErrorResult(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
|
+
'code': 'int',
|
|
33
|
+
'root_cause': 'str'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'message': 'message',
|
|
38
|
+
'code': 'code',
|
|
39
|
+
'root_cause': 'rootCause'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, message=None, code=None, root_cause=None): # noqa: E501
|
|
43
|
+
"""ErrorResult - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._message = None
|
|
45
|
+
self._code = None
|
|
46
|
+
self._root_cause = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
self.message = message
|
|
49
|
+
self.code = code
|
|
50
|
+
if root_cause is not None:
|
|
51
|
+
self.root_cause = root_cause
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def message(self):
|
|
55
|
+
"""Gets the message of this ErrorResult. # noqa: E501
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
:return: The message of this ErrorResult. # noqa: E501
|
|
59
|
+
:rtype: str
|
|
60
|
+
"""
|
|
61
|
+
return self._message
|
|
62
|
+
|
|
63
|
+
@message.setter
|
|
64
|
+
def message(self, message):
|
|
65
|
+
"""Sets the message of this ErrorResult.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:param message: The message of this ErrorResult. # noqa: E501
|
|
69
|
+
:type: str
|
|
70
|
+
"""
|
|
71
|
+
if message is None:
|
|
72
|
+
raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
|
|
73
|
+
|
|
74
|
+
self._message = message
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def code(self):
|
|
78
|
+
"""Gets the code of this ErrorResult. # noqa: E501
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
:return: The code of this ErrorResult. # noqa: E501
|
|
82
|
+
:rtype: int
|
|
83
|
+
"""
|
|
84
|
+
return self._code
|
|
85
|
+
|
|
86
|
+
@code.setter
|
|
87
|
+
def code(self, code):
|
|
88
|
+
"""Sets the code of this ErrorResult.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:param code: The code of this ErrorResult. # noqa: E501
|
|
92
|
+
:type: int
|
|
93
|
+
"""
|
|
94
|
+
if code is None:
|
|
95
|
+
raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501
|
|
96
|
+
|
|
97
|
+
self._code = code
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def root_cause(self):
|
|
101
|
+
"""Gets the root_cause of this ErrorResult. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The root_cause of this ErrorResult. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._root_cause
|
|
108
|
+
|
|
109
|
+
@root_cause.setter
|
|
110
|
+
def root_cause(self, root_cause):
|
|
111
|
+
"""Sets the root_cause of this ErrorResult.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param root_cause: The root_cause of this ErrorResult. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._root_cause = root_cause
|
|
119
|
+
|
|
120
|
+
def to_dict(self):
|
|
121
|
+
"""Returns the model properties as a dict"""
|
|
122
|
+
result = {}
|
|
123
|
+
|
|
124
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
125
|
+
value = getattr(self, attr)
|
|
126
|
+
if isinstance(value, list):
|
|
127
|
+
result[attr] = list(map(
|
|
128
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
129
|
+
value
|
|
130
|
+
))
|
|
131
|
+
elif hasattr(value, "to_dict"):
|
|
132
|
+
result[attr] = value.to_dict()
|
|
133
|
+
elif isinstance(value, dict):
|
|
134
|
+
result[attr] = dict(map(
|
|
135
|
+
lambda item: (item[0], item[1].to_dict())
|
|
136
|
+
if hasattr(item[1], "to_dict") else item,
|
|
137
|
+
value.items()
|
|
138
|
+
))
|
|
139
|
+
else:
|
|
140
|
+
result[attr] = value
|
|
141
|
+
if issubclass(ErrorResult, dict):
|
|
142
|
+
for key, value in self.items():
|
|
143
|
+
result[key] = value
|
|
144
|
+
|
|
145
|
+
return result
|
|
146
|
+
|
|
147
|
+
def to_str(self):
|
|
148
|
+
"""Returns the string representation of the model"""
|
|
149
|
+
return pprint.pformat(self.to_dict())
|
|
150
|
+
|
|
151
|
+
def __repr__(self):
|
|
152
|
+
"""For `print` and `pprint`"""
|
|
153
|
+
return self.to_str()
|
|
154
|
+
|
|
155
|
+
def __eq__(self, other):
|
|
156
|
+
"""Returns true if both objects are equal"""
|
|
157
|
+
if not isinstance(other, ErrorResult):
|
|
158
|
+
return False
|
|
159
|
+
|
|
160
|
+
return self.__dict__ == other.__dict__
|
|
161
|
+
|
|
162
|
+
def __ne__(self, other):
|
|
163
|
+
"""Returns true if both objects are not equal"""
|
|
164
|
+
return not self == other
|