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
neurograph/v1/models/__init__.py
CHANGED
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
if __import__("typing").TYPE_CHECKING:
|
|
17
17
|
# import models into model package
|
|
18
|
+
from neurograph.v1.models.admin_permission_response import AdminPermissionResponse
|
|
19
|
+
from neurograph.v1.models.admin_set_permission_request import AdminSetPermissionRequest
|
|
20
|
+
from neurograph.v1.models.admin_upsert_user_request import AdminUpsertUserRequest
|
|
21
|
+
from neurograph.v1.models.admin_upsert_user_response import AdminUpsertUserResponse
|
|
22
|
+
from neurograph.v1.models.admin_user import AdminUser
|
|
23
|
+
from neurograph.v1.models.admin_user_detail_response import AdminUserDetailResponse
|
|
24
|
+
from neurograph.v1.models.admin_users_get_many_response import AdminUsersGetManyResponse
|
|
25
|
+
from neurograph.v1.models.admin_users_org_response import AdminUsersOrgResponse
|
|
18
26
|
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
|
|
19
27
|
from neurograph.v1.models.auth_service_token_response import AuthServiceTokenResponse
|
|
20
28
|
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest
|
|
@@ -53,12 +61,20 @@ if __import__("typing").TYPE_CHECKING:
|
|
|
53
61
|
from neurograph.v1.models.dagster_log_create_request import DagsterLogCreateRequest
|
|
54
62
|
from neurograph.v1.models.dagster_log_create_response import DagsterLogCreateResponse
|
|
55
63
|
from neurograph.v1.models.dagster_log_get_response import DagsterLogGetResponse
|
|
64
|
+
from neurograph.v1.models.db_account_organization_brand import DbAccountOrganizationBrand
|
|
56
65
|
from neurograph.v1.models.db_client_url import DbClientUrl
|
|
57
66
|
from neurograph.v1.models.db_knowledge_customer import DbKnowledgeCustomer
|
|
58
67
|
from neurograph.v1.models.db_knowledge_order import DbKnowledgeOrder
|
|
59
68
|
from neurograph.v1.models.db_knowledge_product import DbKnowledgeProduct
|
|
60
69
|
from neurograph.v1.models.db_knowledge_store import DbKnowledgeStore
|
|
70
|
+
from neurograph.v1.models.db_lookup_environment import DbLookupEnvironment
|
|
71
|
+
from neurograph.v1.models.db_my_client import DbMyClient
|
|
72
|
+
from neurograph.v1.models.db_my_org import DbMyOrg
|
|
61
73
|
from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactorCreateParams
|
|
74
|
+
from neurograph.v1.models.db_user_client_role import DbUserClientRole
|
|
75
|
+
from neurograph.v1.models.db_user_in_db import DbUserInDb
|
|
76
|
+
from neurograph.v1.models.db_user_org_role import DbUserOrgRole
|
|
77
|
+
from neurograph.v1.models.db_user_role import DbUserRole
|
|
62
78
|
from neurograph.v1.models.knowledge_assertion import KnowledgeAssertion
|
|
63
79
|
from neurograph.v1.models.knowledge_assertion_create_request import KnowledgeAssertionCreateRequest
|
|
64
80
|
from neurograph.v1.models.knowledge_assertion_list_response import KnowledgeAssertionListResponse
|
|
@@ -104,12 +120,16 @@ if __import__("typing").TYPE_CHECKING:
|
|
|
104
120
|
from neurograph.v1.models.knowledge_store_query import KnowledgeStoreQuery
|
|
105
121
|
from neurograph.v1.models.knowledge_store_response import KnowledgeStoreResponse
|
|
106
122
|
from neurograph.v1.models.lookup_language import LookupLanguage
|
|
107
|
-
from neurograph.v1.models.
|
|
108
|
-
from neurograph.v1.models.
|
|
123
|
+
from neurograph.v1.models.lookup_language_response import LookupLanguageResponse
|
|
124
|
+
from neurograph.v1.models.lookup_lookup_environments_response import LookupLookupEnvironmentsResponse
|
|
125
|
+
from neurograph.v1.models.lookup_role import LookupRole
|
|
126
|
+
from neurograph.v1.models.lookup_roles_response import LookupRolesResponse
|
|
109
127
|
from neurograph.v1.models.lookup_state import LookupState
|
|
110
128
|
from neurograph.v1.models.lookup_state_response import LookupStateResponse
|
|
129
|
+
from neurograph.v1.models.lookup_states_response import LookupStatesResponse
|
|
111
130
|
from neurograph.v1.models.lookup_uid import LookupUid
|
|
112
131
|
from neurograph.v1.models.lookup_uids_response import LookupUidsResponse
|
|
132
|
+
from neurograph.v1.models.me_my_profile_response import MeMyProfileResponse
|
|
113
133
|
from neurograph.v1.models.organizations_brand import OrganizationsBrand
|
|
114
134
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
|
|
115
135
|
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest
|
|
@@ -175,6 +195,14 @@ else:
|
|
|
175
195
|
LazyModule(
|
|
176
196
|
*as_package(__file__),
|
|
177
197
|
"""# import models into model package
|
|
198
|
+
from neurograph.v1.models.admin_permission_response import AdminPermissionResponse
|
|
199
|
+
from neurograph.v1.models.admin_set_permission_request import AdminSetPermissionRequest
|
|
200
|
+
from neurograph.v1.models.admin_upsert_user_request import AdminUpsertUserRequest
|
|
201
|
+
from neurograph.v1.models.admin_upsert_user_response import AdminUpsertUserResponse
|
|
202
|
+
from neurograph.v1.models.admin_user import AdminUser
|
|
203
|
+
from neurograph.v1.models.admin_user_detail_response import AdminUserDetailResponse
|
|
204
|
+
from neurograph.v1.models.admin_users_get_many_response import AdminUsersGetManyResponse
|
|
205
|
+
from neurograph.v1.models.admin_users_org_response import AdminUsersOrgResponse
|
|
178
206
|
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
|
|
179
207
|
from neurograph.v1.models.auth_service_token_response import AuthServiceTokenResponse
|
|
180
208
|
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest
|
|
@@ -213,12 +241,20 @@ from neurograph.v1.models.dagster_info import DagsterInfo
|
|
|
213
241
|
from neurograph.v1.models.dagster_log_create_request import DagsterLogCreateRequest
|
|
214
242
|
from neurograph.v1.models.dagster_log_create_response import DagsterLogCreateResponse
|
|
215
243
|
from neurograph.v1.models.dagster_log_get_response import DagsterLogGetResponse
|
|
244
|
+
from neurograph.v1.models.db_account_organization_brand import DbAccountOrganizationBrand
|
|
216
245
|
from neurograph.v1.models.db_client_url import DbClientUrl
|
|
217
246
|
from neurograph.v1.models.db_knowledge_customer import DbKnowledgeCustomer
|
|
218
247
|
from neurograph.v1.models.db_knowledge_order import DbKnowledgeOrder
|
|
219
248
|
from neurograph.v1.models.db_knowledge_product import DbKnowledgeProduct
|
|
220
249
|
from neurograph.v1.models.db_knowledge_store import DbKnowledgeStore
|
|
250
|
+
from neurograph.v1.models.db_lookup_environment import DbLookupEnvironment
|
|
251
|
+
from neurograph.v1.models.db_my_client import DbMyClient
|
|
252
|
+
from neurograph.v1.models.db_my_org import DbMyOrg
|
|
221
253
|
from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactorCreateParams
|
|
254
|
+
from neurograph.v1.models.db_user_client_role import DbUserClientRole
|
|
255
|
+
from neurograph.v1.models.db_user_in_db import DbUserInDb
|
|
256
|
+
from neurograph.v1.models.db_user_org_role import DbUserOrgRole
|
|
257
|
+
from neurograph.v1.models.db_user_role import DbUserRole
|
|
222
258
|
from neurograph.v1.models.knowledge_assertion import KnowledgeAssertion
|
|
223
259
|
from neurograph.v1.models.knowledge_assertion_create_request import KnowledgeAssertionCreateRequest
|
|
224
260
|
from neurograph.v1.models.knowledge_assertion_list_response import KnowledgeAssertionListResponse
|
|
@@ -264,12 +300,16 @@ from neurograph.v1.models.knowledge_query import KnowledgeQuery
|
|
|
264
300
|
from neurograph.v1.models.knowledge_store_query import KnowledgeStoreQuery
|
|
265
301
|
from neurograph.v1.models.knowledge_store_response import KnowledgeStoreResponse
|
|
266
302
|
from neurograph.v1.models.lookup_language import LookupLanguage
|
|
267
|
-
from neurograph.v1.models.
|
|
268
|
-
from neurograph.v1.models.
|
|
303
|
+
from neurograph.v1.models.lookup_language_response import LookupLanguageResponse
|
|
304
|
+
from neurograph.v1.models.lookup_lookup_environments_response import LookupLookupEnvironmentsResponse
|
|
305
|
+
from neurograph.v1.models.lookup_role import LookupRole
|
|
306
|
+
from neurograph.v1.models.lookup_roles_response import LookupRolesResponse
|
|
269
307
|
from neurograph.v1.models.lookup_state import LookupState
|
|
270
308
|
from neurograph.v1.models.lookup_state_response import LookupStateResponse
|
|
309
|
+
from neurograph.v1.models.lookup_states_response import LookupStatesResponse
|
|
271
310
|
from neurograph.v1.models.lookup_uid import LookupUid
|
|
272
311
|
from neurograph.v1.models.lookup_uids_response import LookupUidsResponse
|
|
312
|
+
from neurograph.v1.models.me_my_profile_response import MeMyProfileResponse
|
|
273
313
|
from neurograph.v1.models.organizations_brand import OrganizationsBrand
|
|
274
314
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
|
|
275
315
|
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AdminPermissionResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AdminPermissionResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
error: Optional[StrictStr] = None
|
|
30
|
+
role_name: Optional[StrictStr] = None
|
|
31
|
+
scope: Optional[StrictStr] = None
|
|
32
|
+
scope_id: Optional[StrictStr] = None
|
|
33
|
+
user_id: Optional[StrictInt] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["error", "role_name", "scope", "scope_id", "user_id"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of AdminPermissionResponse from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of AdminPermissionResponse from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"error": obj.get("error"),
|
|
88
|
+
"role_name": obj.get("role_name"),
|
|
89
|
+
"scope": obj.get("scope"),
|
|
90
|
+
"scope_id": obj.get("scope_id"),
|
|
91
|
+
"user_id": obj.get("user_id")
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AdminSetPermissionRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AdminSetPermissionRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
role_name: Optional[StrictStr] = None
|
|
30
|
+
scope: Optional[StrictStr] = None
|
|
31
|
+
scope_id: Optional[StrictStr] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["role_name", "scope", "scope_id"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of AdminSetPermissionRequest from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of AdminSetPermissionRequest from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"role_name": obj.get("role_name"),
|
|
86
|
+
"scope": obj.get("scope"),
|
|
87
|
+
"scope_id": obj.get("scope_id")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AdminUpsertUserRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AdminUpsertUserRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
display_name: Optional[StrictStr] = None
|
|
30
|
+
email: Optional[StrictStr] = None
|
|
31
|
+
id: Optional[StrictInt] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["display_name", "email", "id"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of AdminUpsertUserRequest from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of AdminUpsertUserRequest from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"display_name": obj.get("display_name"),
|
|
86
|
+
"email": obj.get("email"),
|
|
87
|
+
"id": obj.get("id")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AdminUpsertUserResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AdminUpsertUserResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
display_name: Optional[StrictStr] = None
|
|
30
|
+
email: Optional[StrictStr] = None
|
|
31
|
+
error: Optional[StrictStr] = None
|
|
32
|
+
id: Optional[StrictInt] = None
|
|
33
|
+
role_name: Optional[StrictStr] = None
|
|
34
|
+
ts_created: Optional[StrictInt] = None
|
|
35
|
+
ts_updated: Optional[StrictInt] = None
|
|
36
|
+
__properties: ClassVar[List[str]] = ["display_name", "email", "error", "id", "role_name", "ts_created", "ts_updated"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
populate_by_name=True,
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
+
return json.dumps(self.to_dict())
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of AdminUpsertUserResponse from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
return _dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
+
"""Create an instance of AdminUpsertUserResponse from a dict"""
|
|
82
|
+
if obj is None:
|
|
83
|
+
return None
|
|
84
|
+
|
|
85
|
+
if not isinstance(obj, dict):
|
|
86
|
+
return cls.model_validate(obj)
|
|
87
|
+
|
|
88
|
+
_obj = cls.model_validate({
|
|
89
|
+
"display_name": obj.get("display_name"),
|
|
90
|
+
"email": obj.get("email"),
|
|
91
|
+
"error": obj.get("error"),
|
|
92
|
+
"id": obj.get("id"),
|
|
93
|
+
"role_name": obj.get("role_name"),
|
|
94
|
+
"ts_created": obj.get("ts_created"),
|
|
95
|
+
"ts_updated": obj.get("ts_updated")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AdminUser(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AdminUser
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
display_name: Optional[StrictStr] = None
|
|
30
|
+
email: Optional[StrictStr] = None
|
|
31
|
+
id: Optional[StrictInt] = None
|
|
32
|
+
role_name: Optional[StrictStr] = None
|
|
33
|
+
ts_created: Optional[StrictInt] = None
|
|
34
|
+
ts_updated: Optional[StrictInt] = None
|
|
35
|
+
__properties: ClassVar[List[str]] = ["display_name", "email", "id", "role_name", "ts_created", "ts_updated"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of AdminUser from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
return _dict
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
+
"""Create an instance of AdminUser from a dict"""
|
|
81
|
+
if obj is None:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
if not isinstance(obj, dict):
|
|
85
|
+
return cls.model_validate(obj)
|
|
86
|
+
|
|
87
|
+
_obj = cls.model_validate({
|
|
88
|
+
"display_name": obj.get("display_name"),
|
|
89
|
+
"email": obj.get("email"),
|
|
90
|
+
"id": obj.get("id"),
|
|
91
|
+
"role_name": obj.get("role_name"),
|
|
92
|
+
"ts_created": obj.get("ts_created"),
|
|
93
|
+
"ts_updated": obj.get("ts_updated")
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|