diff --git a/docs/AnalysisCommon.md b/docs/AnalysisCommon.md index 0752705..5da99fd 100644 --- a/docs/AnalysisCommon.md +++ b/docs/AnalysisCommon.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **study** | **str** | | [optional] **entities** | [**List[Entity]**](Entity.md) | | [optional] **order** | **int** | | [optional] +**metadata** | **object** | | [optional] ## Example diff --git a/docs/AnalysisRequest.md b/docs/AnalysisRequest.md index 13d8f34..97e7b72 100644 --- a/docs/AnalysisRequest.md +++ b/docs/AnalysisRequest.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **public** | **bool** | whether the resource is listed in public searches or not | [optional] [default to True] **entities** | [**List[Entity]**](Entity.md) | | [optional] **order** | **int** | | [optional] +**metadata** | **object** | | [optional] ## Example diff --git a/docs/AnalysisReturn.md b/docs/AnalysisReturn.md index d81661d..8282131 100644 --- a/docs/AnalysisReturn.md +++ b/docs/AnalysisReturn.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **conditions** | [**AnalysisReturnRelationshipsConditions**](AnalysisReturnRelationshipsConditions.md) | | [optional] **entities** | [**List[Entity]**](Entity.md) | | [optional] **order** | **int** | | [optional] +**metadata** | **object** | | [optional] ## Example diff --git a/neurostore_sdk/models/analysis_common.py b/neurostore_sdk/models/analysis_common.py index 3cd3017..76fdd41 100644 --- a/neurostore_sdk/models/analysis_common.py +++ b/neurostore_sdk/models/analysis_common.py @@ -19,7 +19,7 @@ import json -from typing import List, Optional +from typing import Any, Dict, List, Optional from pydantic import BaseModel, StrictInt, StrictStr, conlist from neurostore_sdk.models.entity import Entity @@ -30,7 +30,8 @@ class AnalysisCommon(BaseModel): study: Optional[StrictStr] = None entities: Optional[conlist(Entity)] = None order: Optional[StrictInt] = None - __properties = ["study", "entities", "order"] + metadata: Optional[Dict[str, Any]] = None + __properties = ["study", "entities", "order", "metadata"] class Config: """Pydantic configuration""" @@ -82,7 +83,8 @@ def from_dict(cls, obj: dict) -> AnalysisCommon: _obj = AnalysisCommon.parse_obj({ "study": obj.get("study"), "entities": [Entity.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None, - "order": obj.get("order") + "order": obj.get("order"), + "metadata": obj.get("metadata") }) return _obj diff --git a/neurostore_sdk/models/analysis_request.py b/neurostore_sdk/models/analysis_request.py index 8676466..e97edb7 100644 --- a/neurostore_sdk/models/analysis_request.py +++ b/neurostore_sdk/models/analysis_request.py @@ -19,7 +19,7 @@ import json -from typing import List, Optional, Union +from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, constr from neurostore_sdk.models.analysis_request_relationships_conditions import AnalysisRequestRelationshipsConditions from neurostore_sdk.models.analysis_request_relationships_images import AnalysisRequestRelationshipsImages @@ -41,7 +41,8 @@ class AnalysisRequest(BaseModel): public: Optional[StrictBool] = Field(True, description="whether the resource is listed in public searches or not") entities: Optional[conlist(Entity)] = None order: Optional[StrictInt] = None - __properties = ["name", "description", "weights", "study", "images", "points", "conditions", "id", "public", "entities", "order"] + metadata: Optional[Dict[str, Any]] = None + __properties = ["name", "description", "weights", "study", "images", "points", "conditions", "id", "public", "entities", "order", "metadata"] class Config: """Pydantic configuration""" @@ -120,7 +121,8 @@ def from_dict(cls, obj: dict) -> AnalysisRequest: "id": obj.get("id"), "public": obj.get("public") if obj.get("public") is not None else True, "entities": [Entity.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None, - "order": obj.get("order") + "order": obj.get("order"), + "metadata": obj.get("metadata") }) return _obj diff --git a/neurostore_sdk/models/analysis_return.py b/neurostore_sdk/models/analysis_return.py index ac56917..65a1d15 100644 --- a/neurostore_sdk/models/analysis_return.py +++ b/neurostore_sdk/models/analysis_return.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from typing import List, Optional, Union +from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, constr from neurostore_sdk.models.analysis_return_relationships_conditions import AnalysisReturnRelationshipsConditions from neurostore_sdk.models.analysis_return_relationships_images import AnalysisReturnRelationshipsImages @@ -45,7 +45,8 @@ class AnalysisReturn(BaseModel): conditions: Optional[AnalysisReturnRelationshipsConditions] = None entities: Optional[conlist(Entity)] = None order: Optional[StrictInt] = None - __properties = ["name", "description", "weights", "created_at", "updated_at", "id", "public", "user", "username", "study", "images", "points", "conditions", "entities", "order"] + metadata: Optional[Dict[str, Any]] = None + __properties = ["name", "description", "weights", "created_at", "updated_at", "id", "public", "user", "username", "study", "images", "points", "conditions", "entities", "order", "metadata"] class Config: """Pydantic configuration""" @@ -146,7 +147,8 @@ def from_dict(cls, obj: dict) -> AnalysisReturn: "points": AnalysisReturnRelationshipsPoints.from_dict(obj.get("points")) if obj.get("points") is not None else None, "conditions": AnalysisReturnRelationshipsConditions.from_dict(obj.get("conditions")) if obj.get("conditions") is not None else None, "entities": [Entity.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None, - "order": obj.get("order") + "order": obj.get("order"), + "metadata": obj.get("metadata") }) return _obj