neurograph-core 1.202509071925__py3-none-any.whl → 1.202509160244__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.
- neurograph/v1/__init__.py +295 -43
- neurograph/v1/api/__init__.py +28 -2
- neurograph/v1/api/client_api.py +541 -0
- neurograph/v1/api/knowledge_api.py +2281 -124
- neurograph/v1/api/knowledge_extract_api.py +1798 -0
- neurograph/v1/api_client.py +4 -1
- neurograph/v1/models/__init__.py +215 -21
- neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
- neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
- neurograph/v1/models/{atlas_atlas_version_response.py → client_client_url_snapshot_row.py} +20 -22
- neurograph/v1/models/client_client_urls_response.py +3 -3
- neurograph/v1/models/{organizations_organization_set_atlas_response.py → client_probe.py} +22 -16
- neurograph/v1/models/client_probe_todo_row.py +89 -0
- neurograph/v1/models/client_trigger_probe_response.py +101 -0
- neurograph/v1/models/db_knowledge_customer.py +97 -0
- neurograph/v1/models/db_knowledge_order.py +177 -0
- neurograph/v1/models/db_knowledge_product.py +107 -0
- neurograph/v1/models/{atlas_atlas_version_upsert_request.py → db_knowledge_store.py} +16 -12
- neurograph/v1/models/knowledge_assertion.py +111 -0
- neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
- neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
- neurograph/v1/models/knowledge_assertion_query.py +99 -0
- neurograph/v1/models/{atlas_atlas_version_many_response.py → knowledge_assertion_response.py} +9 -13
- neurograph/v1/models/knowledge_customer_query.py +99 -0
- neurograph/v1/models/knowledge_customer_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
- neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
- neurograph/v1/models/{organizations_atlas_config.py → knowledge_enrichment_query.py} +19 -17
- neurograph/v1/models/{knowledge_knowledge_entity.py → knowledge_entity.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_request.py → knowledge_entity_create_request.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_create_response.py → knowledge_entity_create_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_extra.py → knowledge_entity_extra.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_get_many_response.py → knowledge_entity_get_many_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_in_db.py → knowledge_entity_in_db.py} +13 -13
- neurograph/v1/models/{knowledge_knowledge_entity_relations.py → knowledge_entity_relations.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema.py → knowledge_entity_schema.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_row.py → knowledge_entity_schema_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schema_upsert_request.py → knowledge_entity_schema_upsert_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_response.py → knowledge_entity_schemas_response.py} +7 -7
- neurograph/v1/models/{knowledge_knowledge_entity_schemas_upsert_response.py → knowledge_entity_schemas_upsert_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_type_row.py → knowledge_entity_type_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_entity_create_request.py → knowledge_entity_upsert_request.py} +9 -11
- neurograph/v1/models/{knowledge_knowledge_entity_upsert_row.py → knowledge_entity_upsert_row.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_request.py → knowledge_ingest_raw_request.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_ingest_raw_response.py → knowledge_ingest_raw_response.py} +4 -4
- neurograph/v1/models/{knowledge_knowledge_kind_response.py → knowledge_kind_response.py} +4 -4
- neurograph/v1/models/knowledge_order_query.py +129 -0
- neurograph/v1/models/knowledge_order_response.py +103 -0
- neurograph/v1/models/knowledge_product_query.py +101 -0
- neurograph/v1/models/knowledge_product_response.py +103 -0
- neurograph/v1/models/{client_client_create_request.py → knowledge_store_query.py} +17 -15
- neurograph/v1/models/knowledge_store_response.py +103 -0
- neurograph/v1/models/{knowledge_knowledge_type_response.py → knowledge_type_response.py} +7 -7
- neurograph/v1/models/{tasks_sync_from_firebase_result.py → pgtype_int8.py} +10 -8
- neurograph/v1/models/pgtype_text.py +89 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/METADATA +2 -1
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/RECORD +63 -42
- neurograph/v1/api/atlas_api.py +0 -588
- neurograph/v1/api/tasks_api.py +0 -286
- neurograph/v1/models/atlas_atlas_version.py +0 -99
- neurograph/v1/models/organizations_organization_set_atlas_request.py +0 -93
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/top_level.txt +0 -0
neurograph/v1/api/atlas_api.py
DELETED
|
@@ -1,588 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Neurograph Core
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0
|
|
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, StrictInt
|
|
20
|
-
from typing import Optional
|
|
21
|
-
from typing_extensions import Annotated
|
|
22
|
-
from neurograph.v1.models.atlas_atlas_version_many_response import AtlasAtlasVersionManyResponse
|
|
23
|
-
from neurograph.v1.models.atlas_atlas_version_response import AtlasAtlasVersionResponse
|
|
24
|
-
from neurograph.v1.models.atlas_atlas_version_upsert_request import AtlasAtlasVersionUpsertRequest
|
|
25
|
-
|
|
26
|
-
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
27
|
-
from neurograph.v1.api_response import ApiResponse
|
|
28
|
-
from neurograph.v1.rest import RESTResponseType
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class AtlasApi:
|
|
32
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
33
|
-
Ref: https://openapi-generator.tech
|
|
34
|
-
|
|
35
|
-
Do not edit the class manually.
|
|
36
|
-
"""
|
|
37
|
-
|
|
38
|
-
def __init__(self, api_client=None) -> None:
|
|
39
|
-
if api_client is None:
|
|
40
|
-
api_client = ApiClient.get_default()
|
|
41
|
-
self.api_client = api_client
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@validate_call
|
|
45
|
-
def api_v1_atlas_versions_get(
|
|
46
|
-
self,
|
|
47
|
-
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
48
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
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
|
-
) -> AtlasAtlasVersionManyResponse:
|
|
62
|
-
"""Get Atlas Versions
|
|
63
|
-
|
|
64
|
-
Retrieve Atlas Versions
|
|
65
|
-
|
|
66
|
-
:param limit: Maximum number of records
|
|
67
|
-
:type limit: int
|
|
68
|
-
:param offset: Record offset
|
|
69
|
-
:type offset: int
|
|
70
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
-
number provided, it will be total request
|
|
72
|
-
timeout. It can also be a pair (tuple) of
|
|
73
|
-
(connection, read) timeouts.
|
|
74
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
-
request; this effectively ignores the
|
|
77
|
-
authentication in the spec for a single request.
|
|
78
|
-
:type _request_auth: dict, optional
|
|
79
|
-
:param _content_type: force content-type for the request.
|
|
80
|
-
:type _content_type: str, Optional
|
|
81
|
-
:param _headers: set to override the headers for a single
|
|
82
|
-
request; this effectively ignores the headers
|
|
83
|
-
in the spec for a single request.
|
|
84
|
-
:type _headers: dict, optional
|
|
85
|
-
:param _host_index: set to override the host_index for a single
|
|
86
|
-
request; this effectively ignores the host_index
|
|
87
|
-
in the spec for a single request.
|
|
88
|
-
:type _host_index: int, optional
|
|
89
|
-
:return: Returns the result object.
|
|
90
|
-
""" # noqa: E501
|
|
91
|
-
|
|
92
|
-
_param = self._api_v1_atlas_versions_get_serialize(
|
|
93
|
-
limit=limit,
|
|
94
|
-
offset=offset,
|
|
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
|
-
'200': "AtlasAtlasVersionManyResponse",
|
|
103
|
-
'503': "AtlasAtlasVersionManyResponse",
|
|
104
|
-
}
|
|
105
|
-
response_data = self.api_client.call_api(
|
|
106
|
-
*_param,
|
|
107
|
-
_request_timeout=_request_timeout
|
|
108
|
-
)
|
|
109
|
-
response_data.read()
|
|
110
|
-
return self.api_client.response_deserialize(
|
|
111
|
-
response_data=response_data,
|
|
112
|
-
response_types_map=_response_types_map,
|
|
113
|
-
).data
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
@validate_call
|
|
117
|
-
def api_v1_atlas_versions_get_with_http_info(
|
|
118
|
-
self,
|
|
119
|
-
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
120
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
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[AtlasAtlasVersionManyResponse]:
|
|
134
|
-
"""Get Atlas Versions
|
|
135
|
-
|
|
136
|
-
Retrieve Atlas Versions
|
|
137
|
-
|
|
138
|
-
:param limit: Maximum number of records
|
|
139
|
-
:type limit: int
|
|
140
|
-
:param offset: Record offset
|
|
141
|
-
:type offset: int
|
|
142
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
143
|
-
number provided, it will be total request
|
|
144
|
-
timeout. It can also be a pair (tuple) of
|
|
145
|
-
(connection, read) timeouts.
|
|
146
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
147
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
148
|
-
request; this effectively ignores the
|
|
149
|
-
authentication in the spec for a single request.
|
|
150
|
-
:type _request_auth: dict, optional
|
|
151
|
-
:param _content_type: force content-type for the request.
|
|
152
|
-
:type _content_type: str, Optional
|
|
153
|
-
:param _headers: set to override the headers for a single
|
|
154
|
-
request; this effectively ignores the headers
|
|
155
|
-
in the spec for a single request.
|
|
156
|
-
:type _headers: dict, optional
|
|
157
|
-
:param _host_index: set to override the host_index for a single
|
|
158
|
-
request; this effectively ignores the host_index
|
|
159
|
-
in the spec for a single request.
|
|
160
|
-
:type _host_index: int, optional
|
|
161
|
-
:return: Returns the result object.
|
|
162
|
-
""" # noqa: E501
|
|
163
|
-
|
|
164
|
-
_param = self._api_v1_atlas_versions_get_serialize(
|
|
165
|
-
limit=limit,
|
|
166
|
-
offset=offset,
|
|
167
|
-
_request_auth=_request_auth,
|
|
168
|
-
_content_type=_content_type,
|
|
169
|
-
_headers=_headers,
|
|
170
|
-
_host_index=_host_index
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
174
|
-
'200': "AtlasAtlasVersionManyResponse",
|
|
175
|
-
'503': "AtlasAtlasVersionManyResponse",
|
|
176
|
-
}
|
|
177
|
-
response_data = self.api_client.call_api(
|
|
178
|
-
*_param,
|
|
179
|
-
_request_timeout=_request_timeout
|
|
180
|
-
)
|
|
181
|
-
response_data.read()
|
|
182
|
-
return self.api_client.response_deserialize(
|
|
183
|
-
response_data=response_data,
|
|
184
|
-
response_types_map=_response_types_map,
|
|
185
|
-
)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
@validate_call
|
|
189
|
-
def api_v1_atlas_versions_get_without_preload_content(
|
|
190
|
-
self,
|
|
191
|
-
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
192
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
193
|
-
_request_timeout: Union[
|
|
194
|
-
None,
|
|
195
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
-
Tuple[
|
|
197
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
198
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
199
|
-
]
|
|
200
|
-
] = None,
|
|
201
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
202
|
-
_content_type: Optional[StrictStr] = None,
|
|
203
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
204
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
205
|
-
) -> RESTResponseType:
|
|
206
|
-
"""Get Atlas Versions
|
|
207
|
-
|
|
208
|
-
Retrieve Atlas Versions
|
|
209
|
-
|
|
210
|
-
:param limit: Maximum number of records
|
|
211
|
-
:type limit: int
|
|
212
|
-
:param offset: Record offset
|
|
213
|
-
:type offset: int
|
|
214
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
215
|
-
number provided, it will be total request
|
|
216
|
-
timeout. It can also be a pair (tuple) of
|
|
217
|
-
(connection, read) timeouts.
|
|
218
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
219
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
220
|
-
request; this effectively ignores the
|
|
221
|
-
authentication in the spec for a single request.
|
|
222
|
-
:type _request_auth: dict, optional
|
|
223
|
-
:param _content_type: force content-type for the request.
|
|
224
|
-
:type _content_type: str, Optional
|
|
225
|
-
:param _headers: set to override the headers for a single
|
|
226
|
-
request; this effectively ignores the headers
|
|
227
|
-
in the spec for a single request.
|
|
228
|
-
:type _headers: dict, optional
|
|
229
|
-
:param _host_index: set to override the host_index for a single
|
|
230
|
-
request; this effectively ignores the host_index
|
|
231
|
-
in the spec for a single request.
|
|
232
|
-
:type _host_index: int, optional
|
|
233
|
-
:return: Returns the result object.
|
|
234
|
-
""" # noqa: E501
|
|
235
|
-
|
|
236
|
-
_param = self._api_v1_atlas_versions_get_serialize(
|
|
237
|
-
limit=limit,
|
|
238
|
-
offset=offset,
|
|
239
|
-
_request_auth=_request_auth,
|
|
240
|
-
_content_type=_content_type,
|
|
241
|
-
_headers=_headers,
|
|
242
|
-
_host_index=_host_index
|
|
243
|
-
)
|
|
244
|
-
|
|
245
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
246
|
-
'200': "AtlasAtlasVersionManyResponse",
|
|
247
|
-
'503': "AtlasAtlasVersionManyResponse",
|
|
248
|
-
}
|
|
249
|
-
response_data = self.api_client.call_api(
|
|
250
|
-
*_param,
|
|
251
|
-
_request_timeout=_request_timeout
|
|
252
|
-
)
|
|
253
|
-
return response_data.response
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
def _api_v1_atlas_versions_get_serialize(
|
|
257
|
-
self,
|
|
258
|
-
limit,
|
|
259
|
-
offset,
|
|
260
|
-
_request_auth,
|
|
261
|
-
_content_type,
|
|
262
|
-
_headers,
|
|
263
|
-
_host_index,
|
|
264
|
-
) -> RequestSerialized:
|
|
265
|
-
|
|
266
|
-
_host = None
|
|
267
|
-
|
|
268
|
-
_collection_formats: Dict[str, str] = {
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
_path_params: Dict[str, str] = {}
|
|
272
|
-
_query_params: List[Tuple[str, str]] = []
|
|
273
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
274
|
-
_form_params: List[Tuple[str, str]] = []
|
|
275
|
-
_files: Dict[
|
|
276
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
277
|
-
] = {}
|
|
278
|
-
_body_params: Optional[bytes] = None
|
|
279
|
-
|
|
280
|
-
# process the path parameters
|
|
281
|
-
# process the query parameters
|
|
282
|
-
if limit is not None:
|
|
283
|
-
|
|
284
|
-
_query_params.append(('limit', limit))
|
|
285
|
-
|
|
286
|
-
if offset is not None:
|
|
287
|
-
|
|
288
|
-
_query_params.append(('offset', offset))
|
|
289
|
-
|
|
290
|
-
# process the header parameters
|
|
291
|
-
# process the form parameters
|
|
292
|
-
# process the body parameter
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
# set the HTTP header `Accept`
|
|
296
|
-
if 'Accept' not in _header_params:
|
|
297
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
298
|
-
[
|
|
299
|
-
'application/json'
|
|
300
|
-
]
|
|
301
|
-
)
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
# authentication setting
|
|
305
|
-
_auth_settings: List[str] = [
|
|
306
|
-
'ApiKeyAuth'
|
|
307
|
-
]
|
|
308
|
-
|
|
309
|
-
return self.api_client.param_serialize(
|
|
310
|
-
method='GET',
|
|
311
|
-
resource_path='/api/v1/atlas/versions',
|
|
312
|
-
path_params=_path_params,
|
|
313
|
-
query_params=_query_params,
|
|
314
|
-
header_params=_header_params,
|
|
315
|
-
body=_body_params,
|
|
316
|
-
post_params=_form_params,
|
|
317
|
-
files=_files,
|
|
318
|
-
auth_settings=_auth_settings,
|
|
319
|
-
collection_formats=_collection_formats,
|
|
320
|
-
_host=_host,
|
|
321
|
-
_request_auth=_request_auth
|
|
322
|
-
)
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
@validate_call
|
|
328
|
-
def api_v1_atlas_versions_post(
|
|
329
|
-
self,
|
|
330
|
-
request: Annotated[AtlasAtlasVersionUpsertRequest, Field(description="Body")],
|
|
331
|
-
_request_timeout: Union[
|
|
332
|
-
None,
|
|
333
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
334
|
-
Tuple[
|
|
335
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
336
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
337
|
-
]
|
|
338
|
-
] = None,
|
|
339
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
340
|
-
_content_type: Optional[StrictStr] = None,
|
|
341
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
342
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
343
|
-
) -> AtlasAtlasVersionResponse:
|
|
344
|
-
"""UpsertCustomer an Atlas Version
|
|
345
|
-
|
|
346
|
-
Inserts an Atlas Version into the db when the `id` is `0`. Updates when the `id` is `1` or greater. Config is intended to be a JSON object, or null.
|
|
347
|
-
|
|
348
|
-
:param request: Body (required)
|
|
349
|
-
:type request: AtlasAtlasVersionUpsertRequest
|
|
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._api_v1_atlas_versions_post_serialize(
|
|
373
|
-
request=request,
|
|
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
|
-
'200': "AtlasAtlasVersionResponse",
|
|
382
|
-
'503': "AtlasAtlasVersionResponse",
|
|
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 api_v1_atlas_versions_post_with_http_info(
|
|
397
|
-
self,
|
|
398
|
-
request: Annotated[AtlasAtlasVersionUpsertRequest, Field(description="Body")],
|
|
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[AtlasAtlasVersionResponse]:
|
|
412
|
-
"""UpsertCustomer an Atlas Version
|
|
413
|
-
|
|
414
|
-
Inserts an Atlas Version into the db when the `id` is `0`. Updates when the `id` is `1` or greater. Config is intended to be a JSON object, or null.
|
|
415
|
-
|
|
416
|
-
:param request: Body (required)
|
|
417
|
-
:type request: AtlasAtlasVersionUpsertRequest
|
|
418
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
419
|
-
number provided, it will be total request
|
|
420
|
-
timeout. It can also be a pair (tuple) of
|
|
421
|
-
(connection, read) timeouts.
|
|
422
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
423
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
424
|
-
request; this effectively ignores the
|
|
425
|
-
authentication in the spec for a single request.
|
|
426
|
-
:type _request_auth: dict, optional
|
|
427
|
-
:param _content_type: force content-type for the request.
|
|
428
|
-
:type _content_type: str, Optional
|
|
429
|
-
:param _headers: set to override the headers for a single
|
|
430
|
-
request; this effectively ignores the headers
|
|
431
|
-
in the spec for a single request.
|
|
432
|
-
:type _headers: dict, optional
|
|
433
|
-
:param _host_index: set to override the host_index for a single
|
|
434
|
-
request; this effectively ignores the host_index
|
|
435
|
-
in the spec for a single request.
|
|
436
|
-
:type _host_index: int, optional
|
|
437
|
-
:return: Returns the result object.
|
|
438
|
-
""" # noqa: E501
|
|
439
|
-
|
|
440
|
-
_param = self._api_v1_atlas_versions_post_serialize(
|
|
441
|
-
request=request,
|
|
442
|
-
_request_auth=_request_auth,
|
|
443
|
-
_content_type=_content_type,
|
|
444
|
-
_headers=_headers,
|
|
445
|
-
_host_index=_host_index
|
|
446
|
-
)
|
|
447
|
-
|
|
448
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
449
|
-
'200': "AtlasAtlasVersionResponse",
|
|
450
|
-
'503': "AtlasAtlasVersionResponse",
|
|
451
|
-
}
|
|
452
|
-
response_data = self.api_client.call_api(
|
|
453
|
-
*_param,
|
|
454
|
-
_request_timeout=_request_timeout
|
|
455
|
-
)
|
|
456
|
-
response_data.read()
|
|
457
|
-
return self.api_client.response_deserialize(
|
|
458
|
-
response_data=response_data,
|
|
459
|
-
response_types_map=_response_types_map,
|
|
460
|
-
)
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
@validate_call
|
|
464
|
-
def api_v1_atlas_versions_post_without_preload_content(
|
|
465
|
-
self,
|
|
466
|
-
request: Annotated[AtlasAtlasVersionUpsertRequest, Field(description="Body")],
|
|
467
|
-
_request_timeout: Union[
|
|
468
|
-
None,
|
|
469
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
470
|
-
Tuple[
|
|
471
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
472
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
473
|
-
]
|
|
474
|
-
] = None,
|
|
475
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
476
|
-
_content_type: Optional[StrictStr] = None,
|
|
477
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
478
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
479
|
-
) -> RESTResponseType:
|
|
480
|
-
"""UpsertCustomer an Atlas Version
|
|
481
|
-
|
|
482
|
-
Inserts an Atlas Version into the db when the `id` is `0`. Updates when the `id` is `1` or greater. Config is intended to be a JSON object, or null.
|
|
483
|
-
|
|
484
|
-
:param request: Body (required)
|
|
485
|
-
:type request: AtlasAtlasVersionUpsertRequest
|
|
486
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
487
|
-
number provided, it will be total request
|
|
488
|
-
timeout. It can also be a pair (tuple) of
|
|
489
|
-
(connection, read) timeouts.
|
|
490
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
491
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
492
|
-
request; this effectively ignores the
|
|
493
|
-
authentication in the spec for a single request.
|
|
494
|
-
:type _request_auth: dict, optional
|
|
495
|
-
:param _content_type: force content-type for the request.
|
|
496
|
-
:type _content_type: str, Optional
|
|
497
|
-
:param _headers: set to override the headers for a single
|
|
498
|
-
request; this effectively ignores the headers
|
|
499
|
-
in the spec for a single request.
|
|
500
|
-
:type _headers: dict, optional
|
|
501
|
-
:param _host_index: set to override the host_index for a single
|
|
502
|
-
request; this effectively ignores the host_index
|
|
503
|
-
in the spec for a single request.
|
|
504
|
-
:type _host_index: int, optional
|
|
505
|
-
:return: Returns the result object.
|
|
506
|
-
""" # noqa: E501
|
|
507
|
-
|
|
508
|
-
_param = self._api_v1_atlas_versions_post_serialize(
|
|
509
|
-
request=request,
|
|
510
|
-
_request_auth=_request_auth,
|
|
511
|
-
_content_type=_content_type,
|
|
512
|
-
_headers=_headers,
|
|
513
|
-
_host_index=_host_index
|
|
514
|
-
)
|
|
515
|
-
|
|
516
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
517
|
-
'200': "AtlasAtlasVersionResponse",
|
|
518
|
-
'503': "AtlasAtlasVersionResponse",
|
|
519
|
-
}
|
|
520
|
-
response_data = self.api_client.call_api(
|
|
521
|
-
*_param,
|
|
522
|
-
_request_timeout=_request_timeout
|
|
523
|
-
)
|
|
524
|
-
return response_data.response
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
def _api_v1_atlas_versions_post_serialize(
|
|
528
|
-
self,
|
|
529
|
-
request,
|
|
530
|
-
_request_auth,
|
|
531
|
-
_content_type,
|
|
532
|
-
_headers,
|
|
533
|
-
_host_index,
|
|
534
|
-
) -> RequestSerialized:
|
|
535
|
-
|
|
536
|
-
_host = None
|
|
537
|
-
|
|
538
|
-
_collection_formats: Dict[str, str] = {
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
_path_params: Dict[str, str] = {}
|
|
542
|
-
_query_params: List[Tuple[str, str]] = []
|
|
543
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
544
|
-
_form_params: List[Tuple[str, str]] = []
|
|
545
|
-
_files: Dict[
|
|
546
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
547
|
-
] = {}
|
|
548
|
-
_body_params: Optional[bytes] = None
|
|
549
|
-
|
|
550
|
-
# process the path parameters
|
|
551
|
-
# process the query parameters
|
|
552
|
-
# process the header parameters
|
|
553
|
-
# process the form parameters
|
|
554
|
-
# process the body parameter
|
|
555
|
-
if request is not None:
|
|
556
|
-
_body_params = request
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
# set the HTTP header `Accept`
|
|
560
|
-
if 'Accept' not in _header_params:
|
|
561
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
562
|
-
[
|
|
563
|
-
'application/json'
|
|
564
|
-
]
|
|
565
|
-
)
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
# authentication setting
|
|
569
|
-
_auth_settings: List[str] = [
|
|
570
|
-
'ApiKeyAuth'
|
|
571
|
-
]
|
|
572
|
-
|
|
573
|
-
return self.api_client.param_serialize(
|
|
574
|
-
method='POST',
|
|
575
|
-
resource_path='/api/v1/atlas/versions',
|
|
576
|
-
path_params=_path_params,
|
|
577
|
-
query_params=_query_params,
|
|
578
|
-
header_params=_header_params,
|
|
579
|
-
body=_body_params,
|
|
580
|
-
post_params=_form_params,
|
|
581
|
-
files=_files,
|
|
582
|
-
auth_settings=_auth_settings,
|
|
583
|
-
collection_formats=_collection_formats,
|
|
584
|
-
_host=_host,
|
|
585
|
-
_request_auth=_request_auth
|
|
586
|
-
)
|
|
587
|
-
|
|
588
|
-
|