Skip to content

Commit

Permalink
3f87035ad8d8c9f49f28381402694b8b78423bd5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 20, 2024
1 parent 46c817d commit 2f014b1
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
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**study** | **str** | | [optional]
**entities** | [**List[Entity]**](Entity.md) | | [optional]
**analysis** | **int** | | [optional]
**order** | **int** | | [optional]

## Example

2 changes: 1 addition & 1 deletion docs/AnalysisRequest.md
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion docs/AnalysisReturn.md
Original file line number Diff line number Diff line change
@@ -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

12 changes: 6 additions & 6 deletions neurostore_sdk/models/analysis_common.py
Original file line number Diff line number Diff line change
@@ -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"""
@@ -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

@@ -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
@@ -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"""
@@ -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

@@ -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
@@ -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"""
@@ -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

@@ -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 2f014b1

Please sign in to comment.