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,718 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Configuration Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Configuration 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.config.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ConfigApi(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_last_update_time(self, **kwargs): # noqa: E501
|
|
36
|
+
"""Get the timestamp when the configuration was last updated # noqa: E501
|
|
37
|
+
|
|
38
|
+
Get the timestamp when the configuration was last updated # 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_last_update_time(async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:return: datetime
|
|
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_last_update_time_with_http_info(**kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.get_last_update_time_with_http_info(**kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def get_last_update_time_with_http_info(self, **kwargs): # noqa: E501
|
|
57
|
+
"""Get the timestamp when the configuration was last updated # noqa: E501
|
|
58
|
+
|
|
59
|
+
Get the timestamp when the configuration was last updated # 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_last_update_time_with_http_info(async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:return: datetime
|
|
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_last_update_time" % 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 = ['basicAuth'] # noqa: E501
|
|
105
|
+
|
|
106
|
+
return self.api_client.call_api(
|
|
107
|
+
'/config/lastupdatetime', '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='datetime', # 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)
|
|
121
|
+
|
|
122
|
+
def get_loaded_url_list(self, **kwargs): # noqa: E501
|
|
123
|
+
"""Get the URLs from which the configuration was loaded # noqa: E501
|
|
124
|
+
|
|
125
|
+
Get the URLs from which the configuration was actually loaded, reflecting any failover to local copies # noqa: E501
|
|
126
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
127
|
+
asynchronous HTTP request, please pass async_req=True
|
|
128
|
+
>>> thread = api.get_loaded_url_list(async_req=True)
|
|
129
|
+
>>> result = thread.get()
|
|
130
|
+
|
|
131
|
+
:param async_req bool
|
|
132
|
+
:return: list[str]
|
|
133
|
+
If the method is called asynchronously,
|
|
134
|
+
returns the request thread.
|
|
135
|
+
"""
|
|
136
|
+
kwargs['_return_http_data_only'] = True
|
|
137
|
+
if kwargs.get('async_req'):
|
|
138
|
+
return self.get_loaded_url_list_with_http_info(**kwargs) # noqa: E501
|
|
139
|
+
else:
|
|
140
|
+
(data) = self.get_loaded_url_list_with_http_info(**kwargs) # noqa: E501
|
|
141
|
+
return data
|
|
142
|
+
|
|
143
|
+
def get_loaded_url_list_with_http_info(self, **kwargs): # noqa: E501
|
|
144
|
+
"""Get the URLs from which the configuration was loaded # noqa: E501
|
|
145
|
+
|
|
146
|
+
Get the URLs from which the configuration was actually loaded, reflecting any failover to local copies # noqa: E501
|
|
147
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
148
|
+
asynchronous HTTP request, please pass async_req=True
|
|
149
|
+
>>> thread = api.get_loaded_url_list_with_http_info(async_req=True)
|
|
150
|
+
>>> result = thread.get()
|
|
151
|
+
|
|
152
|
+
:param async_req bool
|
|
153
|
+
:return: list[str]
|
|
154
|
+
If the method is called asynchronously,
|
|
155
|
+
returns the request thread.
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
all_params = [] # noqa: E501
|
|
159
|
+
all_params.append('async_req')
|
|
160
|
+
all_params.append('_return_http_data_only')
|
|
161
|
+
all_params.append('_preload_content')
|
|
162
|
+
all_params.append('_request_timeout')
|
|
163
|
+
|
|
164
|
+
params = locals()
|
|
165
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
166
|
+
if key not in all_params:
|
|
167
|
+
raise TypeError(
|
|
168
|
+
"Got an unexpected keyword argument '%s'"
|
|
169
|
+
" to method get_loaded_url_list" % key
|
|
170
|
+
)
|
|
171
|
+
params[key] = val
|
|
172
|
+
del params['kwargs']
|
|
173
|
+
|
|
174
|
+
collection_formats = {}
|
|
175
|
+
|
|
176
|
+
path_params = {}
|
|
177
|
+
|
|
178
|
+
query_params = []
|
|
179
|
+
|
|
180
|
+
header_params = {}
|
|
181
|
+
|
|
182
|
+
form_params = []
|
|
183
|
+
local_var_files = {}
|
|
184
|
+
|
|
185
|
+
body_params = None
|
|
186
|
+
# HTTP header `Accept`
|
|
187
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
188
|
+
['application/json']) # noqa: E501
|
|
189
|
+
|
|
190
|
+
# Authentication setting
|
|
191
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
192
|
+
|
|
193
|
+
return self.api_client.call_api(
|
|
194
|
+
'/config/loadedurls', 'GET',
|
|
195
|
+
path_params,
|
|
196
|
+
query_params,
|
|
197
|
+
header_params,
|
|
198
|
+
body=body_params,
|
|
199
|
+
post_params=form_params,
|
|
200
|
+
files=local_var_files,
|
|
201
|
+
response_type='list[str]', # noqa: E501
|
|
202
|
+
auth_settings=auth_settings,
|
|
203
|
+
async_req=params.get('async_req'),
|
|
204
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
205
|
+
_preload_content=params.get('_preload_content', True),
|
|
206
|
+
_request_timeout=params.get('_request_timeout'),
|
|
207
|
+
collection_formats=collection_formats)
|
|
208
|
+
|
|
209
|
+
def get_platform_config(self, **kwargs): # noqa: E501
|
|
210
|
+
"""Get the platform configuration # noqa: E501
|
|
211
|
+
|
|
212
|
+
Get the platform configuration # noqa: E501
|
|
213
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
214
|
+
asynchronous HTTP request, please pass async_req=True
|
|
215
|
+
>>> thread = api.get_platform_config(async_req=True)
|
|
216
|
+
>>> result = thread.get()
|
|
217
|
+
|
|
218
|
+
:param async_req bool
|
|
219
|
+
:return: PlatformConfigurationWsResult
|
|
220
|
+
If the method is called asynchronously,
|
|
221
|
+
returns the request thread.
|
|
222
|
+
"""
|
|
223
|
+
kwargs['_return_http_data_only'] = True
|
|
224
|
+
if kwargs.get('async_req'):
|
|
225
|
+
return self.get_platform_config_with_http_info(**kwargs) # noqa: E501
|
|
226
|
+
else:
|
|
227
|
+
(data) = self.get_platform_config_with_http_info(**kwargs) # noqa: E501
|
|
228
|
+
return data
|
|
229
|
+
|
|
230
|
+
def get_platform_config_with_http_info(self, **kwargs): # noqa: E501
|
|
231
|
+
"""Get the platform configuration # noqa: E501
|
|
232
|
+
|
|
233
|
+
Get the platform configuration # noqa: E501
|
|
234
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
235
|
+
asynchronous HTTP request, please pass async_req=True
|
|
236
|
+
>>> thread = api.get_platform_config_with_http_info(async_req=True)
|
|
237
|
+
>>> result = thread.get()
|
|
238
|
+
|
|
239
|
+
:param async_req bool
|
|
240
|
+
:return: PlatformConfigurationWsResult
|
|
241
|
+
If the method is called asynchronously,
|
|
242
|
+
returns the request thread.
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
all_params = [] # noqa: E501
|
|
246
|
+
all_params.append('async_req')
|
|
247
|
+
all_params.append('_return_http_data_only')
|
|
248
|
+
all_params.append('_preload_content')
|
|
249
|
+
all_params.append('_request_timeout')
|
|
250
|
+
|
|
251
|
+
params = locals()
|
|
252
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
253
|
+
if key not in all_params:
|
|
254
|
+
raise TypeError(
|
|
255
|
+
"Got an unexpected keyword argument '%s'"
|
|
256
|
+
" to method get_platform_config" % key
|
|
257
|
+
)
|
|
258
|
+
params[key] = val
|
|
259
|
+
del params['kwargs']
|
|
260
|
+
|
|
261
|
+
collection_formats = {}
|
|
262
|
+
|
|
263
|
+
path_params = {}
|
|
264
|
+
|
|
265
|
+
query_params = []
|
|
266
|
+
|
|
267
|
+
header_params = {}
|
|
268
|
+
|
|
269
|
+
form_params = []
|
|
270
|
+
local_var_files = {}
|
|
271
|
+
|
|
272
|
+
body_params = None
|
|
273
|
+
# HTTP header `Accept`
|
|
274
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
275
|
+
['application/json']) # noqa: E501
|
|
276
|
+
|
|
277
|
+
# Authentication setting
|
|
278
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
279
|
+
|
|
280
|
+
return self.api_client.call_api(
|
|
281
|
+
'/config/platform', 'GET',
|
|
282
|
+
path_params,
|
|
283
|
+
query_params,
|
|
284
|
+
header_params,
|
|
285
|
+
body=body_params,
|
|
286
|
+
post_params=form_params,
|
|
287
|
+
files=local_var_files,
|
|
288
|
+
response_type='PlatformConfigurationWsResult', # noqa: E501
|
|
289
|
+
auth_settings=auth_settings,
|
|
290
|
+
async_req=params.get('async_req'),
|
|
291
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
292
|
+
_preload_content=params.get('_preload_content', True),
|
|
293
|
+
_request_timeout=params.get('_request_timeout'),
|
|
294
|
+
collection_formats=collection_formats)
|
|
295
|
+
|
|
296
|
+
def get_section_config(self, section_name, **kwargs): # noqa: E501
|
|
297
|
+
"""Get the named configuration file # noqa: E501
|
|
298
|
+
|
|
299
|
+
Get the configuration file stored for a given name # noqa: E501
|
|
300
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
301
|
+
asynchronous HTTP request, please pass async_req=True
|
|
302
|
+
>>> thread = api.get_section_config(section_name, async_req=True)
|
|
303
|
+
>>> result = thread.get()
|
|
304
|
+
|
|
305
|
+
:param async_req bool
|
|
306
|
+
:param str section_name: The name of the section for which the configuration file is requested (required)
|
|
307
|
+
:param str if_match: The If-Match header
|
|
308
|
+
:param str if_modified_since: The If-Match header
|
|
309
|
+
:param str if_none_match: The If-Match header
|
|
310
|
+
:param str if_unmodified_since: The If-Match header
|
|
311
|
+
:return: str
|
|
312
|
+
If the method is called asynchronously,
|
|
313
|
+
returns the request thread.
|
|
314
|
+
"""
|
|
315
|
+
kwargs['_return_http_data_only'] = True
|
|
316
|
+
if kwargs.get('async_req'):
|
|
317
|
+
return self.get_section_config_with_http_info(section_name, **kwargs) # noqa: E501
|
|
318
|
+
else:
|
|
319
|
+
(data) = self.get_section_config_with_http_info(section_name, **kwargs) # noqa: E501
|
|
320
|
+
return data
|
|
321
|
+
|
|
322
|
+
def get_section_config_with_http_info(self, section_name, **kwargs): # noqa: E501
|
|
323
|
+
"""Get the named configuration file # noqa: E501
|
|
324
|
+
|
|
325
|
+
Get the configuration file stored for a given name # noqa: E501
|
|
326
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
327
|
+
asynchronous HTTP request, please pass async_req=True
|
|
328
|
+
>>> thread = api.get_section_config_with_http_info(section_name, async_req=True)
|
|
329
|
+
>>> result = thread.get()
|
|
330
|
+
|
|
331
|
+
:param async_req bool
|
|
332
|
+
:param str section_name: The name of the section for which the configuration file is requested (required)
|
|
333
|
+
:param str if_match: The If-Match header
|
|
334
|
+
:param str if_modified_since: The If-Match header
|
|
335
|
+
:param str if_none_match: The If-Match header
|
|
336
|
+
:param str if_unmodified_since: The If-Match header
|
|
337
|
+
:return: str
|
|
338
|
+
If the method is called asynchronously,
|
|
339
|
+
returns the request thread.
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
all_params = ['section_name', 'if_match', 'if_modified_since', 'if_none_match', 'if_unmodified_since'] # noqa: E501
|
|
343
|
+
all_params.append('async_req')
|
|
344
|
+
all_params.append('_return_http_data_only')
|
|
345
|
+
all_params.append('_preload_content')
|
|
346
|
+
all_params.append('_request_timeout')
|
|
347
|
+
|
|
348
|
+
params = locals()
|
|
349
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
350
|
+
if key not in all_params:
|
|
351
|
+
raise TypeError(
|
|
352
|
+
"Got an unexpected keyword argument '%s'"
|
|
353
|
+
" to method get_section_config" % key
|
|
354
|
+
)
|
|
355
|
+
params[key] = val
|
|
356
|
+
del params['kwargs']
|
|
357
|
+
# verify the required parameter 'section_name' is set
|
|
358
|
+
if ('section_name' not in params or
|
|
359
|
+
params['section_name'] is None):
|
|
360
|
+
raise ValueError("Missing the required parameter `section_name` when calling `get_section_config`") # noqa: E501
|
|
361
|
+
|
|
362
|
+
collection_formats = {}
|
|
363
|
+
|
|
364
|
+
path_params = {}
|
|
365
|
+
if 'section_name' in params:
|
|
366
|
+
path_params['sectionName'] = params['section_name'] # noqa: E501
|
|
367
|
+
|
|
368
|
+
query_params = []
|
|
369
|
+
|
|
370
|
+
header_params = {}
|
|
371
|
+
if 'if_match' in params:
|
|
372
|
+
header_params['If-Match'] = params['if_match'] # noqa: E501
|
|
373
|
+
if 'if_modified_since' in params:
|
|
374
|
+
header_params['If-Modified-Since'] = params['if_modified_since'] # noqa: E501
|
|
375
|
+
if 'if_none_match' in params:
|
|
376
|
+
header_params['If-None-Match'] = params['if_none_match'] # noqa: E501
|
|
377
|
+
if 'if_unmodified_since' in params:
|
|
378
|
+
header_params['If-Unmodified-Since'] = params['if_unmodified_since'] # noqa: E501
|
|
379
|
+
|
|
380
|
+
form_params = []
|
|
381
|
+
local_var_files = {}
|
|
382
|
+
|
|
383
|
+
body_params = None
|
|
384
|
+
# HTTP header `Accept`
|
|
385
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
386
|
+
['multipart/form-data']) # noqa: E501
|
|
387
|
+
|
|
388
|
+
# Authentication setting
|
|
389
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
390
|
+
|
|
391
|
+
return self.api_client.call_api(
|
|
392
|
+
'/config/file/{sectionName}', 'GET',
|
|
393
|
+
path_params,
|
|
394
|
+
query_params,
|
|
395
|
+
header_params,
|
|
396
|
+
body=body_params,
|
|
397
|
+
post_params=form_params,
|
|
398
|
+
files=local_var_files,
|
|
399
|
+
response_type='str', # noqa: E501
|
|
400
|
+
auth_settings=auth_settings,
|
|
401
|
+
async_req=params.get('async_req'),
|
|
402
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
403
|
+
_preload_content=params.get('_preload_content', True),
|
|
404
|
+
_request_timeout=params.get('_request_timeout'),
|
|
405
|
+
collection_formats=collection_formats)
|
|
406
|
+
|
|
407
|
+
def get_url_config(self, url, **kwargs): # noqa: E501
|
|
408
|
+
"""Get the configuration file for a URL # noqa: E501
|
|
409
|
+
|
|
410
|
+
Get the configuration file stored for a given URL # noqa: E501
|
|
411
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
412
|
+
asynchronous HTTP request, please pass async_req=True
|
|
413
|
+
>>> thread = api.get_url_config(url, async_req=True)
|
|
414
|
+
>>> result = thread.get()
|
|
415
|
+
|
|
416
|
+
:param async_req bool
|
|
417
|
+
:param str url: The URL for which the configuration is requested (required)
|
|
418
|
+
:param str if_match: The If-Match header
|
|
419
|
+
:param str if_modified_since: The If-Match header
|
|
420
|
+
:param str if_none_match: The If-Match header
|
|
421
|
+
:param str if_unmodified_since: The If-Match header
|
|
422
|
+
:return: str
|
|
423
|
+
If the method is called asynchronously,
|
|
424
|
+
returns the request thread.
|
|
425
|
+
"""
|
|
426
|
+
kwargs['_return_http_data_only'] = True
|
|
427
|
+
if kwargs.get('async_req'):
|
|
428
|
+
return self.get_url_config_with_http_info(url, **kwargs) # noqa: E501
|
|
429
|
+
else:
|
|
430
|
+
(data) = self.get_url_config_with_http_info(url, **kwargs) # noqa: E501
|
|
431
|
+
return data
|
|
432
|
+
|
|
433
|
+
def get_url_config_with_http_info(self, url, **kwargs): # noqa: E501
|
|
434
|
+
"""Get the configuration file for a URL # noqa: E501
|
|
435
|
+
|
|
436
|
+
Get the configuration file stored for a given URL # noqa: E501
|
|
437
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
438
|
+
asynchronous HTTP request, please pass async_req=True
|
|
439
|
+
>>> thread = api.get_url_config_with_http_info(url, async_req=True)
|
|
440
|
+
>>> result = thread.get()
|
|
441
|
+
|
|
442
|
+
:param async_req bool
|
|
443
|
+
:param str url: The URL for which the configuration is requested (required)
|
|
444
|
+
:param str if_match: The If-Match header
|
|
445
|
+
:param str if_modified_since: The If-Match header
|
|
446
|
+
:param str if_none_match: The If-Match header
|
|
447
|
+
:param str if_unmodified_since: The If-Match header
|
|
448
|
+
:return: str
|
|
449
|
+
If the method is called asynchronously,
|
|
450
|
+
returns the request thread.
|
|
451
|
+
"""
|
|
452
|
+
|
|
453
|
+
all_params = ['url', 'if_match', 'if_modified_since', 'if_none_match', 'if_unmodified_since'] # noqa: E501
|
|
454
|
+
all_params.append('async_req')
|
|
455
|
+
all_params.append('_return_http_data_only')
|
|
456
|
+
all_params.append('_preload_content')
|
|
457
|
+
all_params.append('_request_timeout')
|
|
458
|
+
|
|
459
|
+
params = locals()
|
|
460
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
461
|
+
if key not in all_params:
|
|
462
|
+
raise TypeError(
|
|
463
|
+
"Got an unexpected keyword argument '%s'"
|
|
464
|
+
" to method get_url_config" % key
|
|
465
|
+
)
|
|
466
|
+
params[key] = val
|
|
467
|
+
del params['kwargs']
|
|
468
|
+
# verify the required parameter 'url' is set
|
|
469
|
+
if ('url' not in params or
|
|
470
|
+
params['url'] is None):
|
|
471
|
+
raise ValueError("Missing the required parameter `url` when calling `get_url_config`") # noqa: E501
|
|
472
|
+
|
|
473
|
+
collection_formats = {}
|
|
474
|
+
|
|
475
|
+
path_params = {}
|
|
476
|
+
|
|
477
|
+
query_params = []
|
|
478
|
+
if 'url' in params:
|
|
479
|
+
query_params.append(('url', params['url'])) # noqa: E501
|
|
480
|
+
|
|
481
|
+
header_params = {}
|
|
482
|
+
if 'if_match' in params:
|
|
483
|
+
header_params['If-Match'] = params['if_match'] # noqa: E501
|
|
484
|
+
if 'if_modified_since' in params:
|
|
485
|
+
header_params['If-Modified-Since'] = params['if_modified_since'] # noqa: E501
|
|
486
|
+
if 'if_none_match' in params:
|
|
487
|
+
header_params['If-None-Match'] = params['if_none_match'] # noqa: E501
|
|
488
|
+
if 'if_unmodified_since' in params:
|
|
489
|
+
header_params['If-Unmodified-Since'] = params['if_unmodified_since'] # noqa: E501
|
|
490
|
+
|
|
491
|
+
form_params = []
|
|
492
|
+
local_var_files = {}
|
|
493
|
+
|
|
494
|
+
body_params = None
|
|
495
|
+
# HTTP header `Accept`
|
|
496
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
497
|
+
['multipart/form-data']) # noqa: E501
|
|
498
|
+
|
|
499
|
+
# Authentication setting
|
|
500
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
501
|
+
|
|
502
|
+
return self.api_client.call_api(
|
|
503
|
+
'/config/url', 'GET',
|
|
504
|
+
path_params,
|
|
505
|
+
query_params,
|
|
506
|
+
header_params,
|
|
507
|
+
body=body_params,
|
|
508
|
+
post_params=form_params,
|
|
509
|
+
files=local_var_files,
|
|
510
|
+
response_type='str', # noqa: E501
|
|
511
|
+
auth_settings=auth_settings,
|
|
512
|
+
async_req=params.get('async_req'),
|
|
513
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
514
|
+
_preload_content=params.get('_preload_content', True),
|
|
515
|
+
_request_timeout=params.get('_request_timeout'),
|
|
516
|
+
collection_formats=collection_formats)
|
|
517
|
+
|
|
518
|
+
def put_config(self, config_file, section_name, **kwargs): # noqa: E501
|
|
519
|
+
"""Store the named configuration file # noqa: E501
|
|
520
|
+
|
|
521
|
+
Store the configuration file for a given name # noqa: E501
|
|
522
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
523
|
+
asynchronous HTTP request, please pass async_req=True
|
|
524
|
+
>>> thread = api.put_config(config_file, section_name, async_req=True)
|
|
525
|
+
>>> result = thread.get()
|
|
526
|
+
|
|
527
|
+
:param async_req bool
|
|
528
|
+
:param str config_file: (required)
|
|
529
|
+
:param str section_name: The name of the section for which the configuration file is to be stored (required)
|
|
530
|
+
:param str if_match: The If-Match header
|
|
531
|
+
:param str if_modified_since: The If-Match header
|
|
532
|
+
:param str if_none_match: The If-Match header
|
|
533
|
+
:param str if_unmodified_since: The If-Match header
|
|
534
|
+
:return: None
|
|
535
|
+
If the method is called asynchronously,
|
|
536
|
+
returns the request thread.
|
|
537
|
+
"""
|
|
538
|
+
kwargs['_return_http_data_only'] = True
|
|
539
|
+
if kwargs.get('async_req'):
|
|
540
|
+
return self.put_config_with_http_info(config_file, section_name, **kwargs) # noqa: E501
|
|
541
|
+
else:
|
|
542
|
+
(data) = self.put_config_with_http_info(config_file, section_name, **kwargs) # noqa: E501
|
|
543
|
+
return data
|
|
544
|
+
|
|
545
|
+
def put_config_with_http_info(self, config_file, section_name, **kwargs): # noqa: E501
|
|
546
|
+
"""Store the named configuration file # noqa: E501
|
|
547
|
+
|
|
548
|
+
Store the configuration file for a given name # noqa: E501
|
|
549
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
550
|
+
asynchronous HTTP request, please pass async_req=True
|
|
551
|
+
>>> thread = api.put_config_with_http_info(config_file, section_name, async_req=True)
|
|
552
|
+
>>> result = thread.get()
|
|
553
|
+
|
|
554
|
+
:param async_req bool
|
|
555
|
+
:param str config_file: (required)
|
|
556
|
+
:param str section_name: The name of the section for which the configuration file is to be stored (required)
|
|
557
|
+
:param str if_match: The If-Match header
|
|
558
|
+
:param str if_modified_since: The If-Match header
|
|
559
|
+
:param str if_none_match: The If-Match header
|
|
560
|
+
:param str if_unmodified_since: The If-Match header
|
|
561
|
+
:return: None
|
|
562
|
+
If the method is called asynchronously,
|
|
563
|
+
returns the request thread.
|
|
564
|
+
"""
|
|
565
|
+
|
|
566
|
+
all_params = ['config_file', 'section_name', 'if_match', 'if_modified_since', 'if_none_match', 'if_unmodified_since'] # noqa: E501
|
|
567
|
+
all_params.append('async_req')
|
|
568
|
+
all_params.append('_return_http_data_only')
|
|
569
|
+
all_params.append('_preload_content')
|
|
570
|
+
all_params.append('_request_timeout')
|
|
571
|
+
|
|
572
|
+
params = locals()
|
|
573
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
574
|
+
if key not in all_params:
|
|
575
|
+
raise TypeError(
|
|
576
|
+
"Got an unexpected keyword argument '%s'"
|
|
577
|
+
" to method put_config" % key
|
|
578
|
+
)
|
|
579
|
+
params[key] = val
|
|
580
|
+
del params['kwargs']
|
|
581
|
+
# verify the required parameter 'config_file' is set
|
|
582
|
+
if ('config_file' not in params or
|
|
583
|
+
params['config_file'] is None):
|
|
584
|
+
raise ValueError("Missing the required parameter `config_file` when calling `put_config`") # noqa: E501
|
|
585
|
+
# verify the required parameter 'section_name' is set
|
|
586
|
+
if ('section_name' not in params or
|
|
587
|
+
params['section_name'] is None):
|
|
588
|
+
raise ValueError("Missing the required parameter `section_name` when calling `put_config`") # noqa: E501
|
|
589
|
+
|
|
590
|
+
collection_formats = {}
|
|
591
|
+
|
|
592
|
+
path_params = {}
|
|
593
|
+
if 'section_name' in params:
|
|
594
|
+
path_params['sectionName'] = params['section_name'] # noqa: E501
|
|
595
|
+
|
|
596
|
+
query_params = []
|
|
597
|
+
|
|
598
|
+
header_params = {}
|
|
599
|
+
if 'if_match' in params:
|
|
600
|
+
header_params['If-Match'] = params['if_match'] # noqa: E501
|
|
601
|
+
if 'if_modified_since' in params:
|
|
602
|
+
header_params['If-Modified-Since'] = params['if_modified_since'] # noqa: E501
|
|
603
|
+
if 'if_none_match' in params:
|
|
604
|
+
header_params['If-None-Match'] = params['if_none_match'] # noqa: E501
|
|
605
|
+
if 'if_unmodified_since' in params:
|
|
606
|
+
header_params['If-Unmodified-Since'] = params['if_unmodified_since'] # noqa: E501
|
|
607
|
+
|
|
608
|
+
form_params = []
|
|
609
|
+
local_var_files = {}
|
|
610
|
+
if 'config_file' in params:
|
|
611
|
+
local_var_files['configFile'] = params['config_file'] # noqa: E501
|
|
612
|
+
|
|
613
|
+
body_params = None
|
|
614
|
+
# HTTP header `Content-Type`
|
|
615
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
616
|
+
['multipart/form-data']) # noqa: E501
|
|
617
|
+
|
|
618
|
+
# Authentication setting
|
|
619
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
620
|
+
|
|
621
|
+
return self.api_client.call_api(
|
|
622
|
+
'/config/file/{sectionName}', 'PUT',
|
|
623
|
+
path_params,
|
|
624
|
+
query_params,
|
|
625
|
+
header_params,
|
|
626
|
+
body=body_params,
|
|
627
|
+
post_params=form_params,
|
|
628
|
+
files=local_var_files,
|
|
629
|
+
response_type=None, # noqa: E501
|
|
630
|
+
auth_settings=auth_settings,
|
|
631
|
+
async_req=params.get('async_req'),
|
|
632
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
633
|
+
_preload_content=params.get('_preload_content', True),
|
|
634
|
+
_request_timeout=params.get('_request_timeout'),
|
|
635
|
+
collection_formats=collection_formats)
|
|
636
|
+
|
|
637
|
+
def put_config_reload(self, **kwargs): # noqa: E501
|
|
638
|
+
"""Request a configuration reload # noqa: E501
|
|
639
|
+
|
|
640
|
+
Request that the stored configuration is reloaded # noqa: E501
|
|
641
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
642
|
+
asynchronous HTTP request, please pass async_req=True
|
|
643
|
+
>>> thread = api.put_config_reload(async_req=True)
|
|
644
|
+
>>> result = thread.get()
|
|
645
|
+
|
|
646
|
+
:param async_req bool
|
|
647
|
+
:return: None
|
|
648
|
+
If the method is called asynchronously,
|
|
649
|
+
returns the request thread.
|
|
650
|
+
"""
|
|
651
|
+
kwargs['_return_http_data_only'] = True
|
|
652
|
+
if kwargs.get('async_req'):
|
|
653
|
+
return self.put_config_reload_with_http_info(**kwargs) # noqa: E501
|
|
654
|
+
else:
|
|
655
|
+
(data) = self.put_config_reload_with_http_info(**kwargs) # noqa: E501
|
|
656
|
+
return data
|
|
657
|
+
|
|
658
|
+
def put_config_reload_with_http_info(self, **kwargs): # noqa: E501
|
|
659
|
+
"""Request a configuration reload # noqa: E501
|
|
660
|
+
|
|
661
|
+
Request that the stored configuration is reloaded # noqa: E501
|
|
662
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
663
|
+
asynchronous HTTP request, please pass async_req=True
|
|
664
|
+
>>> thread = api.put_config_reload_with_http_info(async_req=True)
|
|
665
|
+
>>> result = thread.get()
|
|
666
|
+
|
|
667
|
+
:param async_req bool
|
|
668
|
+
:return: None
|
|
669
|
+
If the method is called asynchronously,
|
|
670
|
+
returns the request thread.
|
|
671
|
+
"""
|
|
672
|
+
|
|
673
|
+
all_params = [] # noqa: E501
|
|
674
|
+
all_params.append('async_req')
|
|
675
|
+
all_params.append('_return_http_data_only')
|
|
676
|
+
all_params.append('_preload_content')
|
|
677
|
+
all_params.append('_request_timeout')
|
|
678
|
+
|
|
679
|
+
params = locals()
|
|
680
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
681
|
+
if key not in all_params:
|
|
682
|
+
raise TypeError(
|
|
683
|
+
"Got an unexpected keyword argument '%s'"
|
|
684
|
+
" to method put_config_reload" % key
|
|
685
|
+
)
|
|
686
|
+
params[key] = val
|
|
687
|
+
del params['kwargs']
|
|
688
|
+
|
|
689
|
+
collection_formats = {}
|
|
690
|
+
|
|
691
|
+
path_params = {}
|
|
692
|
+
|
|
693
|
+
query_params = []
|
|
694
|
+
|
|
695
|
+
header_params = {}
|
|
696
|
+
|
|
697
|
+
form_params = []
|
|
698
|
+
local_var_files = {}
|
|
699
|
+
|
|
700
|
+
body_params = None
|
|
701
|
+
# Authentication setting
|
|
702
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
703
|
+
|
|
704
|
+
return self.api_client.call_api(
|
|
705
|
+
'/config/reload', 'PUT',
|
|
706
|
+
path_params,
|
|
707
|
+
query_params,
|
|
708
|
+
header_params,
|
|
709
|
+
body=body_params,
|
|
710
|
+
post_params=form_params,
|
|
711
|
+
files=local_var_files,
|
|
712
|
+
response_type=None, # noqa: E501
|
|
713
|
+
auth_settings=auth_settings,
|
|
714
|
+
async_req=params.get('async_req'),
|
|
715
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
716
|
+
_preload_content=params.get('_preload_content', True),
|
|
717
|
+
_request_timeout=params.get('_request_timeout'),
|
|
718
|
+
collection_formats=collection_formats)
|