hotdata 0.0.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.
- hotdata/__init__.py +300 -0
- hotdata/api/__init__.py +20 -0
- hotdata/api/connection_types_api.py +549 -0
- hotdata/api/connections_api.py +2213 -0
- hotdata/api/datasets_api.py +1711 -0
- hotdata/api/embedding_providers_api.py +1380 -0
- hotdata/api/indexes_api.py +977 -0
- hotdata/api/information_schema_api.py +390 -0
- hotdata/api/jobs_api.py +619 -0
- hotdata/api/query_api.py +320 -0
- hotdata/api/query_runs_api.py +615 -0
- hotdata/api/refresh_api.py +317 -0
- hotdata/api/results_api.py +581 -0
- hotdata/api/saved_queries_api.py +2003 -0
- hotdata/api/secrets_api.py +1380 -0
- hotdata/api/uploads_api.py +595 -0
- hotdata/api/workspace_context_api.py +828 -0
- hotdata/api/workspaces_api.py +602 -0
- hotdata/api_client.py +806 -0
- hotdata/api_response.py +21 -0
- hotdata/configuration.py +620 -0
- hotdata/exceptions.py +219 -0
- hotdata/models/__init__.py +125 -0
- hotdata/models/api_error_detail.py +90 -0
- hotdata/models/api_error_response.py +92 -0
- hotdata/models/async_query_response.py +99 -0
- hotdata/models/boolean_profile_detail.py +91 -0
- hotdata/models/categorical_profile_detail.py +96 -0
- hotdata/models/category_value_info.py +96 -0
- hotdata/models/column_definition.py +140 -0
- hotdata/models/column_info.py +92 -0
- hotdata/models/column_profile_detail.py +180 -0
- hotdata/models/column_profile_detail_one_of.py +105 -0
- hotdata/models/column_profile_detail_one_of1.py +102 -0
- hotdata/models/column_profile_detail_one_of2.py +101 -0
- hotdata/models/column_profile_detail_one_of3.py +99 -0
- hotdata/models/column_profile_detail_one_of4.py +100 -0
- hotdata/models/column_profile_info.py +108 -0
- hotdata/models/column_type_spec.py +117 -0
- hotdata/models/connection_health_response.py +100 -0
- hotdata/models/connection_info.py +92 -0
- hotdata/models/connection_refresh_result.py +117 -0
- hotdata/models/connection_schema_error.py +90 -0
- hotdata/models/connection_type_detail.py +104 -0
- hotdata/models/connection_type_summary.py +90 -0
- hotdata/models/create_connection_request.py +108 -0
- hotdata/models/create_connection_response.py +105 -0
- hotdata/models/create_dataset_request.py +101 -0
- hotdata/models/create_dataset_response.py +99 -0
- hotdata/models/create_embedding_provider_request.py +111 -0
- hotdata/models/create_embedding_provider_response.py +102 -0
- hotdata/models/create_index_request.py +130 -0
- hotdata/models/create_saved_query_request.py +104 -0
- hotdata/models/create_secret_request.py +90 -0
- hotdata/models/create_secret_response.py +93 -0
- hotdata/models/create_workspace201_response.py +93 -0
- hotdata/models/create_workspace_request.py +90 -0
- hotdata/models/create_workspace_response.py +94 -0
- hotdata/models/dataset_source.py +180 -0
- hotdata/models/dataset_source_one_of.py +109 -0
- hotdata/models/dataset_source_one_of1.py +91 -0
- hotdata/models/dataset_summary.py +108 -0
- hotdata/models/dataset_version_summary.py +95 -0
- hotdata/models/discovery_status.py +39 -0
- hotdata/models/embedding_provider_response.py +108 -0
- hotdata/models/error.py +88 -0
- hotdata/models/execute_saved_query_request.py +93 -0
- hotdata/models/get_connection_response.py +97 -0
- hotdata/models/get_dataset_response.py +120 -0
- hotdata/models/get_result_response.py +126 -0
- hotdata/models/get_secret_response.py +93 -0
- hotdata/models/get_workspace_context_response.py +92 -0
- hotdata/models/index_info_response.py +107 -0
- hotdata/models/index_status.py +38 -0
- hotdata/models/information_schema_response.py +110 -0
- hotdata/models/inline_data.py +92 -0
- hotdata/models/inline_dataset_source.py +92 -0
- hotdata/models/job_result.py +152 -0
- hotdata/models/job_status.py +41 -0
- hotdata/models/job_status_response.py +124 -0
- hotdata/models/job_type.py +40 -0
- hotdata/models/list_connection_types_response.py +96 -0
- hotdata/models/list_connections_response.py +96 -0
- hotdata/models/list_dataset_versions_response.py +107 -0
- hotdata/models/list_datasets_response.py +105 -0
- hotdata/models/list_embedding_providers_response.py +96 -0
- hotdata/models/list_indexes_response.py +96 -0
- hotdata/models/list_jobs_response.py +96 -0
- hotdata/models/list_query_runs_response.py +110 -0
- hotdata/models/list_results_response.py +105 -0
- hotdata/models/list_saved_queries_response.py +105 -0
- hotdata/models/list_saved_query_versions_response.py +107 -0
- hotdata/models/list_secrets_response.py +96 -0
- hotdata/models/list_uploads_response.py +96 -0
- hotdata/models/list_workspace_contexts_response.py +96 -0
- hotdata/models/list_workspaces200_response.py +97 -0
- hotdata/models/list_workspaces_response.py +98 -0
- hotdata/models/numeric_profile_detail.py +92 -0
- hotdata/models/query_request.py +98 -0
- hotdata/models/query_response.py +113 -0
- hotdata/models/query_run_info.py +176 -0
- hotdata/models/refresh_dataset_response.py +95 -0
- hotdata/models/refresh_request.py +120 -0
- hotdata/models/refresh_response.py +180 -0
- hotdata/models/refresh_warning.py +102 -0
- hotdata/models/result_info.py +100 -0
- hotdata/models/saved_query_dataset_source.py +95 -0
- hotdata/models/saved_query_detail.py +168 -0
- hotdata/models/saved_query_summary.py +101 -0
- hotdata/models/saved_query_version_info.py +158 -0
- hotdata/models/schema_refresh_result.py +107 -0
- hotdata/models/secret_metadata_response.py +93 -0
- hotdata/models/sql_query_dataset_source.py +102 -0
- hotdata/models/submit_job_response.py +93 -0
- hotdata/models/table_info.py +116 -0
- hotdata/models/table_profile_response.py +112 -0
- hotdata/models/table_refresh_error.py +92 -0
- hotdata/models/table_refresh_result.py +107 -0
- hotdata/models/temporal_profile_detail.py +90 -0
- hotdata/models/text_profile_detail.py +93 -0
- hotdata/models/update_dataset_request.py +107 -0
- hotdata/models/update_dataset_response.py +104 -0
- hotdata/models/update_embedding_provider_request.py +114 -0
- hotdata/models/update_embedding_provider_response.py +93 -0
- hotdata/models/update_saved_query_request.py +128 -0
- hotdata/models/update_secret_request.py +88 -0
- hotdata/models/update_secret_response.py +91 -0
- hotdata/models/upload_dataset_source.py +97 -0
- hotdata/models/upload_info.py +102 -0
- hotdata/models/upload_response.py +102 -0
- hotdata/models/upsert_workspace_context_request.py +90 -0
- hotdata/models/upsert_workspace_context_response.py +92 -0
- hotdata/models/url_dataset_source.py +97 -0
- hotdata/models/workspace_context_entry.py +93 -0
- hotdata/models/workspace_detail.py +94 -0
- hotdata/models/workspace_list_item.py +98 -0
- hotdata/py.typed +0 -0
- hotdata/rest.py +264 -0
- hotdata-0.0.1.dist-info/METADATA +93 -0
- hotdata-0.0.1.dist-info/RECORD +142 -0
- hotdata-0.0.1.dist-info/WHEEL +5 -0
- hotdata-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1711 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Hotdata API
|
|
3
|
+
|
|
4
|
+
Powerful data platform API for datasets, queries, and analytics.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: developers@hotdata.dev
|
|
8
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
|
|
10
|
+
Do not edit the class manually.
|
|
11
|
+
""" # noqa: E501
|
|
12
|
+
|
|
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 Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from hotdata.models.create_dataset_request import CreateDatasetRequest
|
|
23
|
+
from hotdata.models.create_dataset_response import CreateDatasetResponse
|
|
24
|
+
from hotdata.models.get_dataset_response import GetDatasetResponse
|
|
25
|
+
from hotdata.models.list_dataset_versions_response import ListDatasetVersionsResponse
|
|
26
|
+
from hotdata.models.list_datasets_response import ListDatasetsResponse
|
|
27
|
+
from hotdata.models.update_dataset_request import UpdateDatasetRequest
|
|
28
|
+
from hotdata.models.update_dataset_response import UpdateDatasetResponse
|
|
29
|
+
|
|
30
|
+
from hotdata.api_client import ApiClient, RequestSerialized
|
|
31
|
+
from hotdata.api_response import ApiResponse
|
|
32
|
+
from hotdata.rest import RESTResponseType
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class DatasetsApi:
|
|
36
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
37
|
+
Ref: https://openapi-generator.tech
|
|
38
|
+
|
|
39
|
+
Do not edit the class manually.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
def __init__(self, api_client=None) -> None:
|
|
43
|
+
if api_client is None:
|
|
44
|
+
api_client = ApiClient.get_default()
|
|
45
|
+
self.api_client = api_client
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@validate_call
|
|
49
|
+
def create_dataset(
|
|
50
|
+
self,
|
|
51
|
+
create_dataset_request: CreateDatasetRequest,
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> CreateDatasetResponse:
|
|
65
|
+
"""Create dataset
|
|
66
|
+
|
|
67
|
+
Create a new dataset from an uploaded file or inline data. The dataset becomes a queryable table under the `datasets` schema (e.g., `SELECT * FROM datasets.my_table`). Supports CSV, JSON, and Parquet formats. Optionally specify explicit column types.
|
|
68
|
+
|
|
69
|
+
:param create_dataset_request: (required)
|
|
70
|
+
:type create_dataset_request: CreateDatasetRequest
|
|
71
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
72
|
+
number provided, it will be total request
|
|
73
|
+
timeout. It can also be a pair (tuple) of
|
|
74
|
+
(connection, read) timeouts.
|
|
75
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
76
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
77
|
+
request; this effectively ignores the
|
|
78
|
+
authentication in the spec for a single request.
|
|
79
|
+
:type _request_auth: dict, optional
|
|
80
|
+
:param _content_type: force content-type for the request.
|
|
81
|
+
:type _content_type: str, Optional
|
|
82
|
+
:param _headers: set to override the headers for a single
|
|
83
|
+
request; this effectively ignores the headers
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _headers: dict, optional
|
|
86
|
+
:param _host_index: set to override the host_index for a single
|
|
87
|
+
request; this effectively ignores the host_index
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _host_index: int, optional
|
|
90
|
+
:return: Returns the result object.
|
|
91
|
+
""" # noqa: E501
|
|
92
|
+
|
|
93
|
+
_param = self._create_dataset_serialize(
|
|
94
|
+
create_dataset_request=create_dataset_request,
|
|
95
|
+
_request_auth=_request_auth,
|
|
96
|
+
_content_type=_content_type,
|
|
97
|
+
_headers=_headers,
|
|
98
|
+
_host_index=_host_index
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
+
'201': "CreateDatasetResponse",
|
|
103
|
+
'400': "ApiErrorResponse",
|
|
104
|
+
'409': "ApiErrorResponse",
|
|
105
|
+
}
|
|
106
|
+
response_data = self.api_client.call_api(
|
|
107
|
+
*_param,
|
|
108
|
+
_request_timeout=_request_timeout
|
|
109
|
+
)
|
|
110
|
+
response_data.read()
|
|
111
|
+
return self.api_client.response_deserialize(
|
|
112
|
+
response_data=response_data,
|
|
113
|
+
response_types_map=_response_types_map,
|
|
114
|
+
).data
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@validate_call
|
|
118
|
+
def create_dataset_with_http_info(
|
|
119
|
+
self,
|
|
120
|
+
create_dataset_request: CreateDatasetRequest,
|
|
121
|
+
_request_timeout: Union[
|
|
122
|
+
None,
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
124
|
+
Tuple[
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
127
|
+
]
|
|
128
|
+
] = None,
|
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
133
|
+
) -> ApiResponse[CreateDatasetResponse]:
|
|
134
|
+
"""Create dataset
|
|
135
|
+
|
|
136
|
+
Create a new dataset from an uploaded file or inline data. The dataset becomes a queryable table under the `datasets` schema (e.g., `SELECT * FROM datasets.my_table`). Supports CSV, JSON, and Parquet formats. Optionally specify explicit column types.
|
|
137
|
+
|
|
138
|
+
:param create_dataset_request: (required)
|
|
139
|
+
:type create_dataset_request: CreateDatasetRequest
|
|
140
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
141
|
+
number provided, it will be total request
|
|
142
|
+
timeout. It can also be a pair (tuple) of
|
|
143
|
+
(connection, read) timeouts.
|
|
144
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
145
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
146
|
+
request; this effectively ignores the
|
|
147
|
+
authentication in the spec for a single request.
|
|
148
|
+
:type _request_auth: dict, optional
|
|
149
|
+
:param _content_type: force content-type for the request.
|
|
150
|
+
:type _content_type: str, Optional
|
|
151
|
+
:param _headers: set to override the headers for a single
|
|
152
|
+
request; this effectively ignores the headers
|
|
153
|
+
in the spec for a single request.
|
|
154
|
+
:type _headers: dict, optional
|
|
155
|
+
:param _host_index: set to override the host_index for a single
|
|
156
|
+
request; this effectively ignores the host_index
|
|
157
|
+
in the spec for a single request.
|
|
158
|
+
:type _host_index: int, optional
|
|
159
|
+
:return: Returns the result object.
|
|
160
|
+
""" # noqa: E501
|
|
161
|
+
|
|
162
|
+
_param = self._create_dataset_serialize(
|
|
163
|
+
create_dataset_request=create_dataset_request,
|
|
164
|
+
_request_auth=_request_auth,
|
|
165
|
+
_content_type=_content_type,
|
|
166
|
+
_headers=_headers,
|
|
167
|
+
_host_index=_host_index
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
171
|
+
'201': "CreateDatasetResponse",
|
|
172
|
+
'400': "ApiErrorResponse",
|
|
173
|
+
'409': "ApiErrorResponse",
|
|
174
|
+
}
|
|
175
|
+
response_data = self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
179
|
+
response_data.read()
|
|
180
|
+
return self.api_client.response_deserialize(
|
|
181
|
+
response_data=response_data,
|
|
182
|
+
response_types_map=_response_types_map,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@validate_call
|
|
187
|
+
def create_dataset_without_preload_content(
|
|
188
|
+
self,
|
|
189
|
+
create_dataset_request: CreateDatasetRequest,
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""Create dataset
|
|
204
|
+
|
|
205
|
+
Create a new dataset from an uploaded file or inline data. The dataset becomes a queryable table under the `datasets` schema (e.g., `SELECT * FROM datasets.my_table`). Supports CSV, JSON, and Parquet formats. Optionally specify explicit column types.
|
|
206
|
+
|
|
207
|
+
:param create_dataset_request: (required)
|
|
208
|
+
:type create_dataset_request: CreateDatasetRequest
|
|
209
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
210
|
+
number provided, it will be total request
|
|
211
|
+
timeout. It can also be a pair (tuple) of
|
|
212
|
+
(connection, read) timeouts.
|
|
213
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
214
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
215
|
+
request; this effectively ignores the
|
|
216
|
+
authentication in the spec for a single request.
|
|
217
|
+
:type _request_auth: dict, optional
|
|
218
|
+
:param _content_type: force content-type for the request.
|
|
219
|
+
:type _content_type: str, Optional
|
|
220
|
+
:param _headers: set to override the headers for a single
|
|
221
|
+
request; this effectively ignores the headers
|
|
222
|
+
in the spec for a single request.
|
|
223
|
+
:type _headers: dict, optional
|
|
224
|
+
:param _host_index: set to override the host_index for a single
|
|
225
|
+
request; this effectively ignores the host_index
|
|
226
|
+
in the spec for a single request.
|
|
227
|
+
:type _host_index: int, optional
|
|
228
|
+
:return: Returns the result object.
|
|
229
|
+
""" # noqa: E501
|
|
230
|
+
|
|
231
|
+
_param = self._create_dataset_serialize(
|
|
232
|
+
create_dataset_request=create_dataset_request,
|
|
233
|
+
_request_auth=_request_auth,
|
|
234
|
+
_content_type=_content_type,
|
|
235
|
+
_headers=_headers,
|
|
236
|
+
_host_index=_host_index
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
+
'201': "CreateDatasetResponse",
|
|
241
|
+
'400': "ApiErrorResponse",
|
|
242
|
+
'409': "ApiErrorResponse",
|
|
243
|
+
}
|
|
244
|
+
response_data = self.api_client.call_api(
|
|
245
|
+
*_param,
|
|
246
|
+
_request_timeout=_request_timeout
|
|
247
|
+
)
|
|
248
|
+
return response_data.response
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def _create_dataset_serialize(
|
|
252
|
+
self,
|
|
253
|
+
create_dataset_request,
|
|
254
|
+
_request_auth,
|
|
255
|
+
_content_type,
|
|
256
|
+
_headers,
|
|
257
|
+
_host_index,
|
|
258
|
+
) -> RequestSerialized:
|
|
259
|
+
|
|
260
|
+
_host = None
|
|
261
|
+
|
|
262
|
+
_collection_formats: Dict[str, str] = {
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
_path_params: Dict[str, str] = {}
|
|
266
|
+
_query_params: List[Tuple[str, str]] = []
|
|
267
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
268
|
+
_form_params: List[Tuple[str, str]] = []
|
|
269
|
+
_files: Dict[
|
|
270
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
271
|
+
] = {}
|
|
272
|
+
_body_params: Optional[bytes] = None
|
|
273
|
+
|
|
274
|
+
# process the path parameters
|
|
275
|
+
# process the query parameters
|
|
276
|
+
# process the header parameters
|
|
277
|
+
# process the form parameters
|
|
278
|
+
# process the body parameter
|
|
279
|
+
if create_dataset_request is not None:
|
|
280
|
+
_body_params = create_dataset_request
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# set the HTTP header `Accept`
|
|
284
|
+
if 'Accept' not in _header_params:
|
|
285
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
286
|
+
[
|
|
287
|
+
'application/json'
|
|
288
|
+
]
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
# set the HTTP header `Content-Type`
|
|
292
|
+
if _content_type:
|
|
293
|
+
_header_params['Content-Type'] = _content_type
|
|
294
|
+
else:
|
|
295
|
+
_default_content_type = (
|
|
296
|
+
self.api_client.select_header_content_type(
|
|
297
|
+
[
|
|
298
|
+
'application/json'
|
|
299
|
+
]
|
|
300
|
+
)
|
|
301
|
+
)
|
|
302
|
+
if _default_content_type is not None:
|
|
303
|
+
_header_params['Content-Type'] = _default_content_type
|
|
304
|
+
|
|
305
|
+
# authentication setting
|
|
306
|
+
_auth_settings: List[str] = [
|
|
307
|
+
'BearerAuth'
|
|
308
|
+
]
|
|
309
|
+
|
|
310
|
+
return self.api_client.param_serialize(
|
|
311
|
+
method='POST',
|
|
312
|
+
resource_path='/v1/datasets',
|
|
313
|
+
path_params=_path_params,
|
|
314
|
+
query_params=_query_params,
|
|
315
|
+
header_params=_header_params,
|
|
316
|
+
body=_body_params,
|
|
317
|
+
post_params=_form_params,
|
|
318
|
+
files=_files,
|
|
319
|
+
auth_settings=_auth_settings,
|
|
320
|
+
collection_formats=_collection_formats,
|
|
321
|
+
_host=_host,
|
|
322
|
+
_request_auth=_request_auth
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
@validate_call
|
|
329
|
+
def delete_dataset(
|
|
330
|
+
self,
|
|
331
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
332
|
+
_request_timeout: Union[
|
|
333
|
+
None,
|
|
334
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
335
|
+
Tuple[
|
|
336
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
337
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
338
|
+
]
|
|
339
|
+
] = None,
|
|
340
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
341
|
+
_content_type: Optional[StrictStr] = None,
|
|
342
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
343
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
344
|
+
) -> None:
|
|
345
|
+
"""Delete dataset
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
:param id: Dataset ID (required)
|
|
349
|
+
:type id: str
|
|
350
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
351
|
+
number provided, it will be total request
|
|
352
|
+
timeout. It can also be a pair (tuple) of
|
|
353
|
+
(connection, read) timeouts.
|
|
354
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
355
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
356
|
+
request; this effectively ignores the
|
|
357
|
+
authentication in the spec for a single request.
|
|
358
|
+
:type _request_auth: dict, optional
|
|
359
|
+
:param _content_type: force content-type for the request.
|
|
360
|
+
:type _content_type: str, Optional
|
|
361
|
+
:param _headers: set to override the headers for a single
|
|
362
|
+
request; this effectively ignores the headers
|
|
363
|
+
in the spec for a single request.
|
|
364
|
+
:type _headers: dict, optional
|
|
365
|
+
:param _host_index: set to override the host_index for a single
|
|
366
|
+
request; this effectively ignores the host_index
|
|
367
|
+
in the spec for a single request.
|
|
368
|
+
:type _host_index: int, optional
|
|
369
|
+
:return: Returns the result object.
|
|
370
|
+
""" # noqa: E501
|
|
371
|
+
|
|
372
|
+
_param = self._delete_dataset_serialize(
|
|
373
|
+
id=id,
|
|
374
|
+
_request_auth=_request_auth,
|
|
375
|
+
_content_type=_content_type,
|
|
376
|
+
_headers=_headers,
|
|
377
|
+
_host_index=_host_index
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
381
|
+
'204': None,
|
|
382
|
+
'404': "ApiErrorResponse",
|
|
383
|
+
}
|
|
384
|
+
response_data = self.api_client.call_api(
|
|
385
|
+
*_param,
|
|
386
|
+
_request_timeout=_request_timeout
|
|
387
|
+
)
|
|
388
|
+
response_data.read()
|
|
389
|
+
return self.api_client.response_deserialize(
|
|
390
|
+
response_data=response_data,
|
|
391
|
+
response_types_map=_response_types_map,
|
|
392
|
+
).data
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
@validate_call
|
|
396
|
+
def delete_dataset_with_http_info(
|
|
397
|
+
self,
|
|
398
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
399
|
+
_request_timeout: Union[
|
|
400
|
+
None,
|
|
401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
402
|
+
Tuple[
|
|
403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
404
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
405
|
+
]
|
|
406
|
+
] = None,
|
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
411
|
+
) -> ApiResponse[None]:
|
|
412
|
+
"""Delete dataset
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
:param id: Dataset ID (required)
|
|
416
|
+
:type id: str
|
|
417
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
418
|
+
number provided, it will be total request
|
|
419
|
+
timeout. It can also be a pair (tuple) of
|
|
420
|
+
(connection, read) timeouts.
|
|
421
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
422
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
423
|
+
request; this effectively ignores the
|
|
424
|
+
authentication in the spec for a single request.
|
|
425
|
+
:type _request_auth: dict, optional
|
|
426
|
+
:param _content_type: force content-type for the request.
|
|
427
|
+
:type _content_type: str, Optional
|
|
428
|
+
:param _headers: set to override the headers for a single
|
|
429
|
+
request; this effectively ignores the headers
|
|
430
|
+
in the spec for a single request.
|
|
431
|
+
:type _headers: dict, optional
|
|
432
|
+
:param _host_index: set to override the host_index for a single
|
|
433
|
+
request; this effectively ignores the host_index
|
|
434
|
+
in the spec for a single request.
|
|
435
|
+
:type _host_index: int, optional
|
|
436
|
+
:return: Returns the result object.
|
|
437
|
+
""" # noqa: E501
|
|
438
|
+
|
|
439
|
+
_param = self._delete_dataset_serialize(
|
|
440
|
+
id=id,
|
|
441
|
+
_request_auth=_request_auth,
|
|
442
|
+
_content_type=_content_type,
|
|
443
|
+
_headers=_headers,
|
|
444
|
+
_host_index=_host_index
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
448
|
+
'204': None,
|
|
449
|
+
'404': "ApiErrorResponse",
|
|
450
|
+
}
|
|
451
|
+
response_data = self.api_client.call_api(
|
|
452
|
+
*_param,
|
|
453
|
+
_request_timeout=_request_timeout
|
|
454
|
+
)
|
|
455
|
+
response_data.read()
|
|
456
|
+
return self.api_client.response_deserialize(
|
|
457
|
+
response_data=response_data,
|
|
458
|
+
response_types_map=_response_types_map,
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
@validate_call
|
|
463
|
+
def delete_dataset_without_preload_content(
|
|
464
|
+
self,
|
|
465
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
466
|
+
_request_timeout: Union[
|
|
467
|
+
None,
|
|
468
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
469
|
+
Tuple[
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
471
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
472
|
+
]
|
|
473
|
+
] = None,
|
|
474
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
475
|
+
_content_type: Optional[StrictStr] = None,
|
|
476
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
477
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
478
|
+
) -> RESTResponseType:
|
|
479
|
+
"""Delete dataset
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
:param id: Dataset ID (required)
|
|
483
|
+
:type id: str
|
|
484
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
485
|
+
number provided, it will be total request
|
|
486
|
+
timeout. It can also be a pair (tuple) of
|
|
487
|
+
(connection, read) timeouts.
|
|
488
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
489
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
490
|
+
request; this effectively ignores the
|
|
491
|
+
authentication in the spec for a single request.
|
|
492
|
+
:type _request_auth: dict, optional
|
|
493
|
+
:param _content_type: force content-type for the request.
|
|
494
|
+
:type _content_type: str, Optional
|
|
495
|
+
:param _headers: set to override the headers for a single
|
|
496
|
+
request; this effectively ignores the headers
|
|
497
|
+
in the spec for a single request.
|
|
498
|
+
:type _headers: dict, optional
|
|
499
|
+
:param _host_index: set to override the host_index for a single
|
|
500
|
+
request; this effectively ignores the host_index
|
|
501
|
+
in the spec for a single request.
|
|
502
|
+
:type _host_index: int, optional
|
|
503
|
+
:return: Returns the result object.
|
|
504
|
+
""" # noqa: E501
|
|
505
|
+
|
|
506
|
+
_param = self._delete_dataset_serialize(
|
|
507
|
+
id=id,
|
|
508
|
+
_request_auth=_request_auth,
|
|
509
|
+
_content_type=_content_type,
|
|
510
|
+
_headers=_headers,
|
|
511
|
+
_host_index=_host_index
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
515
|
+
'204': None,
|
|
516
|
+
'404': "ApiErrorResponse",
|
|
517
|
+
}
|
|
518
|
+
response_data = self.api_client.call_api(
|
|
519
|
+
*_param,
|
|
520
|
+
_request_timeout=_request_timeout
|
|
521
|
+
)
|
|
522
|
+
return response_data.response
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
def _delete_dataset_serialize(
|
|
526
|
+
self,
|
|
527
|
+
id,
|
|
528
|
+
_request_auth,
|
|
529
|
+
_content_type,
|
|
530
|
+
_headers,
|
|
531
|
+
_host_index,
|
|
532
|
+
) -> RequestSerialized:
|
|
533
|
+
|
|
534
|
+
_host = None
|
|
535
|
+
|
|
536
|
+
_collection_formats: Dict[str, str] = {
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
_path_params: Dict[str, str] = {}
|
|
540
|
+
_query_params: List[Tuple[str, str]] = []
|
|
541
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
542
|
+
_form_params: List[Tuple[str, str]] = []
|
|
543
|
+
_files: Dict[
|
|
544
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
545
|
+
] = {}
|
|
546
|
+
_body_params: Optional[bytes] = None
|
|
547
|
+
|
|
548
|
+
# process the path parameters
|
|
549
|
+
if id is not None:
|
|
550
|
+
_path_params['id'] = id
|
|
551
|
+
# process the query parameters
|
|
552
|
+
# process the header parameters
|
|
553
|
+
# process the form parameters
|
|
554
|
+
# process the body parameter
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
# set the HTTP header `Accept`
|
|
558
|
+
if 'Accept' not in _header_params:
|
|
559
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
560
|
+
[
|
|
561
|
+
'application/json'
|
|
562
|
+
]
|
|
563
|
+
)
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
# authentication setting
|
|
567
|
+
_auth_settings: List[str] = [
|
|
568
|
+
'BearerAuth'
|
|
569
|
+
]
|
|
570
|
+
|
|
571
|
+
return self.api_client.param_serialize(
|
|
572
|
+
method='DELETE',
|
|
573
|
+
resource_path='/v1/datasets/{id}',
|
|
574
|
+
path_params=_path_params,
|
|
575
|
+
query_params=_query_params,
|
|
576
|
+
header_params=_header_params,
|
|
577
|
+
body=_body_params,
|
|
578
|
+
post_params=_form_params,
|
|
579
|
+
files=_files,
|
|
580
|
+
auth_settings=_auth_settings,
|
|
581
|
+
collection_formats=_collection_formats,
|
|
582
|
+
_host=_host,
|
|
583
|
+
_request_auth=_request_auth
|
|
584
|
+
)
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
@validate_call
|
|
590
|
+
def get_dataset(
|
|
591
|
+
self,
|
|
592
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
593
|
+
_request_timeout: Union[
|
|
594
|
+
None,
|
|
595
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
596
|
+
Tuple[
|
|
597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
598
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
599
|
+
]
|
|
600
|
+
] = None,
|
|
601
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
602
|
+
_content_type: Optional[StrictStr] = None,
|
|
603
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
604
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
605
|
+
) -> GetDatasetResponse:
|
|
606
|
+
"""Get dataset
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
:param id: Dataset ID (required)
|
|
610
|
+
:type id: str
|
|
611
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
612
|
+
number provided, it will be total request
|
|
613
|
+
timeout. It can also be a pair (tuple) of
|
|
614
|
+
(connection, read) timeouts.
|
|
615
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
616
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
617
|
+
request; this effectively ignores the
|
|
618
|
+
authentication in the spec for a single request.
|
|
619
|
+
:type _request_auth: dict, optional
|
|
620
|
+
:param _content_type: force content-type for the request.
|
|
621
|
+
:type _content_type: str, Optional
|
|
622
|
+
:param _headers: set to override the headers for a single
|
|
623
|
+
request; this effectively ignores the headers
|
|
624
|
+
in the spec for a single request.
|
|
625
|
+
:type _headers: dict, optional
|
|
626
|
+
:param _host_index: set to override the host_index for a single
|
|
627
|
+
request; this effectively ignores the host_index
|
|
628
|
+
in the spec for a single request.
|
|
629
|
+
:type _host_index: int, optional
|
|
630
|
+
:return: Returns the result object.
|
|
631
|
+
""" # noqa: E501
|
|
632
|
+
|
|
633
|
+
_param = self._get_dataset_serialize(
|
|
634
|
+
id=id,
|
|
635
|
+
_request_auth=_request_auth,
|
|
636
|
+
_content_type=_content_type,
|
|
637
|
+
_headers=_headers,
|
|
638
|
+
_host_index=_host_index
|
|
639
|
+
)
|
|
640
|
+
|
|
641
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
642
|
+
'200': "GetDatasetResponse",
|
|
643
|
+
'404': "ApiErrorResponse",
|
|
644
|
+
}
|
|
645
|
+
response_data = self.api_client.call_api(
|
|
646
|
+
*_param,
|
|
647
|
+
_request_timeout=_request_timeout
|
|
648
|
+
)
|
|
649
|
+
response_data.read()
|
|
650
|
+
return self.api_client.response_deserialize(
|
|
651
|
+
response_data=response_data,
|
|
652
|
+
response_types_map=_response_types_map,
|
|
653
|
+
).data
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
@validate_call
|
|
657
|
+
def get_dataset_with_http_info(
|
|
658
|
+
self,
|
|
659
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
660
|
+
_request_timeout: Union[
|
|
661
|
+
None,
|
|
662
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
663
|
+
Tuple[
|
|
664
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
665
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
666
|
+
]
|
|
667
|
+
] = None,
|
|
668
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
669
|
+
_content_type: Optional[StrictStr] = None,
|
|
670
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
671
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
672
|
+
) -> ApiResponse[GetDatasetResponse]:
|
|
673
|
+
"""Get dataset
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
:param id: Dataset ID (required)
|
|
677
|
+
:type id: str
|
|
678
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
679
|
+
number provided, it will be total request
|
|
680
|
+
timeout. It can also be a pair (tuple) of
|
|
681
|
+
(connection, read) timeouts.
|
|
682
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
683
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
684
|
+
request; this effectively ignores the
|
|
685
|
+
authentication in the spec for a single request.
|
|
686
|
+
:type _request_auth: dict, optional
|
|
687
|
+
:param _content_type: force content-type for the request.
|
|
688
|
+
:type _content_type: str, Optional
|
|
689
|
+
:param _headers: set to override the headers for a single
|
|
690
|
+
request; this effectively ignores the headers
|
|
691
|
+
in the spec for a single request.
|
|
692
|
+
:type _headers: dict, optional
|
|
693
|
+
:param _host_index: set to override the host_index for a single
|
|
694
|
+
request; this effectively ignores the host_index
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _host_index: int, optional
|
|
697
|
+
:return: Returns the result object.
|
|
698
|
+
""" # noqa: E501
|
|
699
|
+
|
|
700
|
+
_param = self._get_dataset_serialize(
|
|
701
|
+
id=id,
|
|
702
|
+
_request_auth=_request_auth,
|
|
703
|
+
_content_type=_content_type,
|
|
704
|
+
_headers=_headers,
|
|
705
|
+
_host_index=_host_index
|
|
706
|
+
)
|
|
707
|
+
|
|
708
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
709
|
+
'200': "GetDatasetResponse",
|
|
710
|
+
'404': "ApiErrorResponse",
|
|
711
|
+
}
|
|
712
|
+
response_data = self.api_client.call_api(
|
|
713
|
+
*_param,
|
|
714
|
+
_request_timeout=_request_timeout
|
|
715
|
+
)
|
|
716
|
+
response_data.read()
|
|
717
|
+
return self.api_client.response_deserialize(
|
|
718
|
+
response_data=response_data,
|
|
719
|
+
response_types_map=_response_types_map,
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
@validate_call
|
|
724
|
+
def get_dataset_without_preload_content(
|
|
725
|
+
self,
|
|
726
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
727
|
+
_request_timeout: Union[
|
|
728
|
+
None,
|
|
729
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
730
|
+
Tuple[
|
|
731
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
732
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
733
|
+
]
|
|
734
|
+
] = None,
|
|
735
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
736
|
+
_content_type: Optional[StrictStr] = None,
|
|
737
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
738
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
739
|
+
) -> RESTResponseType:
|
|
740
|
+
"""Get dataset
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
:param id: Dataset ID (required)
|
|
744
|
+
:type id: str
|
|
745
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
746
|
+
number provided, it will be total request
|
|
747
|
+
timeout. It can also be a pair (tuple) of
|
|
748
|
+
(connection, read) timeouts.
|
|
749
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
750
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
751
|
+
request; this effectively ignores the
|
|
752
|
+
authentication in the spec for a single request.
|
|
753
|
+
:type _request_auth: dict, optional
|
|
754
|
+
:param _content_type: force content-type for the request.
|
|
755
|
+
:type _content_type: str, Optional
|
|
756
|
+
:param _headers: set to override the headers for a single
|
|
757
|
+
request; this effectively ignores the headers
|
|
758
|
+
in the spec for a single request.
|
|
759
|
+
:type _headers: dict, optional
|
|
760
|
+
:param _host_index: set to override the host_index for a single
|
|
761
|
+
request; this effectively ignores the host_index
|
|
762
|
+
in the spec for a single request.
|
|
763
|
+
:type _host_index: int, optional
|
|
764
|
+
:return: Returns the result object.
|
|
765
|
+
""" # noqa: E501
|
|
766
|
+
|
|
767
|
+
_param = self._get_dataset_serialize(
|
|
768
|
+
id=id,
|
|
769
|
+
_request_auth=_request_auth,
|
|
770
|
+
_content_type=_content_type,
|
|
771
|
+
_headers=_headers,
|
|
772
|
+
_host_index=_host_index
|
|
773
|
+
)
|
|
774
|
+
|
|
775
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
776
|
+
'200': "GetDatasetResponse",
|
|
777
|
+
'404': "ApiErrorResponse",
|
|
778
|
+
}
|
|
779
|
+
response_data = self.api_client.call_api(
|
|
780
|
+
*_param,
|
|
781
|
+
_request_timeout=_request_timeout
|
|
782
|
+
)
|
|
783
|
+
return response_data.response
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
def _get_dataset_serialize(
|
|
787
|
+
self,
|
|
788
|
+
id,
|
|
789
|
+
_request_auth,
|
|
790
|
+
_content_type,
|
|
791
|
+
_headers,
|
|
792
|
+
_host_index,
|
|
793
|
+
) -> RequestSerialized:
|
|
794
|
+
|
|
795
|
+
_host = None
|
|
796
|
+
|
|
797
|
+
_collection_formats: Dict[str, str] = {
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
_path_params: Dict[str, str] = {}
|
|
801
|
+
_query_params: List[Tuple[str, str]] = []
|
|
802
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
803
|
+
_form_params: List[Tuple[str, str]] = []
|
|
804
|
+
_files: Dict[
|
|
805
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
806
|
+
] = {}
|
|
807
|
+
_body_params: Optional[bytes] = None
|
|
808
|
+
|
|
809
|
+
# process the path parameters
|
|
810
|
+
if id is not None:
|
|
811
|
+
_path_params['id'] = id
|
|
812
|
+
# process the query parameters
|
|
813
|
+
# process the header parameters
|
|
814
|
+
# process the form parameters
|
|
815
|
+
# process the body parameter
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
# set the HTTP header `Accept`
|
|
819
|
+
if 'Accept' not in _header_params:
|
|
820
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
821
|
+
[
|
|
822
|
+
'application/json'
|
|
823
|
+
]
|
|
824
|
+
)
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
# authentication setting
|
|
828
|
+
_auth_settings: List[str] = [
|
|
829
|
+
'BearerAuth'
|
|
830
|
+
]
|
|
831
|
+
|
|
832
|
+
return self.api_client.param_serialize(
|
|
833
|
+
method='GET',
|
|
834
|
+
resource_path='/v1/datasets/{id}',
|
|
835
|
+
path_params=_path_params,
|
|
836
|
+
query_params=_query_params,
|
|
837
|
+
header_params=_header_params,
|
|
838
|
+
body=_body_params,
|
|
839
|
+
post_params=_form_params,
|
|
840
|
+
files=_files,
|
|
841
|
+
auth_settings=_auth_settings,
|
|
842
|
+
collection_formats=_collection_formats,
|
|
843
|
+
_host=_host,
|
|
844
|
+
_request_auth=_request_auth
|
|
845
|
+
)
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
@validate_call
|
|
851
|
+
def list_dataset_versions(
|
|
852
|
+
self,
|
|
853
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
854
|
+
limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Maximum number of versions (default: 100, max: 1000)")] = None,
|
|
855
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset (default: 0)")] = None,
|
|
856
|
+
_request_timeout: Union[
|
|
857
|
+
None,
|
|
858
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
859
|
+
Tuple[
|
|
860
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
861
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
862
|
+
]
|
|
863
|
+
] = None,
|
|
864
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
865
|
+
_content_type: Optional[StrictStr] = None,
|
|
866
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
867
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
868
|
+
) -> ListDatasetVersionsResponse:
|
|
869
|
+
"""List dataset versions
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
:param id: Dataset ID (required)
|
|
873
|
+
:type id: str
|
|
874
|
+
:param limit: Maximum number of versions (default: 100, max: 1000)
|
|
875
|
+
:type limit: int
|
|
876
|
+
:param offset: Pagination offset (default: 0)
|
|
877
|
+
:type offset: int
|
|
878
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
879
|
+
number provided, it will be total request
|
|
880
|
+
timeout. It can also be a pair (tuple) of
|
|
881
|
+
(connection, read) timeouts.
|
|
882
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
883
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
884
|
+
request; this effectively ignores the
|
|
885
|
+
authentication in the spec for a single request.
|
|
886
|
+
:type _request_auth: dict, optional
|
|
887
|
+
:param _content_type: force content-type for the request.
|
|
888
|
+
:type _content_type: str, Optional
|
|
889
|
+
:param _headers: set to override the headers for a single
|
|
890
|
+
request; this effectively ignores the headers
|
|
891
|
+
in the spec for a single request.
|
|
892
|
+
:type _headers: dict, optional
|
|
893
|
+
:param _host_index: set to override the host_index for a single
|
|
894
|
+
request; this effectively ignores the host_index
|
|
895
|
+
in the spec for a single request.
|
|
896
|
+
:type _host_index: int, optional
|
|
897
|
+
:return: Returns the result object.
|
|
898
|
+
""" # noqa: E501
|
|
899
|
+
|
|
900
|
+
_param = self._list_dataset_versions_serialize(
|
|
901
|
+
id=id,
|
|
902
|
+
limit=limit,
|
|
903
|
+
offset=offset,
|
|
904
|
+
_request_auth=_request_auth,
|
|
905
|
+
_content_type=_content_type,
|
|
906
|
+
_headers=_headers,
|
|
907
|
+
_host_index=_host_index
|
|
908
|
+
)
|
|
909
|
+
|
|
910
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
911
|
+
'200': "ListDatasetVersionsResponse",
|
|
912
|
+
'404': "ApiErrorResponse",
|
|
913
|
+
}
|
|
914
|
+
response_data = self.api_client.call_api(
|
|
915
|
+
*_param,
|
|
916
|
+
_request_timeout=_request_timeout
|
|
917
|
+
)
|
|
918
|
+
response_data.read()
|
|
919
|
+
return self.api_client.response_deserialize(
|
|
920
|
+
response_data=response_data,
|
|
921
|
+
response_types_map=_response_types_map,
|
|
922
|
+
).data
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
@validate_call
|
|
926
|
+
def list_dataset_versions_with_http_info(
|
|
927
|
+
self,
|
|
928
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
929
|
+
limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Maximum number of versions (default: 100, max: 1000)")] = None,
|
|
930
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset (default: 0)")] = None,
|
|
931
|
+
_request_timeout: Union[
|
|
932
|
+
None,
|
|
933
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
934
|
+
Tuple[
|
|
935
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
936
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
937
|
+
]
|
|
938
|
+
] = None,
|
|
939
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
940
|
+
_content_type: Optional[StrictStr] = None,
|
|
941
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
942
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
943
|
+
) -> ApiResponse[ListDatasetVersionsResponse]:
|
|
944
|
+
"""List dataset versions
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
:param id: Dataset ID (required)
|
|
948
|
+
:type id: str
|
|
949
|
+
:param limit: Maximum number of versions (default: 100, max: 1000)
|
|
950
|
+
:type limit: int
|
|
951
|
+
:param offset: Pagination offset (default: 0)
|
|
952
|
+
:type offset: int
|
|
953
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
954
|
+
number provided, it will be total request
|
|
955
|
+
timeout. It can also be a pair (tuple) of
|
|
956
|
+
(connection, read) timeouts.
|
|
957
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
958
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
959
|
+
request; this effectively ignores the
|
|
960
|
+
authentication in the spec for a single request.
|
|
961
|
+
:type _request_auth: dict, optional
|
|
962
|
+
:param _content_type: force content-type for the request.
|
|
963
|
+
:type _content_type: str, Optional
|
|
964
|
+
:param _headers: set to override the headers for a single
|
|
965
|
+
request; this effectively ignores the headers
|
|
966
|
+
in the spec for a single request.
|
|
967
|
+
:type _headers: dict, optional
|
|
968
|
+
:param _host_index: set to override the host_index for a single
|
|
969
|
+
request; this effectively ignores the host_index
|
|
970
|
+
in the spec for a single request.
|
|
971
|
+
:type _host_index: int, optional
|
|
972
|
+
:return: Returns the result object.
|
|
973
|
+
""" # noqa: E501
|
|
974
|
+
|
|
975
|
+
_param = self._list_dataset_versions_serialize(
|
|
976
|
+
id=id,
|
|
977
|
+
limit=limit,
|
|
978
|
+
offset=offset,
|
|
979
|
+
_request_auth=_request_auth,
|
|
980
|
+
_content_type=_content_type,
|
|
981
|
+
_headers=_headers,
|
|
982
|
+
_host_index=_host_index
|
|
983
|
+
)
|
|
984
|
+
|
|
985
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
986
|
+
'200': "ListDatasetVersionsResponse",
|
|
987
|
+
'404': "ApiErrorResponse",
|
|
988
|
+
}
|
|
989
|
+
response_data = self.api_client.call_api(
|
|
990
|
+
*_param,
|
|
991
|
+
_request_timeout=_request_timeout
|
|
992
|
+
)
|
|
993
|
+
response_data.read()
|
|
994
|
+
return self.api_client.response_deserialize(
|
|
995
|
+
response_data=response_data,
|
|
996
|
+
response_types_map=_response_types_map,
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
@validate_call
|
|
1001
|
+
def list_dataset_versions_without_preload_content(
|
|
1002
|
+
self,
|
|
1003
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
1004
|
+
limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Maximum number of versions (default: 100, max: 1000)")] = None,
|
|
1005
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset (default: 0)")] = None,
|
|
1006
|
+
_request_timeout: Union[
|
|
1007
|
+
None,
|
|
1008
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1009
|
+
Tuple[
|
|
1010
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1011
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1012
|
+
]
|
|
1013
|
+
] = None,
|
|
1014
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1015
|
+
_content_type: Optional[StrictStr] = None,
|
|
1016
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1017
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1018
|
+
) -> RESTResponseType:
|
|
1019
|
+
"""List dataset versions
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
:param id: Dataset ID (required)
|
|
1023
|
+
:type id: str
|
|
1024
|
+
:param limit: Maximum number of versions (default: 100, max: 1000)
|
|
1025
|
+
:type limit: int
|
|
1026
|
+
:param offset: Pagination offset (default: 0)
|
|
1027
|
+
:type offset: int
|
|
1028
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1029
|
+
number provided, it will be total request
|
|
1030
|
+
timeout. It can also be a pair (tuple) of
|
|
1031
|
+
(connection, read) timeouts.
|
|
1032
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1033
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1034
|
+
request; this effectively ignores the
|
|
1035
|
+
authentication in the spec for a single request.
|
|
1036
|
+
:type _request_auth: dict, optional
|
|
1037
|
+
:param _content_type: force content-type for the request.
|
|
1038
|
+
:type _content_type: str, Optional
|
|
1039
|
+
:param _headers: set to override the headers for a single
|
|
1040
|
+
request; this effectively ignores the headers
|
|
1041
|
+
in the spec for a single request.
|
|
1042
|
+
:type _headers: dict, optional
|
|
1043
|
+
:param _host_index: set to override the host_index for a single
|
|
1044
|
+
request; this effectively ignores the host_index
|
|
1045
|
+
in the spec for a single request.
|
|
1046
|
+
:type _host_index: int, optional
|
|
1047
|
+
:return: Returns the result object.
|
|
1048
|
+
""" # noqa: E501
|
|
1049
|
+
|
|
1050
|
+
_param = self._list_dataset_versions_serialize(
|
|
1051
|
+
id=id,
|
|
1052
|
+
limit=limit,
|
|
1053
|
+
offset=offset,
|
|
1054
|
+
_request_auth=_request_auth,
|
|
1055
|
+
_content_type=_content_type,
|
|
1056
|
+
_headers=_headers,
|
|
1057
|
+
_host_index=_host_index
|
|
1058
|
+
)
|
|
1059
|
+
|
|
1060
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1061
|
+
'200': "ListDatasetVersionsResponse",
|
|
1062
|
+
'404': "ApiErrorResponse",
|
|
1063
|
+
}
|
|
1064
|
+
response_data = self.api_client.call_api(
|
|
1065
|
+
*_param,
|
|
1066
|
+
_request_timeout=_request_timeout
|
|
1067
|
+
)
|
|
1068
|
+
return response_data.response
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
def _list_dataset_versions_serialize(
|
|
1072
|
+
self,
|
|
1073
|
+
id,
|
|
1074
|
+
limit,
|
|
1075
|
+
offset,
|
|
1076
|
+
_request_auth,
|
|
1077
|
+
_content_type,
|
|
1078
|
+
_headers,
|
|
1079
|
+
_host_index,
|
|
1080
|
+
) -> RequestSerialized:
|
|
1081
|
+
|
|
1082
|
+
_host = None
|
|
1083
|
+
|
|
1084
|
+
_collection_formats: Dict[str, str] = {
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
_path_params: Dict[str, str] = {}
|
|
1088
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1089
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1090
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1091
|
+
_files: Dict[
|
|
1092
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1093
|
+
] = {}
|
|
1094
|
+
_body_params: Optional[bytes] = None
|
|
1095
|
+
|
|
1096
|
+
# process the path parameters
|
|
1097
|
+
if id is not None:
|
|
1098
|
+
_path_params['id'] = id
|
|
1099
|
+
# process the query parameters
|
|
1100
|
+
if limit is not None:
|
|
1101
|
+
|
|
1102
|
+
_query_params.append(('limit', limit))
|
|
1103
|
+
|
|
1104
|
+
if offset is not None:
|
|
1105
|
+
|
|
1106
|
+
_query_params.append(('offset', offset))
|
|
1107
|
+
|
|
1108
|
+
# process the header parameters
|
|
1109
|
+
# process the form parameters
|
|
1110
|
+
# process the body parameter
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
# set the HTTP header `Accept`
|
|
1114
|
+
if 'Accept' not in _header_params:
|
|
1115
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1116
|
+
[
|
|
1117
|
+
'application/json'
|
|
1118
|
+
]
|
|
1119
|
+
)
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
# authentication setting
|
|
1123
|
+
_auth_settings: List[str] = [
|
|
1124
|
+
'BearerAuth'
|
|
1125
|
+
]
|
|
1126
|
+
|
|
1127
|
+
return self.api_client.param_serialize(
|
|
1128
|
+
method='GET',
|
|
1129
|
+
resource_path='/v1/datasets/{id}/versions',
|
|
1130
|
+
path_params=_path_params,
|
|
1131
|
+
query_params=_query_params,
|
|
1132
|
+
header_params=_header_params,
|
|
1133
|
+
body=_body_params,
|
|
1134
|
+
post_params=_form_params,
|
|
1135
|
+
files=_files,
|
|
1136
|
+
auth_settings=_auth_settings,
|
|
1137
|
+
collection_formats=_collection_formats,
|
|
1138
|
+
_host=_host,
|
|
1139
|
+
_request_auth=_request_auth
|
|
1140
|
+
)
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
@validate_call
|
|
1146
|
+
def list_datasets(
|
|
1147
|
+
self,
|
|
1148
|
+
limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Maximum number of datasets (default: 100, max: 1000)")] = None,
|
|
1149
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset (default: 0)")] = None,
|
|
1150
|
+
_request_timeout: Union[
|
|
1151
|
+
None,
|
|
1152
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1153
|
+
Tuple[
|
|
1154
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1155
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1156
|
+
]
|
|
1157
|
+
] = None,
|
|
1158
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1159
|
+
_content_type: Optional[StrictStr] = None,
|
|
1160
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1161
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1162
|
+
) -> ListDatasetsResponse:
|
|
1163
|
+
"""List datasets
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
:param limit: Maximum number of datasets (default: 100, max: 1000)
|
|
1167
|
+
:type limit: int
|
|
1168
|
+
:param offset: Pagination offset (default: 0)
|
|
1169
|
+
:type offset: int
|
|
1170
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1171
|
+
number provided, it will be total request
|
|
1172
|
+
timeout. It can also be a pair (tuple) of
|
|
1173
|
+
(connection, read) timeouts.
|
|
1174
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1175
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1176
|
+
request; this effectively ignores the
|
|
1177
|
+
authentication in the spec for a single request.
|
|
1178
|
+
:type _request_auth: dict, optional
|
|
1179
|
+
:param _content_type: force content-type for the request.
|
|
1180
|
+
:type _content_type: str, Optional
|
|
1181
|
+
:param _headers: set to override the headers for a single
|
|
1182
|
+
request; this effectively ignores the headers
|
|
1183
|
+
in the spec for a single request.
|
|
1184
|
+
:type _headers: dict, optional
|
|
1185
|
+
:param _host_index: set to override the host_index for a single
|
|
1186
|
+
request; this effectively ignores the host_index
|
|
1187
|
+
in the spec for a single request.
|
|
1188
|
+
:type _host_index: int, optional
|
|
1189
|
+
:return: Returns the result object.
|
|
1190
|
+
""" # noqa: E501
|
|
1191
|
+
|
|
1192
|
+
_param = self._list_datasets_serialize(
|
|
1193
|
+
limit=limit,
|
|
1194
|
+
offset=offset,
|
|
1195
|
+
_request_auth=_request_auth,
|
|
1196
|
+
_content_type=_content_type,
|
|
1197
|
+
_headers=_headers,
|
|
1198
|
+
_host_index=_host_index
|
|
1199
|
+
)
|
|
1200
|
+
|
|
1201
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1202
|
+
'200': "ListDatasetsResponse",
|
|
1203
|
+
}
|
|
1204
|
+
response_data = self.api_client.call_api(
|
|
1205
|
+
*_param,
|
|
1206
|
+
_request_timeout=_request_timeout
|
|
1207
|
+
)
|
|
1208
|
+
response_data.read()
|
|
1209
|
+
return self.api_client.response_deserialize(
|
|
1210
|
+
response_data=response_data,
|
|
1211
|
+
response_types_map=_response_types_map,
|
|
1212
|
+
).data
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
@validate_call
|
|
1216
|
+
def list_datasets_with_http_info(
|
|
1217
|
+
self,
|
|
1218
|
+
limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Maximum number of datasets (default: 100, max: 1000)")] = None,
|
|
1219
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset (default: 0)")] = None,
|
|
1220
|
+
_request_timeout: Union[
|
|
1221
|
+
None,
|
|
1222
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1223
|
+
Tuple[
|
|
1224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1225
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1226
|
+
]
|
|
1227
|
+
] = None,
|
|
1228
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1229
|
+
_content_type: Optional[StrictStr] = None,
|
|
1230
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1231
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1232
|
+
) -> ApiResponse[ListDatasetsResponse]:
|
|
1233
|
+
"""List datasets
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
:param limit: Maximum number of datasets (default: 100, max: 1000)
|
|
1237
|
+
:type limit: int
|
|
1238
|
+
:param offset: Pagination offset (default: 0)
|
|
1239
|
+
:type offset: int
|
|
1240
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1241
|
+
number provided, it will be total request
|
|
1242
|
+
timeout. It can also be a pair (tuple) of
|
|
1243
|
+
(connection, read) timeouts.
|
|
1244
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1245
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1246
|
+
request; this effectively ignores the
|
|
1247
|
+
authentication in the spec for a single request.
|
|
1248
|
+
:type _request_auth: dict, optional
|
|
1249
|
+
:param _content_type: force content-type for the request.
|
|
1250
|
+
:type _content_type: str, Optional
|
|
1251
|
+
:param _headers: set to override the headers for a single
|
|
1252
|
+
request; this effectively ignores the headers
|
|
1253
|
+
in the spec for a single request.
|
|
1254
|
+
:type _headers: dict, optional
|
|
1255
|
+
:param _host_index: set to override the host_index for a single
|
|
1256
|
+
request; this effectively ignores the host_index
|
|
1257
|
+
in the spec for a single request.
|
|
1258
|
+
:type _host_index: int, optional
|
|
1259
|
+
:return: Returns the result object.
|
|
1260
|
+
""" # noqa: E501
|
|
1261
|
+
|
|
1262
|
+
_param = self._list_datasets_serialize(
|
|
1263
|
+
limit=limit,
|
|
1264
|
+
offset=offset,
|
|
1265
|
+
_request_auth=_request_auth,
|
|
1266
|
+
_content_type=_content_type,
|
|
1267
|
+
_headers=_headers,
|
|
1268
|
+
_host_index=_host_index
|
|
1269
|
+
)
|
|
1270
|
+
|
|
1271
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1272
|
+
'200': "ListDatasetsResponse",
|
|
1273
|
+
}
|
|
1274
|
+
response_data = self.api_client.call_api(
|
|
1275
|
+
*_param,
|
|
1276
|
+
_request_timeout=_request_timeout
|
|
1277
|
+
)
|
|
1278
|
+
response_data.read()
|
|
1279
|
+
return self.api_client.response_deserialize(
|
|
1280
|
+
response_data=response_data,
|
|
1281
|
+
response_types_map=_response_types_map,
|
|
1282
|
+
)
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
@validate_call
|
|
1286
|
+
def list_datasets_without_preload_content(
|
|
1287
|
+
self,
|
|
1288
|
+
limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Maximum number of datasets (default: 100, max: 1000)")] = None,
|
|
1289
|
+
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Pagination offset (default: 0)")] = None,
|
|
1290
|
+
_request_timeout: Union[
|
|
1291
|
+
None,
|
|
1292
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1293
|
+
Tuple[
|
|
1294
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1295
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1296
|
+
]
|
|
1297
|
+
] = None,
|
|
1298
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1299
|
+
_content_type: Optional[StrictStr] = None,
|
|
1300
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1301
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1302
|
+
) -> RESTResponseType:
|
|
1303
|
+
"""List datasets
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
:param limit: Maximum number of datasets (default: 100, max: 1000)
|
|
1307
|
+
:type limit: int
|
|
1308
|
+
:param offset: Pagination offset (default: 0)
|
|
1309
|
+
:type offset: int
|
|
1310
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1311
|
+
number provided, it will be total request
|
|
1312
|
+
timeout. It can also be a pair (tuple) of
|
|
1313
|
+
(connection, read) timeouts.
|
|
1314
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1315
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1316
|
+
request; this effectively ignores the
|
|
1317
|
+
authentication in the spec for a single request.
|
|
1318
|
+
:type _request_auth: dict, optional
|
|
1319
|
+
:param _content_type: force content-type for the request.
|
|
1320
|
+
:type _content_type: str, Optional
|
|
1321
|
+
:param _headers: set to override the headers for a single
|
|
1322
|
+
request; this effectively ignores the headers
|
|
1323
|
+
in the spec for a single request.
|
|
1324
|
+
:type _headers: dict, optional
|
|
1325
|
+
:param _host_index: set to override the host_index for a single
|
|
1326
|
+
request; this effectively ignores the host_index
|
|
1327
|
+
in the spec for a single request.
|
|
1328
|
+
:type _host_index: int, optional
|
|
1329
|
+
:return: Returns the result object.
|
|
1330
|
+
""" # noqa: E501
|
|
1331
|
+
|
|
1332
|
+
_param = self._list_datasets_serialize(
|
|
1333
|
+
limit=limit,
|
|
1334
|
+
offset=offset,
|
|
1335
|
+
_request_auth=_request_auth,
|
|
1336
|
+
_content_type=_content_type,
|
|
1337
|
+
_headers=_headers,
|
|
1338
|
+
_host_index=_host_index
|
|
1339
|
+
)
|
|
1340
|
+
|
|
1341
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1342
|
+
'200': "ListDatasetsResponse",
|
|
1343
|
+
}
|
|
1344
|
+
response_data = self.api_client.call_api(
|
|
1345
|
+
*_param,
|
|
1346
|
+
_request_timeout=_request_timeout
|
|
1347
|
+
)
|
|
1348
|
+
return response_data.response
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
def _list_datasets_serialize(
|
|
1352
|
+
self,
|
|
1353
|
+
limit,
|
|
1354
|
+
offset,
|
|
1355
|
+
_request_auth,
|
|
1356
|
+
_content_type,
|
|
1357
|
+
_headers,
|
|
1358
|
+
_host_index,
|
|
1359
|
+
) -> RequestSerialized:
|
|
1360
|
+
|
|
1361
|
+
_host = None
|
|
1362
|
+
|
|
1363
|
+
_collection_formats: Dict[str, str] = {
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
_path_params: Dict[str, str] = {}
|
|
1367
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1368
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1369
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1370
|
+
_files: Dict[
|
|
1371
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1372
|
+
] = {}
|
|
1373
|
+
_body_params: Optional[bytes] = None
|
|
1374
|
+
|
|
1375
|
+
# process the path parameters
|
|
1376
|
+
# process the query parameters
|
|
1377
|
+
if limit is not None:
|
|
1378
|
+
|
|
1379
|
+
_query_params.append(('limit', limit))
|
|
1380
|
+
|
|
1381
|
+
if offset is not None:
|
|
1382
|
+
|
|
1383
|
+
_query_params.append(('offset', offset))
|
|
1384
|
+
|
|
1385
|
+
# process the header parameters
|
|
1386
|
+
# process the form parameters
|
|
1387
|
+
# process the body parameter
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
# set the HTTP header `Accept`
|
|
1391
|
+
if 'Accept' not in _header_params:
|
|
1392
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1393
|
+
[
|
|
1394
|
+
'application/json'
|
|
1395
|
+
]
|
|
1396
|
+
)
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
# authentication setting
|
|
1400
|
+
_auth_settings: List[str] = [
|
|
1401
|
+
'BearerAuth'
|
|
1402
|
+
]
|
|
1403
|
+
|
|
1404
|
+
return self.api_client.param_serialize(
|
|
1405
|
+
method='GET',
|
|
1406
|
+
resource_path='/v1/datasets',
|
|
1407
|
+
path_params=_path_params,
|
|
1408
|
+
query_params=_query_params,
|
|
1409
|
+
header_params=_header_params,
|
|
1410
|
+
body=_body_params,
|
|
1411
|
+
post_params=_form_params,
|
|
1412
|
+
files=_files,
|
|
1413
|
+
auth_settings=_auth_settings,
|
|
1414
|
+
collection_formats=_collection_formats,
|
|
1415
|
+
_host=_host,
|
|
1416
|
+
_request_auth=_request_auth
|
|
1417
|
+
)
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
@validate_call
|
|
1423
|
+
def update_dataset(
|
|
1424
|
+
self,
|
|
1425
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
1426
|
+
update_dataset_request: UpdateDatasetRequest,
|
|
1427
|
+
_request_timeout: Union[
|
|
1428
|
+
None,
|
|
1429
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1430
|
+
Tuple[
|
|
1431
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1432
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1433
|
+
]
|
|
1434
|
+
] = None,
|
|
1435
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1436
|
+
_content_type: Optional[StrictStr] = None,
|
|
1437
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1438
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1439
|
+
) -> UpdateDatasetResponse:
|
|
1440
|
+
"""Update dataset
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
:param id: Dataset ID (required)
|
|
1444
|
+
:type id: str
|
|
1445
|
+
:param update_dataset_request: (required)
|
|
1446
|
+
:type update_dataset_request: UpdateDatasetRequest
|
|
1447
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1448
|
+
number provided, it will be total request
|
|
1449
|
+
timeout. It can also be a pair (tuple) of
|
|
1450
|
+
(connection, read) timeouts.
|
|
1451
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1452
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1453
|
+
request; this effectively ignores the
|
|
1454
|
+
authentication in the spec for a single request.
|
|
1455
|
+
:type _request_auth: dict, optional
|
|
1456
|
+
:param _content_type: force content-type for the request.
|
|
1457
|
+
:type _content_type: str, Optional
|
|
1458
|
+
:param _headers: set to override the headers for a single
|
|
1459
|
+
request; this effectively ignores the headers
|
|
1460
|
+
in the spec for a single request.
|
|
1461
|
+
:type _headers: dict, optional
|
|
1462
|
+
:param _host_index: set to override the host_index for a single
|
|
1463
|
+
request; this effectively ignores the host_index
|
|
1464
|
+
in the spec for a single request.
|
|
1465
|
+
:type _host_index: int, optional
|
|
1466
|
+
:return: Returns the result object.
|
|
1467
|
+
""" # noqa: E501
|
|
1468
|
+
|
|
1469
|
+
_param = self._update_dataset_serialize(
|
|
1470
|
+
id=id,
|
|
1471
|
+
update_dataset_request=update_dataset_request,
|
|
1472
|
+
_request_auth=_request_auth,
|
|
1473
|
+
_content_type=_content_type,
|
|
1474
|
+
_headers=_headers,
|
|
1475
|
+
_host_index=_host_index
|
|
1476
|
+
)
|
|
1477
|
+
|
|
1478
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1479
|
+
'200': "UpdateDatasetResponse",
|
|
1480
|
+
'404': "ApiErrorResponse",
|
|
1481
|
+
'409': "ApiErrorResponse",
|
|
1482
|
+
}
|
|
1483
|
+
response_data = self.api_client.call_api(
|
|
1484
|
+
*_param,
|
|
1485
|
+
_request_timeout=_request_timeout
|
|
1486
|
+
)
|
|
1487
|
+
response_data.read()
|
|
1488
|
+
return self.api_client.response_deserialize(
|
|
1489
|
+
response_data=response_data,
|
|
1490
|
+
response_types_map=_response_types_map,
|
|
1491
|
+
).data
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
@validate_call
|
|
1495
|
+
def update_dataset_with_http_info(
|
|
1496
|
+
self,
|
|
1497
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
1498
|
+
update_dataset_request: UpdateDatasetRequest,
|
|
1499
|
+
_request_timeout: Union[
|
|
1500
|
+
None,
|
|
1501
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1502
|
+
Tuple[
|
|
1503
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1504
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1505
|
+
]
|
|
1506
|
+
] = None,
|
|
1507
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1508
|
+
_content_type: Optional[StrictStr] = None,
|
|
1509
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1510
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1511
|
+
) -> ApiResponse[UpdateDatasetResponse]:
|
|
1512
|
+
"""Update dataset
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
:param id: Dataset ID (required)
|
|
1516
|
+
:type id: str
|
|
1517
|
+
:param update_dataset_request: (required)
|
|
1518
|
+
:type update_dataset_request: UpdateDatasetRequest
|
|
1519
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1520
|
+
number provided, it will be total request
|
|
1521
|
+
timeout. It can also be a pair (tuple) of
|
|
1522
|
+
(connection, read) timeouts.
|
|
1523
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1524
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1525
|
+
request; this effectively ignores the
|
|
1526
|
+
authentication in the spec for a single request.
|
|
1527
|
+
:type _request_auth: dict, optional
|
|
1528
|
+
:param _content_type: force content-type for the request.
|
|
1529
|
+
:type _content_type: str, Optional
|
|
1530
|
+
:param _headers: set to override the headers for a single
|
|
1531
|
+
request; this effectively ignores the headers
|
|
1532
|
+
in the spec for a single request.
|
|
1533
|
+
:type _headers: dict, optional
|
|
1534
|
+
:param _host_index: set to override the host_index for a single
|
|
1535
|
+
request; this effectively ignores the host_index
|
|
1536
|
+
in the spec for a single request.
|
|
1537
|
+
:type _host_index: int, optional
|
|
1538
|
+
:return: Returns the result object.
|
|
1539
|
+
""" # noqa: E501
|
|
1540
|
+
|
|
1541
|
+
_param = self._update_dataset_serialize(
|
|
1542
|
+
id=id,
|
|
1543
|
+
update_dataset_request=update_dataset_request,
|
|
1544
|
+
_request_auth=_request_auth,
|
|
1545
|
+
_content_type=_content_type,
|
|
1546
|
+
_headers=_headers,
|
|
1547
|
+
_host_index=_host_index
|
|
1548
|
+
)
|
|
1549
|
+
|
|
1550
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1551
|
+
'200': "UpdateDatasetResponse",
|
|
1552
|
+
'404': "ApiErrorResponse",
|
|
1553
|
+
'409': "ApiErrorResponse",
|
|
1554
|
+
}
|
|
1555
|
+
response_data = self.api_client.call_api(
|
|
1556
|
+
*_param,
|
|
1557
|
+
_request_timeout=_request_timeout
|
|
1558
|
+
)
|
|
1559
|
+
response_data.read()
|
|
1560
|
+
return self.api_client.response_deserialize(
|
|
1561
|
+
response_data=response_data,
|
|
1562
|
+
response_types_map=_response_types_map,
|
|
1563
|
+
)
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
@validate_call
|
|
1567
|
+
def update_dataset_without_preload_content(
|
|
1568
|
+
self,
|
|
1569
|
+
id: Annotated[StrictStr, Field(description="Dataset ID")],
|
|
1570
|
+
update_dataset_request: UpdateDatasetRequest,
|
|
1571
|
+
_request_timeout: Union[
|
|
1572
|
+
None,
|
|
1573
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1574
|
+
Tuple[
|
|
1575
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1576
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1577
|
+
]
|
|
1578
|
+
] = None,
|
|
1579
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1580
|
+
_content_type: Optional[StrictStr] = None,
|
|
1581
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1582
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1583
|
+
) -> RESTResponseType:
|
|
1584
|
+
"""Update dataset
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
:param id: Dataset ID (required)
|
|
1588
|
+
:type id: str
|
|
1589
|
+
:param update_dataset_request: (required)
|
|
1590
|
+
:type update_dataset_request: UpdateDatasetRequest
|
|
1591
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1592
|
+
number provided, it will be total request
|
|
1593
|
+
timeout. It can also be a pair (tuple) of
|
|
1594
|
+
(connection, read) timeouts.
|
|
1595
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1596
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1597
|
+
request; this effectively ignores the
|
|
1598
|
+
authentication in the spec for a single request.
|
|
1599
|
+
:type _request_auth: dict, optional
|
|
1600
|
+
:param _content_type: force content-type for the request.
|
|
1601
|
+
:type _content_type: str, Optional
|
|
1602
|
+
:param _headers: set to override the headers for a single
|
|
1603
|
+
request; this effectively ignores the headers
|
|
1604
|
+
in the spec for a single request.
|
|
1605
|
+
:type _headers: dict, optional
|
|
1606
|
+
:param _host_index: set to override the host_index for a single
|
|
1607
|
+
request; this effectively ignores the host_index
|
|
1608
|
+
in the spec for a single request.
|
|
1609
|
+
:type _host_index: int, optional
|
|
1610
|
+
:return: Returns the result object.
|
|
1611
|
+
""" # noqa: E501
|
|
1612
|
+
|
|
1613
|
+
_param = self._update_dataset_serialize(
|
|
1614
|
+
id=id,
|
|
1615
|
+
update_dataset_request=update_dataset_request,
|
|
1616
|
+
_request_auth=_request_auth,
|
|
1617
|
+
_content_type=_content_type,
|
|
1618
|
+
_headers=_headers,
|
|
1619
|
+
_host_index=_host_index
|
|
1620
|
+
)
|
|
1621
|
+
|
|
1622
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1623
|
+
'200': "UpdateDatasetResponse",
|
|
1624
|
+
'404': "ApiErrorResponse",
|
|
1625
|
+
'409': "ApiErrorResponse",
|
|
1626
|
+
}
|
|
1627
|
+
response_data = self.api_client.call_api(
|
|
1628
|
+
*_param,
|
|
1629
|
+
_request_timeout=_request_timeout
|
|
1630
|
+
)
|
|
1631
|
+
return response_data.response
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
def _update_dataset_serialize(
|
|
1635
|
+
self,
|
|
1636
|
+
id,
|
|
1637
|
+
update_dataset_request,
|
|
1638
|
+
_request_auth,
|
|
1639
|
+
_content_type,
|
|
1640
|
+
_headers,
|
|
1641
|
+
_host_index,
|
|
1642
|
+
) -> RequestSerialized:
|
|
1643
|
+
|
|
1644
|
+
_host = None
|
|
1645
|
+
|
|
1646
|
+
_collection_formats: Dict[str, str] = {
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
_path_params: Dict[str, str] = {}
|
|
1650
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1651
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1652
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1653
|
+
_files: Dict[
|
|
1654
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1655
|
+
] = {}
|
|
1656
|
+
_body_params: Optional[bytes] = None
|
|
1657
|
+
|
|
1658
|
+
# process the path parameters
|
|
1659
|
+
if id is not None:
|
|
1660
|
+
_path_params['id'] = id
|
|
1661
|
+
# process the query parameters
|
|
1662
|
+
# process the header parameters
|
|
1663
|
+
# process the form parameters
|
|
1664
|
+
# process the body parameter
|
|
1665
|
+
if update_dataset_request is not None:
|
|
1666
|
+
_body_params = update_dataset_request
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
# set the HTTP header `Accept`
|
|
1670
|
+
if 'Accept' not in _header_params:
|
|
1671
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1672
|
+
[
|
|
1673
|
+
'application/json'
|
|
1674
|
+
]
|
|
1675
|
+
)
|
|
1676
|
+
|
|
1677
|
+
# set the HTTP header `Content-Type`
|
|
1678
|
+
if _content_type:
|
|
1679
|
+
_header_params['Content-Type'] = _content_type
|
|
1680
|
+
else:
|
|
1681
|
+
_default_content_type = (
|
|
1682
|
+
self.api_client.select_header_content_type(
|
|
1683
|
+
[
|
|
1684
|
+
'application/json'
|
|
1685
|
+
]
|
|
1686
|
+
)
|
|
1687
|
+
)
|
|
1688
|
+
if _default_content_type is not None:
|
|
1689
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1690
|
+
|
|
1691
|
+
# authentication setting
|
|
1692
|
+
_auth_settings: List[str] = [
|
|
1693
|
+
'BearerAuth'
|
|
1694
|
+
]
|
|
1695
|
+
|
|
1696
|
+
return self.api_client.param_serialize(
|
|
1697
|
+
method='PUT',
|
|
1698
|
+
resource_path='/v1/datasets/{id}',
|
|
1699
|
+
path_params=_path_params,
|
|
1700
|
+
query_params=_query_params,
|
|
1701
|
+
header_params=_header_params,
|
|
1702
|
+
body=_body_params,
|
|
1703
|
+
post_params=_form_params,
|
|
1704
|
+
files=_files,
|
|
1705
|
+
auth_settings=_auth_settings,
|
|
1706
|
+
collection_formats=_collection_formats,
|
|
1707
|
+
_host=_host,
|
|
1708
|
+
_request_auth=_request_auth
|
|
1709
|
+
)
|
|
1710
|
+
|
|
1711
|
+
|