Skip to content

Commit 561b102

Browse files
e05b253f2e4fe1d3f0a0983d5d8ff974d6e04753
1 parent 788d205 commit 561b102

10 files changed

+41
-7
lines changed

docs/BaseStudiesPost200Response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**authors** | **str** | | [optional]
1515
**year** | **int** | | [optional]
1616
**level** | **str** | | [optional]
17+
**pmcid** | **str** | | [optional]
1718
**created_at** | **datetime** | time the resource was created on the database | [optional] [readonly]
1819
**updated_at** | **str** | when the resource was last modified/updated. | [optional] [readonly]
1920
**id** | **str** | short UUID specifying the location of this resource | [optional]

docs/BaseStudiesPostRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**authors** | **str** | | [optional]
1515
**year** | **int** | | [optional]
1616
**level** | **str** | | [optional]
17+
**pmcid** | **str** | | [optional]
1718

1819
## Example
1920

docs/BaseStudy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**authors** | **str** | | [optional]
1515
**year** | **int** | | [optional]
1616
**level** | **str** | | [optional]
17+
**pmcid** | **str** | | [optional]
1718

1819
## Example
1920

docs/BaseStudyReturn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**authors** | **str** | | [optional]
1515
**year** | **int** | | [optional]
1616
**level** | **str** | | [optional]
17+
**pmcid** | **str** | | [optional]
1718
**created_at** | **datetime** | time the resource was created on the database | [optional] [readonly]
1819
**updated_at** | **str** | when the resource was last modified/updated. | [optional] [readonly]
1920
**id** | **str** | short UUID specifying the location of this resource | [optional]

docs/StudyReturn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
2626
**has_coordinates** | **bool** | | [optional]
2727
**has_images** | **bool** | | [optional]
2828
**base_study** | **str** | | [optional]
29+
**pmcid** | **str** | | [optional]
2930

3031
## Example
3132

docs/StudyReturnAllOf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**has_coordinates** | **bool** | | [optional]
99
**has_images** | **bool** | | [optional]
1010
**base_study** | **str** | | [optional]
11+
**pmcid** | **str** | | [optional]
1112

1213
## Example
1314

neurostore_sdk/models/base_study.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class BaseStudy(BaseModel):
3737
authors: Optional[StrictStr] = None
3838
year: Optional[StrictInt] = None
3939
level: Optional[StrictStr] = None
40-
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level"]
40+
pmcid: Optional[StrictStr] = None
41+
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level", "pmcid"]
4142

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

115+
# set to None if pmcid (nullable) is None
116+
# and __fields_set__ contains the field
117+
if self.pmcid is None and "pmcid" in self.__fields_set__:
118+
_dict['pmcid'] = None
119+
114120
return _dict
115121

116122
@classmethod
@@ -132,7 +138,8 @@ def from_dict(cls, obj: dict) -> BaseStudy:
132138
"pmid": obj.get("pmid"),
133139
"authors": obj.get("authors"),
134140
"year": obj.get("year"),
135-
"level": obj.get("level")
141+
"level": obj.get("level"),
142+
"pmcid": obj.get("pmcid")
136143
})
137144
return _obj
138145

neurostore_sdk/models/base_study_return.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ class BaseStudyReturn(BaseModel):
3737
authors: Optional[StrictStr] = None
3838
year: Optional[StrictInt] = None
3939
level: Optional[StrictStr] = None
40+
pmcid: Optional[StrictStr] = None
4041
created_at: Optional[datetime] = Field(None, description="time the resource was created on the database")
4142
updated_at: Optional[StrictStr] = Field(None, description="when the resource was last modified/updated.")
4243
id: Optional[constr(strict=True, max_length=12, min_length=12)] = Field(None, description="short UUID specifying the location of this resource")
4344
public: Optional[StrictBool] = Field(True, description="whether the resource is listed in public searches or not")
4445
user: Optional[StrictStr] = Field(None, description="who owns the resource")
4546
username: Optional[StrictStr] = Field(None, description="human readable username")
46-
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level", "created_at", "updated_at", "id", "public", "user", "username"]
47+
__properties = ["metadata", "versions", "name", "description", "publication", "doi", "pmid", "authors", "year", "level", "pmcid", "created_at", "updated_at", "id", "public", "user", "username"]
4748

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

124+
# set to None if pmcid (nullable) is None
125+
# and __fields_set__ contains the field
126+
if self.pmcid is None and "pmcid" in self.__fields_set__:
127+
_dict['pmcid'] = None
128+
123129
# set to None if updated_at (nullable) is None
124130
# and __fields_set__ contains the field
125131
if self.updated_at is None and "updated_at" in self.__fields_set__:
@@ -157,6 +163,7 @@ def from_dict(cls, obj: dict) -> BaseStudyReturn:
157163
"authors": obj.get("authors"),
158164
"year": obj.get("year"),
159165
"level": obj.get("level"),
166+
"pmcid": obj.get("pmcid"),
160167
"created_at": obj.get("created_at"),
161168
"updated_at": obj.get("updated_at"),
162169
"id": obj.get("id"),

neurostore_sdk/models/study_return.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ class StudyReturn(BaseModel):
5050
has_coordinates: Optional[StrictBool] = None
5151
has_images: Optional[StrictBool] = None
5252
base_study: Optional[StrictStr] = None
53-
__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"]
53+
pmcid: Optional[StrictStr] = None
54+
__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"]
5455

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

169+
# set to None if pmcid (nullable) is None
170+
# and __fields_set__ contains the field
171+
if self.pmcid is None and "pmcid" in self.__fields_set__:
172+
_dict['pmcid'] = None
173+
168174
return _dict
169175

170176
@classmethod
@@ -198,7 +204,8 @@ def from_dict(cls, obj: dict) -> StudyReturn:
198204
"studysets": [StudyReturnAllOfStudysetsInner.from_dict(_item) for _item in obj.get("studysets")] if obj.get("studysets") is not None else None,
199205
"has_coordinates": obj.get("has_coordinates"),
200206
"has_images": obj.get("has_images"),
201-
"base_study": obj.get("base_study")
207+
"base_study": obj.get("base_study"),
208+
"pmcid": obj.get("pmcid")
202209
})
203210
return _obj
204211

neurostore_sdk/models/study_return_all_of.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class StudyReturnAllOf(BaseModel):
3131
has_coordinates: Optional[StrictBool] = None
3232
has_images: Optional[StrictBool] = None
3333
base_study: Optional[StrictStr] = None
34-
__properties = ["studysets", "has_coordinates", "has_images", "base_study"]
34+
pmcid: Optional[StrictStr] = None
35+
__properties = ["studysets", "has_coordinates", "has_images", "base_study", "pmcid"]
3536

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

73+
# set to None if pmcid (nullable) is None
74+
# and __fields_set__ contains the field
75+
if self.pmcid is None and "pmcid" in self.__fields_set__:
76+
_dict['pmcid'] = None
77+
7278
return _dict
7379

7480
@classmethod
@@ -84,7 +90,8 @@ def from_dict(cls, obj: dict) -> StudyReturnAllOf:
8490
"studysets": [StudyReturnAllOfStudysetsInner.from_dict(_item) for _item in obj.get("studysets")] if obj.get("studysets") is not None else None,
8591
"has_coordinates": obj.get("has_coordinates"),
8692
"has_images": obj.get("has_images"),
87-
"base_study": obj.get("base_study")
93+
"base_study": obj.get("base_study"),
94+
"pmcid": obj.get("pmcid")
8895
})
8996
return _obj
9097

0 commit comments

Comments
 (0)