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,379 @@
|
|
|
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
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from lockss.pyclient.rs.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class RepoApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def get_namespaces(self, **kwargs): # noqa: E501
|
|
36
|
+
"""Get namespaces of the committed artifacts in the repository # noqa: E501
|
|
37
|
+
|
|
38
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40
|
+
>>> thread = api.get_namespaces(async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:return: list[str]
|
|
45
|
+
If the method is called asynchronously,
|
|
46
|
+
returns the request thread.
|
|
47
|
+
"""
|
|
48
|
+
kwargs['_return_http_data_only'] = True
|
|
49
|
+
if kwargs.get('async_req'):
|
|
50
|
+
return self.get_namespaces_with_http_info(**kwargs) # noqa: E501
|
|
51
|
+
else:
|
|
52
|
+
(data) = self.get_namespaces_with_http_info(**kwargs) # noqa: E501
|
|
53
|
+
return data
|
|
54
|
+
|
|
55
|
+
def get_namespaces_with_http_info(self, **kwargs): # noqa: E501
|
|
56
|
+
"""Get namespaces of the committed artifacts in the repository # noqa: E501
|
|
57
|
+
|
|
58
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
59
|
+
asynchronous HTTP request, please pass async_req=True
|
|
60
|
+
>>> thread = api.get_namespaces_with_http_info(async_req=True)
|
|
61
|
+
>>> result = thread.get()
|
|
62
|
+
|
|
63
|
+
:param async_req bool
|
|
64
|
+
:return: list[str]
|
|
65
|
+
If the method is called asynchronously,
|
|
66
|
+
returns the request thread.
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
all_params = [] # noqa: E501
|
|
70
|
+
all_params.append('async_req')
|
|
71
|
+
all_params.append('_return_http_data_only')
|
|
72
|
+
all_params.append('_preload_content')
|
|
73
|
+
all_params.append('_request_timeout')
|
|
74
|
+
|
|
75
|
+
params = locals()
|
|
76
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
77
|
+
if key not in all_params:
|
|
78
|
+
raise TypeError(
|
|
79
|
+
"Got an unexpected keyword argument '%s'"
|
|
80
|
+
" to method get_namespaces" % key
|
|
81
|
+
)
|
|
82
|
+
params[key] = val
|
|
83
|
+
del params['kwargs']
|
|
84
|
+
|
|
85
|
+
collection_formats = {}
|
|
86
|
+
|
|
87
|
+
path_params = {}
|
|
88
|
+
|
|
89
|
+
query_params = []
|
|
90
|
+
|
|
91
|
+
header_params = {}
|
|
92
|
+
|
|
93
|
+
form_params = []
|
|
94
|
+
local_var_files = {}
|
|
95
|
+
|
|
96
|
+
body_params = None
|
|
97
|
+
# HTTP header `Accept`
|
|
98
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
99
|
+
['application/json']) # noqa: E501
|
|
100
|
+
|
|
101
|
+
# Authentication setting
|
|
102
|
+
auth_settings = [] # noqa: E501
|
|
103
|
+
|
|
104
|
+
return self.api_client.call_api(
|
|
105
|
+
'/namespaces', 'GET',
|
|
106
|
+
path_params,
|
|
107
|
+
query_params,
|
|
108
|
+
header_params,
|
|
109
|
+
body=body_params,
|
|
110
|
+
post_params=form_params,
|
|
111
|
+
files=local_var_files,
|
|
112
|
+
response_type='list[str]', # noqa: E501
|
|
113
|
+
auth_settings=auth_settings,
|
|
114
|
+
async_req=params.get('async_req'),
|
|
115
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
116
|
+
_preload_content=params.get('_preload_content', True),
|
|
117
|
+
_request_timeout=params.get('_request_timeout'),
|
|
118
|
+
collection_formats=collection_formats)
|
|
119
|
+
|
|
120
|
+
def get_repository_information(self, **kwargs): # noqa: E501
|
|
121
|
+
"""Get repository information # noqa: E501
|
|
122
|
+
|
|
123
|
+
Get properties of the repository # noqa: E501
|
|
124
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
125
|
+
asynchronous HTTP request, please pass async_req=True
|
|
126
|
+
>>> thread = api.get_repository_information(async_req=True)
|
|
127
|
+
>>> result = thread.get()
|
|
128
|
+
|
|
129
|
+
:param async_req bool
|
|
130
|
+
:return: RepositoryInfo
|
|
131
|
+
If the method is called asynchronously,
|
|
132
|
+
returns the request thread.
|
|
133
|
+
"""
|
|
134
|
+
kwargs['_return_http_data_only'] = True
|
|
135
|
+
if kwargs.get('async_req'):
|
|
136
|
+
return self.get_repository_information_with_http_info(**kwargs) # noqa: E501
|
|
137
|
+
else:
|
|
138
|
+
(data) = self.get_repository_information_with_http_info(**kwargs) # noqa: E501
|
|
139
|
+
return data
|
|
140
|
+
|
|
141
|
+
def get_repository_information_with_http_info(self, **kwargs): # noqa: E501
|
|
142
|
+
"""Get repository information # noqa: E501
|
|
143
|
+
|
|
144
|
+
Get properties of the repository # noqa: E501
|
|
145
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
146
|
+
asynchronous HTTP request, please pass async_req=True
|
|
147
|
+
>>> thread = api.get_repository_information_with_http_info(async_req=True)
|
|
148
|
+
>>> result = thread.get()
|
|
149
|
+
|
|
150
|
+
:param async_req bool
|
|
151
|
+
:return: RepositoryInfo
|
|
152
|
+
If the method is called asynchronously,
|
|
153
|
+
returns the request thread.
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
all_params = [] # noqa: E501
|
|
157
|
+
all_params.append('async_req')
|
|
158
|
+
all_params.append('_return_http_data_only')
|
|
159
|
+
all_params.append('_preload_content')
|
|
160
|
+
all_params.append('_request_timeout')
|
|
161
|
+
|
|
162
|
+
params = locals()
|
|
163
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
164
|
+
if key not in all_params:
|
|
165
|
+
raise TypeError(
|
|
166
|
+
"Got an unexpected keyword argument '%s'"
|
|
167
|
+
" to method get_repository_information" % key
|
|
168
|
+
)
|
|
169
|
+
params[key] = val
|
|
170
|
+
del params['kwargs']
|
|
171
|
+
|
|
172
|
+
collection_formats = {}
|
|
173
|
+
|
|
174
|
+
path_params = {}
|
|
175
|
+
|
|
176
|
+
query_params = []
|
|
177
|
+
|
|
178
|
+
header_params = {}
|
|
179
|
+
|
|
180
|
+
form_params = []
|
|
181
|
+
local_var_files = {}
|
|
182
|
+
|
|
183
|
+
body_params = None
|
|
184
|
+
# HTTP header `Accept`
|
|
185
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
186
|
+
['application/json']) # noqa: E501
|
|
187
|
+
|
|
188
|
+
# Authentication setting
|
|
189
|
+
auth_settings = [] # noqa: E501
|
|
190
|
+
|
|
191
|
+
return self.api_client.call_api(
|
|
192
|
+
'/repoinfo', 'GET',
|
|
193
|
+
path_params,
|
|
194
|
+
query_params,
|
|
195
|
+
header_params,
|
|
196
|
+
body=body_params,
|
|
197
|
+
post_params=form_params,
|
|
198
|
+
files=local_var_files,
|
|
199
|
+
response_type='RepositoryInfo', # noqa: E501
|
|
200
|
+
auth_settings=auth_settings,
|
|
201
|
+
async_req=params.get('async_req'),
|
|
202
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
203
|
+
_preload_content=params.get('_preload_content', True),
|
|
204
|
+
_request_timeout=params.get('_request_timeout'),
|
|
205
|
+
collection_formats=collection_formats)
|
|
206
|
+
|
|
207
|
+
def get_storage_info(self, **kwargs): # noqa: E501
|
|
208
|
+
"""Get repository storage information # noqa: E501
|
|
209
|
+
|
|
210
|
+
Get properties of the repository storage # noqa: E501
|
|
211
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
212
|
+
asynchronous HTTP request, please pass async_req=True
|
|
213
|
+
>>> thread = api.get_storage_info(async_req=True)
|
|
214
|
+
>>> result = thread.get()
|
|
215
|
+
|
|
216
|
+
:param async_req bool
|
|
217
|
+
:return: StorageInfo
|
|
218
|
+
If the method is called asynchronously,
|
|
219
|
+
returns the request thread.
|
|
220
|
+
"""
|
|
221
|
+
kwargs['_return_http_data_only'] = True
|
|
222
|
+
if kwargs.get('async_req'):
|
|
223
|
+
return self.get_storage_info_with_http_info(**kwargs) # noqa: E501
|
|
224
|
+
else:
|
|
225
|
+
(data) = self.get_storage_info_with_http_info(**kwargs) # noqa: E501
|
|
226
|
+
return data
|
|
227
|
+
|
|
228
|
+
def get_storage_info_with_http_info(self, **kwargs): # noqa: E501
|
|
229
|
+
"""Get repository storage information # noqa: E501
|
|
230
|
+
|
|
231
|
+
Get properties of the repository storage # noqa: E501
|
|
232
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
233
|
+
asynchronous HTTP request, please pass async_req=True
|
|
234
|
+
>>> thread = api.get_storage_info_with_http_info(async_req=True)
|
|
235
|
+
>>> result = thread.get()
|
|
236
|
+
|
|
237
|
+
:param async_req bool
|
|
238
|
+
:return: StorageInfo
|
|
239
|
+
If the method is called asynchronously,
|
|
240
|
+
returns the request thread.
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
all_params = [] # noqa: E501
|
|
244
|
+
all_params.append('async_req')
|
|
245
|
+
all_params.append('_return_http_data_only')
|
|
246
|
+
all_params.append('_preload_content')
|
|
247
|
+
all_params.append('_request_timeout')
|
|
248
|
+
|
|
249
|
+
params = locals()
|
|
250
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
251
|
+
if key not in all_params:
|
|
252
|
+
raise TypeError(
|
|
253
|
+
"Got an unexpected keyword argument '%s'"
|
|
254
|
+
" to method get_storage_info" % key
|
|
255
|
+
)
|
|
256
|
+
params[key] = val
|
|
257
|
+
del params['kwargs']
|
|
258
|
+
|
|
259
|
+
collection_formats = {}
|
|
260
|
+
|
|
261
|
+
path_params = {}
|
|
262
|
+
|
|
263
|
+
query_params = []
|
|
264
|
+
|
|
265
|
+
header_params = {}
|
|
266
|
+
|
|
267
|
+
form_params = []
|
|
268
|
+
local_var_files = {}
|
|
269
|
+
|
|
270
|
+
body_params = None
|
|
271
|
+
# HTTP header `Accept`
|
|
272
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
273
|
+
['application/json']) # noqa: E501
|
|
274
|
+
|
|
275
|
+
# Authentication setting
|
|
276
|
+
auth_settings = [] # noqa: E501
|
|
277
|
+
|
|
278
|
+
return self.api_client.call_api(
|
|
279
|
+
'/repoinfo/storage', 'GET',
|
|
280
|
+
path_params,
|
|
281
|
+
query_params,
|
|
282
|
+
header_params,
|
|
283
|
+
body=body_params,
|
|
284
|
+
post_params=form_params,
|
|
285
|
+
files=local_var_files,
|
|
286
|
+
response_type='StorageInfo', # noqa: E501
|
|
287
|
+
auth_settings=auth_settings,
|
|
288
|
+
async_req=params.get('async_req'),
|
|
289
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
290
|
+
_preload_content=params.get('_preload_content', True),
|
|
291
|
+
_request_timeout=params.get('_request_timeout'),
|
|
292
|
+
collection_formats=collection_formats)
|
|
293
|
+
|
|
294
|
+
def get_supported_checksum_algorithms(self, **kwargs): # noqa: E501
|
|
295
|
+
"""Get the supported checksum algorithms # noqa: E501
|
|
296
|
+
|
|
297
|
+
Get a list of the names of the supported checksum algorithms # noqa: E501
|
|
298
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
299
|
+
asynchronous HTTP request, please pass async_req=True
|
|
300
|
+
>>> thread = api.get_supported_checksum_algorithms(async_req=True)
|
|
301
|
+
>>> result = thread.get()
|
|
302
|
+
|
|
303
|
+
:param async_req bool
|
|
304
|
+
:return: list[str]
|
|
305
|
+
If the method is called asynchronously,
|
|
306
|
+
returns the request thread.
|
|
307
|
+
"""
|
|
308
|
+
kwargs['_return_http_data_only'] = True
|
|
309
|
+
if kwargs.get('async_req'):
|
|
310
|
+
return self.get_supported_checksum_algorithms_with_http_info(**kwargs) # noqa: E501
|
|
311
|
+
else:
|
|
312
|
+
(data) = self.get_supported_checksum_algorithms_with_http_info(**kwargs) # noqa: E501
|
|
313
|
+
return data
|
|
314
|
+
|
|
315
|
+
def get_supported_checksum_algorithms_with_http_info(self, **kwargs): # noqa: E501
|
|
316
|
+
"""Get the supported checksum algorithms # noqa: E501
|
|
317
|
+
|
|
318
|
+
Get a list of the names of the supported checksum algorithms # noqa: E501
|
|
319
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
320
|
+
asynchronous HTTP request, please pass async_req=True
|
|
321
|
+
>>> thread = api.get_supported_checksum_algorithms_with_http_info(async_req=True)
|
|
322
|
+
>>> result = thread.get()
|
|
323
|
+
|
|
324
|
+
:param async_req bool
|
|
325
|
+
:return: list[str]
|
|
326
|
+
If the method is called asynchronously,
|
|
327
|
+
returns the request thread.
|
|
328
|
+
"""
|
|
329
|
+
|
|
330
|
+
all_params = [] # noqa: E501
|
|
331
|
+
all_params.append('async_req')
|
|
332
|
+
all_params.append('_return_http_data_only')
|
|
333
|
+
all_params.append('_preload_content')
|
|
334
|
+
all_params.append('_request_timeout')
|
|
335
|
+
|
|
336
|
+
params = locals()
|
|
337
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
338
|
+
if key not in all_params:
|
|
339
|
+
raise TypeError(
|
|
340
|
+
"Got an unexpected keyword argument '%s'"
|
|
341
|
+
" to method get_supported_checksum_algorithms" % key
|
|
342
|
+
)
|
|
343
|
+
params[key] = val
|
|
344
|
+
del params['kwargs']
|
|
345
|
+
|
|
346
|
+
collection_formats = {}
|
|
347
|
+
|
|
348
|
+
path_params = {}
|
|
349
|
+
|
|
350
|
+
query_params = []
|
|
351
|
+
|
|
352
|
+
header_params = {}
|
|
353
|
+
|
|
354
|
+
form_params = []
|
|
355
|
+
local_var_files = {}
|
|
356
|
+
|
|
357
|
+
body_params = None
|
|
358
|
+
# HTTP header `Accept`
|
|
359
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
360
|
+
['application/json']) # noqa: E501
|
|
361
|
+
|
|
362
|
+
# Authentication setting
|
|
363
|
+
auth_settings = [] # noqa: E501
|
|
364
|
+
|
|
365
|
+
return self.api_client.call_api(
|
|
366
|
+
'/checksumalgorithms', 'GET',
|
|
367
|
+
path_params,
|
|
368
|
+
query_params,
|
|
369
|
+
header_params,
|
|
370
|
+
body=body_params,
|
|
371
|
+
post_params=form_params,
|
|
372
|
+
files=local_var_files,
|
|
373
|
+
response_type='list[str]', # noqa: E501
|
|
374
|
+
auth_settings=auth_settings,
|
|
375
|
+
async_req=params.get('async_req'),
|
|
376
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
377
|
+
_preload_content=params.get('_preload_content', True),
|
|
378
|
+
_request_timeout=params.get('_request_timeout'),
|
|
379
|
+
collection_formats=collection_formats)
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from lockss.pyclient.rs.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class StatusApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def get_status(self, **kwargs): # noqa: E501
|
|
36
|
+
"""Get the status of the service # noqa: E501
|
|
37
|
+
|
|
38
|
+
Get the status of the service # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.get_status(async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:return: ApiStatus
|
|
46
|
+
If the method is called asynchronously,
|
|
47
|
+
returns the request thread.
|
|
48
|
+
"""
|
|
49
|
+
kwargs['_return_http_data_only'] = True
|
|
50
|
+
if kwargs.get('async_req'):
|
|
51
|
+
return self.get_status_with_http_info(**kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.get_status_with_http_info(**kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def get_status_with_http_info(self, **kwargs): # noqa: E501
|
|
57
|
+
"""Get the status of the service # noqa: E501
|
|
58
|
+
|
|
59
|
+
Get the status of the service # noqa: E501
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.get_status_with_http_info(async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:return: ApiStatus
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = [] # noqa: E501
|
|
72
|
+
all_params.append('async_req')
|
|
73
|
+
all_params.append('_return_http_data_only')
|
|
74
|
+
all_params.append('_preload_content')
|
|
75
|
+
all_params.append('_request_timeout')
|
|
76
|
+
|
|
77
|
+
params = locals()
|
|
78
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
+
if key not in all_params:
|
|
80
|
+
raise TypeError(
|
|
81
|
+
"Got an unexpected keyword argument '%s'"
|
|
82
|
+
" to method get_status" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
|
|
87
|
+
collection_formats = {}
|
|
88
|
+
|
|
89
|
+
path_params = {}
|
|
90
|
+
|
|
91
|
+
query_params = []
|
|
92
|
+
|
|
93
|
+
header_params = {}
|
|
94
|
+
|
|
95
|
+
form_params = []
|
|
96
|
+
local_var_files = {}
|
|
97
|
+
|
|
98
|
+
body_params = None
|
|
99
|
+
# HTTP header `Accept`
|
|
100
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
101
|
+
['application/json']) # noqa: E501
|
|
102
|
+
|
|
103
|
+
# Authentication setting
|
|
104
|
+
auth_settings = [] # noqa: E501
|
|
105
|
+
|
|
106
|
+
return self.api_client.call_api(
|
|
107
|
+
'/status', 'GET',
|
|
108
|
+
path_params,
|
|
109
|
+
query_params,
|
|
110
|
+
header_params,
|
|
111
|
+
body=body_params,
|
|
112
|
+
post_params=form_params,
|
|
113
|
+
files=local_var_files,
|
|
114
|
+
response_type='ApiStatus', # noqa: E501
|
|
115
|
+
auth_settings=auth_settings,
|
|
116
|
+
async_req=params.get('async_req'),
|
|
117
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
118
|
+
_preload_content=params.get('_preload_content', True),
|
|
119
|
+
_request_timeout=params.get('_request_timeout'),
|
|
120
|
+
collection_formats=collection_formats)
|