rapidata 1.7.0__py3-none-any.whl → 1.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/api_client/__init__.py +6 -1
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/client_api.py +836 -0
- rapidata/api_client/api/identity_api.py +305 -49
- rapidata/api_client/api/order_api.py +7 -7
- rapidata/api_client/models/__init__.py +5 -1
- rapidata/api_client/models/clients_query_result.py +107 -0
- rapidata/api_client/models/clients_query_result_paged_result.py +105 -0
- rapidata/api_client/models/create_bridge_token_result.py +89 -0
- rapidata/api_client/models/create_client_model.py +1 -1
- rapidata/api_client/models/problem_details.py +133 -0
- rapidata/api_client/models/query_model.py +8 -8
- rapidata/api_client/models/read_bridge_token_keys_result.py +99 -0
- rapidata/api_client_README.md +10 -2
- rapidata/rapidata_client/assets/media_asset.py +19 -0
- rapidata/rapidata_client/dataset/rapidata_dataset.py +8 -7
- {rapidata-1.7.0.dist-info → rapidata-1.7.1.dist-info}/METADATA +1 -1
- {rapidata-1.7.0.dist-info → rapidata-1.7.1.dist-info}/RECORD +20 -14
- {rapidata-1.7.0.dist-info → rapidata-1.7.1.dist-info}/LICENSE +0 -0
- {rapidata-1.7.0.dist-info → rapidata-1.7.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,836 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from rapidata.api_client.models.clients_query_result_paged_result import ClientsQueryResultPagedResult
|
|
23
|
+
from rapidata.api_client.models.create_client_model import CreateClientModel
|
|
24
|
+
from rapidata.api_client.models.create_client_result import CreateClientResult
|
|
25
|
+
from rapidata.api_client.models.query_model import QueryModel
|
|
26
|
+
|
|
27
|
+
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from rapidata.api_client.api_response import ApiResponse
|
|
29
|
+
from rapidata.api_client.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ClientApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
def client_client_id_delete(
|
|
47
|
+
self,
|
|
48
|
+
client_id: Annotated[StrictStr, Field(description="The id of the client to delete.")],
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> None:
|
|
62
|
+
"""Deletes a customers client.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param client_id: The id of the client to delete. (required)
|
|
66
|
+
:type client_id: str
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._client_client_id_delete_serialize(
|
|
90
|
+
client_id=client_id,
|
|
91
|
+
_request_auth=_request_auth,
|
|
92
|
+
_content_type=_content_type,
|
|
93
|
+
_headers=_headers,
|
|
94
|
+
_host_index=_host_index
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
+
'204': None,
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def client_client_id_delete_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
client_id: Annotated[StrictStr, Field(description="The id of the client to delete.")],
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[None]:
|
|
128
|
+
"""Deletes a customers client.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param client_id: The id of the client to delete. (required)
|
|
132
|
+
:type client_id: 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._client_client_id_delete_serialize(
|
|
156
|
+
client_id=client_id,
|
|
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
|
+
'204': None,
|
|
165
|
+
}
|
|
166
|
+
response_data = self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
170
|
+
response_data.read()
|
|
171
|
+
return self.api_client.response_deserialize(
|
|
172
|
+
response_data=response_data,
|
|
173
|
+
response_types_map=_response_types_map,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@validate_call
|
|
178
|
+
def client_client_id_delete_without_preload_content(
|
|
179
|
+
self,
|
|
180
|
+
client_id: Annotated[StrictStr, Field(description="The id of the client to delete.")],
|
|
181
|
+
_request_timeout: Union[
|
|
182
|
+
None,
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Tuple[
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
187
|
+
]
|
|
188
|
+
] = None,
|
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
|
+
) -> RESTResponseType:
|
|
194
|
+
"""Deletes a customers client.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param client_id: The id of the client to delete. (required)
|
|
198
|
+
:type client_id: str
|
|
199
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
200
|
+
number provided, it will be total request
|
|
201
|
+
timeout. It can also be a pair (tuple) of
|
|
202
|
+
(connection, read) timeouts.
|
|
203
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
204
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
205
|
+
request; this effectively ignores the
|
|
206
|
+
authentication in the spec for a single request.
|
|
207
|
+
:type _request_auth: dict, optional
|
|
208
|
+
:param _content_type: force content-type for the request.
|
|
209
|
+
:type _content_type: str, Optional
|
|
210
|
+
:param _headers: set to override the headers for a single
|
|
211
|
+
request; this effectively ignores the headers
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _headers: dict, optional
|
|
214
|
+
:param _host_index: set to override the host_index for a single
|
|
215
|
+
request; this effectively ignores the host_index
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _host_index: int, optional
|
|
218
|
+
:return: Returns the result object.
|
|
219
|
+
""" # noqa: E501
|
|
220
|
+
|
|
221
|
+
_param = self._client_client_id_delete_serialize(
|
|
222
|
+
client_id=client_id,
|
|
223
|
+
_request_auth=_request_auth,
|
|
224
|
+
_content_type=_content_type,
|
|
225
|
+
_headers=_headers,
|
|
226
|
+
_host_index=_host_index
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
230
|
+
'204': None,
|
|
231
|
+
}
|
|
232
|
+
response_data = self.api_client.call_api(
|
|
233
|
+
*_param,
|
|
234
|
+
_request_timeout=_request_timeout
|
|
235
|
+
)
|
|
236
|
+
return response_data.response
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _client_client_id_delete_serialize(
|
|
240
|
+
self,
|
|
241
|
+
client_id,
|
|
242
|
+
_request_auth,
|
|
243
|
+
_content_type,
|
|
244
|
+
_headers,
|
|
245
|
+
_host_index,
|
|
246
|
+
) -> RequestSerialized:
|
|
247
|
+
|
|
248
|
+
_host = None
|
|
249
|
+
|
|
250
|
+
_collection_formats: Dict[str, str] = {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
_path_params: Dict[str, str] = {}
|
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
260
|
+
_body_params: Optional[bytes] = None
|
|
261
|
+
|
|
262
|
+
# process the path parameters
|
|
263
|
+
if client_id is not None:
|
|
264
|
+
_path_params['clientId'] = client_id
|
|
265
|
+
# process the query parameters
|
|
266
|
+
# process the header parameters
|
|
267
|
+
# process the form parameters
|
|
268
|
+
# process the body parameter
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# authentication setting
|
|
274
|
+
_auth_settings: List[str] = [
|
|
275
|
+
'bearer',
|
|
276
|
+
'oauth2'
|
|
277
|
+
]
|
|
278
|
+
|
|
279
|
+
return self.api_client.param_serialize(
|
|
280
|
+
method='DELETE',
|
|
281
|
+
resource_path='/Client/{clientId}',
|
|
282
|
+
path_params=_path_params,
|
|
283
|
+
query_params=_query_params,
|
|
284
|
+
header_params=_header_params,
|
|
285
|
+
body=_body_params,
|
|
286
|
+
post_params=_form_params,
|
|
287
|
+
files=_files,
|
|
288
|
+
auth_settings=_auth_settings,
|
|
289
|
+
collection_formats=_collection_formats,
|
|
290
|
+
_host=_host,
|
|
291
|
+
_request_auth=_request_auth
|
|
292
|
+
)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
@validate_call
|
|
298
|
+
def client_post(
|
|
299
|
+
self,
|
|
300
|
+
create_client_model: Annotated[Optional[CreateClientModel], Field(description="The model for creating a new client.")] = None,
|
|
301
|
+
_request_timeout: Union[
|
|
302
|
+
None,
|
|
303
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
304
|
+
Tuple[
|
|
305
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
306
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
307
|
+
]
|
|
308
|
+
] = None,
|
|
309
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
310
|
+
_content_type: Optional[StrictStr] = None,
|
|
311
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
312
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
313
|
+
) -> CreateClientResult:
|
|
314
|
+
"""Creates a new client for the current customer.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param create_client_model: The model for creating a new client.
|
|
318
|
+
:type create_client_model: CreateClientModel
|
|
319
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
320
|
+
number provided, it will be total request
|
|
321
|
+
timeout. It can also be a pair (tuple) of
|
|
322
|
+
(connection, read) timeouts.
|
|
323
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
324
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
325
|
+
request; this effectively ignores the
|
|
326
|
+
authentication in the spec for a single request.
|
|
327
|
+
:type _request_auth: dict, optional
|
|
328
|
+
:param _content_type: force content-type for the request.
|
|
329
|
+
:type _content_type: str, Optional
|
|
330
|
+
:param _headers: set to override the headers for a single
|
|
331
|
+
request; this effectively ignores the headers
|
|
332
|
+
in the spec for a single request.
|
|
333
|
+
:type _headers: dict, optional
|
|
334
|
+
:param _host_index: set to override the host_index for a single
|
|
335
|
+
request; this effectively ignores the host_index
|
|
336
|
+
in the spec for a single request.
|
|
337
|
+
:type _host_index: int, optional
|
|
338
|
+
:return: Returns the result object.
|
|
339
|
+
""" # noqa: E501
|
|
340
|
+
|
|
341
|
+
_param = self._client_post_serialize(
|
|
342
|
+
create_client_model=create_client_model,
|
|
343
|
+
_request_auth=_request_auth,
|
|
344
|
+
_content_type=_content_type,
|
|
345
|
+
_headers=_headers,
|
|
346
|
+
_host_index=_host_index
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
350
|
+
'200': "CreateClientResult",
|
|
351
|
+
}
|
|
352
|
+
response_data = self.api_client.call_api(
|
|
353
|
+
*_param,
|
|
354
|
+
_request_timeout=_request_timeout
|
|
355
|
+
)
|
|
356
|
+
response_data.read()
|
|
357
|
+
return self.api_client.response_deserialize(
|
|
358
|
+
response_data=response_data,
|
|
359
|
+
response_types_map=_response_types_map,
|
|
360
|
+
).data
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
@validate_call
|
|
364
|
+
def client_post_with_http_info(
|
|
365
|
+
self,
|
|
366
|
+
create_client_model: Annotated[Optional[CreateClientModel], Field(description="The model for creating a new client.")] = None,
|
|
367
|
+
_request_timeout: Union[
|
|
368
|
+
None,
|
|
369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
+
Tuple[
|
|
371
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
372
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
373
|
+
]
|
|
374
|
+
] = None,
|
|
375
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
376
|
+
_content_type: Optional[StrictStr] = None,
|
|
377
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
378
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
379
|
+
) -> ApiResponse[CreateClientResult]:
|
|
380
|
+
"""Creates a new client for the current customer.
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
:param create_client_model: The model for creating a new client.
|
|
384
|
+
:type create_client_model: CreateClientModel
|
|
385
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
386
|
+
number provided, it will be total request
|
|
387
|
+
timeout. It can also be a pair (tuple) of
|
|
388
|
+
(connection, read) timeouts.
|
|
389
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
390
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
391
|
+
request; this effectively ignores the
|
|
392
|
+
authentication in the spec for a single request.
|
|
393
|
+
:type _request_auth: dict, optional
|
|
394
|
+
:param _content_type: force content-type for the request.
|
|
395
|
+
:type _content_type: str, Optional
|
|
396
|
+
:param _headers: set to override the headers for a single
|
|
397
|
+
request; this effectively ignores the headers
|
|
398
|
+
in the spec for a single request.
|
|
399
|
+
:type _headers: dict, optional
|
|
400
|
+
:param _host_index: set to override the host_index for a single
|
|
401
|
+
request; this effectively ignores the host_index
|
|
402
|
+
in the spec for a single request.
|
|
403
|
+
:type _host_index: int, optional
|
|
404
|
+
:return: Returns the result object.
|
|
405
|
+
""" # noqa: E501
|
|
406
|
+
|
|
407
|
+
_param = self._client_post_serialize(
|
|
408
|
+
create_client_model=create_client_model,
|
|
409
|
+
_request_auth=_request_auth,
|
|
410
|
+
_content_type=_content_type,
|
|
411
|
+
_headers=_headers,
|
|
412
|
+
_host_index=_host_index
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
416
|
+
'200': "CreateClientResult",
|
|
417
|
+
}
|
|
418
|
+
response_data = self.api_client.call_api(
|
|
419
|
+
*_param,
|
|
420
|
+
_request_timeout=_request_timeout
|
|
421
|
+
)
|
|
422
|
+
response_data.read()
|
|
423
|
+
return self.api_client.response_deserialize(
|
|
424
|
+
response_data=response_data,
|
|
425
|
+
response_types_map=_response_types_map,
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
@validate_call
|
|
430
|
+
def client_post_without_preload_content(
|
|
431
|
+
self,
|
|
432
|
+
create_client_model: Annotated[Optional[CreateClientModel], Field(description="The model for creating a new client.")] = None,
|
|
433
|
+
_request_timeout: Union[
|
|
434
|
+
None,
|
|
435
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
436
|
+
Tuple[
|
|
437
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
438
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
439
|
+
]
|
|
440
|
+
] = None,
|
|
441
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
442
|
+
_content_type: Optional[StrictStr] = None,
|
|
443
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
444
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
445
|
+
) -> RESTResponseType:
|
|
446
|
+
"""Creates a new client for the current customer.
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
:param create_client_model: The model for creating a new client.
|
|
450
|
+
:type create_client_model: CreateClientModel
|
|
451
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
452
|
+
number provided, it will be total request
|
|
453
|
+
timeout. It can also be a pair (tuple) of
|
|
454
|
+
(connection, read) timeouts.
|
|
455
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
456
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
457
|
+
request; this effectively ignores the
|
|
458
|
+
authentication in the spec for a single request.
|
|
459
|
+
:type _request_auth: dict, optional
|
|
460
|
+
:param _content_type: force content-type for the request.
|
|
461
|
+
:type _content_type: str, Optional
|
|
462
|
+
:param _headers: set to override the headers for a single
|
|
463
|
+
request; this effectively ignores the headers
|
|
464
|
+
in the spec for a single request.
|
|
465
|
+
:type _headers: dict, optional
|
|
466
|
+
:param _host_index: set to override the host_index for a single
|
|
467
|
+
request; this effectively ignores the host_index
|
|
468
|
+
in the spec for a single request.
|
|
469
|
+
:type _host_index: int, optional
|
|
470
|
+
:return: Returns the result object.
|
|
471
|
+
""" # noqa: E501
|
|
472
|
+
|
|
473
|
+
_param = self._client_post_serialize(
|
|
474
|
+
create_client_model=create_client_model,
|
|
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': "CreateClientResult",
|
|
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 _client_post_serialize(
|
|
492
|
+
self,
|
|
493
|
+
create_client_model,
|
|
494
|
+
_request_auth,
|
|
495
|
+
_content_type,
|
|
496
|
+
_headers,
|
|
497
|
+
_host_index,
|
|
498
|
+
) -> RequestSerialized:
|
|
499
|
+
|
|
500
|
+
_host = None
|
|
501
|
+
|
|
502
|
+
_collection_formats: Dict[str, str] = {
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
_path_params: Dict[str, str] = {}
|
|
506
|
+
_query_params: List[Tuple[str, str]] = []
|
|
507
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
508
|
+
_form_params: List[Tuple[str, str]] = []
|
|
509
|
+
_files: Dict[
|
|
510
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
511
|
+
] = {}
|
|
512
|
+
_body_params: Optional[bytes] = None
|
|
513
|
+
|
|
514
|
+
# process the path parameters
|
|
515
|
+
# process the query parameters
|
|
516
|
+
# process the header parameters
|
|
517
|
+
# process the form parameters
|
|
518
|
+
# process the body parameter
|
|
519
|
+
if create_client_model is not None:
|
|
520
|
+
_body_params = create_client_model
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
# set the HTTP header `Accept`
|
|
524
|
+
if 'Accept' not in _header_params:
|
|
525
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
526
|
+
[
|
|
527
|
+
'text/plain',
|
|
528
|
+
'application/json',
|
|
529
|
+
'text/json'
|
|
530
|
+
]
|
|
531
|
+
)
|
|
532
|
+
|
|
533
|
+
# set the HTTP header `Content-Type`
|
|
534
|
+
if _content_type:
|
|
535
|
+
_header_params['Content-Type'] = _content_type
|
|
536
|
+
else:
|
|
537
|
+
_default_content_type = (
|
|
538
|
+
self.api_client.select_header_content_type(
|
|
539
|
+
[
|
|
540
|
+
'application/json',
|
|
541
|
+
'text/json',
|
|
542
|
+
'application/*+json'
|
|
543
|
+
]
|
|
544
|
+
)
|
|
545
|
+
)
|
|
546
|
+
if _default_content_type is not None:
|
|
547
|
+
_header_params['Content-Type'] = _default_content_type
|
|
548
|
+
|
|
549
|
+
# authentication setting
|
|
550
|
+
_auth_settings: List[str] = [
|
|
551
|
+
'bearer',
|
|
552
|
+
'oauth2'
|
|
553
|
+
]
|
|
554
|
+
|
|
555
|
+
return self.api_client.param_serialize(
|
|
556
|
+
method='POST',
|
|
557
|
+
resource_path='/Client',
|
|
558
|
+
path_params=_path_params,
|
|
559
|
+
query_params=_query_params,
|
|
560
|
+
header_params=_header_params,
|
|
561
|
+
body=_body_params,
|
|
562
|
+
post_params=_form_params,
|
|
563
|
+
files=_files,
|
|
564
|
+
auth_settings=_auth_settings,
|
|
565
|
+
collection_formats=_collection_formats,
|
|
566
|
+
_host=_host,
|
|
567
|
+
_request_auth=_request_auth
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
@validate_call
|
|
574
|
+
def client_query_get(
|
|
575
|
+
self,
|
|
576
|
+
request: Optional[QueryModel] = None,
|
|
577
|
+
_request_timeout: Union[
|
|
578
|
+
None,
|
|
579
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
580
|
+
Tuple[
|
|
581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
582
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
583
|
+
]
|
|
584
|
+
] = None,
|
|
585
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
586
|
+
_content_type: Optional[StrictStr] = None,
|
|
587
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
588
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
589
|
+
) -> ClientsQueryResultPagedResult:
|
|
590
|
+
"""Gets the clients for the current customer.
|
|
591
|
+
|
|
592
|
+
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
593
|
+
|
|
594
|
+
:param request:
|
|
595
|
+
:type request: QueryModel
|
|
596
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
597
|
+
number provided, it will be total request
|
|
598
|
+
timeout. It can also be a pair (tuple) of
|
|
599
|
+
(connection, read) timeouts.
|
|
600
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
601
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
602
|
+
request; this effectively ignores the
|
|
603
|
+
authentication in the spec for a single request.
|
|
604
|
+
:type _request_auth: dict, optional
|
|
605
|
+
:param _content_type: force content-type for the request.
|
|
606
|
+
:type _content_type: str, Optional
|
|
607
|
+
:param _headers: set to override the headers for a single
|
|
608
|
+
request; this effectively ignores the headers
|
|
609
|
+
in the spec for a single request.
|
|
610
|
+
:type _headers: dict, optional
|
|
611
|
+
:param _host_index: set to override the host_index for a single
|
|
612
|
+
request; this effectively ignores the host_index
|
|
613
|
+
in the spec for a single request.
|
|
614
|
+
:type _host_index: int, optional
|
|
615
|
+
:return: Returns the result object.
|
|
616
|
+
""" # noqa: E501
|
|
617
|
+
|
|
618
|
+
_param = self._client_query_get_serialize(
|
|
619
|
+
request=request,
|
|
620
|
+
_request_auth=_request_auth,
|
|
621
|
+
_content_type=_content_type,
|
|
622
|
+
_headers=_headers,
|
|
623
|
+
_host_index=_host_index
|
|
624
|
+
)
|
|
625
|
+
|
|
626
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
627
|
+
'200': "ClientsQueryResultPagedResult",
|
|
628
|
+
}
|
|
629
|
+
response_data = self.api_client.call_api(
|
|
630
|
+
*_param,
|
|
631
|
+
_request_timeout=_request_timeout
|
|
632
|
+
)
|
|
633
|
+
response_data.read()
|
|
634
|
+
return self.api_client.response_deserialize(
|
|
635
|
+
response_data=response_data,
|
|
636
|
+
response_types_map=_response_types_map,
|
|
637
|
+
).data
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
@validate_call
|
|
641
|
+
def client_query_get_with_http_info(
|
|
642
|
+
self,
|
|
643
|
+
request: Optional[QueryModel] = None,
|
|
644
|
+
_request_timeout: Union[
|
|
645
|
+
None,
|
|
646
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
647
|
+
Tuple[
|
|
648
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
649
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
650
|
+
]
|
|
651
|
+
] = None,
|
|
652
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
653
|
+
_content_type: Optional[StrictStr] = None,
|
|
654
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
655
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
656
|
+
) -> ApiResponse[ClientsQueryResultPagedResult]:
|
|
657
|
+
"""Gets the clients for the current customer.
|
|
658
|
+
|
|
659
|
+
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
660
|
+
|
|
661
|
+
:param request:
|
|
662
|
+
:type request: QueryModel
|
|
663
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
664
|
+
number provided, it will be total request
|
|
665
|
+
timeout. It can also be a pair (tuple) of
|
|
666
|
+
(connection, read) timeouts.
|
|
667
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
668
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
669
|
+
request; this effectively ignores the
|
|
670
|
+
authentication in the spec for a single request.
|
|
671
|
+
:type _request_auth: dict, optional
|
|
672
|
+
:param _content_type: force content-type for the request.
|
|
673
|
+
:type _content_type: str, Optional
|
|
674
|
+
:param _headers: set to override the headers for a single
|
|
675
|
+
request; this effectively ignores the headers
|
|
676
|
+
in the spec for a single request.
|
|
677
|
+
:type _headers: dict, optional
|
|
678
|
+
:param _host_index: set to override the host_index for a single
|
|
679
|
+
request; this effectively ignores the host_index
|
|
680
|
+
in the spec for a single request.
|
|
681
|
+
:type _host_index: int, optional
|
|
682
|
+
:return: Returns the result object.
|
|
683
|
+
""" # noqa: E501
|
|
684
|
+
|
|
685
|
+
_param = self._client_query_get_serialize(
|
|
686
|
+
request=request,
|
|
687
|
+
_request_auth=_request_auth,
|
|
688
|
+
_content_type=_content_type,
|
|
689
|
+
_headers=_headers,
|
|
690
|
+
_host_index=_host_index
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
694
|
+
'200': "ClientsQueryResultPagedResult",
|
|
695
|
+
}
|
|
696
|
+
response_data = self.api_client.call_api(
|
|
697
|
+
*_param,
|
|
698
|
+
_request_timeout=_request_timeout
|
|
699
|
+
)
|
|
700
|
+
response_data.read()
|
|
701
|
+
return self.api_client.response_deserialize(
|
|
702
|
+
response_data=response_data,
|
|
703
|
+
response_types_map=_response_types_map,
|
|
704
|
+
)
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
@validate_call
|
|
708
|
+
def client_query_get_without_preload_content(
|
|
709
|
+
self,
|
|
710
|
+
request: Optional[QueryModel] = None,
|
|
711
|
+
_request_timeout: Union[
|
|
712
|
+
None,
|
|
713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
714
|
+
Tuple[
|
|
715
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
716
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
717
|
+
]
|
|
718
|
+
] = None,
|
|
719
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
720
|
+
_content_type: Optional[StrictStr] = None,
|
|
721
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
722
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
723
|
+
) -> RESTResponseType:
|
|
724
|
+
"""Gets the clients for the current customer.
|
|
725
|
+
|
|
726
|
+
A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
|
|
727
|
+
|
|
728
|
+
:param request:
|
|
729
|
+
:type request: QueryModel
|
|
730
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
731
|
+
number provided, it will be total request
|
|
732
|
+
timeout. It can also be a pair (tuple) of
|
|
733
|
+
(connection, read) timeouts.
|
|
734
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
735
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
736
|
+
request; this effectively ignores the
|
|
737
|
+
authentication in the spec for a single request.
|
|
738
|
+
:type _request_auth: dict, optional
|
|
739
|
+
:param _content_type: force content-type for the request.
|
|
740
|
+
:type _content_type: str, Optional
|
|
741
|
+
:param _headers: set to override the headers for a single
|
|
742
|
+
request; this effectively ignores the headers
|
|
743
|
+
in the spec for a single request.
|
|
744
|
+
:type _headers: dict, optional
|
|
745
|
+
:param _host_index: set to override the host_index for a single
|
|
746
|
+
request; this effectively ignores the host_index
|
|
747
|
+
in the spec for a single request.
|
|
748
|
+
:type _host_index: int, optional
|
|
749
|
+
:return: Returns the result object.
|
|
750
|
+
""" # noqa: E501
|
|
751
|
+
|
|
752
|
+
_param = self._client_query_get_serialize(
|
|
753
|
+
request=request,
|
|
754
|
+
_request_auth=_request_auth,
|
|
755
|
+
_content_type=_content_type,
|
|
756
|
+
_headers=_headers,
|
|
757
|
+
_host_index=_host_index
|
|
758
|
+
)
|
|
759
|
+
|
|
760
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
761
|
+
'200': "ClientsQueryResultPagedResult",
|
|
762
|
+
}
|
|
763
|
+
response_data = self.api_client.call_api(
|
|
764
|
+
*_param,
|
|
765
|
+
_request_timeout=_request_timeout
|
|
766
|
+
)
|
|
767
|
+
return response_data.response
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
def _client_query_get_serialize(
|
|
771
|
+
self,
|
|
772
|
+
request,
|
|
773
|
+
_request_auth,
|
|
774
|
+
_content_type,
|
|
775
|
+
_headers,
|
|
776
|
+
_host_index,
|
|
777
|
+
) -> RequestSerialized:
|
|
778
|
+
|
|
779
|
+
_host = None
|
|
780
|
+
|
|
781
|
+
_collection_formats: Dict[str, str] = {
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
_path_params: Dict[str, str] = {}
|
|
785
|
+
_query_params: List[Tuple[str, str]] = []
|
|
786
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
787
|
+
_form_params: List[Tuple[str, str]] = []
|
|
788
|
+
_files: Dict[
|
|
789
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
790
|
+
] = {}
|
|
791
|
+
_body_params: Optional[bytes] = None
|
|
792
|
+
|
|
793
|
+
# process the path parameters
|
|
794
|
+
# process the query parameters
|
|
795
|
+
if request is not None:
|
|
796
|
+
|
|
797
|
+
_query_params.append(('request', request))
|
|
798
|
+
|
|
799
|
+
# process the header parameters
|
|
800
|
+
# process the form parameters
|
|
801
|
+
# process the body parameter
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
# set the HTTP header `Accept`
|
|
805
|
+
if 'Accept' not in _header_params:
|
|
806
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
807
|
+
[
|
|
808
|
+
'text/plain',
|
|
809
|
+
'application/json',
|
|
810
|
+
'text/json'
|
|
811
|
+
]
|
|
812
|
+
)
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
# authentication setting
|
|
816
|
+
_auth_settings: List[str] = [
|
|
817
|
+
'bearer',
|
|
818
|
+
'oauth2'
|
|
819
|
+
]
|
|
820
|
+
|
|
821
|
+
return self.api_client.param_serialize(
|
|
822
|
+
method='GET',
|
|
823
|
+
resource_path='/Client/Query',
|
|
824
|
+
path_params=_path_params,
|
|
825
|
+
query_params=_query_params,
|
|
826
|
+
header_params=_header_params,
|
|
827
|
+
body=_body_params,
|
|
828
|
+
post_params=_form_params,
|
|
829
|
+
files=_files,
|
|
830
|
+
auth_settings=_auth_settings,
|
|
831
|
+
collection_formats=_collection_formats,
|
|
832
|
+
_host=_host,
|
|
833
|
+
_request_auth=_request_auth
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
|