neurograph-core 1.202509242146__py3-none-any.whl → 1.202509282026__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 +72 -6
- neurograph/v1/api/__init__.py +4 -0
- neurograph/v1/api/admin_api.py +575 -0
- neurograph/v1/api/dagster_api.py +2 -1
- neurograph/v1/api/knowledge_api.py +3 -6
- neurograph/v1/api/lookup_api.py +277 -27
- neurograph/v1/api/organization_api.py +1 -537
- neurograph/v1/api/persona_api.py +29 -16
- neurograph/v1/api/user_api.py +1356 -0
- neurograph/v1/models/__init__.py +44 -4
- neurograph/v1/models/admin_permission_response.py +95 -0
- neurograph/v1/models/admin_set_permission_request.py +91 -0
- neurograph/v1/models/admin_upsert_user_request.py +91 -0
- neurograph/v1/models/admin_upsert_user_response.py +99 -0
- neurograph/v1/models/admin_user.py +97 -0
- neurograph/v1/models/admin_user_detail_response.py +121 -0
- neurograph/v1/models/admin_users_get_many_response.py +97 -0
- neurograph/v1/models/admin_users_org_response.py +97 -0
- neurograph/v1/models/db_account_organization_brand.py +109 -0
- neurograph/v1/models/db_lookup_environment.py +95 -0
- neurograph/v1/models/db_my_client.py +99 -0
- neurograph/v1/models/db_my_org.py +121 -0
- neurograph/v1/models/db_user_client_role.py +93 -0
- neurograph/v1/models/db_user_in_db.py +127 -0
- neurograph/v1/models/db_user_org_role.py +93 -0
- neurograph/v1/models/db_user_role.py +91 -0
- neurograph/v1/models/{lookup_lookup_language_response.py → lookup_language_response.py} +4 -4
- neurograph/v1/models/lookup_lookup_environments_response.py +97 -0
- neurograph/v1/models/lookup_role.py +89 -0
- neurograph/v1/models/lookup_roles_response.py +97 -0
- neurograph/v1/models/{lookup_lookup_state_response.py → lookup_states_response.py} +4 -4
- neurograph/v1/models/me_my_profile_response.py +115 -0
- {neurograph_core-1.202509242146.dist-info → neurograph_core-1.202509282026.dist-info}/METADATA +1 -1
- {neurograph_core-1.202509242146.dist-info → neurograph_core-1.202509282026.dist-info}/RECORD +36 -14
- {neurograph_core-1.202509242146.dist-info → neurograph_core-1.202509282026.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509242146.dist-info → neurograph_core-1.202509282026.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,575 @@
|
|
|
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, StrictStr
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from neurograph.v1.models.admin_permission_response import AdminPermissionResponse
|
|
22
|
+
from neurograph.v1.models.admin_set_permission_request import AdminSetPermissionRequest
|
|
23
|
+
from neurograph.v1.models.admin_users_get_many_response import AdminUsersGetManyResponse
|
|
24
|
+
|
|
25
|
+
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from neurograph.v1.api_response import ApiResponse
|
|
27
|
+
from neurograph.v1.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AdminApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def api_v1_admin_users_get(
|
|
45
|
+
self,
|
|
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
|
+
) -> AdminUsersGetManyResponse:
|
|
59
|
+
"""Users Get Many
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
63
|
+
number provided, it will be total request
|
|
64
|
+
timeout. It can also be a pair (tuple) of
|
|
65
|
+
(connection, read) timeouts.
|
|
66
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
67
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
68
|
+
request; this effectively ignores the
|
|
69
|
+
authentication in the spec for a single request.
|
|
70
|
+
:type _request_auth: dict, optional
|
|
71
|
+
:param _content_type: force content-type for the request.
|
|
72
|
+
:type _content_type: str, Optional
|
|
73
|
+
:param _headers: set to override the headers for a single
|
|
74
|
+
request; this effectively ignores the headers
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _headers: dict, optional
|
|
77
|
+
:param _host_index: set to override the host_index for a single
|
|
78
|
+
request; this effectively ignores the host_index
|
|
79
|
+
in the spec for a single request.
|
|
80
|
+
:type _host_index: int, optional
|
|
81
|
+
:return: Returns the result object.
|
|
82
|
+
""" # noqa: E501
|
|
83
|
+
|
|
84
|
+
_param = self._api_v1_admin_users_get_serialize(
|
|
85
|
+
_request_auth=_request_auth,
|
|
86
|
+
_content_type=_content_type,
|
|
87
|
+
_headers=_headers,
|
|
88
|
+
_host_index=_host_index
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
92
|
+
'200': "AdminUsersGetManyResponse",
|
|
93
|
+
}
|
|
94
|
+
response_data = self.api_client.call_api(
|
|
95
|
+
*_param,
|
|
96
|
+
_request_timeout=_request_timeout
|
|
97
|
+
)
|
|
98
|
+
response_data.read()
|
|
99
|
+
return self.api_client.response_deserialize(
|
|
100
|
+
response_data=response_data,
|
|
101
|
+
response_types_map=_response_types_map,
|
|
102
|
+
).data
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@validate_call
|
|
106
|
+
def api_v1_admin_users_get_with_http_info(
|
|
107
|
+
self,
|
|
108
|
+
_request_timeout: Union[
|
|
109
|
+
None,
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
111
|
+
Tuple[
|
|
112
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
113
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
114
|
+
]
|
|
115
|
+
] = None,
|
|
116
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_content_type: Optional[StrictStr] = None,
|
|
118
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
119
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
120
|
+
) -> ApiResponse[AdminUsersGetManyResponse]:
|
|
121
|
+
"""Users Get Many
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
125
|
+
number provided, it will be total request
|
|
126
|
+
timeout. It can also be a pair (tuple) of
|
|
127
|
+
(connection, read) timeouts.
|
|
128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
130
|
+
request; this effectively ignores the
|
|
131
|
+
authentication in the spec for a single request.
|
|
132
|
+
:type _request_auth: dict, optional
|
|
133
|
+
:param _content_type: force content-type for the request.
|
|
134
|
+
:type _content_type: str, Optional
|
|
135
|
+
:param _headers: set to override the headers for a single
|
|
136
|
+
request; this effectively ignores the headers
|
|
137
|
+
in the spec for a single request.
|
|
138
|
+
:type _headers: dict, optional
|
|
139
|
+
:param _host_index: set to override the host_index for a single
|
|
140
|
+
request; this effectively ignores the host_index
|
|
141
|
+
in the spec for a single request.
|
|
142
|
+
:type _host_index: int, optional
|
|
143
|
+
:return: Returns the result object.
|
|
144
|
+
""" # noqa: E501
|
|
145
|
+
|
|
146
|
+
_param = self._api_v1_admin_users_get_serialize(
|
|
147
|
+
_request_auth=_request_auth,
|
|
148
|
+
_content_type=_content_type,
|
|
149
|
+
_headers=_headers,
|
|
150
|
+
_host_index=_host_index
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
154
|
+
'200': "AdminUsersGetManyResponse",
|
|
155
|
+
}
|
|
156
|
+
response_data = self.api_client.call_api(
|
|
157
|
+
*_param,
|
|
158
|
+
_request_timeout=_request_timeout
|
|
159
|
+
)
|
|
160
|
+
response_data.read()
|
|
161
|
+
return self.api_client.response_deserialize(
|
|
162
|
+
response_data=response_data,
|
|
163
|
+
response_types_map=_response_types_map,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
@validate_call
|
|
168
|
+
def api_v1_admin_users_get_without_preload_content(
|
|
169
|
+
self,
|
|
170
|
+
_request_timeout: Union[
|
|
171
|
+
None,
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Tuple[
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
176
|
+
]
|
|
177
|
+
] = None,
|
|
178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_content_type: Optional[StrictStr] = None,
|
|
180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
182
|
+
) -> RESTResponseType:
|
|
183
|
+
"""Users Get Many
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
187
|
+
number provided, it will be total request
|
|
188
|
+
timeout. It can also be a pair (tuple) of
|
|
189
|
+
(connection, read) timeouts.
|
|
190
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
191
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
192
|
+
request; this effectively ignores the
|
|
193
|
+
authentication in the spec for a single request.
|
|
194
|
+
:type _request_auth: dict, optional
|
|
195
|
+
:param _content_type: force content-type for the request.
|
|
196
|
+
:type _content_type: str, Optional
|
|
197
|
+
:param _headers: set to override the headers for a single
|
|
198
|
+
request; this effectively ignores the headers
|
|
199
|
+
in the spec for a single request.
|
|
200
|
+
:type _headers: dict, optional
|
|
201
|
+
:param _host_index: set to override the host_index for a single
|
|
202
|
+
request; this effectively ignores the host_index
|
|
203
|
+
in the spec for a single request.
|
|
204
|
+
:type _host_index: int, optional
|
|
205
|
+
:return: Returns the result object.
|
|
206
|
+
""" # noqa: E501
|
|
207
|
+
|
|
208
|
+
_param = self._api_v1_admin_users_get_serialize(
|
|
209
|
+
_request_auth=_request_auth,
|
|
210
|
+
_content_type=_content_type,
|
|
211
|
+
_headers=_headers,
|
|
212
|
+
_host_index=_host_index
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
+
'200': "AdminUsersGetManyResponse",
|
|
217
|
+
}
|
|
218
|
+
response_data = self.api_client.call_api(
|
|
219
|
+
*_param,
|
|
220
|
+
_request_timeout=_request_timeout
|
|
221
|
+
)
|
|
222
|
+
return response_data.response
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _api_v1_admin_users_get_serialize(
|
|
226
|
+
self,
|
|
227
|
+
_request_auth,
|
|
228
|
+
_content_type,
|
|
229
|
+
_headers,
|
|
230
|
+
_host_index,
|
|
231
|
+
) -> RequestSerialized:
|
|
232
|
+
|
|
233
|
+
_host = None
|
|
234
|
+
|
|
235
|
+
_collection_formats: Dict[str, str] = {
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
_path_params: Dict[str, str] = {}
|
|
239
|
+
_query_params: List[Tuple[str, str]] = []
|
|
240
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
241
|
+
_form_params: List[Tuple[str, str]] = []
|
|
242
|
+
_files: Dict[
|
|
243
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
244
|
+
] = {}
|
|
245
|
+
_body_params: Optional[bytes] = None
|
|
246
|
+
|
|
247
|
+
# process the path parameters
|
|
248
|
+
# process the query parameters
|
|
249
|
+
# process the header parameters
|
|
250
|
+
# process the form parameters
|
|
251
|
+
# process the body parameter
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
# set the HTTP header `Accept`
|
|
255
|
+
if 'Accept' not in _header_params:
|
|
256
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
257
|
+
[
|
|
258
|
+
'application/json'
|
|
259
|
+
]
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# authentication setting
|
|
264
|
+
_auth_settings: List[str] = [
|
|
265
|
+
'ApiKeyAuth'
|
|
266
|
+
]
|
|
267
|
+
|
|
268
|
+
return self.api_client.param_serialize(
|
|
269
|
+
method='GET',
|
|
270
|
+
resource_path='/api/v1/admin/users/',
|
|
271
|
+
path_params=_path_params,
|
|
272
|
+
query_params=_query_params,
|
|
273
|
+
header_params=_header_params,
|
|
274
|
+
body=_body_params,
|
|
275
|
+
post_params=_form_params,
|
|
276
|
+
files=_files,
|
|
277
|
+
auth_settings=_auth_settings,
|
|
278
|
+
collection_formats=_collection_formats,
|
|
279
|
+
_host=_host,
|
|
280
|
+
_request_auth=_request_auth
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
@validate_call
|
|
287
|
+
def api_v1_admin_users_id_permisions_post(
|
|
288
|
+
self,
|
|
289
|
+
id: Annotated[StrictStr, Field(description="User ID")],
|
|
290
|
+
request: Annotated[AdminSetPermissionRequest, Field(description="Body")],
|
|
291
|
+
_request_timeout: Union[
|
|
292
|
+
None,
|
|
293
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
294
|
+
Tuple[
|
|
295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
296
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
297
|
+
]
|
|
298
|
+
] = None,
|
|
299
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
300
|
+
_content_type: Optional[StrictStr] = None,
|
|
301
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
302
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
303
|
+
) -> AdminPermissionResponse:
|
|
304
|
+
"""Set User Permissions
|
|
305
|
+
|
|
306
|
+
Assign or update a user’s role in global, org, or client scope
|
|
307
|
+
|
|
308
|
+
:param id: User ID (required)
|
|
309
|
+
:type id: str
|
|
310
|
+
:param request: Body (required)
|
|
311
|
+
:type request: AdminSetPermissionRequest
|
|
312
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
313
|
+
number provided, it will be total request
|
|
314
|
+
timeout. It can also be a pair (tuple) of
|
|
315
|
+
(connection, read) timeouts.
|
|
316
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
318
|
+
request; this effectively ignores the
|
|
319
|
+
authentication in the spec for a single request.
|
|
320
|
+
:type _request_auth: dict, optional
|
|
321
|
+
:param _content_type: force content-type for the request.
|
|
322
|
+
:type _content_type: str, Optional
|
|
323
|
+
:param _headers: set to override the headers for a single
|
|
324
|
+
request; this effectively ignores the headers
|
|
325
|
+
in the spec for a single request.
|
|
326
|
+
:type _headers: dict, optional
|
|
327
|
+
:param _host_index: set to override the host_index for a single
|
|
328
|
+
request; this effectively ignores the host_index
|
|
329
|
+
in the spec for a single request.
|
|
330
|
+
:type _host_index: int, optional
|
|
331
|
+
:return: Returns the result object.
|
|
332
|
+
""" # noqa: E501
|
|
333
|
+
|
|
334
|
+
_param = self._api_v1_admin_users_id_permisions_post_serialize(
|
|
335
|
+
id=id,
|
|
336
|
+
request=request,
|
|
337
|
+
_request_auth=_request_auth,
|
|
338
|
+
_content_type=_content_type,
|
|
339
|
+
_headers=_headers,
|
|
340
|
+
_host_index=_host_index
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
344
|
+
'200': "AdminPermissionResponse",
|
|
345
|
+
'400': "AdminPermissionResponse",
|
|
346
|
+
}
|
|
347
|
+
response_data = self.api_client.call_api(
|
|
348
|
+
*_param,
|
|
349
|
+
_request_timeout=_request_timeout
|
|
350
|
+
)
|
|
351
|
+
response_data.read()
|
|
352
|
+
return self.api_client.response_deserialize(
|
|
353
|
+
response_data=response_data,
|
|
354
|
+
response_types_map=_response_types_map,
|
|
355
|
+
).data
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
@validate_call
|
|
359
|
+
def api_v1_admin_users_id_permisions_post_with_http_info(
|
|
360
|
+
self,
|
|
361
|
+
id: Annotated[StrictStr, Field(description="User ID")],
|
|
362
|
+
request: Annotated[AdminSetPermissionRequest, Field(description="Body")],
|
|
363
|
+
_request_timeout: Union[
|
|
364
|
+
None,
|
|
365
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
366
|
+
Tuple[
|
|
367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
368
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
369
|
+
]
|
|
370
|
+
] = None,
|
|
371
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
372
|
+
_content_type: Optional[StrictStr] = None,
|
|
373
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
374
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
375
|
+
) -> ApiResponse[AdminPermissionResponse]:
|
|
376
|
+
"""Set User Permissions
|
|
377
|
+
|
|
378
|
+
Assign or update a user’s role in global, org, or client scope
|
|
379
|
+
|
|
380
|
+
:param id: User ID (required)
|
|
381
|
+
:type id: str
|
|
382
|
+
:param request: Body (required)
|
|
383
|
+
:type request: AdminSetPermissionRequest
|
|
384
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
385
|
+
number provided, it will be total request
|
|
386
|
+
timeout. It can also be a pair (tuple) of
|
|
387
|
+
(connection, read) timeouts.
|
|
388
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
389
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
390
|
+
request; this effectively ignores the
|
|
391
|
+
authentication in the spec for a single request.
|
|
392
|
+
:type _request_auth: dict, optional
|
|
393
|
+
:param _content_type: force content-type for the request.
|
|
394
|
+
:type _content_type: str, Optional
|
|
395
|
+
:param _headers: set to override the headers for a single
|
|
396
|
+
request; this effectively ignores the headers
|
|
397
|
+
in the spec for a single request.
|
|
398
|
+
:type _headers: dict, optional
|
|
399
|
+
:param _host_index: set to override the host_index for a single
|
|
400
|
+
request; this effectively ignores the host_index
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _host_index: int, optional
|
|
403
|
+
:return: Returns the result object.
|
|
404
|
+
""" # noqa: E501
|
|
405
|
+
|
|
406
|
+
_param = self._api_v1_admin_users_id_permisions_post_serialize(
|
|
407
|
+
id=id,
|
|
408
|
+
request=request,
|
|
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': "AdminPermissionResponse",
|
|
417
|
+
'400': "AdminPermissionResponse",
|
|
418
|
+
}
|
|
419
|
+
response_data = self.api_client.call_api(
|
|
420
|
+
*_param,
|
|
421
|
+
_request_timeout=_request_timeout
|
|
422
|
+
)
|
|
423
|
+
response_data.read()
|
|
424
|
+
return self.api_client.response_deserialize(
|
|
425
|
+
response_data=response_data,
|
|
426
|
+
response_types_map=_response_types_map,
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
@validate_call
|
|
431
|
+
def api_v1_admin_users_id_permisions_post_without_preload_content(
|
|
432
|
+
self,
|
|
433
|
+
id: Annotated[StrictStr, Field(description="User ID")],
|
|
434
|
+
request: Annotated[AdminSetPermissionRequest, Field(description="Body")],
|
|
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
|
+
"""Set User Permissions
|
|
449
|
+
|
|
450
|
+
Assign or update a user’s role in global, org, or client scope
|
|
451
|
+
|
|
452
|
+
:param id: User ID (required)
|
|
453
|
+
:type id: str
|
|
454
|
+
:param request: Body (required)
|
|
455
|
+
:type request: AdminSetPermissionRequest
|
|
456
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
457
|
+
number provided, it will be total request
|
|
458
|
+
timeout. It can also be a pair (tuple) of
|
|
459
|
+
(connection, read) timeouts.
|
|
460
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
461
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
462
|
+
request; this effectively ignores the
|
|
463
|
+
authentication in the spec for a single request.
|
|
464
|
+
:type _request_auth: dict, optional
|
|
465
|
+
:param _content_type: force content-type for the request.
|
|
466
|
+
:type _content_type: str, Optional
|
|
467
|
+
:param _headers: set to override the headers for a single
|
|
468
|
+
request; this effectively ignores the headers
|
|
469
|
+
in the spec for a single request.
|
|
470
|
+
:type _headers: dict, optional
|
|
471
|
+
:param _host_index: set to override the host_index for a single
|
|
472
|
+
request; this effectively ignores the host_index
|
|
473
|
+
in the spec for a single request.
|
|
474
|
+
:type _host_index: int, optional
|
|
475
|
+
:return: Returns the result object.
|
|
476
|
+
""" # noqa: E501
|
|
477
|
+
|
|
478
|
+
_param = self._api_v1_admin_users_id_permisions_post_serialize(
|
|
479
|
+
id=id,
|
|
480
|
+
request=request,
|
|
481
|
+
_request_auth=_request_auth,
|
|
482
|
+
_content_type=_content_type,
|
|
483
|
+
_headers=_headers,
|
|
484
|
+
_host_index=_host_index
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
488
|
+
'200': "AdminPermissionResponse",
|
|
489
|
+
'400': "AdminPermissionResponse",
|
|
490
|
+
}
|
|
491
|
+
response_data = self.api_client.call_api(
|
|
492
|
+
*_param,
|
|
493
|
+
_request_timeout=_request_timeout
|
|
494
|
+
)
|
|
495
|
+
return response_data.response
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
def _api_v1_admin_users_id_permisions_post_serialize(
|
|
499
|
+
self,
|
|
500
|
+
id,
|
|
501
|
+
request,
|
|
502
|
+
_request_auth,
|
|
503
|
+
_content_type,
|
|
504
|
+
_headers,
|
|
505
|
+
_host_index,
|
|
506
|
+
) -> RequestSerialized:
|
|
507
|
+
|
|
508
|
+
_host = None
|
|
509
|
+
|
|
510
|
+
_collection_formats: Dict[str, str] = {
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
_path_params: Dict[str, str] = {}
|
|
514
|
+
_query_params: List[Tuple[str, str]] = []
|
|
515
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
516
|
+
_form_params: List[Tuple[str, str]] = []
|
|
517
|
+
_files: Dict[
|
|
518
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
519
|
+
] = {}
|
|
520
|
+
_body_params: Optional[bytes] = None
|
|
521
|
+
|
|
522
|
+
# process the path parameters
|
|
523
|
+
if id is not None:
|
|
524
|
+
_path_params['id'] = id
|
|
525
|
+
# process the query parameters
|
|
526
|
+
# process the header parameters
|
|
527
|
+
# process the form parameters
|
|
528
|
+
# process the body parameter
|
|
529
|
+
if request is not None:
|
|
530
|
+
_body_params = request
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
# set the HTTP header `Accept`
|
|
534
|
+
if 'Accept' not in _header_params:
|
|
535
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
536
|
+
[
|
|
537
|
+
'application/json'
|
|
538
|
+
]
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
# set the HTTP header `Content-Type`
|
|
542
|
+
if _content_type:
|
|
543
|
+
_header_params['Content-Type'] = _content_type
|
|
544
|
+
else:
|
|
545
|
+
_default_content_type = (
|
|
546
|
+
self.api_client.select_header_content_type(
|
|
547
|
+
[
|
|
548
|
+
'application/json'
|
|
549
|
+
]
|
|
550
|
+
)
|
|
551
|
+
)
|
|
552
|
+
if _default_content_type is not None:
|
|
553
|
+
_header_params['Content-Type'] = _default_content_type
|
|
554
|
+
|
|
555
|
+
# authentication setting
|
|
556
|
+
_auth_settings: List[str] = [
|
|
557
|
+
'ApiKeyAuth'
|
|
558
|
+
]
|
|
559
|
+
|
|
560
|
+
return self.api_client.param_serialize(
|
|
561
|
+
method='POST',
|
|
562
|
+
resource_path='/api/v1/admin/users/{id}/permisions',
|
|
563
|
+
path_params=_path_params,
|
|
564
|
+
query_params=_query_params,
|
|
565
|
+
header_params=_header_params,
|
|
566
|
+
body=_body_params,
|
|
567
|
+
post_params=_form_params,
|
|
568
|
+
files=_files,
|
|
569
|
+
auth_settings=_auth_settings,
|
|
570
|
+
collection_formats=_collection_formats,
|
|
571
|
+
_host=_host,
|
|
572
|
+
_request_auth=_request_auth
|
|
573
|
+
)
|
|
574
|
+
|
|
575
|
+
|
neurograph/v1/api/dagster_api.py
CHANGED
|
@@ -3135,7 +3135,7 @@ class KnowledgeApi:
|
|
|
3135
3135
|
) -> KnowledgeIngestRawResponse:
|
|
3136
3136
|
"""Ingest raw source payloads
|
|
3137
3137
|
|
|
3138
|
-
Append raw payloads into knowledge.ingest_raw (deduped by conflict key)
|
|
3138
|
+
Append raw payloads into knowledge.ingest_raw (deduped by conflict key).
|
|
3139
3139
|
|
|
3140
3140
|
:param request: Body (required)
|
|
3141
3141
|
:type request: KnowledgeIngestRawRequest
|
|
@@ -3172,7 +3172,6 @@ class KnowledgeApi:
|
|
|
3172
3172
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3173
3173
|
'200': "KnowledgeIngestRawResponse",
|
|
3174
3174
|
'400': "KnowledgeIngestRawResponse",
|
|
3175
|
-
'503': "KnowledgeIngestRawResponse",
|
|
3176
3175
|
}
|
|
3177
3176
|
response_data = self.api_client.call_api(
|
|
3178
3177
|
*_param,
|
|
@@ -3204,7 +3203,7 @@ class KnowledgeApi:
|
|
|
3204
3203
|
) -> ApiResponse[KnowledgeIngestRawResponse]:
|
|
3205
3204
|
"""Ingest raw source payloads
|
|
3206
3205
|
|
|
3207
|
-
Append raw payloads into knowledge.ingest_raw (deduped by conflict key)
|
|
3206
|
+
Append raw payloads into knowledge.ingest_raw (deduped by conflict key).
|
|
3208
3207
|
|
|
3209
3208
|
:param request: Body (required)
|
|
3210
3209
|
:type request: KnowledgeIngestRawRequest
|
|
@@ -3241,7 +3240,6 @@ class KnowledgeApi:
|
|
|
3241
3240
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3242
3241
|
'200': "KnowledgeIngestRawResponse",
|
|
3243
3242
|
'400': "KnowledgeIngestRawResponse",
|
|
3244
|
-
'503': "KnowledgeIngestRawResponse",
|
|
3245
3243
|
}
|
|
3246
3244
|
response_data = self.api_client.call_api(
|
|
3247
3245
|
*_param,
|
|
@@ -3273,7 +3271,7 @@ class KnowledgeApi:
|
|
|
3273
3271
|
) -> RESTResponseType:
|
|
3274
3272
|
"""Ingest raw source payloads
|
|
3275
3273
|
|
|
3276
|
-
Append raw payloads into knowledge.ingest_raw (deduped by conflict key)
|
|
3274
|
+
Append raw payloads into knowledge.ingest_raw (deduped by conflict key).
|
|
3277
3275
|
|
|
3278
3276
|
:param request: Body (required)
|
|
3279
3277
|
:type request: KnowledgeIngestRawRequest
|
|
@@ -3310,7 +3308,6 @@ class KnowledgeApi:
|
|
|
3310
3308
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3311
3309
|
'200': "KnowledgeIngestRawResponse",
|
|
3312
3310
|
'400': "KnowledgeIngestRawResponse",
|
|
3313
|
-
'503': "KnowledgeIngestRawResponse",
|
|
3314
3311
|
}
|
|
3315
3312
|
response_data = self.api_client.call_api(
|
|
3316
3313
|
*_param,
|