perceptic-core-client 0.30.0__py3-none-any.whl → 0.31.1__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.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client/__init__.py +22 -0
- perceptic_core_client/api/__init__.py +1 -0
- perceptic_core_client/api/citations_resource_api.py +569 -0
- perceptic_core_client/models/__init__.py +10 -0
- perceptic_core_client/models/biotech_analysis_api_dto.py +119 -0
- perceptic_core_client/models/biotech_analysis_image_annotated_citation_api_dto.py +91 -0
- perceptic_core_client/models/bulk_get_citations_request.py +87 -0
- perceptic_core_client/models/bulk_get_citations_response.py +95 -0
- perceptic_core_client/models/citation_api_dto.py +102 -0
- perceptic_core_client/models/citation_metadata_api_dto.py +189 -0
- perceptic_core_client/models/get_citation_output_uri_response.py +87 -0
- perceptic_core_client/models/highlighted_text_citation_metadata_api_dto.py +91 -0
- perceptic_core_client/models/image_detection_box_api_dto.py +97 -0
- perceptic_core_client/models/web_page_citation_metadata_api_dto.py +89 -0
- perceptic_core_client/test/test_biotech_analysis_api_dto.py +77 -0
- perceptic_core_client/test/test_biotech_analysis_image_annotated_citation_api_dto.py +78 -0
- perceptic_core_client/test/test_bulk_get_citations_request.py +53 -0
- perceptic_core_client/test/test_bulk_get_citations_response.py +57 -0
- perceptic_core_client/test/test_citation_api_dto.py +54 -0
- perceptic_core_client/test/test_citation_metadata_api_dto.py +83 -0
- perceptic_core_client/test/test_citations_resource_api.py +45 -0
- perceptic_core_client/test/test_get_citation_output_uri_response.py +51 -0
- perceptic_core_client/test/test_highlighted_text_citation_metadata_api_dto.py +53 -0
- perceptic_core_client/test/test_image_detection_box_api_dto.py +56 -0
- perceptic_core_client/test/test_web_page_citation_metadata_api_dto.py +52 -0
- {perceptic_core_client-0.30.0.dist-info → perceptic_core_client-0.31.1.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.30.0.dist-info → perceptic_core_client-0.31.1.dist-info}/RECORD +29 -7
- {perceptic_core_client-0.30.0.dist-info → perceptic_core_client-0.31.1.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.30.0.dist-info → perceptic_core_client-0.31.1.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,7 @@ __version__ = "1.0.0"
|
|
|
18
18
|
|
|
19
19
|
# Define package exports
|
|
20
20
|
__all__ = [
|
|
21
|
+
"CitationsResourceApi",
|
|
21
22
|
"ConnectionResourceApi",
|
|
22
23
|
"FileSystemContentsResourceApi",
|
|
23
24
|
"FileSystemResourceApi",
|
|
@@ -41,6 +42,12 @@ __all__ = [
|
|
|
41
42
|
"AddTagToFileRequest",
|
|
42
43
|
"AzureBlobConnectionSettingsApiDto",
|
|
43
44
|
"AzureBlobFileSystemRootMetadataApiDto",
|
|
45
|
+
"BiotechAnalysisApiDto",
|
|
46
|
+
"BiotechAnalysisImageAnnotatedCitationApiDto",
|
|
47
|
+
"BulkGetCitationsRequest",
|
|
48
|
+
"BulkGetCitationsResponse",
|
|
49
|
+
"CitationApiDto",
|
|
50
|
+
"CitationMetadataApiDto",
|
|
44
51
|
"ConnectionApiDto",
|
|
45
52
|
"ConnectionSettingsApiDto",
|
|
46
53
|
"CreateConnectionRequest",
|
|
@@ -60,6 +67,7 @@ __all__ = [
|
|
|
60
67
|
"ExecutionTriggerReason",
|
|
61
68
|
"FileSystemApiDto",
|
|
62
69
|
"FileSystemRootMetadataApiDto",
|
|
70
|
+
"GetCitationOutputUriResponse",
|
|
63
71
|
"GetConnectionResponse",
|
|
64
72
|
"GetIndexerResponse",
|
|
65
73
|
"GetIndexingScheduleResponse",
|
|
@@ -73,6 +81,8 @@ __all__ = [
|
|
|
73
81
|
"GetWorkerRunResponse",
|
|
74
82
|
"GetWorkerStatusResponse",
|
|
75
83
|
"GetWorkersResponse",
|
|
84
|
+
"HighlightedTextCitationMetadataApiDto",
|
|
85
|
+
"ImageDetectionBoxApiDto",
|
|
76
86
|
"IndexerDto",
|
|
77
87
|
"IndexingActionDto",
|
|
78
88
|
"IndexingActionStatus",
|
|
@@ -119,11 +129,13 @@ __all__ = [
|
|
|
119
129
|
"UpdateTagResponse",
|
|
120
130
|
"UploadFileToManagedFileSystemResponse",
|
|
121
131
|
"UserInfoResponse",
|
|
132
|
+
"WebPageCitationMetadataApiDto",
|
|
122
133
|
"WorkerEvent",
|
|
123
134
|
"WorkerMetadataDto",
|
|
124
135
|
]
|
|
125
136
|
|
|
126
137
|
# import apis into sdk package
|
|
138
|
+
from perceptic_core_client.api.citations_resource_api import CitationsResourceApi as CitationsResourceApi
|
|
127
139
|
from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi as ConnectionResourceApi
|
|
128
140
|
from perceptic_core_client.api.file_system_contents_resource_api import FileSystemContentsResourceApi as FileSystemContentsResourceApi
|
|
129
141
|
from perceptic_core_client.api.file_system_resource_api import FileSystemResourceApi as FileSystemResourceApi
|
|
@@ -151,6 +163,12 @@ from perceptic_core_client.models.action_type import ActionType as ActionType
|
|
|
151
163
|
from perceptic_core_client.models.add_tag_to_file_request import AddTagToFileRequest as AddTagToFileRequest
|
|
152
164
|
from perceptic_core_client.models.azure_blob_connection_settings_api_dto import AzureBlobConnectionSettingsApiDto as AzureBlobConnectionSettingsApiDto
|
|
153
165
|
from perceptic_core_client.models.azure_blob_file_system_root_metadata_api_dto import AzureBlobFileSystemRootMetadataApiDto as AzureBlobFileSystemRootMetadataApiDto
|
|
166
|
+
from perceptic_core_client.models.biotech_analysis_api_dto import BiotechAnalysisApiDto as BiotechAnalysisApiDto
|
|
167
|
+
from perceptic_core_client.models.biotech_analysis_image_annotated_citation_api_dto import BiotechAnalysisImageAnnotatedCitationApiDto as BiotechAnalysisImageAnnotatedCitationApiDto
|
|
168
|
+
from perceptic_core_client.models.bulk_get_citations_request import BulkGetCitationsRequest as BulkGetCitationsRequest
|
|
169
|
+
from perceptic_core_client.models.bulk_get_citations_response import BulkGetCitationsResponse as BulkGetCitationsResponse
|
|
170
|
+
from perceptic_core_client.models.citation_api_dto import CitationApiDto as CitationApiDto
|
|
171
|
+
from perceptic_core_client.models.citation_metadata_api_dto import CitationMetadataApiDto as CitationMetadataApiDto
|
|
154
172
|
from perceptic_core_client.models.connection_api_dto import ConnectionApiDto as ConnectionApiDto
|
|
155
173
|
from perceptic_core_client.models.connection_settings_api_dto import ConnectionSettingsApiDto as ConnectionSettingsApiDto
|
|
156
174
|
from perceptic_core_client.models.create_connection_request import CreateConnectionRequest as CreateConnectionRequest
|
|
@@ -170,6 +188,7 @@ from perceptic_core_client.models.cron_trigger import CronTrigger as CronTrigger
|
|
|
170
188
|
from perceptic_core_client.models.execution_trigger_reason import ExecutionTriggerReason as ExecutionTriggerReason
|
|
171
189
|
from perceptic_core_client.models.file_system_api_dto import FileSystemApiDto as FileSystemApiDto
|
|
172
190
|
from perceptic_core_client.models.file_system_root_metadata_api_dto import FileSystemRootMetadataApiDto as FileSystemRootMetadataApiDto
|
|
191
|
+
from perceptic_core_client.models.get_citation_output_uri_response import GetCitationOutputUriResponse as GetCitationOutputUriResponse
|
|
173
192
|
from perceptic_core_client.models.get_connection_response import GetConnectionResponse as GetConnectionResponse
|
|
174
193
|
from perceptic_core_client.models.get_indexer_response import GetIndexerResponse as GetIndexerResponse
|
|
175
194
|
from perceptic_core_client.models.get_indexing_schedule_response import GetIndexingScheduleResponse as GetIndexingScheduleResponse
|
|
@@ -183,6 +202,8 @@ from perceptic_core_client.models.get_worker_metadata_response import GetWorkerM
|
|
|
183
202
|
from perceptic_core_client.models.get_worker_run_response import GetWorkerRunResponse as GetWorkerRunResponse
|
|
184
203
|
from perceptic_core_client.models.get_worker_status_response import GetWorkerStatusResponse as GetWorkerStatusResponse
|
|
185
204
|
from perceptic_core_client.models.get_workers_response import GetWorkersResponse as GetWorkersResponse
|
|
205
|
+
from perceptic_core_client.models.highlighted_text_citation_metadata_api_dto import HighlightedTextCitationMetadataApiDto as HighlightedTextCitationMetadataApiDto
|
|
206
|
+
from perceptic_core_client.models.image_detection_box_api_dto import ImageDetectionBoxApiDto as ImageDetectionBoxApiDto
|
|
186
207
|
from perceptic_core_client.models.indexer_dto import IndexerDto as IndexerDto
|
|
187
208
|
from perceptic_core_client.models.indexing_action_dto import IndexingActionDto as IndexingActionDto
|
|
188
209
|
from perceptic_core_client.models.indexing_action_status import IndexingActionStatus as IndexingActionStatus
|
|
@@ -229,5 +250,6 @@ from perceptic_core_client.models.update_tag_request import UpdateTagRequest as
|
|
|
229
250
|
from perceptic_core_client.models.update_tag_response import UpdateTagResponse as UpdateTagResponse
|
|
230
251
|
from perceptic_core_client.models.upload_file_to_managed_file_system_response import UploadFileToManagedFileSystemResponse as UploadFileToManagedFileSystemResponse
|
|
231
252
|
from perceptic_core_client.models.user_info_response import UserInfoResponse as UserInfoResponse
|
|
253
|
+
from perceptic_core_client.models.web_page_citation_metadata_api_dto import WebPageCitationMetadataApiDto as WebPageCitationMetadataApiDto
|
|
232
254
|
from perceptic_core_client.models.worker_event import WorkerEvent as WorkerEvent
|
|
233
255
|
from perceptic_core_client.models.worker_metadata_dto import WorkerMetadataDto as WorkerMetadataDto
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
|
|
3
3
|
# import apis into api package
|
|
4
|
+
from perceptic_core_client.api.citations_resource_api import CitationsResourceApi
|
|
4
5
|
from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
5
6
|
from perceptic_core_client.api.file_system_contents_resource_api import FileSystemContentsResourceApi
|
|
6
7
|
from perceptic_core_client.api.file_system_resource_api import FileSystemResourceApi
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from perceptic_core_client.models.bulk_get_citations_request import BulkGetCitationsRequest
|
|
21
|
+
from perceptic_core_client.models.bulk_get_citations_response import BulkGetCitationsResponse
|
|
22
|
+
from perceptic_core_client.models.get_citation_output_uri_response import GetCitationOutputUriResponse
|
|
23
|
+
|
|
24
|
+
from perceptic_core_client.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from perceptic_core_client.api_response import ApiResponse
|
|
26
|
+
from perceptic_core_client.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CitationsResourceApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def get_bulk_citations(
|
|
44
|
+
self,
|
|
45
|
+
bulk_get_citations_request: BulkGetCitationsRequest,
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> BulkGetCitationsResponse:
|
|
59
|
+
"""Get Bulk Citations
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
:param bulk_get_citations_request: (required)
|
|
63
|
+
:type bulk_get_citations_request: BulkGetCitationsRequest
|
|
64
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
65
|
+
number provided, it will be total request
|
|
66
|
+
timeout. It can also be a pair (tuple) of
|
|
67
|
+
(connection, read) timeouts.
|
|
68
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
69
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
70
|
+
request; this effectively ignores the
|
|
71
|
+
authentication in the spec for a single request.
|
|
72
|
+
:type _request_auth: dict, optional
|
|
73
|
+
:param _content_type: force content-type for the request.
|
|
74
|
+
:type _content_type: str, Optional
|
|
75
|
+
:param _headers: set to override the headers for a single
|
|
76
|
+
request; this effectively ignores the headers
|
|
77
|
+
in the spec for a single request.
|
|
78
|
+
:type _headers: dict, optional
|
|
79
|
+
:param _host_index: set to override the host_index for a single
|
|
80
|
+
request; this effectively ignores the host_index
|
|
81
|
+
in the spec for a single request.
|
|
82
|
+
:type _host_index: int, optional
|
|
83
|
+
:return: Returns the result object.
|
|
84
|
+
""" # noqa: E501
|
|
85
|
+
|
|
86
|
+
_param = self._get_bulk_citations_serialize(
|
|
87
|
+
bulk_get_citations_request=bulk_get_citations_request,
|
|
88
|
+
_request_auth=_request_auth,
|
|
89
|
+
_content_type=_content_type,
|
|
90
|
+
_headers=_headers,
|
|
91
|
+
_host_index=_host_index
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
95
|
+
'200': "BulkGetCitationsResponse",
|
|
96
|
+
'400': None,
|
|
97
|
+
}
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
def get_bulk_citations_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
bulk_get_citations_request: BulkGetCitationsRequest,
|
|
113
|
+
_request_timeout: Union[
|
|
114
|
+
None,
|
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
+
Tuple[
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
119
|
+
]
|
|
120
|
+
] = None,
|
|
121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
122
|
+
_content_type: Optional[StrictStr] = None,
|
|
123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
125
|
+
) -> ApiResponse[BulkGetCitationsResponse]:
|
|
126
|
+
"""Get Bulk Citations
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param bulk_get_citations_request: (required)
|
|
130
|
+
:type bulk_get_citations_request: BulkGetCitationsRequest
|
|
131
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
132
|
+
number provided, it will be total request
|
|
133
|
+
timeout. It can also be a pair (tuple) of
|
|
134
|
+
(connection, read) timeouts.
|
|
135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
137
|
+
request; this effectively ignores the
|
|
138
|
+
authentication in the spec for a single request.
|
|
139
|
+
:type _request_auth: dict, optional
|
|
140
|
+
:param _content_type: force content-type for the request.
|
|
141
|
+
:type _content_type: str, Optional
|
|
142
|
+
:param _headers: set to override the headers for a single
|
|
143
|
+
request; this effectively ignores the headers
|
|
144
|
+
in the spec for a single request.
|
|
145
|
+
:type _headers: dict, optional
|
|
146
|
+
:param _host_index: set to override the host_index for a single
|
|
147
|
+
request; this effectively ignores the host_index
|
|
148
|
+
in the spec for a single request.
|
|
149
|
+
:type _host_index: int, optional
|
|
150
|
+
:return: Returns the result object.
|
|
151
|
+
""" # noqa: E501
|
|
152
|
+
|
|
153
|
+
_param = self._get_bulk_citations_serialize(
|
|
154
|
+
bulk_get_citations_request=bulk_get_citations_request,
|
|
155
|
+
_request_auth=_request_auth,
|
|
156
|
+
_content_type=_content_type,
|
|
157
|
+
_headers=_headers,
|
|
158
|
+
_host_index=_host_index
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
162
|
+
'200': "BulkGetCitationsResponse",
|
|
163
|
+
'400': None,
|
|
164
|
+
}
|
|
165
|
+
response_data = self.api_client.call_api(
|
|
166
|
+
*_param,
|
|
167
|
+
_request_timeout=_request_timeout
|
|
168
|
+
)
|
|
169
|
+
response_data.read()
|
|
170
|
+
return self.api_client.response_deserialize(
|
|
171
|
+
response_data=response_data,
|
|
172
|
+
response_types_map=_response_types_map,
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
@validate_call
|
|
177
|
+
def get_bulk_citations_without_preload_content(
|
|
178
|
+
self,
|
|
179
|
+
bulk_get_citations_request: BulkGetCitationsRequest,
|
|
180
|
+
_request_timeout: Union[
|
|
181
|
+
None,
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
+
Tuple[
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
186
|
+
]
|
|
187
|
+
] = None,
|
|
188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
+
_content_type: Optional[StrictStr] = None,
|
|
190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
192
|
+
) -> RESTResponseType:
|
|
193
|
+
"""Get Bulk Citations
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
:param bulk_get_citations_request: (required)
|
|
197
|
+
:type bulk_get_citations_request: BulkGetCitationsRequest
|
|
198
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
199
|
+
number provided, it will be total request
|
|
200
|
+
timeout. It can also be a pair (tuple) of
|
|
201
|
+
(connection, read) timeouts.
|
|
202
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
203
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
204
|
+
request; this effectively ignores the
|
|
205
|
+
authentication in the spec for a single request.
|
|
206
|
+
:type _request_auth: dict, optional
|
|
207
|
+
:param _content_type: force content-type for the request.
|
|
208
|
+
:type _content_type: str, Optional
|
|
209
|
+
:param _headers: set to override the headers for a single
|
|
210
|
+
request; this effectively ignores the headers
|
|
211
|
+
in the spec for a single request.
|
|
212
|
+
:type _headers: dict, optional
|
|
213
|
+
:param _host_index: set to override the host_index for a single
|
|
214
|
+
request; this effectively ignores the host_index
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _host_index: int, optional
|
|
217
|
+
:return: Returns the result object.
|
|
218
|
+
""" # noqa: E501
|
|
219
|
+
|
|
220
|
+
_param = self._get_bulk_citations_serialize(
|
|
221
|
+
bulk_get_citations_request=bulk_get_citations_request,
|
|
222
|
+
_request_auth=_request_auth,
|
|
223
|
+
_content_type=_content_type,
|
|
224
|
+
_headers=_headers,
|
|
225
|
+
_host_index=_host_index
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
229
|
+
'200': "BulkGetCitationsResponse",
|
|
230
|
+
'400': None,
|
|
231
|
+
}
|
|
232
|
+
response_data = self.api_client.call_api(
|
|
233
|
+
*_param,
|
|
234
|
+
_request_timeout=_request_timeout
|
|
235
|
+
)
|
|
236
|
+
return response_data.response
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _get_bulk_citations_serialize(
|
|
240
|
+
self,
|
|
241
|
+
bulk_get_citations_request,
|
|
242
|
+
_request_auth,
|
|
243
|
+
_content_type,
|
|
244
|
+
_headers,
|
|
245
|
+
_host_index,
|
|
246
|
+
) -> RequestSerialized:
|
|
247
|
+
|
|
248
|
+
_host = None
|
|
249
|
+
|
|
250
|
+
_collection_formats: Dict[str, str] = {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
_path_params: Dict[str, str] = {}
|
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
260
|
+
_body_params: Optional[bytes] = None
|
|
261
|
+
|
|
262
|
+
# process the path parameters
|
|
263
|
+
# process the query parameters
|
|
264
|
+
# process the header parameters
|
|
265
|
+
# process the form parameters
|
|
266
|
+
# process the body parameter
|
|
267
|
+
if bulk_get_citations_request is not None:
|
|
268
|
+
_body_params = bulk_get_citations_request
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
# set the HTTP header `Accept`
|
|
272
|
+
if 'Accept' not in _header_params:
|
|
273
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
274
|
+
[
|
|
275
|
+
'application/json'
|
|
276
|
+
]
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
# set the HTTP header `Content-Type`
|
|
280
|
+
if _content_type:
|
|
281
|
+
_header_params['Content-Type'] = _content_type
|
|
282
|
+
else:
|
|
283
|
+
_default_content_type = (
|
|
284
|
+
self.api_client.select_header_content_type(
|
|
285
|
+
[
|
|
286
|
+
'application/json'
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
)
|
|
290
|
+
if _default_content_type is not None:
|
|
291
|
+
_header_params['Content-Type'] = _default_content_type
|
|
292
|
+
|
|
293
|
+
# authentication setting
|
|
294
|
+
_auth_settings: List[str] = [
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
return self.api_client.param_serialize(
|
|
298
|
+
method='POST',
|
|
299
|
+
resource_path='/api/v1/citations/bulk',
|
|
300
|
+
path_params=_path_params,
|
|
301
|
+
query_params=_query_params,
|
|
302
|
+
header_params=_header_params,
|
|
303
|
+
body=_body_params,
|
|
304
|
+
post_params=_form_params,
|
|
305
|
+
files=_files,
|
|
306
|
+
auth_settings=_auth_settings,
|
|
307
|
+
collection_formats=_collection_formats,
|
|
308
|
+
_host=_host,
|
|
309
|
+
_request_auth=_request_auth
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
@validate_call
|
|
316
|
+
def get_citation_output_uri(
|
|
317
|
+
self,
|
|
318
|
+
citation_id: StrictStr,
|
|
319
|
+
_request_timeout: Union[
|
|
320
|
+
None,
|
|
321
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
322
|
+
Tuple[
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
325
|
+
]
|
|
326
|
+
] = None,
|
|
327
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
328
|
+
_content_type: Optional[StrictStr] = None,
|
|
329
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
331
|
+
) -> GetCitationOutputUriResponse:
|
|
332
|
+
"""Get Citation Output Uri
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param citation_id: (required)
|
|
336
|
+
:type citation_id: str
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._get_citation_output_uri_serialize(
|
|
360
|
+
citation_id=citation_id,
|
|
361
|
+
_request_auth=_request_auth,
|
|
362
|
+
_content_type=_content_type,
|
|
363
|
+
_headers=_headers,
|
|
364
|
+
_host_index=_host_index
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
368
|
+
'200': "GetCitationOutputUriResponse",
|
|
369
|
+
}
|
|
370
|
+
response_data = self.api_client.call_api(
|
|
371
|
+
*_param,
|
|
372
|
+
_request_timeout=_request_timeout
|
|
373
|
+
)
|
|
374
|
+
response_data.read()
|
|
375
|
+
return self.api_client.response_deserialize(
|
|
376
|
+
response_data=response_data,
|
|
377
|
+
response_types_map=_response_types_map,
|
|
378
|
+
).data
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
@validate_call
|
|
382
|
+
def get_citation_output_uri_with_http_info(
|
|
383
|
+
self,
|
|
384
|
+
citation_id: StrictStr,
|
|
385
|
+
_request_timeout: Union[
|
|
386
|
+
None,
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
388
|
+
Tuple[
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
391
|
+
]
|
|
392
|
+
] = None,
|
|
393
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
394
|
+
_content_type: Optional[StrictStr] = None,
|
|
395
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
396
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
397
|
+
) -> ApiResponse[GetCitationOutputUriResponse]:
|
|
398
|
+
"""Get Citation Output Uri
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:param citation_id: (required)
|
|
402
|
+
:type citation_id: str
|
|
403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
404
|
+
number provided, it will be total request
|
|
405
|
+
timeout. It can also be a pair (tuple) of
|
|
406
|
+
(connection, read) timeouts.
|
|
407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
409
|
+
request; this effectively ignores the
|
|
410
|
+
authentication in the spec for a single request.
|
|
411
|
+
:type _request_auth: dict, optional
|
|
412
|
+
:param _content_type: force content-type for the request.
|
|
413
|
+
:type _content_type: str, Optional
|
|
414
|
+
:param _headers: set to override the headers for a single
|
|
415
|
+
request; this effectively ignores the headers
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _headers: dict, optional
|
|
418
|
+
:param _host_index: set to override the host_index for a single
|
|
419
|
+
request; this effectively ignores the host_index
|
|
420
|
+
in the spec for a single request.
|
|
421
|
+
:type _host_index: int, optional
|
|
422
|
+
:return: Returns the result object.
|
|
423
|
+
""" # noqa: E501
|
|
424
|
+
|
|
425
|
+
_param = self._get_citation_output_uri_serialize(
|
|
426
|
+
citation_id=citation_id,
|
|
427
|
+
_request_auth=_request_auth,
|
|
428
|
+
_content_type=_content_type,
|
|
429
|
+
_headers=_headers,
|
|
430
|
+
_host_index=_host_index
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
434
|
+
'200': "GetCitationOutputUriResponse",
|
|
435
|
+
}
|
|
436
|
+
response_data = self.api_client.call_api(
|
|
437
|
+
*_param,
|
|
438
|
+
_request_timeout=_request_timeout
|
|
439
|
+
)
|
|
440
|
+
response_data.read()
|
|
441
|
+
return self.api_client.response_deserialize(
|
|
442
|
+
response_data=response_data,
|
|
443
|
+
response_types_map=_response_types_map,
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
@validate_call
|
|
448
|
+
def get_citation_output_uri_without_preload_content(
|
|
449
|
+
self,
|
|
450
|
+
citation_id: StrictStr,
|
|
451
|
+
_request_timeout: Union[
|
|
452
|
+
None,
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
454
|
+
Tuple[
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
456
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
457
|
+
]
|
|
458
|
+
] = None,
|
|
459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
460
|
+
_content_type: Optional[StrictStr] = None,
|
|
461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
463
|
+
) -> RESTResponseType:
|
|
464
|
+
"""Get Citation Output Uri
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
:param citation_id: (required)
|
|
468
|
+
:type citation_id: str
|
|
469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
470
|
+
number provided, it will be total request
|
|
471
|
+
timeout. It can also be a pair (tuple) of
|
|
472
|
+
(connection, read) timeouts.
|
|
473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
475
|
+
request; this effectively ignores the
|
|
476
|
+
authentication in the spec for a single request.
|
|
477
|
+
:type _request_auth: dict, optional
|
|
478
|
+
:param _content_type: force content-type for the request.
|
|
479
|
+
:type _content_type: str, Optional
|
|
480
|
+
:param _headers: set to override the headers for a single
|
|
481
|
+
request; this effectively ignores the headers
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _headers: dict, optional
|
|
484
|
+
:param _host_index: set to override the host_index for a single
|
|
485
|
+
request; this effectively ignores the host_index
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _host_index: int, optional
|
|
488
|
+
:return: Returns the result object.
|
|
489
|
+
""" # noqa: E501
|
|
490
|
+
|
|
491
|
+
_param = self._get_citation_output_uri_serialize(
|
|
492
|
+
citation_id=citation_id,
|
|
493
|
+
_request_auth=_request_auth,
|
|
494
|
+
_content_type=_content_type,
|
|
495
|
+
_headers=_headers,
|
|
496
|
+
_host_index=_host_index
|
|
497
|
+
)
|
|
498
|
+
|
|
499
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
500
|
+
'200': "GetCitationOutputUriResponse",
|
|
501
|
+
}
|
|
502
|
+
response_data = self.api_client.call_api(
|
|
503
|
+
*_param,
|
|
504
|
+
_request_timeout=_request_timeout
|
|
505
|
+
)
|
|
506
|
+
return response_data.response
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
def _get_citation_output_uri_serialize(
|
|
510
|
+
self,
|
|
511
|
+
citation_id,
|
|
512
|
+
_request_auth,
|
|
513
|
+
_content_type,
|
|
514
|
+
_headers,
|
|
515
|
+
_host_index,
|
|
516
|
+
) -> RequestSerialized:
|
|
517
|
+
|
|
518
|
+
_host = None
|
|
519
|
+
|
|
520
|
+
_collection_formats: Dict[str, str] = {
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
_path_params: Dict[str, str] = {}
|
|
524
|
+
_query_params: List[Tuple[str, str]] = []
|
|
525
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
526
|
+
_form_params: List[Tuple[str, str]] = []
|
|
527
|
+
_files: Dict[
|
|
528
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
529
|
+
] = {}
|
|
530
|
+
_body_params: Optional[bytes] = None
|
|
531
|
+
|
|
532
|
+
# process the path parameters
|
|
533
|
+
if citation_id is not None:
|
|
534
|
+
_path_params['citationId'] = citation_id
|
|
535
|
+
# process the query parameters
|
|
536
|
+
# process the header parameters
|
|
537
|
+
# process the form parameters
|
|
538
|
+
# process the body parameter
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
# set the HTTP header `Accept`
|
|
542
|
+
if 'Accept' not in _header_params:
|
|
543
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
544
|
+
[
|
|
545
|
+
'application/json'
|
|
546
|
+
]
|
|
547
|
+
)
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
# authentication setting
|
|
551
|
+
_auth_settings: List[str] = [
|
|
552
|
+
]
|
|
553
|
+
|
|
554
|
+
return self.api_client.param_serialize(
|
|
555
|
+
method='GET',
|
|
556
|
+
resource_path='/api/v1/citations/{citationId}/output-uri',
|
|
557
|
+
path_params=_path_params,
|
|
558
|
+
query_params=_query_params,
|
|
559
|
+
header_params=_header_params,
|
|
560
|
+
body=_body_params,
|
|
561
|
+
post_params=_form_params,
|
|
562
|
+
files=_files,
|
|
563
|
+
auth_settings=_auth_settings,
|
|
564
|
+
collection_formats=_collection_formats,
|
|
565
|
+
_host=_host,
|
|
566
|
+
_request_auth=_request_auth
|
|
567
|
+
)
|
|
568
|
+
|
|
569
|
+
|