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,549 @@
|
|
|
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_extensions import Annotated
|
|
21
|
+
from hotdata.models.connection_type_detail import ConnectionTypeDetail
|
|
22
|
+
from hotdata.models.list_connection_types_response import ListConnectionTypesResponse
|
|
23
|
+
|
|
24
|
+
from hotdata.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from hotdata.api_response import ApiResponse
|
|
26
|
+
from hotdata.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ConnectionTypesApi:
|
|
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_connection_type(
|
|
44
|
+
self,
|
|
45
|
+
name: Annotated[StrictStr, Field(description="Connection type name (e.g. postgres, mysql, snowflake)")],
|
|
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
|
+
) -> ConnectionTypeDetail:
|
|
59
|
+
"""Get connection type details
|
|
60
|
+
|
|
61
|
+
Get configuration schema and authentication requirements for a specific connection type.
|
|
62
|
+
|
|
63
|
+
:param name: Connection type name (e.g. postgres, mysql, snowflake) (required)
|
|
64
|
+
:type name: str
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._get_connection_type_serialize(
|
|
88
|
+
name=name,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'200': "ConnectionTypeDetail",
|
|
97
|
+
'404': "ApiErrorResponse",
|
|
98
|
+
}
|
|
99
|
+
response_data = self.api_client.call_api(
|
|
100
|
+
*_param,
|
|
101
|
+
_request_timeout=_request_timeout
|
|
102
|
+
)
|
|
103
|
+
response_data.read()
|
|
104
|
+
return self.api_client.response_deserialize(
|
|
105
|
+
response_data=response_data,
|
|
106
|
+
response_types_map=_response_types_map,
|
|
107
|
+
).data
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
@validate_call
|
|
111
|
+
def get_connection_type_with_http_info(
|
|
112
|
+
self,
|
|
113
|
+
name: Annotated[StrictStr, Field(description="Connection type name (e.g. postgres, mysql, snowflake)")],
|
|
114
|
+
_request_timeout: Union[
|
|
115
|
+
None,
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Tuple[
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
120
|
+
]
|
|
121
|
+
] = None,
|
|
122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_content_type: Optional[StrictStr] = None,
|
|
124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
+
) -> ApiResponse[ConnectionTypeDetail]:
|
|
127
|
+
"""Get connection type details
|
|
128
|
+
|
|
129
|
+
Get configuration schema and authentication requirements for a specific connection type.
|
|
130
|
+
|
|
131
|
+
:param name: Connection type name (e.g. postgres, mysql, snowflake) (required)
|
|
132
|
+
:type name: str
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._get_connection_type_serialize(
|
|
156
|
+
name=name,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': "ConnectionTypeDetail",
|
|
165
|
+
'404': "ApiErrorResponse",
|
|
166
|
+
}
|
|
167
|
+
response_data = self.api_client.call_api(
|
|
168
|
+
*_param,
|
|
169
|
+
_request_timeout=_request_timeout
|
|
170
|
+
)
|
|
171
|
+
response_data.read()
|
|
172
|
+
return self.api_client.response_deserialize(
|
|
173
|
+
response_data=response_data,
|
|
174
|
+
response_types_map=_response_types_map,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
@validate_call
|
|
179
|
+
def get_connection_type_without_preload_content(
|
|
180
|
+
self,
|
|
181
|
+
name: Annotated[StrictStr, Field(description="Connection type name (e.g. postgres, mysql, snowflake)")],
|
|
182
|
+
_request_timeout: Union[
|
|
183
|
+
None,
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
+
Tuple[
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
188
|
+
]
|
|
189
|
+
] = None,
|
|
190
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
191
|
+
_content_type: Optional[StrictStr] = None,
|
|
192
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
194
|
+
) -> RESTResponseType:
|
|
195
|
+
"""Get connection type details
|
|
196
|
+
|
|
197
|
+
Get configuration schema and authentication requirements for a specific connection type.
|
|
198
|
+
|
|
199
|
+
:param name: Connection type name (e.g. postgres, mysql, snowflake) (required)
|
|
200
|
+
:type name: str
|
|
201
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
202
|
+
number provided, it will be total request
|
|
203
|
+
timeout. It can also be a pair (tuple) of
|
|
204
|
+
(connection, read) timeouts.
|
|
205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
207
|
+
request; this effectively ignores the
|
|
208
|
+
authentication in the spec for a single request.
|
|
209
|
+
:type _request_auth: dict, optional
|
|
210
|
+
:param _content_type: force content-type for the request.
|
|
211
|
+
:type _content_type: str, Optional
|
|
212
|
+
:param _headers: set to override the headers for a single
|
|
213
|
+
request; this effectively ignores the headers
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _headers: dict, optional
|
|
216
|
+
:param _host_index: set to override the host_index for a single
|
|
217
|
+
request; this effectively ignores the host_index
|
|
218
|
+
in the spec for a single request.
|
|
219
|
+
:type _host_index: int, optional
|
|
220
|
+
:return: Returns the result object.
|
|
221
|
+
""" # noqa: E501
|
|
222
|
+
|
|
223
|
+
_param = self._get_connection_type_serialize(
|
|
224
|
+
name=name,
|
|
225
|
+
_request_auth=_request_auth,
|
|
226
|
+
_content_type=_content_type,
|
|
227
|
+
_headers=_headers,
|
|
228
|
+
_host_index=_host_index
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
+
'200': "ConnectionTypeDetail",
|
|
233
|
+
'404': "ApiErrorResponse",
|
|
234
|
+
}
|
|
235
|
+
response_data = self.api_client.call_api(
|
|
236
|
+
*_param,
|
|
237
|
+
_request_timeout=_request_timeout
|
|
238
|
+
)
|
|
239
|
+
return response_data.response
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def _get_connection_type_serialize(
|
|
243
|
+
self,
|
|
244
|
+
name,
|
|
245
|
+
_request_auth,
|
|
246
|
+
_content_type,
|
|
247
|
+
_headers,
|
|
248
|
+
_host_index,
|
|
249
|
+
) -> RequestSerialized:
|
|
250
|
+
|
|
251
|
+
_host = None
|
|
252
|
+
|
|
253
|
+
_collection_formats: Dict[str, str] = {
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
_path_params: Dict[str, str] = {}
|
|
257
|
+
_query_params: List[Tuple[str, str]] = []
|
|
258
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
259
|
+
_form_params: List[Tuple[str, str]] = []
|
|
260
|
+
_files: Dict[
|
|
261
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
262
|
+
] = {}
|
|
263
|
+
_body_params: Optional[bytes] = None
|
|
264
|
+
|
|
265
|
+
# process the path parameters
|
|
266
|
+
if name is not None:
|
|
267
|
+
_path_params['name'] = name
|
|
268
|
+
# process the query parameters
|
|
269
|
+
# process the header parameters
|
|
270
|
+
# process the form parameters
|
|
271
|
+
# process the body parameter
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
# set the HTTP header `Accept`
|
|
275
|
+
if 'Accept' not in _header_params:
|
|
276
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
277
|
+
[
|
|
278
|
+
'application/json'
|
|
279
|
+
]
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# authentication setting
|
|
284
|
+
_auth_settings: List[str] = [
|
|
285
|
+
'BearerAuth'
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
return self.api_client.param_serialize(
|
|
289
|
+
method='GET',
|
|
290
|
+
resource_path='/v1/connection-types/{name}',
|
|
291
|
+
path_params=_path_params,
|
|
292
|
+
query_params=_query_params,
|
|
293
|
+
header_params=_header_params,
|
|
294
|
+
body=_body_params,
|
|
295
|
+
post_params=_form_params,
|
|
296
|
+
files=_files,
|
|
297
|
+
auth_settings=_auth_settings,
|
|
298
|
+
collection_formats=_collection_formats,
|
|
299
|
+
_host=_host,
|
|
300
|
+
_request_auth=_request_auth
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
@validate_call
|
|
307
|
+
def list_connection_types(
|
|
308
|
+
self,
|
|
309
|
+
_request_timeout: Union[
|
|
310
|
+
None,
|
|
311
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
312
|
+
Tuple[
|
|
313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
314
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
315
|
+
]
|
|
316
|
+
] = None,
|
|
317
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
318
|
+
_content_type: Optional[StrictStr] = None,
|
|
319
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
320
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
321
|
+
) -> ListConnectionTypesResponse:
|
|
322
|
+
"""List connection types
|
|
323
|
+
|
|
324
|
+
List all available connection types, including native sources and FlightDLT services.
|
|
325
|
+
|
|
326
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
327
|
+
number provided, it will be total request
|
|
328
|
+
timeout. It can also be a pair (tuple) of
|
|
329
|
+
(connection, read) timeouts.
|
|
330
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
331
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
332
|
+
request; this effectively ignores the
|
|
333
|
+
authentication in the spec for a single request.
|
|
334
|
+
:type _request_auth: dict, optional
|
|
335
|
+
:param _content_type: force content-type for the request.
|
|
336
|
+
:type _content_type: str, Optional
|
|
337
|
+
:param _headers: set to override the headers for a single
|
|
338
|
+
request; this effectively ignores the headers
|
|
339
|
+
in the spec for a single request.
|
|
340
|
+
:type _headers: dict, optional
|
|
341
|
+
:param _host_index: set to override the host_index for a single
|
|
342
|
+
request; this effectively ignores the host_index
|
|
343
|
+
in the spec for a single request.
|
|
344
|
+
:type _host_index: int, optional
|
|
345
|
+
:return: Returns the result object.
|
|
346
|
+
""" # noqa: E501
|
|
347
|
+
|
|
348
|
+
_param = self._list_connection_types_serialize(
|
|
349
|
+
_request_auth=_request_auth,
|
|
350
|
+
_content_type=_content_type,
|
|
351
|
+
_headers=_headers,
|
|
352
|
+
_host_index=_host_index
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
356
|
+
'200': "ListConnectionTypesResponse",
|
|
357
|
+
}
|
|
358
|
+
response_data = self.api_client.call_api(
|
|
359
|
+
*_param,
|
|
360
|
+
_request_timeout=_request_timeout
|
|
361
|
+
)
|
|
362
|
+
response_data.read()
|
|
363
|
+
return self.api_client.response_deserialize(
|
|
364
|
+
response_data=response_data,
|
|
365
|
+
response_types_map=_response_types_map,
|
|
366
|
+
).data
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
@validate_call
|
|
370
|
+
def list_connection_types_with_http_info(
|
|
371
|
+
self,
|
|
372
|
+
_request_timeout: Union[
|
|
373
|
+
None,
|
|
374
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
375
|
+
Tuple[
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
377
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
378
|
+
]
|
|
379
|
+
] = None,
|
|
380
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
381
|
+
_content_type: Optional[StrictStr] = None,
|
|
382
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
383
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
384
|
+
) -> ApiResponse[ListConnectionTypesResponse]:
|
|
385
|
+
"""List connection types
|
|
386
|
+
|
|
387
|
+
List all available connection types, including native sources and FlightDLT services.
|
|
388
|
+
|
|
389
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
390
|
+
number provided, it will be total request
|
|
391
|
+
timeout. It can also be a pair (tuple) of
|
|
392
|
+
(connection, read) timeouts.
|
|
393
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
394
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
395
|
+
request; this effectively ignores the
|
|
396
|
+
authentication in the spec for a single request.
|
|
397
|
+
:type _request_auth: dict, optional
|
|
398
|
+
:param _content_type: force content-type for the request.
|
|
399
|
+
:type _content_type: str, Optional
|
|
400
|
+
:param _headers: set to override the headers for a single
|
|
401
|
+
request; this effectively ignores the headers
|
|
402
|
+
in the spec for a single request.
|
|
403
|
+
:type _headers: dict, optional
|
|
404
|
+
:param _host_index: set to override the host_index for a single
|
|
405
|
+
request; this effectively ignores the host_index
|
|
406
|
+
in the spec for a single request.
|
|
407
|
+
:type _host_index: int, optional
|
|
408
|
+
:return: Returns the result object.
|
|
409
|
+
""" # noqa: E501
|
|
410
|
+
|
|
411
|
+
_param = self._list_connection_types_serialize(
|
|
412
|
+
_request_auth=_request_auth,
|
|
413
|
+
_content_type=_content_type,
|
|
414
|
+
_headers=_headers,
|
|
415
|
+
_host_index=_host_index
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
419
|
+
'200': "ListConnectionTypesResponse",
|
|
420
|
+
}
|
|
421
|
+
response_data = self.api_client.call_api(
|
|
422
|
+
*_param,
|
|
423
|
+
_request_timeout=_request_timeout
|
|
424
|
+
)
|
|
425
|
+
response_data.read()
|
|
426
|
+
return self.api_client.response_deserialize(
|
|
427
|
+
response_data=response_data,
|
|
428
|
+
response_types_map=_response_types_map,
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
@validate_call
|
|
433
|
+
def list_connection_types_without_preload_content(
|
|
434
|
+
self,
|
|
435
|
+
_request_timeout: Union[
|
|
436
|
+
None,
|
|
437
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
438
|
+
Tuple[
|
|
439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
440
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
441
|
+
]
|
|
442
|
+
] = None,
|
|
443
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
444
|
+
_content_type: Optional[StrictStr] = None,
|
|
445
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
446
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
447
|
+
) -> RESTResponseType:
|
|
448
|
+
"""List connection types
|
|
449
|
+
|
|
450
|
+
List all available connection types, including native sources and FlightDLT services.
|
|
451
|
+
|
|
452
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
453
|
+
number provided, it will be total request
|
|
454
|
+
timeout. It can also be a pair (tuple) of
|
|
455
|
+
(connection, read) timeouts.
|
|
456
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
457
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
458
|
+
request; this effectively ignores the
|
|
459
|
+
authentication in the spec for a single request.
|
|
460
|
+
:type _request_auth: dict, optional
|
|
461
|
+
:param _content_type: force content-type for the request.
|
|
462
|
+
:type _content_type: str, Optional
|
|
463
|
+
:param _headers: set to override the headers for a single
|
|
464
|
+
request; this effectively ignores the headers
|
|
465
|
+
in the spec for a single request.
|
|
466
|
+
:type _headers: dict, optional
|
|
467
|
+
:param _host_index: set to override the host_index for a single
|
|
468
|
+
request; this effectively ignores the host_index
|
|
469
|
+
in the spec for a single request.
|
|
470
|
+
:type _host_index: int, optional
|
|
471
|
+
:return: Returns the result object.
|
|
472
|
+
""" # noqa: E501
|
|
473
|
+
|
|
474
|
+
_param = self._list_connection_types_serialize(
|
|
475
|
+
_request_auth=_request_auth,
|
|
476
|
+
_content_type=_content_type,
|
|
477
|
+
_headers=_headers,
|
|
478
|
+
_host_index=_host_index
|
|
479
|
+
)
|
|
480
|
+
|
|
481
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
482
|
+
'200': "ListConnectionTypesResponse",
|
|
483
|
+
}
|
|
484
|
+
response_data = self.api_client.call_api(
|
|
485
|
+
*_param,
|
|
486
|
+
_request_timeout=_request_timeout
|
|
487
|
+
)
|
|
488
|
+
return response_data.response
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
def _list_connection_types_serialize(
|
|
492
|
+
self,
|
|
493
|
+
_request_auth,
|
|
494
|
+
_content_type,
|
|
495
|
+
_headers,
|
|
496
|
+
_host_index,
|
|
497
|
+
) -> RequestSerialized:
|
|
498
|
+
|
|
499
|
+
_host = None
|
|
500
|
+
|
|
501
|
+
_collection_formats: Dict[str, str] = {
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
_path_params: Dict[str, str] = {}
|
|
505
|
+
_query_params: List[Tuple[str, str]] = []
|
|
506
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
507
|
+
_form_params: List[Tuple[str, str]] = []
|
|
508
|
+
_files: Dict[
|
|
509
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
510
|
+
] = {}
|
|
511
|
+
_body_params: Optional[bytes] = None
|
|
512
|
+
|
|
513
|
+
# process the path parameters
|
|
514
|
+
# process the query parameters
|
|
515
|
+
# process the header parameters
|
|
516
|
+
# process the form parameters
|
|
517
|
+
# process the body parameter
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
# set the HTTP header `Accept`
|
|
521
|
+
if 'Accept' not in _header_params:
|
|
522
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
523
|
+
[
|
|
524
|
+
'application/json'
|
|
525
|
+
]
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
# authentication setting
|
|
530
|
+
_auth_settings: List[str] = [
|
|
531
|
+
'BearerAuth'
|
|
532
|
+
]
|
|
533
|
+
|
|
534
|
+
return self.api_client.param_serialize(
|
|
535
|
+
method='GET',
|
|
536
|
+
resource_path='/v1/connection-types',
|
|
537
|
+
path_params=_path_params,
|
|
538
|
+
query_params=_query_params,
|
|
539
|
+
header_params=_header_params,
|
|
540
|
+
body=_body_params,
|
|
541
|
+
post_params=_form_params,
|
|
542
|
+
files=_files,
|
|
543
|
+
auth_settings=_auth_settings,
|
|
544
|
+
collection_formats=_collection_formats,
|
|
545
|
+
_host=_host,
|
|
546
|
+
_request_auth=_request_auth
|
|
547
|
+
)
|
|
548
|
+
|
|
549
|
+
|