Skip to content

Commit

Permalink
f62d6a5c906010f4c7f7592e0d61a222988e1cfc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 26, 2023
1 parent 35f6532 commit 81ed740
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/StudyReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Name | Type | Description | Notes
**studysets** | [**List[StudyReturnAllOfStudysetsInner]**](StudyReturnAllOfStudysetsInner.md) | | [optional]
**has_coordinates** | **bool** | | [optional]
**has_images** | **bool** | | [optional]
**base_study** | **str** | | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/StudyReturnAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**studysets** | [**List[StudyReturnAllOfStudysetsInner]**](StudyReturnAllOfStudysetsInner.md) | | [optional]
**has_coordinates** | **bool** | | [optional]
**has_images** | **bool** | | [optional]
**base_study** | **str** | | [optional]

## Example

Expand Down
11 changes: 9 additions & 2 deletions neurostore_sdk/models/study_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class StudyReturn(BaseModel):
studysets: Optional[conlist(StudyReturnAllOfStudysetsInner)] = None
has_coordinates: Optional[StrictBool] = None
has_images: Optional[StrictBool] = None
__properties = ["doi", "name", "metadata", "description", "publication", "pmid", "authors", "year", "created_at", "updated_at", "id", "public", "user", "username", "source", "source_id", "source_updated_at", "analyses", "studysets", "has_coordinates", "has_images"]
base_study: Optional[StrictStr] = None
__properties = ["doi", "name", "metadata", "description", "publication", "pmid", "authors", "year", "created_at", "updated_at", "id", "public", "user", "username", "source", "source_id", "source_updated_at", "analyses", "studysets", "has_coordinates", "has_images", "base_study"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -159,6 +160,11 @@ def to_dict(self):
if self.source_updated_at is None and "source_updated_at" in self.__fields_set__:
_dict['source_updated_at'] = None

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

return _dict

@classmethod
Expand Down Expand Up @@ -191,7 +197,8 @@ def from_dict(cls, obj: dict) -> StudyReturn:
"analyses": StudyReturnRelationshipsAnalyses.from_dict(obj.get("analyses")) if obj.get("analyses") is not None else None,
"studysets": [StudyReturnAllOfStudysetsInner.from_dict(_item) for _item in obj.get("studysets")] if obj.get("studysets") is not None else None,
"has_coordinates": obj.get("has_coordinates"),
"has_images": obj.get("has_images")
"has_images": obj.get("has_images"),
"base_study": obj.get("base_study")
})
return _obj

13 changes: 10 additions & 3 deletions neurostore_sdk/models/study_return_all_of.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


from typing import List, Optional
from pydantic import BaseModel, StrictBool, conlist
from pydantic import BaseModel, StrictBool, StrictStr, conlist
from neurostore_sdk.models.study_return_all_of_studysets_inner import StudyReturnAllOfStudysetsInner

class StudyReturnAllOf(BaseModel):
Expand All @@ -30,7 +30,8 @@ class StudyReturnAllOf(BaseModel):
studysets: Optional[conlist(StudyReturnAllOfStudysetsInner)] = None
has_coordinates: Optional[StrictBool] = None
has_images: Optional[StrictBool] = None
__properties = ["studysets", "has_coordinates", "has_images"]
base_study: Optional[StrictStr] = None
__properties = ["studysets", "has_coordinates", "has_images", "base_study"]

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

return _dict

@classmethod
Expand All @@ -77,7 +83,8 @@ def from_dict(cls, obj: dict) -> StudyReturnAllOf:
_obj = StudyReturnAllOf.parse_obj({
"studysets": [StudyReturnAllOfStudysetsInner.from_dict(_item) for _item in obj.get("studysets")] if obj.get("studysets") is not None else None,
"has_coordinates": obj.get("has_coordinates"),
"has_images": obj.get("has_images")
"has_images": obj.get("has_images"),
"base_study": obj.get("base_study")
})
return _obj

0 comments on commit 81ed740

Please sign in to comment.