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,176 @@
|
|
|
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 RepairData(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
|
+
'repair_url': 'str',
|
|
32
|
+
'repair_from': 'str',
|
|
33
|
+
'result': 'str'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'repair_url': 'repairUrl',
|
|
38
|
+
'repair_from': 'repairFrom',
|
|
39
|
+
'result': 'result'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, repair_url=None, repair_from=None, result=None): # noqa: E501
|
|
43
|
+
"""RepairData - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._repair_url = None
|
|
45
|
+
self._repair_from = None
|
|
46
|
+
self._result = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
self.repair_url = repair_url
|
|
49
|
+
self.repair_from = repair_from
|
|
50
|
+
if result is not None:
|
|
51
|
+
self.result = result
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def repair_url(self):
|
|
55
|
+
"""Gets the repair_url of this RepairData. # noqa: E501
|
|
56
|
+
|
|
57
|
+
The url to repair # noqa: E501
|
|
58
|
+
|
|
59
|
+
:return: The repair_url of this RepairData. # noqa: E501
|
|
60
|
+
:rtype: str
|
|
61
|
+
"""
|
|
62
|
+
return self._repair_url
|
|
63
|
+
|
|
64
|
+
@repair_url.setter
|
|
65
|
+
def repair_url(self, repair_url):
|
|
66
|
+
"""Sets the repair_url of this RepairData.
|
|
67
|
+
|
|
68
|
+
The url to repair # noqa: E501
|
|
69
|
+
|
|
70
|
+
:param repair_url: The repair_url of this RepairData. # noqa: E501
|
|
71
|
+
:type: str
|
|
72
|
+
"""
|
|
73
|
+
if repair_url is None:
|
|
74
|
+
raise ValueError("Invalid value for `repair_url`, must not be `None`") # noqa: E501
|
|
75
|
+
|
|
76
|
+
self._repair_url = repair_url
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def repair_from(self):
|
|
80
|
+
"""Gets the repair_from of this RepairData. # noqa: E501
|
|
81
|
+
|
|
82
|
+
The peer to repair from # noqa: E501
|
|
83
|
+
|
|
84
|
+
:return: The repair_from of this RepairData. # noqa: E501
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._repair_from
|
|
88
|
+
|
|
89
|
+
@repair_from.setter
|
|
90
|
+
def repair_from(self, repair_from):
|
|
91
|
+
"""Sets the repair_from of this RepairData.
|
|
92
|
+
|
|
93
|
+
The peer to repair from # noqa: E501
|
|
94
|
+
|
|
95
|
+
:param repair_from: The repair_from of this RepairData. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
if repair_from is None:
|
|
99
|
+
raise ValueError("Invalid value for `repair_from`, must not be `None`") # noqa: E501
|
|
100
|
+
|
|
101
|
+
self._repair_from = repair_from
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def result(self):
|
|
105
|
+
"""Gets the result of this RepairData. # noqa: E501
|
|
106
|
+
|
|
107
|
+
The status of this repair # noqa: E501
|
|
108
|
+
|
|
109
|
+
:return: The result of this RepairData. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._result
|
|
113
|
+
|
|
114
|
+
@result.setter
|
|
115
|
+
def result(self, result):
|
|
116
|
+
"""Sets the result of this RepairData.
|
|
117
|
+
|
|
118
|
+
The status of this repair # noqa: E501
|
|
119
|
+
|
|
120
|
+
:param result: The result of this RepairData. # noqa: E501
|
|
121
|
+
:type: str
|
|
122
|
+
"""
|
|
123
|
+
allowed_values = ["NoQuorum", "TooClose", "Lost", "LostPollerOnly", "LostVoterOnly", "Won"] # noqa: E501
|
|
124
|
+
if result not in allowed_values:
|
|
125
|
+
raise ValueError(
|
|
126
|
+
"Invalid value for `result` ({0}), must be one of {1}" # noqa: E501
|
|
127
|
+
.format(result, allowed_values)
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
self._result = result
|
|
131
|
+
|
|
132
|
+
def to_dict(self):
|
|
133
|
+
"""Returns the model properties as a dict"""
|
|
134
|
+
result = {}
|
|
135
|
+
|
|
136
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
137
|
+
value = getattr(self, attr)
|
|
138
|
+
if isinstance(value, list):
|
|
139
|
+
result[attr] = list(map(
|
|
140
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
141
|
+
value
|
|
142
|
+
))
|
|
143
|
+
elif hasattr(value, "to_dict"):
|
|
144
|
+
result[attr] = value.to_dict()
|
|
145
|
+
elif isinstance(value, dict):
|
|
146
|
+
result[attr] = dict(map(
|
|
147
|
+
lambda item: (item[0], item[1].to_dict())
|
|
148
|
+
if hasattr(item[1], "to_dict") else item,
|
|
149
|
+
value.items()
|
|
150
|
+
))
|
|
151
|
+
else:
|
|
152
|
+
result[attr] = value
|
|
153
|
+
if issubclass(RepairData, dict):
|
|
154
|
+
for key, value in self.items():
|
|
155
|
+
result[key] = value
|
|
156
|
+
|
|
157
|
+
return result
|
|
158
|
+
|
|
159
|
+
def to_str(self):
|
|
160
|
+
"""Returns the string representation of the model"""
|
|
161
|
+
return pprint.pformat(self.to_dict())
|
|
162
|
+
|
|
163
|
+
def __repr__(self):
|
|
164
|
+
"""For `print` and `pprint`"""
|
|
165
|
+
return self.to_str()
|
|
166
|
+
|
|
167
|
+
def __eq__(self, other):
|
|
168
|
+
"""Returns true if both objects are equal"""
|
|
169
|
+
if not isinstance(other, RepairData):
|
|
170
|
+
return False
|
|
171
|
+
|
|
172
|
+
return self.__dict__ == other.__dict__
|
|
173
|
+
|
|
174
|
+
def __ne__(self, other):
|
|
175
|
+
"""Returns true if both objects are not equal"""
|
|
176
|
+
return not self == other
|
|
@@ -0,0 +1,139 @@
|
|
|
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 RepairPager(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_desc': 'PageDesc',
|
|
32
|
+
'repairs': 'list[RepairData]'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'page_desc': 'pageDesc',
|
|
37
|
+
'repairs': 'repairs'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, page_desc=None, repairs=None): # noqa: E501
|
|
41
|
+
"""RepairPager - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._page_desc = None
|
|
43
|
+
self._repairs = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.page_desc = page_desc
|
|
46
|
+
if repairs is not None:
|
|
47
|
+
self.repairs = repairs
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def page_desc(self):
|
|
51
|
+
"""Gets the page_desc of this RepairPager. # noqa: E501
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
:return: The page_desc of this RepairPager. # noqa: E501
|
|
55
|
+
:rtype: PageDesc
|
|
56
|
+
"""
|
|
57
|
+
return self._page_desc
|
|
58
|
+
|
|
59
|
+
@page_desc.setter
|
|
60
|
+
def page_desc(self, page_desc):
|
|
61
|
+
"""Sets the page_desc of this RepairPager.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param page_desc: The page_desc of this RepairPager. # noqa: E501
|
|
65
|
+
:type: PageDesc
|
|
66
|
+
"""
|
|
67
|
+
if page_desc is None:
|
|
68
|
+
raise ValueError("Invalid value for `page_desc`, must not be `None`") # noqa: E501
|
|
69
|
+
|
|
70
|
+
self._page_desc = page_desc
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def repairs(self):
|
|
74
|
+
"""Gets the repairs of this RepairPager. # noqa: E501
|
|
75
|
+
|
|
76
|
+
The list of repair data on this page or null. # noqa: E501
|
|
77
|
+
|
|
78
|
+
:return: The repairs of this RepairPager. # noqa: E501
|
|
79
|
+
:rtype: list[RepairData]
|
|
80
|
+
"""
|
|
81
|
+
return self._repairs
|
|
82
|
+
|
|
83
|
+
@repairs.setter
|
|
84
|
+
def repairs(self, repairs):
|
|
85
|
+
"""Sets the repairs of this RepairPager.
|
|
86
|
+
|
|
87
|
+
The list of repair data on this page or null. # noqa: E501
|
|
88
|
+
|
|
89
|
+
:param repairs: The repairs of this RepairPager. # noqa: E501
|
|
90
|
+
:type: list[RepairData]
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
self._repairs = repairs
|
|
94
|
+
|
|
95
|
+
def to_dict(self):
|
|
96
|
+
"""Returns the model properties as a dict"""
|
|
97
|
+
result = {}
|
|
98
|
+
|
|
99
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
100
|
+
value = getattr(self, attr)
|
|
101
|
+
if isinstance(value, list):
|
|
102
|
+
result[attr] = list(map(
|
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
+
value
|
|
105
|
+
))
|
|
106
|
+
elif hasattr(value, "to_dict"):
|
|
107
|
+
result[attr] = value.to_dict()
|
|
108
|
+
elif isinstance(value, dict):
|
|
109
|
+
result[attr] = dict(map(
|
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
|
112
|
+
value.items()
|
|
113
|
+
))
|
|
114
|
+
else:
|
|
115
|
+
result[attr] = value
|
|
116
|
+
if issubclass(RepairPager, dict):
|
|
117
|
+
for key, value in self.items():
|
|
118
|
+
result[key] = value
|
|
119
|
+
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def to_str(self):
|
|
123
|
+
"""Returns the string representation of the model"""
|
|
124
|
+
return pprint.pformat(self.to_dict())
|
|
125
|
+
|
|
126
|
+
def __repr__(self):
|
|
127
|
+
"""For `print` and `pprint`"""
|
|
128
|
+
return self.to_str()
|
|
129
|
+
|
|
130
|
+
def __eq__(self, other):
|
|
131
|
+
"""Returns true if both objects are equal"""
|
|
132
|
+
if not isinstance(other, RepairPager):
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
return self.__dict__ == other.__dict__
|
|
136
|
+
|
|
137
|
+
def __ne__(self, other):
|
|
138
|
+
"""Returns true if both objects are not equal"""
|
|
139
|
+
return not self == other
|
|
@@ -0,0 +1,249 @@
|
|
|
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 RepairQueue(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
|
+
'num_pending': 'int',
|
|
32
|
+
'pending_link': 'LinkDesc',
|
|
33
|
+
'num_active': 'int',
|
|
34
|
+
'active_link': 'LinkDesc',
|
|
35
|
+
'num_completed': 'int',
|
|
36
|
+
'completed_link': 'LinkDesc'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'num_pending': 'numPending',
|
|
41
|
+
'pending_link': 'pendingLink',
|
|
42
|
+
'num_active': 'numActive',
|
|
43
|
+
'active_link': 'activeLink',
|
|
44
|
+
'num_completed': 'numCompleted',
|
|
45
|
+
'completed_link': 'completedLink'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def __init__(self, num_pending=None, pending_link=None, num_active=None, active_link=None, num_completed=None, completed_link=None): # noqa: E501
|
|
49
|
+
"""RepairQueue - a model defined in Swagger""" # noqa: E501
|
|
50
|
+
self._num_pending = None
|
|
51
|
+
self._pending_link = None
|
|
52
|
+
self._num_active = None
|
|
53
|
+
self._active_link = None
|
|
54
|
+
self._num_completed = None
|
|
55
|
+
self._completed_link = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
self.num_pending = num_pending
|
|
58
|
+
if pending_link is not None:
|
|
59
|
+
self.pending_link = pending_link
|
|
60
|
+
self.num_active = num_active
|
|
61
|
+
if active_link is not None:
|
|
62
|
+
self.active_link = active_link
|
|
63
|
+
self.num_completed = num_completed
|
|
64
|
+
if completed_link is not None:
|
|
65
|
+
self.completed_link = completed_link
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def num_pending(self):
|
|
69
|
+
"""Gets the num_pending of this RepairQueue. # noqa: E501
|
|
70
|
+
|
|
71
|
+
The number of pending repairs # noqa: E501
|
|
72
|
+
|
|
73
|
+
:return: The num_pending of this RepairQueue. # noqa: E501
|
|
74
|
+
:rtype: int
|
|
75
|
+
"""
|
|
76
|
+
return self._num_pending
|
|
77
|
+
|
|
78
|
+
@num_pending.setter
|
|
79
|
+
def num_pending(self, num_pending):
|
|
80
|
+
"""Sets the num_pending of this RepairQueue.
|
|
81
|
+
|
|
82
|
+
The number of pending repairs # noqa: E501
|
|
83
|
+
|
|
84
|
+
:param num_pending: The num_pending of this RepairQueue. # noqa: E501
|
|
85
|
+
:type: int
|
|
86
|
+
"""
|
|
87
|
+
if num_pending is None:
|
|
88
|
+
raise ValueError("Invalid value for `num_pending`, must not be `None`") # noqa: E501
|
|
89
|
+
|
|
90
|
+
self._num_pending = num_pending
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def pending_link(self):
|
|
94
|
+
"""Gets the pending_link of this RepairQueue. # noqa: E501
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:return: The pending_link of this RepairQueue. # noqa: E501
|
|
98
|
+
:rtype: LinkDesc
|
|
99
|
+
"""
|
|
100
|
+
return self._pending_link
|
|
101
|
+
|
|
102
|
+
@pending_link.setter
|
|
103
|
+
def pending_link(self, pending_link):
|
|
104
|
+
"""Sets the pending_link of this RepairQueue.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
:param pending_link: The pending_link of this RepairQueue. # noqa: E501
|
|
108
|
+
:type: LinkDesc
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
self._pending_link = pending_link
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def num_active(self):
|
|
115
|
+
"""Gets the num_active of this RepairQueue. # noqa: E501
|
|
116
|
+
|
|
117
|
+
The number of active repairs # noqa: E501
|
|
118
|
+
|
|
119
|
+
:return: The num_active of this RepairQueue. # noqa: E501
|
|
120
|
+
:rtype: int
|
|
121
|
+
"""
|
|
122
|
+
return self._num_active
|
|
123
|
+
|
|
124
|
+
@num_active.setter
|
|
125
|
+
def num_active(self, num_active):
|
|
126
|
+
"""Sets the num_active of this RepairQueue.
|
|
127
|
+
|
|
128
|
+
The number of active repairs # noqa: E501
|
|
129
|
+
|
|
130
|
+
:param num_active: The num_active of this RepairQueue. # noqa: E501
|
|
131
|
+
:type: int
|
|
132
|
+
"""
|
|
133
|
+
if num_active is None:
|
|
134
|
+
raise ValueError("Invalid value for `num_active`, must not be `None`") # noqa: E501
|
|
135
|
+
|
|
136
|
+
self._num_active = num_active
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def active_link(self):
|
|
140
|
+
"""Gets the active_link of this RepairQueue. # noqa: E501
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:return: The active_link of this RepairQueue. # noqa: E501
|
|
144
|
+
:rtype: LinkDesc
|
|
145
|
+
"""
|
|
146
|
+
return self._active_link
|
|
147
|
+
|
|
148
|
+
@active_link.setter
|
|
149
|
+
def active_link(self, active_link):
|
|
150
|
+
"""Sets the active_link of this RepairQueue.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param active_link: The active_link of this RepairQueue. # noqa: E501
|
|
154
|
+
:type: LinkDesc
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._active_link = active_link
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def num_completed(self):
|
|
161
|
+
"""Gets the num_completed of this RepairQueue. # noqa: E501
|
|
162
|
+
|
|
163
|
+
The number of completed repairs # noqa: E501
|
|
164
|
+
|
|
165
|
+
:return: The num_completed of this RepairQueue. # noqa: E501
|
|
166
|
+
:rtype: int
|
|
167
|
+
"""
|
|
168
|
+
return self._num_completed
|
|
169
|
+
|
|
170
|
+
@num_completed.setter
|
|
171
|
+
def num_completed(self, num_completed):
|
|
172
|
+
"""Sets the num_completed of this RepairQueue.
|
|
173
|
+
|
|
174
|
+
The number of completed repairs # noqa: E501
|
|
175
|
+
|
|
176
|
+
:param num_completed: The num_completed of this RepairQueue. # noqa: E501
|
|
177
|
+
:type: int
|
|
178
|
+
"""
|
|
179
|
+
if num_completed is None:
|
|
180
|
+
raise ValueError("Invalid value for `num_completed`, must not be `None`") # noqa: E501
|
|
181
|
+
|
|
182
|
+
self._num_completed = num_completed
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
def completed_link(self):
|
|
186
|
+
"""Gets the completed_link of this RepairQueue. # noqa: E501
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:return: The completed_link of this RepairQueue. # noqa: E501
|
|
190
|
+
:rtype: LinkDesc
|
|
191
|
+
"""
|
|
192
|
+
return self._completed_link
|
|
193
|
+
|
|
194
|
+
@completed_link.setter
|
|
195
|
+
def completed_link(self, completed_link):
|
|
196
|
+
"""Sets the completed_link of this RepairQueue.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:param completed_link: The completed_link of this RepairQueue. # noqa: E501
|
|
200
|
+
:type: LinkDesc
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
self._completed_link = completed_link
|
|
204
|
+
|
|
205
|
+
def to_dict(self):
|
|
206
|
+
"""Returns the model properties as a dict"""
|
|
207
|
+
result = {}
|
|
208
|
+
|
|
209
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
210
|
+
value = getattr(self, attr)
|
|
211
|
+
if isinstance(value, list):
|
|
212
|
+
result[attr] = list(map(
|
|
213
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
214
|
+
value
|
|
215
|
+
))
|
|
216
|
+
elif hasattr(value, "to_dict"):
|
|
217
|
+
result[attr] = value.to_dict()
|
|
218
|
+
elif isinstance(value, dict):
|
|
219
|
+
result[attr] = dict(map(
|
|
220
|
+
lambda item: (item[0], item[1].to_dict())
|
|
221
|
+
if hasattr(item[1], "to_dict") else item,
|
|
222
|
+
value.items()
|
|
223
|
+
))
|
|
224
|
+
else:
|
|
225
|
+
result[attr] = value
|
|
226
|
+
if issubclass(RepairQueue, dict):
|
|
227
|
+
for key, value in self.items():
|
|
228
|
+
result[key] = value
|
|
229
|
+
|
|
230
|
+
return result
|
|
231
|
+
|
|
232
|
+
def to_str(self):
|
|
233
|
+
"""Returns the string representation of the model"""
|
|
234
|
+
return pprint.pformat(self.to_dict())
|
|
235
|
+
|
|
236
|
+
def __repr__(self):
|
|
237
|
+
"""For `print` and `pprint`"""
|
|
238
|
+
return self.to_str()
|
|
239
|
+
|
|
240
|
+
def __eq__(self, other):
|
|
241
|
+
"""Returns true if both objects are equal"""
|
|
242
|
+
if not isinstance(other, RepairQueue):
|
|
243
|
+
return False
|
|
244
|
+
|
|
245
|
+
return self.__dict__ == other.__dict__
|
|
246
|
+
|
|
247
|
+
def __ne__(self, other):
|
|
248
|
+
"""Returns true if both objects are not equal"""
|
|
249
|
+
return not self == other
|
|
@@ -0,0 +1,113 @@
|
|
|
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 RepositorySpaceWsResult(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
|
+
'repository_space_id': 'str'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'repository_space_id': 'repositorySpaceId'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, repository_space_id=None): # noqa: E501
|
|
39
|
+
"""RepositorySpaceWsResult - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._repository_space_id = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
self.repository_space_id = repository_space_id
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def repository_space_id(self):
|
|
46
|
+
"""Gets the repository_space_id of this RepositorySpaceWsResult. # noqa: E501
|
|
47
|
+
|
|
48
|
+
The Repository Space identifier # noqa: E501
|
|
49
|
+
|
|
50
|
+
:return: The repository_space_id of this RepositorySpaceWsResult. # noqa: E501
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._repository_space_id
|
|
54
|
+
|
|
55
|
+
@repository_space_id.setter
|
|
56
|
+
def repository_space_id(self, repository_space_id):
|
|
57
|
+
"""Sets the repository_space_id of this RepositorySpaceWsResult.
|
|
58
|
+
|
|
59
|
+
The Repository Space identifier # noqa: E501
|
|
60
|
+
|
|
61
|
+
:param repository_space_id: The repository_space_id of this RepositorySpaceWsResult. # noqa: E501
|
|
62
|
+
:type: str
|
|
63
|
+
"""
|
|
64
|
+
if repository_space_id is None:
|
|
65
|
+
raise ValueError("Invalid value for `repository_space_id`, must not be `None`") # noqa: E501
|
|
66
|
+
|
|
67
|
+
self._repository_space_id = repository_space_id
|
|
68
|
+
|
|
69
|
+
def to_dict(self):
|
|
70
|
+
"""Returns the model properties as a dict"""
|
|
71
|
+
result = {}
|
|
72
|
+
|
|
73
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
74
|
+
value = getattr(self, attr)
|
|
75
|
+
if isinstance(value, list):
|
|
76
|
+
result[attr] = list(map(
|
|
77
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
78
|
+
value
|
|
79
|
+
))
|
|
80
|
+
elif hasattr(value, "to_dict"):
|
|
81
|
+
result[attr] = value.to_dict()
|
|
82
|
+
elif isinstance(value, dict):
|
|
83
|
+
result[attr] = dict(map(
|
|
84
|
+
lambda item: (item[0], item[1].to_dict())
|
|
85
|
+
if hasattr(item[1], "to_dict") else item,
|
|
86
|
+
value.items()
|
|
87
|
+
))
|
|
88
|
+
else:
|
|
89
|
+
result[attr] = value
|
|
90
|
+
if issubclass(RepositorySpaceWsResult, dict):
|
|
91
|
+
for key, value in self.items():
|
|
92
|
+
result[key] = value
|
|
93
|
+
|
|
94
|
+
return result
|
|
95
|
+
|
|
96
|
+
def to_str(self):
|
|
97
|
+
"""Returns the string representation of the model"""
|
|
98
|
+
return pprint.pformat(self.to_dict())
|
|
99
|
+
|
|
100
|
+
def __repr__(self):
|
|
101
|
+
"""For `print` and `pprint`"""
|
|
102
|
+
return self.to_str()
|
|
103
|
+
|
|
104
|
+
def __eq__(self, other):
|
|
105
|
+
"""Returns true if both objects are equal"""
|
|
106
|
+
if not isinstance(other, RepositorySpaceWsResult):
|
|
107
|
+
return False
|
|
108
|
+
|
|
109
|
+
return self.__dict__ == other.__dict__
|
|
110
|
+
|
|
111
|
+
def __ne__(self, other):
|
|
112
|
+
"""Returns true if both objects are not equal"""
|
|
113
|
+
return not self == other
|