lockss-pyclient 0.1.0.dev2__py3-none-any.whl → 0.1.0.dev3__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 +8 -29
- lockss/pyclient/__main__.py +37 -0
- lockss/pyclient/_internal_common.py +395 -0
- lockss/pyclient/_internal_config.py +207 -0
- lockss/pyclient/_internal_crawler.py +251 -0
- lockss/pyclient/_internal_md.py +111 -0
- lockss/pyclient/_internal_poller.py +174 -0
- lockss/pyclient/_internal_rs.py +232 -0
- lockss/pyclient/cli.py +839 -0
- lockss/pyclient/config/__init__.py +15 -0
- lockss/pyclient/config/api/aus_api.py +14 -6
- lockss/pyclient/config/api/config_api.py +12 -12
- lockss/pyclient/config/api/utils_api.py +2 -2
- lockss/pyclient/config/configuration.py +1 -1
- lockss/pyclient/config/models/__init__.py +15 -0
- lockss/pyclient/config/models/access_type.py +90 -0
- lockss/pyclient/config/models/au_agreements.py +136 -0
- lockss/pyclient/config/models/au_config_page_info.py +140 -0
- lockss/pyclient/config/models/au_state_bean.py +942 -0
- lockss/pyclient/config/models/au_status.py +837 -8
- lockss/pyclient/config/models/au_suspect_url_versions.py +136 -0
- lockss/pyclient/config/models/check_substance_result.py +6 -22
- lockss/pyclient/config/models/dated_peer_id_set_impl.py +162 -0
- lockss/pyclient/config/models/hash_result.py +136 -0
- lockss/pyclient/config/models/page_info.py +226 -0
- lockss/pyclient/config/models/peer_agreement.py +188 -0
- lockss/pyclient/config/models/peer_agreements.py +136 -0
- lockss/pyclient/config/models/platform_configuration_ws_result.py +421 -8
- lockss/pyclient/config/models/platform_configuration_ws_result_daemon_version.py +188 -0
- lockss/pyclient/config/models/platform_configuration_ws_result_java_version.py +188 -0
- lockss/pyclient/config/models/platform_configuration_ws_result_platform.py +162 -0
- lockss/pyclient/config/models/substance_checker_state.py +91 -0
- lockss/pyclient/config/models/suspect_url_version.py +214 -0
- lockss/pyclient/config/swagger.yaml +2031 -0
- lockss/pyclient/crawler/__init__.py +1 -0
- lockss/pyclient/crawler/api/crawls_api.py +2 -2
- lockss/pyclient/crawler/configuration.py +1 -1
- lockss/pyclient/crawler/models/__init__.py +1 -0
- lockss/pyclient/crawler/models/crawl_desc.py +4 -12
- lockss/pyclient/crawler/models/crawl_kind_enum.py +90 -0
- lockss/pyclient/crawler/models/page_info.py +22 -24
- lockss/pyclient/crawler/swagger.yaml +1197 -0
- lockss/pyclient/md/configuration.py +1 -1
- lockss/pyclient/md/models/page_info.py +22 -24
- lockss/pyclient/md/swagger.yaml +583 -0
- lockss/pyclient/output.py +131 -0
- lockss/pyclient/poller/__init__.py +11 -5
- lockss/pyclient/poller/api/export_api.py +5 -5
- lockss/pyclient/poller/api/hash_api.py +3 -3
- lockss/pyclient/poller/api/poll_detail_api.py +42 -42
- lockss/pyclient/poller/api/poller_polls_api.py +18 -18
- lockss/pyclient/poller/api/service_api.py +2 -2
- lockss/pyclient/poller/api/voter_polls_api.py +18 -18
- lockss/pyclient/poller/configuration.py +1 -1
- lockss/pyclient/poller/models/__init__.py +11 -5
- lockss/pyclient/poller/models/export_file_type_enum.py +93 -0
- lockss/pyclient/poller/models/export_filename_translation_enum.py +91 -0
- lockss/pyclient/poller/models/page_info.py +226 -0
- lockss/pyclient/poller/models/poll_desc.py +3 -11
- lockss/pyclient/poller/models/poll_variant_enum.py +92 -0
- lockss/pyclient/poller/models/poller_page_info.py +140 -0
- lockss/pyclient/poller/models/repair_page_info.py +140 -0
- lockss/pyclient/poller/models/repair_type_enum.py +91 -0
- lockss/pyclient/poller/models/tally_type_enum.py +93 -0
- lockss/pyclient/poller/models/url_page_info.py +140 -0
- lockss/pyclient/poller/models/voter_page_info.py +140 -0
- lockss/pyclient/poller/models/voter_urls_enum.py +92 -0
- lockss/pyclient/poller/swagger.yaml +1658 -0
- lockss/pyclient/rs/__init__.py +6 -0
- lockss/pyclient/rs/api/artifacts_api.py +20 -20
- lockss/pyclient/rs/api/aus_api.py +5 -5
- lockss/pyclient/rs/api/repo_api.py +4 -4
- lockss/pyclient/rs/api/status_api.py +1 -1
- lockss/pyclient/rs/api/wayback_api.py +12 -12
- lockss/pyclient/rs/configuration.py +8 -1
- lockss/pyclient/rs/models/__init__.py +6 -0
- lockss/pyclient/rs/models/artifact.py +111 -81
- lockss/pyclient/rs/models/au_size.py +6 -0
- lockss/pyclient/rs/models/auid_page_info.py +2 -2
- lockss/pyclient/rs/models/bulk_au_op_enum.py +90 -0
- lockss/pyclient/rs/models/include_content_enum.py +91 -0
- lockss/pyclient/rs/models/page_info.py +26 -29
- lockss/pyclient/rs/models/pywb_match_enum.py +93 -0
- lockss/pyclient/rs/models/pywb_output_enum.py +90 -0
- lockss/pyclient/rs/models/pywb_sort_enum.py +91 -0
- lockss/pyclient/rs/models/storage_info.py +131 -80
- lockss/pyclient/rs/models/versions_enum.py +90 -0
- lockss/pyclient/rs/swagger.yaml +1306 -0
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/METADATA +10 -3
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/RECORD +93 -45
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/WHEEL +1 -1
- lockss_pyclient-0.1.0.dev3.dist-info/entry_points.txt +3 -0
- {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info/licenses}/LICENSE +0 -0
lockss/pyclient/rs/__init__.py
CHANGED
|
@@ -32,10 +32,16 @@ from lockss.pyclient.rs.models.artifact_properties import ArtifactProperties
|
|
|
32
32
|
from lockss.pyclient.rs.models.artifacts_body import ArtifactsBody
|
|
33
33
|
from lockss.pyclient.rs.models.au_size import AuSize
|
|
34
34
|
from lockss.pyclient.rs.models.auid_page_info import AuidPageInfo
|
|
35
|
+
from lockss.pyclient.rs.models.bulk_au_op_enum import BulkAuOpEnum
|
|
35
36
|
from lockss.pyclient.rs.models.error_result import ErrorResult
|
|
36
37
|
from lockss.pyclient.rs.models.import_status import ImportStatus
|
|
38
|
+
from lockss.pyclient.rs.models.include_content_enum import IncludeContentEnum
|
|
37
39
|
from lockss.pyclient.rs.models.page_info import PageInfo
|
|
40
|
+
from lockss.pyclient.rs.models.pywb_match_enum import PywbMatchEnum
|
|
41
|
+
from lockss.pyclient.rs.models.pywb_output_enum import PywbOutputEnum
|
|
42
|
+
from lockss.pyclient.rs.models.pywb_sort_enum import PywbSortEnum
|
|
38
43
|
from lockss.pyclient.rs.models.repository_info import RepositoryInfo
|
|
39
44
|
from lockss.pyclient.rs.models.repository_statistics import RepositoryStatistics
|
|
40
45
|
from lockss.pyclient.rs.models.storage_info import StorageInfo
|
|
41
46
|
from lockss.pyclient.rs.models.streaming_response_body import StreamingResponseBody
|
|
47
|
+
from lockss.pyclient.rs.models.versions_enum import VersionsEnum
|
|
@@ -131,7 +131,7 @@ class ArtifactsApi(object):
|
|
|
131
131
|
['multipart/form-data']) # noqa: E501
|
|
132
132
|
|
|
133
133
|
# Authentication setting
|
|
134
|
-
auth_settings = [] # noqa: E501
|
|
134
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
135
135
|
|
|
136
136
|
return self.api_client.call_api(
|
|
137
137
|
'/archives', 'POST',
|
|
@@ -232,7 +232,7 @@ class ArtifactsApi(object):
|
|
|
232
232
|
['multipart/form-data']) # noqa: E501
|
|
233
233
|
|
|
234
234
|
# Authentication setting
|
|
235
|
-
auth_settings = [] # noqa: E501
|
|
235
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
236
236
|
|
|
237
237
|
return self.api_client.call_api(
|
|
238
238
|
'/artifacts', 'POST',
|
|
@@ -329,7 +329,7 @@ class ArtifactsApi(object):
|
|
|
329
329
|
['application/json']) # noqa: E501
|
|
330
330
|
|
|
331
331
|
# Authentication setting
|
|
332
|
-
auth_settings = [] # noqa: E501
|
|
332
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
333
333
|
|
|
334
334
|
return self.api_client.call_api(
|
|
335
335
|
'/artifacts/{uuid}', 'DELETE',
|
|
@@ -358,7 +358,7 @@ class ArtifactsApi(object):
|
|
|
358
358
|
:param async_req bool
|
|
359
359
|
:param str uuid: Identifier of the artifact (required)
|
|
360
360
|
:param str namespace: Namespace of the artifacts
|
|
361
|
-
:param
|
|
361
|
+
:param IncludeContentEnum include_content: Controls whether to include the artifact content part in the multipart response
|
|
362
362
|
:return: str
|
|
363
363
|
If the method is called asynchronously,
|
|
364
364
|
returns the request thread.
|
|
@@ -381,7 +381,7 @@ class ArtifactsApi(object):
|
|
|
381
381
|
:param async_req bool
|
|
382
382
|
:param str uuid: Identifier of the artifact (required)
|
|
383
383
|
:param str namespace: Namespace of the artifacts
|
|
384
|
-
:param
|
|
384
|
+
:param IncludeContentEnum include_content: Controls whether to include the artifact content part in the multipart response
|
|
385
385
|
:return: str
|
|
386
386
|
If the method is called asynchronously,
|
|
387
387
|
returns the request thread.
|
|
@@ -427,10 +427,10 @@ class ArtifactsApi(object):
|
|
|
427
427
|
body_params = None
|
|
428
428
|
# HTTP header `Accept`
|
|
429
429
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
430
|
-
['multipart/form-data', 'application/json']) # noqa: E501
|
|
430
|
+
['multipart/form-data', 'application/json;q=0.9']) # noqa: E501
|
|
431
431
|
|
|
432
432
|
# Authentication setting
|
|
433
|
-
auth_settings = [] # noqa: E501
|
|
433
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
434
434
|
|
|
435
435
|
return self.api_client.call_api(
|
|
436
436
|
'/artifacts/{uuid}', 'GET',
|
|
@@ -459,7 +459,7 @@ class ArtifactsApi(object):
|
|
|
459
459
|
:param async_req bool
|
|
460
460
|
:param str uuid: Identifier of the artifact (required)
|
|
461
461
|
:param str namespace: Namespace of the artifacts
|
|
462
|
-
:param
|
|
462
|
+
:param IncludeContentEnum include_content: Controls whether to include the artifact content part in the multipart response
|
|
463
463
|
:return: str
|
|
464
464
|
If the method is called asynchronously,
|
|
465
465
|
returns the request thread.
|
|
@@ -482,7 +482,7 @@ class ArtifactsApi(object):
|
|
|
482
482
|
:param async_req bool
|
|
483
483
|
:param str uuid: Identifier of the artifact (required)
|
|
484
484
|
:param str namespace: Namespace of the artifacts
|
|
485
|
-
:param
|
|
485
|
+
:param IncludeContentEnum include_content: Controls whether to include the artifact content part in the multipart response
|
|
486
486
|
:return: str
|
|
487
487
|
If the method is called asynchronously,
|
|
488
488
|
returns the request thread.
|
|
@@ -528,10 +528,10 @@ class ArtifactsApi(object):
|
|
|
528
528
|
body_params = None
|
|
529
529
|
# HTTP header `Accept`
|
|
530
530
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
531
|
-
['application/octet-stream', 'application/json']) # noqa: E501
|
|
531
|
+
['application/octet-stream', 'application/json;q=0.9']) # noqa: E501
|
|
532
532
|
|
|
533
533
|
# Authentication setting
|
|
534
|
-
auth_settings = [] # noqa: E501
|
|
534
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
535
535
|
|
|
536
536
|
return self.api_client.call_api(
|
|
537
537
|
'/artifacts/{uuid}/payload', 'GET',
|
|
@@ -560,7 +560,7 @@ class ArtifactsApi(object):
|
|
|
560
560
|
:param async_req bool
|
|
561
561
|
:param str uuid: Identifier of the artifact (required)
|
|
562
562
|
:param str namespace: Namespace of the artifacts
|
|
563
|
-
:param
|
|
563
|
+
:param IncludeContentEnum include_content: Controls whether to include the artifact content part in the multipart response
|
|
564
564
|
:return: str
|
|
565
565
|
If the method is called asynchronously,
|
|
566
566
|
returns the request thread.
|
|
@@ -583,7 +583,7 @@ class ArtifactsApi(object):
|
|
|
583
583
|
:param async_req bool
|
|
584
584
|
:param str uuid: Identifier of the artifact (required)
|
|
585
585
|
:param str namespace: Namespace of the artifacts
|
|
586
|
-
:param
|
|
586
|
+
:param IncludeContentEnum include_content: Controls whether to include the artifact content part in the multipart response
|
|
587
587
|
:return: str
|
|
588
588
|
If the method is called asynchronously,
|
|
589
589
|
returns the request thread.
|
|
@@ -629,10 +629,10 @@ class ArtifactsApi(object):
|
|
|
629
629
|
body_params = None
|
|
630
630
|
# HTTP header `Accept`
|
|
631
631
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
632
|
-
['application/http;msgtype=response', 'application/json']) # noqa: E501
|
|
632
|
+
['application/http;msgtype=response', 'application/json;q=0.9']) # noqa: E501
|
|
633
633
|
|
|
634
634
|
# Authentication setting
|
|
635
|
-
auth_settings = [] # noqa: E501
|
|
635
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
636
636
|
|
|
637
637
|
return self.api_client.call_api(
|
|
638
638
|
'/artifacts/{uuid}/response', 'GET',
|
|
@@ -755,7 +755,7 @@ class ArtifactsApi(object):
|
|
|
755
755
|
['application/json']) # noqa: E501
|
|
756
756
|
|
|
757
757
|
# Authentication setting
|
|
758
|
-
auth_settings = [] # noqa: E501
|
|
758
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
759
759
|
|
|
760
760
|
return self.api_client.call_api(
|
|
761
761
|
'/aus/{auid}/artifacts', 'GET',
|
|
@@ -785,7 +785,7 @@ class ArtifactsApi(object):
|
|
|
785
785
|
:param str namespace: Namespace of the artifacts
|
|
786
786
|
:param str url: The URL contained by the artifacts
|
|
787
787
|
:param str url_prefix: The prefix to be matched by the artifact URLs
|
|
788
|
-
:param
|
|
788
|
+
:param VersionsEnum versions: Versions of the artifacts to return
|
|
789
789
|
:param int limit: The requested maximum number of artifacts per response
|
|
790
790
|
:param str continuation_token: The continuation token of the next page of artifacts to be returned
|
|
791
791
|
:return: ArtifactPageInfo
|
|
@@ -811,7 +811,7 @@ class ArtifactsApi(object):
|
|
|
811
811
|
:param str namespace: Namespace of the artifacts
|
|
812
812
|
:param str url: The URL contained by the artifacts
|
|
813
813
|
:param str url_prefix: The prefix to be matched by the artifact URLs
|
|
814
|
-
:param
|
|
814
|
+
:param VersionsEnum versions: Versions of the artifacts to return
|
|
815
815
|
:param int limit: The requested maximum number of artifacts per response
|
|
816
816
|
:param str continuation_token: The continuation token of the next page of artifacts to be returned
|
|
817
817
|
:return: ArtifactPageInfo
|
|
@@ -864,7 +864,7 @@ class ArtifactsApi(object):
|
|
|
864
864
|
['application/json']) # noqa: E501
|
|
865
865
|
|
|
866
866
|
# Authentication setting
|
|
867
|
-
auth_settings = [] # noqa: E501
|
|
867
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
868
868
|
|
|
869
869
|
return self.api_client.call_api(
|
|
870
870
|
'/artifacts', 'GET',
|
|
@@ -969,7 +969,7 @@ class ArtifactsApi(object):
|
|
|
969
969
|
['application/json']) # noqa: E501
|
|
970
970
|
|
|
971
971
|
# Authentication setting
|
|
972
|
-
auth_settings = [] # noqa: E501
|
|
972
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
973
973
|
|
|
974
974
|
return self.api_client.call_api(
|
|
975
975
|
'/artifacts/{uuid}', 'PUT',
|
|
@@ -111,7 +111,7 @@ class AusApi(object):
|
|
|
111
111
|
['application/json']) # noqa: E501
|
|
112
112
|
|
|
113
113
|
# Authentication setting
|
|
114
|
-
auth_settings = [] # noqa: E501
|
|
114
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
115
115
|
|
|
116
116
|
return self.api_client.call_api(
|
|
117
117
|
'/aus/{auid}/size', 'GET',
|
|
@@ -210,7 +210,7 @@ class AusApi(object):
|
|
|
210
210
|
['application/json']) # noqa: E501
|
|
211
211
|
|
|
212
212
|
# Authentication setting
|
|
213
|
-
auth_settings = [] # noqa: E501
|
|
213
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
214
214
|
|
|
215
215
|
return self.api_client.call_api(
|
|
216
216
|
'/aus', 'GET',
|
|
@@ -238,7 +238,7 @@ class AusApi(object):
|
|
|
238
238
|
|
|
239
239
|
:param async_req bool
|
|
240
240
|
:param str auid: Archival Unit ID (required)
|
|
241
|
-
:param
|
|
241
|
+
:param BulkAuOpEnum op: Bulk AU operation (required)
|
|
242
242
|
:param str namespace: Namespace of the artifacts
|
|
243
243
|
:return: None
|
|
244
244
|
If the method is called asynchronously,
|
|
@@ -261,7 +261,7 @@ class AusApi(object):
|
|
|
261
261
|
|
|
262
262
|
:param async_req bool
|
|
263
263
|
:param str auid: Archival Unit ID (required)
|
|
264
|
-
:param
|
|
264
|
+
:param BulkAuOpEnum op: Bulk AU operation (required)
|
|
265
265
|
:param str namespace: Namespace of the artifacts
|
|
266
266
|
:return: None
|
|
267
267
|
If the method is called asynchronously,
|
|
@@ -315,7 +315,7 @@ class AusApi(object):
|
|
|
315
315
|
['application/json']) # noqa: E501
|
|
316
316
|
|
|
317
317
|
# Authentication setting
|
|
318
|
-
auth_settings = [] # noqa: E501
|
|
318
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
319
319
|
|
|
320
320
|
return self.api_client.call_api(
|
|
321
321
|
'/aus/{auid}/bulk', 'POST',
|
|
@@ -99,7 +99,7 @@ class RepoApi(object):
|
|
|
99
99
|
['application/json']) # noqa: E501
|
|
100
100
|
|
|
101
101
|
# Authentication setting
|
|
102
|
-
auth_settings = [] # noqa: E501
|
|
102
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
103
103
|
|
|
104
104
|
return self.api_client.call_api(
|
|
105
105
|
'/namespaces', 'GET',
|
|
@@ -186,7 +186,7 @@ class RepoApi(object):
|
|
|
186
186
|
['application/json']) # noqa: E501
|
|
187
187
|
|
|
188
188
|
# Authentication setting
|
|
189
|
-
auth_settings = [] # noqa: E501
|
|
189
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
190
190
|
|
|
191
191
|
return self.api_client.call_api(
|
|
192
192
|
'/repoinfo', 'GET',
|
|
@@ -273,7 +273,7 @@ class RepoApi(object):
|
|
|
273
273
|
['application/json']) # noqa: E501
|
|
274
274
|
|
|
275
275
|
# Authentication setting
|
|
276
|
-
auth_settings = [] # noqa: E501
|
|
276
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
277
277
|
|
|
278
278
|
return self.api_client.call_api(
|
|
279
279
|
'/repoinfo/storage', 'GET',
|
|
@@ -360,7 +360,7 @@ class RepoApi(object):
|
|
|
360
360
|
['application/json']) # noqa: E501
|
|
361
361
|
|
|
362
362
|
# Authentication setting
|
|
363
|
-
auth_settings = [] # noqa: E501
|
|
363
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
364
364
|
|
|
365
365
|
return self.api_client.call_api(
|
|
366
366
|
'/checksumalgorithms', 'GET',
|
|
@@ -126,10 +126,10 @@ class WaybackApi(object):
|
|
|
126
126
|
body_params = None
|
|
127
127
|
# HTTP header `Accept`
|
|
128
128
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
129
|
-
['application/xml', 'application/json']) # noqa: E501
|
|
129
|
+
['application/xml', 'application/json;q=0.9']) # noqa: E501
|
|
130
130
|
|
|
131
131
|
# Authentication setting
|
|
132
|
-
auth_settings = [] # noqa: E501
|
|
132
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
133
133
|
|
|
134
134
|
return self.api_client.call_api(
|
|
135
135
|
'/wayback/cdx/owb/{namespace}', 'GET',
|
|
@@ -160,10 +160,10 @@ class WaybackApi(object):
|
|
|
160
160
|
:param str namespace: Namespace of the artifacts (required)
|
|
161
161
|
:param str url: The URL for which the CDX records are requested
|
|
162
162
|
:param int limit: .
|
|
163
|
-
:param
|
|
164
|
-
:param
|
|
163
|
+
:param PywbMatchEnum match_type: Match type
|
|
164
|
+
:param PywbSortEnum sort: Sorting behavior
|
|
165
165
|
:param str closest: Timestamp for sort=closest mode
|
|
166
|
-
:param
|
|
166
|
+
:param PywbOutputEnum output: Output format
|
|
167
167
|
:param str fl: Comma-separated list of fields to include in output
|
|
168
168
|
:param str accept: The Accept header
|
|
169
169
|
:param str accept_encoding: The Accept-Encoding header
|
|
@@ -191,10 +191,10 @@ class WaybackApi(object):
|
|
|
191
191
|
:param str namespace: Namespace of the artifacts (required)
|
|
192
192
|
:param str url: The URL for which the CDX records are requested
|
|
193
193
|
:param int limit: .
|
|
194
|
-
:param
|
|
195
|
-
:param
|
|
194
|
+
:param PywbMatchEnum match_type: Match type
|
|
195
|
+
:param PywbSortEnum sort: Sorting behavior
|
|
196
196
|
:param str closest: Timestamp for sort=closest mode
|
|
197
|
-
:param
|
|
197
|
+
:param PywbOutputEnum output: Output format
|
|
198
198
|
:param str fl: Comma-separated list of fields to include in output
|
|
199
199
|
:param str accept: The Accept header
|
|
200
200
|
:param str accept_encoding: The Accept-Encoding header
|
|
@@ -257,10 +257,10 @@ class WaybackApi(object):
|
|
|
257
257
|
body_params = None
|
|
258
258
|
# HTTP header `Accept`
|
|
259
259
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
260
|
-
['text/plain', 'application/json']) # noqa: E501
|
|
260
|
+
['text/plain', 'application/json;q=0.9']) # noqa: E501
|
|
261
261
|
|
|
262
262
|
# Authentication setting
|
|
263
|
-
auth_settings = [] # noqa: E501
|
|
263
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
264
264
|
|
|
265
265
|
return self.api_client.call_api(
|
|
266
266
|
'/wayback/cdx/pywb/{namespace}', 'GET',
|
|
@@ -364,10 +364,10 @@ class WaybackApi(object):
|
|
|
364
364
|
body_params = None
|
|
365
365
|
# HTTP header `Accept`
|
|
366
366
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
367
|
-
['application/warc', 'application/json']) # noqa: E501
|
|
367
|
+
['application/warc', 'application/json;q=0.9']) # noqa: E501
|
|
368
368
|
|
|
369
369
|
# Authentication setting
|
|
370
|
-
auth_settings = [] # noqa: E501
|
|
370
|
+
auth_settings = ['basicAuth'] # noqa: E501
|
|
371
371
|
|
|
372
372
|
return self.api_client.call_api(
|
|
373
373
|
'/wayback/warcs/{fileName}', 'GET',
|
|
@@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
46
46
|
def __init__(self):
|
|
47
47
|
"""Constructor"""
|
|
48
48
|
# Default Base url
|
|
49
|
-
self.host = "
|
|
49
|
+
self.host = "{proto}://{hostname}:{port}/"
|
|
50
50
|
# Temp file folder for downloading files
|
|
51
51
|
self.temp_folder_path = None
|
|
52
52
|
|
|
@@ -232,6 +232,13 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
232
232
|
:return: The Auth Settings information dict.
|
|
233
233
|
"""
|
|
234
234
|
return {
|
|
235
|
+
'basicAuth':
|
|
236
|
+
{
|
|
237
|
+
'type': 'basic',
|
|
238
|
+
'in': 'header',
|
|
239
|
+
'key': 'Authorization',
|
|
240
|
+
'value': self.get_basic_auth_token()
|
|
241
|
+
},
|
|
235
242
|
}
|
|
236
243
|
|
|
237
244
|
def to_debug_report(self):
|
|
@@ -22,10 +22,16 @@ from lockss.pyclient.rs.models.artifact_properties import ArtifactProperties
|
|
|
22
22
|
from lockss.pyclient.rs.models.artifacts_body import ArtifactsBody
|
|
23
23
|
from lockss.pyclient.rs.models.au_size import AuSize
|
|
24
24
|
from lockss.pyclient.rs.models.auid_page_info import AuidPageInfo
|
|
25
|
+
from lockss.pyclient.rs.models.bulk_au_op_enum import BulkAuOpEnum
|
|
25
26
|
from lockss.pyclient.rs.models.error_result import ErrorResult
|
|
26
27
|
from lockss.pyclient.rs.models.import_status import ImportStatus
|
|
28
|
+
from lockss.pyclient.rs.models.include_content_enum import IncludeContentEnum
|
|
27
29
|
from lockss.pyclient.rs.models.page_info import PageInfo
|
|
30
|
+
from lockss.pyclient.rs.models.pywb_match_enum import PywbMatchEnum
|
|
31
|
+
from lockss.pyclient.rs.models.pywb_output_enum import PywbOutputEnum
|
|
32
|
+
from lockss.pyclient.rs.models.pywb_sort_enum import PywbSortEnum
|
|
28
33
|
from lockss.pyclient.rs.models.repository_info import RepositoryInfo
|
|
29
34
|
from lockss.pyclient.rs.models.repository_statistics import RepositoryStatistics
|
|
30
35
|
from lockss.pyclient.rs.models.storage_info import StorageInfo
|
|
31
36
|
from lockss.pyclient.rs.models.streaming_response_body import StreamingResponseBody
|
|
37
|
+
from lockss.pyclient.rs.models.versions_enum import VersionsEnum
|