Skip to content

Commit

Permalink
ae1dfc1ef016914778342949697255da1406511a
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 20, 2024
1 parent 9cd168c commit 788d205
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/AnalysisCommon.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**study** | **str** | | [optional]
**entities** | [**List[Entity]**](Entity.md) | | [optional]
**analysis** | **int** | | [optional]
**order** | **int** | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/AnalysisRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**id** | **str** | short UUID specifying the location of this resource | [optional]
**public** | **bool** | whether the resource is listed in public searches or not | [optional] [default to True]
**entities** | [**List[Entity]**](Entity.md) | | [optional]
**analysis** | **int** | | [optional]
**order** | **int** | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/AnalysisReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Name | Type | Description | Notes
**points** | [**AnalysisReturnRelationshipsPoints**](AnalysisReturnRelationshipsPoints.md) | | [optional]
**conditions** | [**AnalysisReturnRelationshipsConditions**](AnalysisReturnRelationshipsConditions.md) | | [optional]
**entities** | [**List[Entity]**](Entity.md) | | [optional]
**analysis** | **int** | | [optional]
**order** | **int** | | [optional]

## Example

Expand Down
12 changes: 6 additions & 6 deletions neurostore_sdk/models/analysis_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class AnalysisCommon(BaseModel):
"""
study: Optional[StrictStr] = None
entities: Optional[conlist(Entity)] = None
analysis: Optional[StrictInt] = None
__properties = ["study", "entities", "analysis"]
order: Optional[StrictInt] = None
__properties = ["study", "entities", "order"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -63,10 +63,10 @@ def to_dict(self):
if _item:
_items.append(_item.to_dict())
_dict['entities'] = _items
# set to None if analysis (nullable) is None
# set to None if order (nullable) is None
# and __fields_set__ contains the field
if self.analysis is None and "analysis" in self.__fields_set__:
_dict['analysis'] = None
if self.order is None and "order" in self.__fields_set__:
_dict['order'] = None

return _dict

Expand All @@ -82,7 +82,7 @@ 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,
"analysis": obj.get("analysis")
"order": obj.get("order")
})
return _obj

12 changes: 6 additions & 6 deletions neurostore_sdk/models/analysis_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class AnalysisRequest(BaseModel):
id: Optional[constr(strict=True, max_length=12, min_length=12)] = Field(None, description="short UUID specifying the location of this resource")
public: Optional[StrictBool] = Field(True, description="whether the resource is listed in public searches or not")
entities: Optional[conlist(Entity)] = None
analysis: Optional[StrictInt] = None
__properties = ["name", "description", "weights", "study", "images", "points", "conditions", "id", "public", "entities", "analysis"]
order: Optional[StrictInt] = None
__properties = ["name", "description", "weights", "study", "images", "points", "conditions", "id", "public", "entities", "order"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -93,10 +93,10 @@ def to_dict(self):
if self.description is None and "description" in self.__fields_set__:
_dict['description'] = None

# set to None if analysis (nullable) is None
# set to None if order (nullable) is None
# and __fields_set__ contains the field
if self.analysis is None and "analysis" in self.__fields_set__:
_dict['analysis'] = None
if self.order is None and "order" in self.__fields_set__:
_dict['order'] = None

return _dict

Expand All @@ -120,7 +120,7 @@ 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,
"analysis": obj.get("analysis")
"order": obj.get("order")
})
return _obj

12 changes: 6 additions & 6 deletions neurostore_sdk/models/analysis_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class AnalysisReturn(BaseModel):
points: Optional[AnalysisReturnRelationshipsPoints] = None
conditions: Optional[AnalysisReturnRelationshipsConditions] = None
entities: Optional[conlist(Entity)] = None
analysis: Optional[StrictInt] = None
__properties = ["name", "description", "weights", "created_at", "updated_at", "id", "public", "user", "username", "study", "images", "points", "conditions", "entities", "analysis"]
order: Optional[StrictInt] = None
__properties = ["name", "description", "weights", "created_at", "updated_at", "id", "public", "user", "username", "study", "images", "points", "conditions", "entities", "order"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -115,10 +115,10 @@ def to_dict(self):
if self.username is None and "username" in self.__fields_set__:
_dict['username'] = None

# set to None if analysis (nullable) is None
# set to None if order (nullable) is None
# and __fields_set__ contains the field
if self.analysis is None and "analysis" in self.__fields_set__:
_dict['analysis'] = None
if self.order is None and "order" in self.__fields_set__:
_dict['order'] = None

return _dict

Expand Down Expand Up @@ -146,7 +146,7 @@ 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,
"analysis": obj.get("analysis")
"order": obj.get("order")
})
return _obj

0 comments on commit 788d205

Please sign in to comment.