neurograph-core 1.202508112256__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/__init__.py +0 -0
- neurograph/v1/__init__.py +227 -0
- neurograph/v1/api/__init__.py +15 -0
- neurograph/v1/api/atlas_api.py +588 -0
- neurograph/v1/api/authentication_api.py +830 -0
- neurograph/v1/api/client_api.py +1684 -0
- neurograph/v1/api/client_metadata_api.py +871 -0
- neurograph/v1/api/lookup_api.py +1049 -0
- neurograph/v1/api/organization_api.py +1975 -0
- neurograph/v1/api/organization_metadata_api.py +872 -0
- neurograph/v1/api/persona_api.py +1920 -0
- neurograph/v1/api/system_api.py +293 -0
- neurograph/v1/api/tasks_api.py +285 -0
- neurograph/v1/api/workbench_api.py +857 -0
- neurograph/v1/api_client.py +801 -0
- neurograph/v1/api_response.py +21 -0
- neurograph/v1/configuration.py +612 -0
- neurograph/v1/exceptions.py +216 -0
- neurograph/v1/models/__init__.py +96 -0
- neurograph/v1/models/atlas_atlas_version.py +99 -0
- neurograph/v1/models/atlas_atlas_version_many_response.py +97 -0
- neurograph/v1/models/atlas_atlas_version_response.py +101 -0
- neurograph/v1/models/atlas_atlas_version_upsert_request.py +95 -0
- neurograph/v1/models/auth_service_token_request.py +87 -0
- neurograph/v1/models/auth_test_service_token_response.py +89 -0
- neurograph/v1/models/auth_test_token_response.py +87 -0
- neurograph/v1/models/client_client.py +109 -0
- neurograph/v1/models/client_client_creat_response.py +111 -0
- neurograph/v1/models/client_client_create_request.py +95 -0
- neurograph/v1/models/client_client_get_detail_response.py +93 -0
- neurograph/v1/models/client_client_get_many_response.py +105 -0
- neurograph/v1/models/client_client_metadata_request.py +89 -0
- neurograph/v1/models/client_client_metadata_response.py +97 -0
- neurograph/v1/models/client_client_personas_response.py +99 -0
- neurograph/v1/models/client_client_url_upsert_request.py +99 -0
- neurograph/v1/models/client_client_url_upsert_response.py +101 -0
- neurograph/v1/models/client_client_urls_response.py +101 -0
- neurograph/v1/models/client_delete_metadata_request.py +87 -0
- neurograph/v1/models/client_kpi.py +93 -0
- neurograph/v1/models/client_metadata.py +93 -0
- neurograph/v1/models/client_persona.py +171 -0
- neurograph/v1/models/client_persona_factor.py +99 -0
- neurograph/v1/models/client_persona_insight.py +93 -0
- neurograph/v1/models/client_persona_personality_trait.py +93 -0
- neurograph/v1/models/client_query.py +93 -0
- neurograph/v1/models/db_client_url.py +99 -0
- neurograph/v1/models/db_persona_factor_create_params.py +97 -0
- neurograph/v1/models/lookup_language.py +97 -0
- neurograph/v1/models/lookup_lookup_language_response.py +97 -0
- neurograph/v1/models/lookup_lookup_state_response.py +97 -0
- neurograph/v1/models/lookup_state.py +91 -0
- neurograph/v1/models/lookup_state_response.py +93 -0
- neurograph/v1/models/organizations_atlas_config.py +97 -0
- neurograph/v1/models/organizations_brand_detail_response.py +109 -0
- neurograph/v1/models/organizations_brand_upsert_request.py +107 -0
- neurograph/v1/models/organizations_delete_metadata_request.py +87 -0
- neurograph/v1/models/organizations_delete_metadata_response.py +97 -0
- neurograph/v1/models/organizations_metadata.py +93 -0
- neurograph/v1/models/organizations_organization.py +103 -0
- neurograph/v1/models/organizations_organization_brand.py +107 -0
- neurograph/v1/models/organizations_organization_create_request.py +97 -0
- neurograph/v1/models/organizations_organization_detail_response.py +123 -0
- neurograph/v1/models/organizations_organization_get_many_response.py +103 -0
- neurograph/v1/models/organizations_organization_metadata_request.py +89 -0
- neurograph/v1/models/organizations_organization_metadata_response.py +97 -0
- neurograph/v1/models/organizations_organization_set_atlas_request.py +93 -0
- neurograph/v1/models/organizations_organization_set_atlas_response.py +99 -0
- neurograph/v1/models/organizations_organization_set_workbench_request.py +93 -0
- neurograph/v1/models/organizations_organization_set_workbench_response.py +99 -0
- neurograph/v1/models/organizations_organization_update_request.py +99 -0
- neurograph/v1/models/organizations_workbench_config.py +97 -0
- neurograph/v1/models/personas_match_criteria_row.py +97 -0
- neurograph/v1/models/personas_match_criteria_row_in.py +93 -0
- neurograph/v1/models/personas_persona_factor.py +101 -0
- neurograph/v1/models/personas_persona_factor_create_request.py +95 -0
- neurograph/v1/models/personas_persona_factor_create_response.py +97 -0
- neurograph/v1/models/personas_persona_insight_create_request.py +91 -0
- neurograph/v1/models/personas_persona_insight_create_response.py +95 -0
- neurograph/v1/models/personas_persona_instance_create_request.py +123 -0
- neurograph/v1/models/personas_persona_instance_create_response.py +127 -0
- neurograph/v1/models/personas_persona_kpi_create_request.py +95 -0
- neurograph/v1/models/personas_persona_kpi_create_response.py +97 -0
- neurograph/v1/models/personas_persona_kpi_req.py +91 -0
- neurograph/v1/models/personas_persona_kpi_resp.py +95 -0
- neurograph/v1/models/personas_persona_match_criteria_request.py +95 -0
- neurograph/v1/models/personas_persona_match_criteria_response.py +97 -0
- neurograph/v1/models/personas_persona_seed_create_request.py +89 -0
- neurograph/v1/models/personas_persona_seed_create_response.py +97 -0
- neurograph/v1/models/personas_persona_trait_create_request.py +95 -0
- neurograph/v1/models/personas_persona_trait_create_response.py +97 -0
- neurograph/v1/models/personas_personality_trait_in.py +91 -0
- neurograph/v1/models/personas_personality_trait_out.py +95 -0
- neurograph/v1/models/tasks_sync_from_firebase_result.py +87 -0
- neurograph/v1/models/workbench_workbench_url_check_request.py +87 -0
- neurograph/v1/models/workbench_workbench_url_check_response.py +111 -0
- neurograph/v1/models/workbench_workbench_version.py +99 -0
- neurograph/v1/models/workbench_workbench_version_many_response.py +97 -0
- neurograph/v1/models/workbench_workbench_version_response.py +101 -0
- neurograph/v1/models/workbench_workbench_version_upsert_request.py +95 -0
- neurograph/v1/py.typed +0 -0
- neurograph/v1/rest.py +258 -0
- neurograph_core-1.202508112256.dist-info/METADATA +62 -0
- neurograph_core-1.202508112256.dist-info/RECORD +105 -0
- neurograph_core-1.202508112256.dist-info/WHEEL +5 -0
- neurograph_core-1.202508112256.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,103 @@
|
|
|
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 neurograph.v1.models.organizations_organization import OrganizationsOrganization
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class OrganizationsOrganizationGetManyResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
OrganizationsOrganizationGetManyResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
data: Optional[List[OrganizationsOrganization]] = None
|
|
31
|
+
error: Optional[StrictStr] = None
|
|
32
|
+
limit: Optional[StrictInt] = None
|
|
33
|
+
offset: Optional[StrictInt] = None
|
|
34
|
+
total_rows: Optional[StrictInt] = None
|
|
35
|
+
__properties: ClassVar[List[str]] = ["data", "error", "limit", "offset", "total_rows"]
|
|
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 OrganizationsOrganizationGetManyResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in data (list)
|
|
77
|
+
_items = []
|
|
78
|
+
if self.data:
|
|
79
|
+
for _item_data in self.data:
|
|
80
|
+
if _item_data:
|
|
81
|
+
_items.append(_item_data.to_dict())
|
|
82
|
+
_dict['data'] = _items
|
|
83
|
+
return _dict
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
+
"""Create an instance of OrganizationsOrganizationGetManyResponse from a dict"""
|
|
88
|
+
if obj is None:
|
|
89
|
+
return None
|
|
90
|
+
|
|
91
|
+
if not isinstance(obj, dict):
|
|
92
|
+
return cls.model_validate(obj)
|
|
93
|
+
|
|
94
|
+
_obj = cls.model_validate({
|
|
95
|
+
"data": [OrganizationsOrganization.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
96
|
+
"error": obj.get("error"),
|
|
97
|
+
"limit": obj.get("limit"),
|
|
98
|
+
"offset": obj.get("offset"),
|
|
99
|
+
"total_rows": obj.get("total_rows")
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 OrganizationsOrganizationMetadataRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
OrganizationsOrganizationMetadataRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
key: Optional[StrictStr] = None
|
|
30
|
+
value: Optional[StrictStr] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["key", "value"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of OrganizationsOrganizationMetadataRequest from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of OrganizationsOrganizationMetadataRequest from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"key": obj.get("key"),
|
|
85
|
+
"value": obj.get("value")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -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, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.organizations_metadata import OrganizationsMetadata
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class OrganizationsOrganizationMetadataResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
OrganizationsOrganizationMetadataResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
error: Optional[StrictStr] = None
|
|
31
|
+
metadata: Optional[List[OrganizationsMetadata]] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["error", "metadata"]
|
|
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 OrganizationsOrganizationMetadataResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in metadata (list)
|
|
74
|
+
_items = []
|
|
75
|
+
if self.metadata:
|
|
76
|
+
for _item_metadata in self.metadata:
|
|
77
|
+
if _item_metadata:
|
|
78
|
+
_items.append(_item_metadata.to_dict())
|
|
79
|
+
_dict['metadata'] = _items
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of OrganizationsOrganizationMetadataResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"error": obj.get("error"),
|
|
93
|
+
"metadata": [OrganizationsMetadata.from_dict(_item) for _item in obj["metadata"]] if obj.get("metadata") is not None else None
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
|
@@ -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, StrictBool, 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 OrganizationsOrganizationSetAtlasRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
OrganizationsOrganizationSetAtlasRequest
|
|
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_id: Optional[StrictInt] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["atlas_is_active", "atlas_url", "atlas_version_id", "org_id"]
|
|
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 OrganizationsOrganizationSetAtlasRequest 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 OrganizationsOrganizationSetAtlasRequest 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
|
+
"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_id": obj.get("org_id")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -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, StrictBool, 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 OrganizationsOrganizationSetAtlasResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
OrganizationsOrganizationSetAtlasResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
description: Optional[StrictStr] = None
|
|
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
|
|
35
|
+
version: Optional[StrictStr] = None
|
|
36
|
+
__properties: ClassVar[List[str]] = ["description", "error", "id", "is_active", "name", "url", "version"]
|
|
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 OrganizationsOrganizationSetAtlasResponse 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 OrganizationsOrganizationSetAtlasResponse 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
|
+
"description": obj.get("description"),
|
|
90
|
+
"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")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
|
@@ -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, StrictBool, 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 OrganizationsOrganizationSetWorkbenchRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
OrganizationsOrganizationSetWorkbenchRequest
|
|
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"]
|
|
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 OrganizationsOrganizationSetWorkbenchRequest 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 OrganizationsOrganizationSetWorkbenchRequest 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
|
+
"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")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -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, StrictBool, 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 OrganizationsOrganizationSetWorkbenchResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
OrganizationsOrganizationSetWorkbenchResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
description: Optional[StrictStr] = None
|
|
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
|
|
35
|
+
version: Optional[StrictStr] = None
|
|
36
|
+
__properties: ClassVar[List[str]] = ["description", "error", "id", "is_active", "name", "url", "version"]
|
|
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 OrganizationsOrganizationSetWorkbenchResponse 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 OrganizationsOrganizationSetWorkbenchResponse 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
|
+
"description": obj.get("description"),
|
|
90
|
+
"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")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|