neurograph-core 1.202509282026__py3-none-any.whl → 1.202510052316__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 +25 -218
- neurograph/v1/api/__init__.py +2 -29
- neurograph/v1/api/admin_api.py +549 -1
- neurograph/v1/api/client_api.py +263 -0
- neurograph/v1/api/knowledge_api.py +296 -0
- neurograph/v1/api/knowledge_extract_api.py +1 -1
- neurograph/v1/api/lookup_api.py +2 -0
- neurograph/v1/api/organization_api.py +528 -1
- neurograph/v1/api/reporting_api.py +1475 -0
- neurograph/v1/api/user_api.py +18 -1092
- neurograph/v1/api_client.py +4 -4
- neurograph/v1/models/__init__.py +12 -189
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +3 -1
- neurograph/v1/models/knowledge_enrichment_query.py +3 -1
- neurograph/v1/models/knowledge_product.py +103 -0
- neurograph/v1/models/knowledge_product_upsert_request.py +95 -0
- neurograph/v1/models/knowledge_product_upsert_response.py +99 -0
- neurograph/v1/models/{db_lookup_environment.py → lookup_env.py} +6 -12
- neurograph/v1/models/lookup_lookup_environments_response.py +3 -3
- neurograph/v1/models/reporting_affinities_response.py +89 -0
- neurograph/v1/models/reporting_customer_activity_response.py +89 -0
- neurograph/v1/models/reporting_daily_metric.py +95 -0
- neurograph/v1/models/reporting_daily_metrics_response.py +97 -0
- neurograph/v1/models/reporting_persona_activity_response.py +89 -0
- neurograph/v1/models/reporting_personas_response.py +89 -0
- neurograph/v1/models/reporting_query.py +91 -0
- {neurograph_core-1.202509282026.dist-info → neurograph_core-1.202510052316.dist-info}/METADATA +2 -3
- {neurograph_core-1.202509282026.dist-info → neurograph_core-1.202510052316.dist-info}/RECORD +30 -19
- {neurograph_core-1.202509282026.dist-info → neurograph_core-1.202510052316.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509282026.dist-info → neurograph_core-1.202510052316.dist-info}/top_level.txt +0 -0
neurograph/v1/api_client.py
CHANGED
|
@@ -460,13 +460,13 @@ class ApiClient:
|
|
|
460
460
|
|
|
461
461
|
if klass in self.PRIMITIVE_TYPES:
|
|
462
462
|
return self.__deserialize_primitive(data, klass)
|
|
463
|
-
elif klass
|
|
463
|
+
elif klass is object:
|
|
464
464
|
return self.__deserialize_object(data)
|
|
465
|
-
elif klass
|
|
465
|
+
elif klass is datetime.date:
|
|
466
466
|
return self.__deserialize_date(data)
|
|
467
|
-
elif klass
|
|
467
|
+
elif klass is datetime.datetime:
|
|
468
468
|
return self.__deserialize_datetime(data)
|
|
469
|
-
elif klass
|
|
469
|
+
elif klass is decimal.Decimal:
|
|
470
470
|
return decimal.Decimal(data)
|
|
471
471
|
elif issubclass(klass, Enum):
|
|
472
472
|
return self.__deserialize_enum(data, klass)
|
neurograph/v1/models/__init__.py
CHANGED
|
@@ -12,189 +12,7 @@
|
|
|
12
12
|
Do not edit the class manually.
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
if __import__("typing").TYPE_CHECKING:
|
|
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
|
|
26
|
-
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
|
|
27
|
-
from neurograph.v1.models.auth_service_token_response import AuthServiceTokenResponse
|
|
28
|
-
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest
|
|
29
|
-
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse
|
|
30
|
-
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
|
|
31
|
-
from neurograph.v1.models.client_client import ClientClient
|
|
32
|
-
from neurograph.v1.models.client_delete_metadata_request import ClientDeleteMetadataRequest
|
|
33
|
-
from neurograph.v1.models.client_get_detail_response import ClientGetDetailResponse
|
|
34
|
-
from neurograph.v1.models.client_get_many_response import ClientGetManyResponse
|
|
35
|
-
from neurograph.v1.models.client_info import ClientInfo
|
|
36
|
-
from neurograph.v1.models.client_kpi import ClientKpi
|
|
37
|
-
from neurograph.v1.models.client_metadata import ClientMetadata
|
|
38
|
-
from neurograph.v1.models.client_metadata_request import ClientMetadataRequest
|
|
39
|
-
from neurograph.v1.models.client_metadata_response import ClientMetadataResponse
|
|
40
|
-
from neurograph.v1.models.client_organization_brand import ClientOrganizationBrand
|
|
41
|
-
from neurograph.v1.models.client_organization_detail import ClientOrganizationDetail
|
|
42
|
-
from neurograph.v1.models.client_persona import ClientPersona
|
|
43
|
-
from neurograph.v1.models.client_persona_factor import ClientPersonaFactor
|
|
44
|
-
from neurograph.v1.models.client_persona_insight import ClientPersonaInsight
|
|
45
|
-
from neurograph.v1.models.client_persona_personality_trait import ClientPersonaPersonalityTrait
|
|
46
|
-
from neurograph.v1.models.client_personas_response import ClientPersonasResponse
|
|
47
|
-
from neurograph.v1.models.client_probe import ClientProbe
|
|
48
|
-
from neurograph.v1.models.client_probe_todo_row import ClientProbeTodoRow
|
|
49
|
-
from neurograph.v1.models.client_query import ClientQuery
|
|
50
|
-
from neurograph.v1.models.client_trigger_probe_response import ClientTriggerProbeResponse
|
|
51
|
-
from neurograph.v1.models.client_url_snapshot_response import ClientURLSnapshotResponse
|
|
52
|
-
from neurograph.v1.models.client_upsert_request import ClientUpsertRequest
|
|
53
|
-
from neurograph.v1.models.client_upsert_response import ClientUpsertResponse
|
|
54
|
-
from neurograph.v1.models.client_url_row import ClientUrlRow
|
|
55
|
-
from neurograph.v1.models.client_url_snapshot_row import ClientUrlSnapshotRow
|
|
56
|
-
from neurograph.v1.models.client_url_upsert_request import ClientUrlUpsertRequest
|
|
57
|
-
from neurograph.v1.models.client_url_upsert_response import ClientUrlUpsertResponse
|
|
58
|
-
from neurograph.v1.models.client_urls_response import ClientUrlsResponse
|
|
59
|
-
from neurograph.v1.models.client_workbench_config import ClientWorkbenchConfig
|
|
60
|
-
from neurograph.v1.models.dagster_info import DagsterInfo
|
|
61
|
-
from neurograph.v1.models.dagster_log_create_request import DagsterLogCreateRequest
|
|
62
|
-
from neurograph.v1.models.dagster_log_create_response import DagsterLogCreateResponse
|
|
63
|
-
from neurograph.v1.models.dagster_log_get_response import DagsterLogGetResponse
|
|
64
|
-
from neurograph.v1.models.db_account_organization_brand import DbAccountOrganizationBrand
|
|
65
|
-
from neurograph.v1.models.db_client_url import DbClientUrl
|
|
66
|
-
from neurograph.v1.models.db_knowledge_customer import DbKnowledgeCustomer
|
|
67
|
-
from neurograph.v1.models.db_knowledge_order import DbKnowledgeOrder
|
|
68
|
-
from neurograph.v1.models.db_knowledge_product import DbKnowledgeProduct
|
|
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
|
|
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
|
|
78
|
-
from neurograph.v1.models.knowledge_assertion import KnowledgeAssertion
|
|
79
|
-
from neurograph.v1.models.knowledge_assertion_create_request import KnowledgeAssertionCreateRequest
|
|
80
|
-
from neurograph.v1.models.knowledge_assertion_list_response import KnowledgeAssertionListResponse
|
|
81
|
-
from neurograph.v1.models.knowledge_assertion_query import KnowledgeAssertionQuery
|
|
82
|
-
from neurograph.v1.models.knowledge_assertion_response import KnowledgeAssertionResponse
|
|
83
|
-
from neurograph.v1.models.knowledge_customer_query import KnowledgeCustomerQuery
|
|
84
|
-
from neurograph.v1.models.knowledge_customer_response import KnowledgeCustomerResponse
|
|
85
|
-
from neurograph.v1.models.knowledge_enrichment_artifact import KnowledgeEnrichmentArtifact
|
|
86
|
-
from neurograph.v1.models.knowledge_enrichment_artifact_create_request import KnowledgeEnrichmentArtifactCreateRequest
|
|
87
|
-
from neurograph.v1.models.knowledge_enrichment_artifact_list_response import KnowledgeEnrichmentArtifactListResponse
|
|
88
|
-
from neurograph.v1.models.knowledge_enrichment_artifact_response import KnowledgeEnrichmentArtifactResponse
|
|
89
|
-
from neurograph.v1.models.knowledge_enrichment_artifact_update_output_request import KnowledgeEnrichmentArtifactUpdateOutputRequest
|
|
90
|
-
from neurograph.v1.models.knowledge_enrichment_artifact_update_status_request import KnowledgeEnrichmentArtifactUpdateStatusRequest
|
|
91
|
-
from neurograph.v1.models.knowledge_enrichment_query import KnowledgeEnrichmentQuery
|
|
92
|
-
from neurograph.v1.models.knowledge_entity import KnowledgeEntity
|
|
93
|
-
from neurograph.v1.models.knowledge_entity_create_request import KnowledgeEntityCreateRequest
|
|
94
|
-
from neurograph.v1.models.knowledge_entity_create_response import KnowledgeEntityCreateResponse
|
|
95
|
-
from neurograph.v1.models.knowledge_entity_err_row import KnowledgeEntityErrRow
|
|
96
|
-
from neurograph.v1.models.knowledge_entity_extra import KnowledgeEntityExtra
|
|
97
|
-
from neurograph.v1.models.knowledge_entity_get_many_response import KnowledgeEntityGetManyResponse
|
|
98
|
-
from neurograph.v1.models.knowledge_entity_in_db import KnowledgeEntityInDb
|
|
99
|
-
from neurograph.v1.models.knowledge_entity_relations import KnowledgeEntityRelations
|
|
100
|
-
from neurograph.v1.models.knowledge_entity_schema import KnowledgeEntitySchema
|
|
101
|
-
from neurograph.v1.models.knowledge_entity_schema_row import KnowledgeEntitySchemaRow
|
|
102
|
-
from neurograph.v1.models.knowledge_entity_schema_upsert_request import KnowledgeEntitySchemaUpsertRequest
|
|
103
|
-
from neurograph.v1.models.knowledge_entity_schemas_response import KnowledgeEntitySchemasResponse
|
|
104
|
-
from neurograph.v1.models.knowledge_entity_schemas_upsert_response import KnowledgeEntitySchemasUpsertResponse
|
|
105
|
-
from neurograph.v1.models.knowledge_entity_type_response import KnowledgeEntityTypeResponse
|
|
106
|
-
from neurograph.v1.models.knowledge_entity_type_row import KnowledgeEntityTypeRow
|
|
107
|
-
from neurograph.v1.models.knowledge_entity_type_upsert_request import KnowledgeEntityTypeUpsertRequest
|
|
108
|
-
from neurograph.v1.models.knowledge_entity_type_upsert_row import KnowledgeEntityTypeUpsertRow
|
|
109
|
-
from neurograph.v1.models.knowledge_entity_upsert_request import KnowledgeEntityUpsertRequest
|
|
110
|
-
from neurograph.v1.models.knowledge_entity_upsert_response import KnowledgeEntityUpsertResponse
|
|
111
|
-
from neurograph.v1.models.knowledge_ingest_raw_request import KnowledgeIngestRawRequest
|
|
112
|
-
from neurograph.v1.models.knowledge_ingest_raw_response import KnowledgeIngestRawResponse
|
|
113
|
-
from neurograph.v1.models.knowledge_ingest_raw_row import KnowledgeIngestRawRow
|
|
114
|
-
from neurograph.v1.models.knowledge_kind_response import KnowledgeKindResponse
|
|
115
|
-
from neurograph.v1.models.knowledge_order_query import KnowledgeOrderQuery
|
|
116
|
-
from neurograph.v1.models.knowledge_order_response import KnowledgeOrderResponse
|
|
117
|
-
from neurograph.v1.models.knowledge_product_query import KnowledgeProductQuery
|
|
118
|
-
from neurograph.v1.models.knowledge_product_response import KnowledgeProductResponse
|
|
119
|
-
from neurograph.v1.models.knowledge_query import KnowledgeQuery
|
|
120
|
-
from neurograph.v1.models.knowledge_store_query import KnowledgeStoreQuery
|
|
121
|
-
from neurograph.v1.models.knowledge_store_response import KnowledgeStoreResponse
|
|
122
|
-
from neurograph.v1.models.lookup_language import LookupLanguage
|
|
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
|
|
127
|
-
from neurograph.v1.models.lookup_state import LookupState
|
|
128
|
-
from neurograph.v1.models.lookup_state_response import LookupStateResponse
|
|
129
|
-
from neurograph.v1.models.lookup_states_response import LookupStatesResponse
|
|
130
|
-
from neurograph.v1.models.lookup_uid import LookupUid
|
|
131
|
-
from neurograph.v1.models.lookup_uids_response import LookupUidsResponse
|
|
132
|
-
from neurograph.v1.models.me_my_profile_response import MeMyProfileResponse
|
|
133
|
-
from neurograph.v1.models.organizations_brand import OrganizationsBrand
|
|
134
|
-
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
|
|
135
|
-
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest
|
|
136
|
-
from neurograph.v1.models.organizations_create_request import OrganizationsCreateRequest
|
|
137
|
-
from neurograph.v1.models.organizations_delete_metadata_request import OrganizationsDeleteMetadataRequest
|
|
138
|
-
from neurograph.v1.models.organizations_delete_metadata_response import OrganizationsDeleteMetadataResponse
|
|
139
|
-
from neurograph.v1.models.organizations_detail_response import OrganizationsDetailResponse
|
|
140
|
-
from neurograph.v1.models.organizations_get_many_response import OrganizationsGetManyResponse
|
|
141
|
-
from neurograph.v1.models.organizations_metadata import OrganizationsMetadata
|
|
142
|
-
from neurograph.v1.models.organizations_metadata_request import OrganizationsMetadataRequest
|
|
143
|
-
from neurograph.v1.models.organizations_metadata_response import OrganizationsMetadataResponse
|
|
144
|
-
from neurograph.v1.models.organizations_organization import OrganizationsOrganization
|
|
145
|
-
from neurograph.v1.models.organizations_organization_set_workbench_request import OrganizationsOrganizationSetWorkbenchRequest
|
|
146
|
-
from neurograph.v1.models.organizations_organization_set_workbench_response import OrganizationsOrganizationSetWorkbenchResponse
|
|
147
|
-
from neurograph.v1.models.organizations_organization_update_request import OrganizationsOrganizationUpdateRequest
|
|
148
|
-
from neurograph.v1.models.organizations_workbench_config import OrganizationsWorkbenchConfig
|
|
149
|
-
from neurograph.v1.models.personas_factor_create_request import PersonasFactorCreateRequest
|
|
150
|
-
from neurograph.v1.models.personas_factor_create_response import PersonasFactorCreateResponse
|
|
151
|
-
from neurograph.v1.models.personas_factor_row import PersonasFactorRow
|
|
152
|
-
from neurograph.v1.models.personas_insight_create_request import PersonasInsightCreateRequest
|
|
153
|
-
from neurograph.v1.models.personas_insight_create_response import PersonasInsightCreateResponse
|
|
154
|
-
from neurograph.v1.models.personas_instance_create_request import PersonasInstanceCreateRequest
|
|
155
|
-
from neurograph.v1.models.personas_instance_create_response import PersonasInstanceCreateResponse
|
|
156
|
-
from neurograph.v1.models.personas_instance_delete_many_request import PersonasInstanceDeleteManyRequest
|
|
157
|
-
from neurograph.v1.models.personas_instance_delete_many_response import PersonasInstanceDeleteManyResponse
|
|
158
|
-
from neurograph.v1.models.personas_instances_response import PersonasInstancesResponse
|
|
159
|
-
from neurograph.v1.models.personas_kpi import PersonasKpi
|
|
160
|
-
from neurograph.v1.models.personas_kpi_create_request import PersonasKpiCreateRequest
|
|
161
|
-
from neurograph.v1.models.personas_kpi_create_response import PersonasKpiCreateResponse
|
|
162
|
-
from neurograph.v1.models.personas_kpi_req_row import PersonasKpiReqRow
|
|
163
|
-
from neurograph.v1.models.personas_kpi_row_in_db import PersonasKpiRowInDb
|
|
164
|
-
from neurograph.v1.models.personas_match_criteria_request import PersonasMatchCriteriaRequest
|
|
165
|
-
from neurograph.v1.models.personas_match_criteria_response import PersonasMatchCriteriaResponse
|
|
166
|
-
from neurograph.v1.models.personas_match_criteria_row_in import PersonasMatchCriteriaRowIn
|
|
167
|
-
from neurograph.v1.models.personas_match_criteria_row_in_db import PersonasMatchCriteriaRowInDb
|
|
168
|
-
from neurograph.v1.models.personas_persona import PersonasPersona
|
|
169
|
-
from neurograph.v1.models.personas_persona_factor import PersonasPersonaFactor
|
|
170
|
-
from neurograph.v1.models.personas_persona_insight import PersonasPersonaInsight
|
|
171
|
-
from neurograph.v1.models.personas_persona_personality_trait import PersonasPersonaPersonalityTrait
|
|
172
|
-
from neurograph.v1.models.personas_personality_trait_create_request import PersonasPersonalityTraitCreateRequest
|
|
173
|
-
from neurograph.v1.models.personas_personality_trait_create_response import PersonasPersonalityTraitCreateResponse
|
|
174
|
-
from neurograph.v1.models.personas_personality_trait_in_db import PersonasPersonalityTraitInDb
|
|
175
|
-
from neurograph.v1.models.personas_personality_trait_req import PersonasPersonalityTraitReq
|
|
176
|
-
from neurograph.v1.models.personas_seed import PersonasSeed
|
|
177
|
-
from neurograph.v1.models.personas_seed_get_many_response import PersonasSeedGetManyResponse
|
|
178
|
-
from neurograph.v1.models.personas_seed_upsert_request import PersonasSeedUpsertRequest
|
|
179
|
-
from neurograph.v1.models.personas_seeds_delete_response import PersonasSeedsDeleteResponse
|
|
180
|
-
from neurograph.v1.models.pgtype_infinity_modifier import PgtypeInfinityModifier
|
|
181
|
-
from neurograph.v1.models.pgtype_int8 import PgtypeInt8
|
|
182
|
-
from neurograph.v1.models.pgtype_text import PgtypeText
|
|
183
|
-
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
184
|
-
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
|
|
185
|
-
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
|
|
186
|
-
from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion
|
|
187
|
-
from neurograph.v1.models.workbench_workbench_version_many_response import WorkbenchWorkbenchVersionManyResponse
|
|
188
|
-
from neurograph.v1.models.workbench_workbench_version_response import WorkbenchWorkbenchVersionResponse
|
|
189
|
-
from neurograph.v1.models.workbench_workbench_version_upsert_request import WorkbenchWorkbenchVersionUpsertRequest
|
|
190
|
-
|
|
191
|
-
else:
|
|
192
|
-
from lazy_imports import LazyModule, as_package, load
|
|
193
|
-
|
|
194
|
-
load(
|
|
195
|
-
LazyModule(
|
|
196
|
-
*as_package(__file__),
|
|
197
|
-
"""# import models into model package
|
|
15
|
+
# import models into model package
|
|
198
16
|
from neurograph.v1.models.admin_permission_response import AdminPermissionResponse
|
|
199
17
|
from neurograph.v1.models.admin_set_permission_request import AdminSetPermissionRequest
|
|
200
18
|
from neurograph.v1.models.admin_upsert_user_request import AdminUpsertUserRequest
|
|
@@ -247,7 +65,6 @@ from neurograph.v1.models.db_knowledge_customer import DbKnowledgeCustomer
|
|
|
247
65
|
from neurograph.v1.models.db_knowledge_order import DbKnowledgeOrder
|
|
248
66
|
from neurograph.v1.models.db_knowledge_product import DbKnowledgeProduct
|
|
249
67
|
from neurograph.v1.models.db_knowledge_store import DbKnowledgeStore
|
|
250
|
-
from neurograph.v1.models.db_lookup_environment import DbLookupEnvironment
|
|
251
68
|
from neurograph.v1.models.db_my_client import DbMyClient
|
|
252
69
|
from neurograph.v1.models.db_my_org import DbMyOrg
|
|
253
70
|
from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactorCreateParams
|
|
@@ -294,11 +111,15 @@ from neurograph.v1.models.knowledge_ingest_raw_row import KnowledgeIngestRawRow
|
|
|
294
111
|
from neurograph.v1.models.knowledge_kind_response import KnowledgeKindResponse
|
|
295
112
|
from neurograph.v1.models.knowledge_order_query import KnowledgeOrderQuery
|
|
296
113
|
from neurograph.v1.models.knowledge_order_response import KnowledgeOrderResponse
|
|
114
|
+
from neurograph.v1.models.knowledge_product import KnowledgeProduct
|
|
297
115
|
from neurograph.v1.models.knowledge_product_query import KnowledgeProductQuery
|
|
298
116
|
from neurograph.v1.models.knowledge_product_response import KnowledgeProductResponse
|
|
117
|
+
from neurograph.v1.models.knowledge_product_upsert_request import KnowledgeProductUpsertRequest
|
|
118
|
+
from neurograph.v1.models.knowledge_product_upsert_response import KnowledgeProductUpsertResponse
|
|
299
119
|
from neurograph.v1.models.knowledge_query import KnowledgeQuery
|
|
300
120
|
from neurograph.v1.models.knowledge_store_query import KnowledgeStoreQuery
|
|
301
121
|
from neurograph.v1.models.knowledge_store_response import KnowledgeStoreResponse
|
|
122
|
+
from neurograph.v1.models.lookup_env import LookupEnv
|
|
302
123
|
from neurograph.v1.models.lookup_language import LookupLanguage
|
|
303
124
|
from neurograph.v1.models.lookup_language_response import LookupLanguageResponse
|
|
304
125
|
from neurograph.v1.models.lookup_lookup_environments_response import LookupLookupEnvironmentsResponse
|
|
@@ -361,6 +182,13 @@ from neurograph.v1.models.pgtype_infinity_modifier import PgtypeInfinityModifier
|
|
|
361
182
|
from neurograph.v1.models.pgtype_int8 import PgtypeInt8
|
|
362
183
|
from neurograph.v1.models.pgtype_text import PgtypeText
|
|
363
184
|
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
185
|
+
from neurograph.v1.models.reporting_affinities_response import ReportingAffinitiesResponse
|
|
186
|
+
from neurograph.v1.models.reporting_customer_activity_response import ReportingCustomerActivityResponse
|
|
187
|
+
from neurograph.v1.models.reporting_daily_metric import ReportingDailyMetric
|
|
188
|
+
from neurograph.v1.models.reporting_daily_metrics_response import ReportingDailyMetricsResponse
|
|
189
|
+
from neurograph.v1.models.reporting_persona_activity_response import ReportingPersonaActivityResponse
|
|
190
|
+
from neurograph.v1.models.reporting_personas_response import ReportingPersonasResponse
|
|
191
|
+
from neurograph.v1.models.reporting_query import ReportingQuery
|
|
364
192
|
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
|
|
365
193
|
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
|
|
366
194
|
from neurograph.v1.models.workbench_workbench_version import WorkbenchWorkbenchVersion
|
|
@@ -368,8 +196,3 @@ from neurograph.v1.models.workbench_workbench_version_many_response import Workb
|
|
|
368
196
|
from neurograph.v1.models.workbench_workbench_version_response import WorkbenchWorkbenchVersionResponse
|
|
369
197
|
from neurograph.v1.models.workbench_workbench_version_upsert_request import WorkbenchWorkbenchVersionUpsertRequest
|
|
370
198
|
|
|
371
|
-
""",
|
|
372
|
-
name=__name__,
|
|
373
|
-
doc=__doc__,
|
|
374
|
-
)
|
|
375
|
-
)
|
|
@@ -32,6 +32,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
32
32
|
config_snapshot: Optional[Dict[str, Any]] = None
|
|
33
33
|
input_params: Optional[Dict[str, Any]] = None
|
|
34
34
|
job_name: Optional[StrictStr] = None
|
|
35
|
+
kind: Optional[StrictStr] = None
|
|
35
36
|
output_json: Optional[Dict[str, Any]] = None
|
|
36
37
|
output_schema_id: Optional[StrictStr] = None
|
|
37
38
|
output_text: Optional[StrictStr] = None
|
|
@@ -40,7 +41,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
40
41
|
supersedes_artifact_id: Optional[StrictInt] = None
|
|
41
42
|
task_name: Optional[StrictStr] = None
|
|
42
43
|
task_queue_name: Optional[StrictStr] = None
|
|
43
|
-
__properties: ClassVar[List[str]] = ["cloud_run_job_name", "confidence", "config_entity_id", "config_snapshot", "input_params", "job_name", "output_json", "output_schema_id", "output_text", "spec_version", "subject_entity_id", "supersedes_artifact_id", "task_name", "task_queue_name"]
|
|
44
|
+
__properties: ClassVar[List[str]] = ["cloud_run_job_name", "confidence", "config_entity_id", "config_snapshot", "input_params", "job_name", "kind", "output_json", "output_schema_id", "output_text", "spec_version", "subject_entity_id", "supersedes_artifact_id", "task_name", "task_queue_name"]
|
|
44
45
|
|
|
45
46
|
model_config = ConfigDict(
|
|
46
47
|
populate_by_name=True,
|
|
@@ -99,6 +100,7 @@ class KnowledgeEnrichmentArtifactCreateRequest(BaseModel):
|
|
|
99
100
|
"config_snapshot": obj.get("config_snapshot"),
|
|
100
101
|
"input_params": obj.get("input_params"),
|
|
101
102
|
"job_name": obj.get("job_name"),
|
|
103
|
+
"kind": obj.get("kind"),
|
|
102
104
|
"output_json": obj.get("output_json"),
|
|
103
105
|
"output_schema_id": obj.get("output_schema_id"),
|
|
104
106
|
"output_text": obj.get("output_text"),
|
|
@@ -29,11 +29,12 @@ class KnowledgeEnrichmentQuery(BaseModel):
|
|
|
29
29
|
client_id: Optional[StrictStr] = None
|
|
30
30
|
is_current: Optional[StrictBool] = None
|
|
31
31
|
job_name: Optional[StrictStr] = None
|
|
32
|
+
kind: Optional[StrictStr] = None
|
|
32
33
|
limit: Optional[StrictInt] = None
|
|
33
34
|
offset: Optional[StrictInt] = None
|
|
34
35
|
status: Optional[StrictStr] = None
|
|
35
36
|
subject_entity_id: Optional[StrictStr] = None
|
|
36
|
-
__properties: ClassVar[List[str]] = ["client_id", "is_current", "job_name", "limit", "offset", "status", "subject_entity_id"]
|
|
37
|
+
__properties: ClassVar[List[str]] = ["client_id", "is_current", "job_name", "kind", "limit", "offset", "status", "subject_entity_id"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
40
|
populate_by_name=True,
|
|
@@ -89,6 +90,7 @@ class KnowledgeEnrichmentQuery(BaseModel):
|
|
|
89
90
|
"client_id": obj.get("client_id"),
|
|
90
91
|
"is_current": obj.get("is_current"),
|
|
91
92
|
"job_name": obj.get("job_name"),
|
|
93
|
+
"kind": obj.get("kind"),
|
|
92
94
|
"limit": obj.get("limit"),
|
|
93
95
|
"offset": obj.get("offset"),
|
|
94
96
|
"status": obj.get("status"),
|
|
@@ -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 typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class KnowledgeProduct(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
KnowledgeProduct
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
client_id: Optional[StrictStr] = None
|
|
30
|
+
entity_id: Optional[StrictStr] = None
|
|
31
|
+
handle: Optional[StrictStr] = None
|
|
32
|
+
overview: Optional[StrictStr] = None
|
|
33
|
+
product_hash: Optional[StrictStr] = None
|
|
34
|
+
product_id: Optional[StrictInt] = None
|
|
35
|
+
summary: Optional[StrictStr] = None
|
|
36
|
+
title: Optional[StrictStr] = None
|
|
37
|
+
type: Optional[StrictStr] = None
|
|
38
|
+
__properties: ClassVar[List[str]] = ["client_id", "entity_id", "handle", "overview", "product_hash", "product_id", "summary", "title", "type"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of KnowledgeProduct from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
_dict = self.model_dump(
|
|
75
|
+
by_alias=True,
|
|
76
|
+
exclude=excluded_fields,
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of KnowledgeProduct from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"client_id": obj.get("client_id"),
|
|
92
|
+
"entity_id": obj.get("entity_id"),
|
|
93
|
+
"handle": obj.get("handle"),
|
|
94
|
+
"overview": obj.get("overview"),
|
|
95
|
+
"product_hash": obj.get("product_hash"),
|
|
96
|
+
"product_id": obj.get("product_id"),
|
|
97
|
+
"summary": obj.get("summary"),
|
|
98
|
+
"title": obj.get("title"),
|
|
99
|
+
"type": obj.get("type")
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -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
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.knowledge_product import KnowledgeProduct
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class KnowledgeProductUpsertRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
KnowledgeProductUpsertRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
data: Optional[List[KnowledgeProduct]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["data"]
|
|
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 KnowledgeProductUpsertRequest 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in data (list)
|
|
73
|
+
_items = []
|
|
74
|
+
if self.data:
|
|
75
|
+
for _item_data in self.data:
|
|
76
|
+
if _item_data:
|
|
77
|
+
_items.append(_item_data.to_dict())
|
|
78
|
+
_dict['data'] = _items
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of KnowledgeProductUpsertRequest from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"data": [KnowledgeProduct.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -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 neurograph.v1.models.knowledge_entity_err_row import KnowledgeEntityErrRow
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class KnowledgeProductUpsertResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
KnowledgeProductUpsertResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
error: Optional[StrictStr] = None
|
|
31
|
+
error_rows: Optional[List[KnowledgeEntityErrRow]] = None
|
|
32
|
+
rows_upserted: Optional[StrictInt] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["error", "error_rows", "rows_upserted"]
|
|
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 KnowledgeProductUpsertResponse 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
|
+
# override the default output from pydantic by calling `to_dict()` of each item in error_rows (list)
|
|
75
|
+
_items = []
|
|
76
|
+
if self.error_rows:
|
|
77
|
+
for _item_error_rows in self.error_rows:
|
|
78
|
+
if _item_error_rows:
|
|
79
|
+
_items.append(_item_error_rows.to_dict())
|
|
80
|
+
_dict['error_rows'] = _items
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of KnowledgeProductUpsertResponse from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"error": obj.get("error"),
|
|
94
|
+
"error_rows": [KnowledgeEntityErrRow.from_dict(_item) for _item in obj["error_rows"]] if obj.get("error_rows") is not None else None,
|
|
95
|
+
"rows_upserted": obj.get("rows_upserted")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
|
@@ -19,18 +19,16 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
23
22
|
from typing import Optional, Set
|
|
24
23
|
from typing_extensions import Self
|
|
25
24
|
|
|
26
|
-
class
|
|
25
|
+
class LookupEnv(BaseModel):
|
|
27
26
|
"""
|
|
28
|
-
|
|
27
|
+
LookupEnv
|
|
29
28
|
""" # noqa: E501
|
|
30
29
|
id: Optional[StrictInt] = None
|
|
31
30
|
name: Optional[StrictStr] = None
|
|
32
|
-
|
|
33
|
-
__properties: ClassVar[List[str]] = ["id", "name", "ts_created"]
|
|
31
|
+
__properties: ClassVar[List[str]] = ["id", "name"]
|
|
34
32
|
|
|
35
33
|
model_config = ConfigDict(
|
|
36
34
|
populate_by_name=True,
|
|
@@ -50,7 +48,7 @@ class DbLookupEnvironment(BaseModel):
|
|
|
50
48
|
|
|
51
49
|
@classmethod
|
|
52
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of LookupEnv from a JSON string"""
|
|
54
52
|
return cls.from_dict(json.loads(json_str))
|
|
55
53
|
|
|
56
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -71,14 +69,11 @@ class DbLookupEnvironment(BaseModel):
|
|
|
71
69
|
exclude=excluded_fields,
|
|
72
70
|
exclude_none=True,
|
|
73
71
|
)
|
|
74
|
-
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
75
|
-
if self.ts_created:
|
|
76
|
-
_dict['ts_created'] = self.ts_created.to_dict()
|
|
77
72
|
return _dict
|
|
78
73
|
|
|
79
74
|
@classmethod
|
|
80
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
-
"""Create an instance of
|
|
76
|
+
"""Create an instance of LookupEnv from a dict"""
|
|
82
77
|
if obj is None:
|
|
83
78
|
return None
|
|
84
79
|
|
|
@@ -87,8 +82,7 @@ class DbLookupEnvironment(BaseModel):
|
|
|
87
82
|
|
|
88
83
|
_obj = cls.model_validate({
|
|
89
84
|
"id": obj.get("id"),
|
|
90
|
-
"name": obj.get("name")
|
|
91
|
-
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None
|
|
85
|
+
"name": obj.get("name")
|
|
92
86
|
})
|
|
93
87
|
return _obj
|
|
94
88
|
|