Skip to content

Commit 99c71cd

Browse files
50d2f6f64633ae6a9a2c9cc5f431dc9ac81b68ee
1 parent 78cf8a0 commit 99c71cd

5 files changed

Lines changed: 11 additions & 4 deletions

File tree

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,4 @@ setup.cfg
251251
setup.py
252252
test-requirements.txt
253253
test/__init__.py
254-
test/test_studyset_return_relationships_studyset_studies_inner.py
255254
tox.ini

docs/StudysetRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**doi** | **str** | A DOI connected to the published studyset (may change to being automatically created so each studyset connected to a successful meta-analysis gets a DOI). | [optional]
1212
**pmid** | **str** | If the article connected to the studyset was published on PubMed, then link the ID here. | [optional]
1313
**studies** | [**List[StudysetRequestRelationshipsStudiesInner]**](StudysetRequestRelationshipsStudiesInner.md) | Accepts study IDs or objects containing an ID and an optional curation stub UUID used to keep curation/extraction alignment. | [optional]
14+
**curation_stub_map** | **Dict[str, str]** | Accepts a map of each study ID to the curation stub UUID used to keep curation/extraction alignment. | [optional]
1415
**id** | **str** | short UUID specifying the location of this resource | [optional]
1516
**public** | **bool** | whether the resource is listed in public searches or not | [optional] [default to True]
1617
**level** | **str** | | [optional]

docs/StudysetRequestRelationships.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**studies** | [**List[StudysetRequestRelationshipsStudiesInner]**](StudysetRequestRelationshipsStudiesInner.md) | Accepts study IDs or objects containing an ID and an optional curation stub UUID used to keep curation/extraction alignment. | [optional]
9+
**curation_stub_map** | **Dict[str, str]** | Accepts a map of each study ID to the curation stub UUID used to keep curation/extraction alignment. | [optional]
910

1011
## Example
1112

neurostore_sdk/models/studyset_request.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
2222
from typing import Any, ClassVar, Dict, List, Optional
2323
from typing_extensions import Annotated
24+
from uuid import UUID
2425
from neurostore_sdk.models.studyset_request_relationships_studies_inner import StudysetRequestRelationshipsStudiesInner
2526
from typing import Optional, Set
2627
from typing_extensions import Self
@@ -35,10 +36,11 @@ class StudysetRequest(BaseModel):
3536
doi: Optional[StrictStr] = Field(default=None, description="A DOI connected to the published studyset (may change to being automatically created so each studyset connected to a successful meta-analysis gets a DOI).")
3637
pmid: Optional[StrictStr] = Field(default=None, description="If the article connected to the studyset was published on PubMed, then link the ID here.")
3738
studies: Optional[List[StudysetRequestRelationshipsStudiesInner]] = Field(default=None, description="Accepts study IDs or objects containing an ID and an optional curation stub UUID used to keep curation/extraction alignment. ")
39+
curation_stub_map: Optional[Dict[str, UUID]] = Field(default=None, description="Accepts a map of each study ID to the curation stub UUID used to keep curation/extraction alignment. ")
3840
id: Optional[Annotated[str, Field(min_length=12, strict=True, max_length=30)]] = Field(default=None, description="short UUID specifying the location of this resource")
3941
public: Optional[StrictBool] = Field(default=True, description="whether the resource is listed in public searches or not")
4042
level: Optional[StrictStr] = None
41-
__properties: ClassVar[List[str]] = ["name", "description", "publication", "doi", "pmid", "studies", "id", "public", "level"]
43+
__properties: ClassVar[List[str]] = ["name", "description", "publication", "doi", "pmid", "studies", "curation_stub_map", "id", "public", "level"]
4244

4345
@field_validator('level')
4446
def level_validate_enum(cls, value):
@@ -139,6 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
139141
"doi": obj.get("doi"),
140142
"pmid": obj.get("pmid"),
141143
"studies": [StudysetRequestRelationshipsStudiesInner.from_dict(_item) for _item in obj["studies"]] if obj.get("studies") is not None else None,
144+
"curation_stub_map": obj.get("curation_stub_map"),
142145
"id": obj.get("id"),
143146
"public": obj.get("public") if obj.get("public") is not None else True,
144147
"level": obj.get("level")

neurostore_sdk/models/studyset_request_relationships.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from pydantic import BaseModel, ConfigDict, Field
2222
from typing import Any, ClassVar, Dict, List, Optional
23+
from uuid import UUID
2324
from neurostore_sdk.models.studyset_request_relationships_studies_inner import StudysetRequestRelationshipsStudiesInner
2425
from typing import Optional, Set
2526
from typing_extensions import Self
@@ -29,7 +30,8 @@ class StudysetRequestRelationships(BaseModel):
2930
StudysetRequestRelationships
3031
""" # noqa: E501
3132
studies: Optional[List[StudysetRequestRelationshipsStudiesInner]] = Field(default=None, description="Accepts study IDs or objects containing an ID and an optional curation stub UUID used to keep curation/extraction alignment. ")
32-
__properties: ClassVar[List[str]] = ["studies"]
33+
curation_stub_map: Optional[Dict[str, UUID]] = Field(default=None, description="Accepts a map of each study ID to the curation stub UUID used to keep curation/extraction alignment. ")
34+
__properties: ClassVar[List[str]] = ["studies", "curation_stub_map"]
3335

3436
model_config = ConfigDict(
3537
populate_by_name=True,
@@ -89,7 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8991
return cls.model_validate(obj)
9092

9193
_obj = cls.model_validate({
92-
"studies": [StudysetRequestRelationshipsStudiesInner.from_dict(_item) for _item in obj["studies"]] if obj.get("studies") is not None else None
94+
"studies": [StudysetRequestRelationshipsStudiesInner.from_dict(_item) for _item in obj["studies"]] if obj.get("studies") is not None else None,
95+
"curation_stub_map": obj.get("curation_stub_map")
9396
})
9497
return _obj
9598

0 commit comments

Comments
 (0)