Skip to content

Commit

Permalink
e05b253f2e4fe1d3f0a0983d5d8ff974d6e04753
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 1, 2024
1 parent 788d205 commit 561b102
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/BaseStudiesPost200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**authors** | **str** | | [optional]
**year** | **int** | | [optional]
**level** | **str** | | [optional]
**pmcid** | **str** | | [optional]
**created_at** | **datetime** | time the resource was created on the database | [optional] [readonly]
**updated_at** | **str** | when the resource was last modified/updated. | [optional] [readonly]
**id** | **str** | short UUID specifying the location of this resource | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/BaseStudiesPostRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**authors** | **str** | | [optional]
**year** | **int** | | [optional]
**level** | **str** | | [optional]
**pmcid** | **str** | | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/BaseStudy.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**authors** | **str** | | [optional]
**year** | **int** | | [optional]
**level** | **str** | | [optional]
**pmcid** | **str** | | [optional]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/BaseStudyReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**authors** | **str** | | [optional]
**year** | **int** | | [optional]
**level** | **str** | | [optional]
**pmcid** | **str** | | [optional]
**created_at** | **datetime** | time the resource was created on the database | [optional] [readonly]
**updated_at** | **str** | when the resource was last modified/updated. | [optional] [readonly]
**id** | **str** | short UUID specifying the location of this resource | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/StudyReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Name | Type | Description | Notes
**has_coordinates** | **bool** | | [optional]
**has_images** | **bool** | | [optional]
**base_study** | **str** | | [optional]
**pmcid** | **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 @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**has_coordinates** | **bool** | | [optional]
**has_images** | **bool** | | [optional]
**base_study** | **str** | | [optional]
**pmcid** | **str** | | [optional]

## Example

Expand Down
11 changes: 9 additions & 2 deletions neurostore_sdk/models/base_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class BaseStudy(BaseModel):
authors: Optional[StrictStr] = None
year: Optional[StrictInt] = None
level: Optional[StrictStr] = None
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level"]
pmcid: Optional[StrictStr] = None
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level", "pmcid"]

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

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

return _dict

@classmethod
Expand All @@ -132,7 +138,8 @@ def from_dict(cls, obj: dict) -> BaseStudy:
"pmid": obj.get("pmid"),
"authors": obj.get("authors"),
"year": obj.get("year"),
"level": obj.get("level")
"level": obj.get("level"),
"pmcid": obj.get("pmcid")
})
return _obj

9 changes: 8 additions & 1 deletion neurostore_sdk/models/base_study_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ class BaseStudyReturn(BaseModel):
authors: Optional[StrictStr] = None
year: Optional[StrictInt] = None
level: Optional[StrictStr] = None
pmcid: Optional[StrictStr] = None
created_at: Optional[datetime] = Field(None, description="time the resource was created on the database")
updated_at: Optional[StrictStr] = Field(None, description="when the resource was last modified/updated.")
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")
user: Optional[StrictStr] = Field(None, description="who owns the resource")
username: Optional[StrictStr] = Field(None, description="human readable username")
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level", "created_at", "updated_at", "id", "public", "user", "username"]
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level", "pmcid", "created_at", "updated_at", "id", "public", "user", "username"]

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

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

# set to None if updated_at (nullable) is None
# and __fields_set__ contains the field
if self.updated_at is None and "updated_at" in self.__fields_set__:
Expand Down Expand Up @@ -157,6 +163,7 @@ def from_dict(cls, obj: dict) -> BaseStudyReturn:
"authors": obj.get("authors"),
"year": obj.get("year"),
"level": obj.get("level"),
"pmcid": obj.get("pmcid"),
"created_at": obj.get("created_at"),
"updated_at": obj.get("updated_at"),
"id": obj.get("id"),
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 @@ -50,7 +50,8 @@ class StudyReturn(BaseModel):
has_coordinates: Optional[StrictBool] = None
has_images: Optional[StrictBool] = None
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"]
pmcid: 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", "pmcid"]

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

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

return _dict

@classmethod
Expand Down Expand Up @@ -198,7 +204,8 @@ def from_dict(cls, obj: dict) -> StudyReturn:
"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"),
"base_study": obj.get("base_study")
"base_study": obj.get("base_study"),
"pmcid": obj.get("pmcid")
})
return _obj

11 changes: 9 additions & 2 deletions neurostore_sdk/models/study_return_all_of.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class StudyReturnAllOf(BaseModel):
has_coordinates: Optional[StrictBool] = None
has_images: Optional[StrictBool] = None
base_study: Optional[StrictStr] = None
__properties = ["studysets", "has_coordinates", "has_images", "base_study"]
pmcid: Optional[StrictStr] = None
__properties = ["studysets", "has_coordinates", "has_images", "base_study", "pmcid"]

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

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

return _dict

@classmethod
Expand All @@ -84,7 +90,8 @@ def from_dict(cls, obj: dict) -> StudyReturnAllOf:
"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"),
"base_study": obj.get("base_study")
"base_study": obj.get("base_study"),
"pmcid": obj.get("pmcid")
})
return _obj

0 comments on commit 561b102

Please sign in to comment.