neurograph-core 1.202508112256__py3-none-any.whl → 1.202508152055__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.
Files changed (34) hide show
  1. neurograph/v1/__init__.py +24 -16
  2. neurograph/v1/api/__init__.py +0 -1
  3. neurograph/v1/api/authentication_api.py +36 -8
  4. neurograph/v1/api/client_api.py +9 -3
  5. neurograph/v1/api/client_metadata_api.py +287 -1
  6. neurograph/v1/api/lookup_api.py +2 -0
  7. neurograph/v1/api/organization_api.py +9 -272
  8. neurograph/v1/api/organization_metadata_api.py +3 -0
  9. neurograph/v1/api/persona_api.py +1249 -135
  10. neurograph/v1/api/tasks_api.py +1 -0
  11. neurograph/v1/api/workbench_api.py +3 -0
  12. neurograph/v1/models/__init__.py +12 -7
  13. neurograph/v1/models/auth_test_service_token_request.py +87 -0
  14. neurograph/v1/models/organizations_organization_detail_response.py +1 -7
  15. neurograph/v1/models/organizations_organization_set_workbench_request.py +10 -10
  16. neurograph/v1/models/organizations_organization_set_workbench_response.py +12 -10
  17. neurograph/v1/models/organizations_workbench_config.py +12 -10
  18. neurograph/v1/models/personas_delete_many_persona_instances_request.py +87 -0
  19. neurograph/v1/models/personas_kpi.py +93 -0
  20. neurograph/v1/models/personas_persona.py +171 -0
  21. neurograph/v1/models/personas_persona_factor.py +1 -3
  22. neurograph/v1/models/personas_persona_factor_create_response.py +3 -3
  23. neurograph/v1/models/personas_persona_factor_resp.py +101 -0
  24. neurograph/v1/models/personas_persona_insight.py +93 -0
  25. neurograph/v1/models/personas_persona_instances_delete_response.py +89 -0
  26. neurograph/v1/models/personas_persona_instances_response.py +103 -0
  27. neurograph/v1/models/personas_persona_personality_trait.py +93 -0
  28. neurograph/v1/models/personas_persona_seed_get_many_response.py +105 -0
  29. neurograph/v1/models/personas_persona_seeds_delete_request.py +87 -0
  30. neurograph/v1/models/personas_persona_seeds_delete_response.py +89 -0
  31. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/METADATA +2 -2
  32. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/RECORD +34 -22
  33. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/WHEEL +0 -0
  34. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508152055.dist-info}/top_level.txt +0 -0
@@ -264,6 +264,7 @@ class TasksApi:
264
264
 
265
265
  # authentication setting
266
266
  _auth_settings: List[str] = [
267
+ 'TokenAuth',
267
268
  'ApiKeyAuth'
268
269
  ]
269
270
 
@@ -286,6 +286,7 @@ class WorkbenchApi:
286
286
 
287
287
  # authentication setting
288
288
  _auth_settings: List[str] = [
289
+ 'TokenAuth',
289
290
  'ApiKeyAuth'
290
291
  ]
291
292
 
@@ -569,6 +570,7 @@ class WorkbenchApi:
569
570
 
570
571
  # authentication setting
571
572
  _auth_settings: List[str] = [
573
+ 'TokenAuth',
572
574
  'ApiKeyAuth'
573
575
  ]
574
576
 
@@ -836,6 +838,7 @@ class WorkbenchApi:
836
838
 
837
839
  # authentication setting
838
840
  _auth_settings: List[str] = [
841
+ 'TokenAuth',
839
842
  'ApiKeyAuth'
840
843
  ]
841
844
 
@@ -14,11 +14,8 @@
14
14
 
15
15
 
16
16
  # import models into model package
17
- from neurograph.v1.models.atlas_atlas_version import AtlasAtlasVersion
18
- from neurograph.v1.models.atlas_atlas_version_many_response import AtlasAtlasVersionManyResponse
19
- from neurograph.v1.models.atlas_atlas_version_response import AtlasAtlasVersionResponse
20
- from neurograph.v1.models.atlas_atlas_version_upsert_request import AtlasAtlasVersionUpsertRequest
21
17
  from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
18
+ from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest
22
19
  from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse
23
20
  from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
24
21
  from neurograph.v1.models.client_client import ClientClient
@@ -47,7 +44,6 @@ from neurograph.v1.models.lookup_lookup_language_response import LookupLookupLan
47
44
  from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse
48
45
  from neurograph.v1.models.lookup_state import LookupState
49
46
  from neurograph.v1.models.lookup_state_response import LookupStateResponse
50
- from neurograph.v1.models.organizations_atlas_config import OrganizationsAtlasConfig
51
47
  from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
52
48
  from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest
53
49
  from neurograph.v1.models.organizations_delete_metadata_request import OrganizationsDeleteMetadataRequest
@@ -60,29 +56,38 @@ from neurograph.v1.models.organizations_organization_detail_response import Orga
60
56
  from neurograph.v1.models.organizations_organization_get_many_response import OrganizationsOrganizationGetManyResponse
61
57
  from neurograph.v1.models.organizations_organization_metadata_request import OrganizationsOrganizationMetadataRequest
62
58
  from neurograph.v1.models.organizations_organization_metadata_response import OrganizationsOrganizationMetadataResponse
63
- from neurograph.v1.models.organizations_organization_set_atlas_request import OrganizationsOrganizationSetAtlasRequest
64
- from neurograph.v1.models.organizations_organization_set_atlas_response import OrganizationsOrganizationSetAtlasResponse
65
59
  from neurograph.v1.models.organizations_organization_set_workbench_request import OrganizationsOrganizationSetWorkbenchRequest
66
60
  from neurograph.v1.models.organizations_organization_set_workbench_response import OrganizationsOrganizationSetWorkbenchResponse
67
61
  from neurograph.v1.models.organizations_organization_update_request import OrganizationsOrganizationUpdateRequest
68
62
  from neurograph.v1.models.organizations_workbench_config import OrganizationsWorkbenchConfig
63
+ from neurograph.v1.models.personas_delete_many_persona_instances_request import PersonasDeleteManyPersonaInstancesRequest
64
+ from neurograph.v1.models.personas_kpi import PersonasKpi
69
65
  from neurograph.v1.models.personas_match_criteria_row import PersonasMatchCriteriaRow
70
66
  from neurograph.v1.models.personas_match_criteria_row_in import PersonasMatchCriteriaRowIn
67
+ from neurograph.v1.models.personas_persona import PersonasPersona
71
68
  from neurograph.v1.models.personas_persona_factor import PersonasPersonaFactor
72
69
  from neurograph.v1.models.personas_persona_factor_create_request import PersonasPersonaFactorCreateRequest
73
70
  from neurograph.v1.models.personas_persona_factor_create_response import PersonasPersonaFactorCreateResponse
71
+ from neurograph.v1.models.personas_persona_factor_resp import PersonasPersonaFactorResp
72
+ from neurograph.v1.models.personas_persona_insight import PersonasPersonaInsight
74
73
  from neurograph.v1.models.personas_persona_insight_create_request import PersonasPersonaInsightCreateRequest
75
74
  from neurograph.v1.models.personas_persona_insight_create_response import PersonasPersonaInsightCreateResponse
76
75
  from neurograph.v1.models.personas_persona_instance_create_request import PersonasPersonaInstanceCreateRequest
77
76
  from neurograph.v1.models.personas_persona_instance_create_response import PersonasPersonaInstanceCreateResponse
77
+ from neurograph.v1.models.personas_persona_instances_delete_response import PersonasPersonaInstancesDeleteResponse
78
+ from neurograph.v1.models.personas_persona_instances_response import PersonasPersonaInstancesResponse
78
79
  from neurograph.v1.models.personas_persona_kpi_create_request import PersonasPersonaKpiCreateRequest
79
80
  from neurograph.v1.models.personas_persona_kpi_create_response import PersonasPersonaKpiCreateResponse
80
81
  from neurograph.v1.models.personas_persona_kpi_req import PersonasPersonaKpiReq
81
82
  from neurograph.v1.models.personas_persona_kpi_resp import PersonasPersonaKpiResp
82
83
  from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest
83
84
  from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse
85
+ from neurograph.v1.models.personas_persona_personality_trait import PersonasPersonaPersonalityTrait
84
86
  from neurograph.v1.models.personas_persona_seed_create_request import PersonasPersonaSeedCreateRequest
85
87
  from neurograph.v1.models.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse
88
+ from neurograph.v1.models.personas_persona_seed_get_many_response import PersonasPersonaSeedGetManyResponse
89
+ from neurograph.v1.models.personas_persona_seeds_delete_request import PersonasPersonaSeedsDeleteRequest
90
+ from neurograph.v1.models.personas_persona_seeds_delete_response import PersonasPersonaSeedsDeleteResponse
86
91
  from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest
87
92
  from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse
88
93
  from neurograph.v1.models.personas_personality_trait_in import PersonasPersonalityTraitIn
@@ -0,0 +1,87 @@
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 AuthTestServiceTokenRequest(BaseModel):
26
+ """
27
+ AuthTestServiceTokenRequest
28
+ """ # noqa: E501
29
+ token: Optional[StrictStr] = None
30
+ __properties: ClassVar[List[str]] = ["token"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of AuthTestServiceTokenRequest from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of AuthTestServiceTokenRequest from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "token": obj.get("token")
84
+ })
85
+ return _obj
86
+
87
+
@@ -19,7 +19,6 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from neurograph.v1.models.organizations_atlas_config import OrganizationsAtlasConfig
23
22
  from neurograph.v1.models.organizations_organization_brand import OrganizationsOrganizationBrand
24
23
  from neurograph.v1.models.organizations_workbench_config import OrganizationsWorkbenchConfig
25
24
  from typing import Optional, Set
@@ -29,7 +28,6 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
29
28
  """
30
29
  OrganizationsOrganizationDetailResponse
31
30
  """ # noqa: E501
32
- atlas: Optional[OrganizationsAtlasConfig] = None
33
31
  branding: Optional[OrganizationsOrganizationBrand] = None
34
32
  description: Optional[StrictStr] = None
35
33
  error: Optional[StrictStr] = None
@@ -42,7 +40,7 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
42
40
  uid: Optional[StrictStr] = None
43
41
  url: Optional[StrictStr] = None
44
42
  workbench: Optional[OrganizationsWorkbenchConfig] = None
45
- __properties: ClassVar[List[str]] = ["atlas", "branding", "description", "error", "id", "image_url", "is_active", "name", "ts_created", "ts_updated", "uid", "url", "workbench"]
43
+ __properties: ClassVar[List[str]] = ["branding", "description", "error", "id", "image_url", "is_active", "name", "ts_created", "ts_updated", "uid", "url", "workbench"]
46
44
 
47
45
  model_config = ConfigDict(
48
46
  populate_by_name=True,
@@ -83,9 +81,6 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
83
81
  exclude=excluded_fields,
84
82
  exclude_none=True,
85
83
  )
86
- # override the default output from pydantic by calling `to_dict()` of atlas
87
- if self.atlas:
88
- _dict['atlas'] = self.atlas.to_dict()
89
84
  # override the default output from pydantic by calling `to_dict()` of branding
90
85
  if self.branding:
91
86
  _dict['branding'] = self.branding.to_dict()
@@ -104,7 +99,6 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
104
99
  return cls.model_validate(obj)
105
100
 
106
101
  _obj = cls.model_validate({
107
- "atlas": OrganizationsAtlasConfig.from_dict(obj["atlas"]) if obj.get("atlas") is not None else None,
108
102
  "branding": OrganizationsOrganizationBrand.from_dict(obj["branding"]) if obj.get("branding") is not None else None,
109
103
  "description": obj.get("description"),
110
104
  "error": obj.get("error"),
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -26,11 +26,11 @@ class OrganizationsOrganizationSetWorkbenchRequest(BaseModel):
26
26
  """
27
27
  OrganizationsOrganizationSetWorkbenchRequest
28
28
  """ # noqa: E501
29
- atlas_is_active: Optional[StrictBool] = None
30
- atlas_url: Optional[StrictStr] = None
31
- atlas_version_id: Optional[StrictInt] = None
32
- org_guid: Optional[StrictInt] = None
33
- __properties: ClassVar[List[str]] = ["atlas_is_active", "atlas_url", "atlas_version_id", "org_guid"]
29
+ org_id: Optional[StrictInt] = None
30
+ workbench_is_active: Optional[StrictBool] = None
31
+ workbench_url: Optional[StrictStr] = Field(default=None, description="Single hostname label only (e.g., \"personas\", \"example\"); no dots or slashes.")
32
+ workbench_url_ext: Optional[StrictStr] = Field(default=None, description="Fully-qualified domain name (FQDN) only (e.g., \"personas.example.io\"); no scheme or path.")
33
+ __properties: ClassVar[List[str]] = ["org_id", "workbench_is_active", "workbench_url", "workbench_url_ext"]
34
34
 
35
35
  model_config = ConfigDict(
36
36
  populate_by_name=True,
@@ -83,10 +83,10 @@ class OrganizationsOrganizationSetWorkbenchRequest(BaseModel):
83
83
  return cls.model_validate(obj)
84
84
 
85
85
  _obj = cls.model_validate({
86
- "atlas_is_active": obj.get("atlas_is_active"),
87
- "atlas_url": obj.get("atlas_url"),
88
- "atlas_version_id": obj.get("atlas_version_id"),
89
- "org_guid": obj.get("org_guid")
86
+ "org_id": obj.get("org_id"),
87
+ "workbench_is_active": obj.get("workbench_is_active"),
88
+ "workbench_url": obj.get("workbench_url"),
89
+ "workbench_url_ext": obj.get("workbench_url_ext")
90
90
  })
91
91
  return _obj
92
92
 
@@ -28,12 +28,13 @@ class OrganizationsOrganizationSetWorkbenchResponse(BaseModel):
28
28
  """ # noqa: E501
29
29
  description: Optional[StrictStr] = None
30
30
  error: Optional[StrictStr] = None
31
- id: Optional[StrictInt] = None
32
- is_active: Optional[StrictBool] = None
33
- name: Optional[StrictStr] = None
34
- url: Optional[StrictStr] = None
31
+ org_id: Optional[StrictInt] = None
35
32
  version: Optional[StrictStr] = None
36
- __properties: ClassVar[List[str]] = ["description", "error", "id", "is_active", "name", "url", "version"]
33
+ version_name: Optional[StrictStr] = None
34
+ workbench_is_active: Optional[StrictBool] = None
35
+ workbench_url: Optional[StrictStr] = None
36
+ workbench_url_ext: Optional[StrictStr] = None
37
+ __properties: ClassVar[List[str]] = ["description", "error", "org_id", "version", "version_name", "workbench_is_active", "workbench_url", "workbench_url_ext"]
37
38
 
38
39
  model_config = ConfigDict(
39
40
  populate_by_name=True,
@@ -88,11 +89,12 @@ class OrganizationsOrganizationSetWorkbenchResponse(BaseModel):
88
89
  _obj = cls.model_validate({
89
90
  "description": obj.get("description"),
90
91
  "error": obj.get("error"),
91
- "id": obj.get("id"),
92
- "is_active": obj.get("is_active"),
93
- "name": obj.get("name"),
94
- "url": obj.get("url"),
95
- "version": obj.get("version")
92
+ "org_id": obj.get("org_id"),
93
+ "version": obj.get("version"),
94
+ "version_name": obj.get("version_name"),
95
+ "workbench_is_active": obj.get("workbench_is_active"),
96
+ "workbench_url": obj.get("workbench_url"),
97
+ "workbench_url_ext": obj.get("workbench_url_ext")
96
98
  })
97
99
  return _obj
98
100
 
@@ -27,12 +27,13 @@ class OrganizationsWorkbenchConfig(BaseModel):
27
27
  OrganizationsWorkbenchConfig
28
28
  """ # noqa: E501
29
29
  description: Optional[StrictStr] = None
30
- id: Optional[StrictInt] = None
31
- is_active: Optional[StrictBool] = None
32
- name: Optional[StrictStr] = None
33
- url: Optional[StrictStr] = None
30
+ org_id: Optional[StrictInt] = None
34
31
  version: Optional[StrictStr] = None
35
- __properties: ClassVar[List[str]] = ["description", "id", "is_active", "name", "url", "version"]
32
+ version_name: Optional[StrictStr] = None
33
+ workbench_is_active: Optional[StrictBool] = None
34
+ workbench_url: Optional[StrictStr] = None
35
+ workbench_url_ext: Optional[StrictStr] = None
36
+ __properties: ClassVar[List[str]] = ["description", "org_id", "version", "version_name", "workbench_is_active", "workbench_url", "workbench_url_ext"]
36
37
 
37
38
  model_config = ConfigDict(
38
39
  populate_by_name=True,
@@ -86,11 +87,12 @@ class OrganizationsWorkbenchConfig(BaseModel):
86
87
 
87
88
  _obj = cls.model_validate({
88
89
  "description": obj.get("description"),
89
- "id": obj.get("id"),
90
- "is_active": obj.get("is_active"),
91
- "name": obj.get("name"),
92
- "url": obj.get("url"),
93
- "version": obj.get("version")
90
+ "org_id": obj.get("org_id"),
91
+ "version": obj.get("version"),
92
+ "version_name": obj.get("version_name"),
93
+ "workbench_is_active": obj.get("workbench_is_active"),
94
+ "workbench_url": obj.get("workbench_url"),
95
+ "workbench_url_ext": obj.get("workbench_url_ext")
94
96
  })
95
97
  return _obj
96
98
 
@@ -0,0 +1,87 @@
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
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class PersonasDeleteManyPersonaInstancesRequest(BaseModel):
26
+ """
27
+ PersonasDeleteManyPersonaInstancesRequest
28
+ """ # noqa: E501
29
+ persona_instance_ids: Optional[List[StrictInt]] = None
30
+ __properties: ClassVar[List[str]] = ["persona_instance_ids"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of PersonasDeleteManyPersonaInstancesRequest from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of PersonasDeleteManyPersonaInstancesRequest from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "persona_instance_ids": obj.get("persona_instance_ids")
84
+ })
85
+ return _obj
86
+
87
+
@@ -0,0 +1,93 @@
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 PersonasKpi(BaseModel):
26
+ """
27
+ PersonasKpi
28
+ """ # noqa: E501
29
+ id: Optional[StrictInt] = None
30
+ name: Optional[StrictStr] = None
31
+ persona_instance_id: Optional[StrictInt] = None
32
+ value: Optional[StrictStr] = None
33
+ __properties: ClassVar[List[str]] = ["id", "name", "persona_instance_id", "value"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of PersonasKpi from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of PersonasKpi from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "id": obj.get("id"),
87
+ "name": obj.get("name"),
88
+ "persona_instance_id": obj.get("persona_instance_id"),
89
+ "value": obj.get("value")
90
+ })
91
+ return _obj
92
+
93
+