Skip to content

Commit

Permalink
1d9ff9c65c9ff0fc5fcdceb65f4b7e077c3301dc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 4, 2024
1 parent f70f2ff commit 5af1a91
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/AnalysisCommon.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**study** | **str** | | [optional]
**entities** | [**List[Entity]**](Entity.md) | | [optional]
**order** | **int** | | [optional]
**metadata** | **object** | | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions neurostore_sdk/models/analysis_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"""
Expand Down Expand Up @@ -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

8 changes: 5 additions & 3 deletions neurostore_sdk/models/analysis_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"""
Expand Down Expand Up @@ -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

8 changes: 5 additions & 3 deletions neurostore_sdk/models/analysis_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"""
Expand Down Expand Up @@ -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

0 comments on commit 5af1a91

Please sign in to comment.