Skip to content

Commit

Permalink
40a83e2791540d7da6b58e309d43b232a7bdfcf8
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 9, 2024
1 parent ba8ce7b commit 0704ba2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 70 deletions.
66 changes: 0 additions & 66 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -150,70 +150,4 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_annotation.py
test/test_annotation_list.py
test/test_annotation_post_body.py
test/test_annotation_return.py
test/test_annotation_update.py
test/test_annotation_update_all_of.py
test/test_annotations_api.py
test/test_compose_api.py
test/test_corrector.py
test/test_default_api.py
test/test_estimator.py
test/test_get_api.py
test/test_meta_analyses_api.py
test/test_meta_analyses_get400_response.py
test/test_meta_analysis.py
test/test_meta_analysis_annotation.py
test/test_meta_analysis_list.py
test/test_meta_analysis_post_body.py
test/test_meta_analysis_results.py
test/test_meta_analysis_return.py
test/test_meta_analysis_specification.py
test/test_meta_analysis_studyset.py
test/test_neurostore_analysis.py
test/test_neurostore_study.py
test/test_neurostore_study_list.py
test/test_neurostore_study_return.py
test/test_neurovault_api.py
test/test_neurovault_collection.py
test/test_neurovault_collection_files.py
test/test_neurovault_collection_return.py
test/test_neurovault_file.py
test/test_neurovault_file_list.py
test/test_neurovault_file_return.py
test/test_neurovault_list.py
test/test_post_api.py
test/test_project.py
test/test_project_list.py
test/test_project_meta_analyses.py
test/test_project_return.py
test/test_projects_api.py
test/test_put_api.py
test/test_read_only.py
test/test_result.py
test/test_result_init.py
test/test_result_list.py
test/test_result_list_results.py
test/test_result_return.py
test/test_specification.py
test/test_specification_conditions.py
test/test_specification_list.py
test/test_specification_post_body.py
test/test_specification_return.py
test/test_specifications_api.py
test/test_studyset.py
test/test_studyset_list.py
test/test_studyset_post_body.py
test/test_studyset_reference.py
test/test_studyset_reference_list.py
test/test_studyset_reference_return.py
test/test_studyset_reference_snapshots_inner.py
test/test_studyset_return.py
test/test_studysets_api.py
test/test_user.py
test/test_user_list.py
test/test_user_return.py
test/test_users_api.py
tox.ini
1 change: 1 addition & 0 deletions docs/Project.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**public** | **bool** | whether the project is public or private | [optional]
**neurostore_study** | [**NeurostoreStudy**](NeurostoreStudy.md) | | [optional]
**neurostore_url** | **str** | | [optional]
**draft** | **bool** | | [optional] [readonly]

## Example

Expand Down
1 change: 1 addition & 0 deletions docs/ProjectReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**public** | **bool** | whether the project is public or private | [optional]
**neurostore_study** | [**NeurostoreStudy**](NeurostoreStudy.md) | | [optional]
**neurostore_url** | **str** | | [optional]
**draft** | **bool** | | [optional] [readonly]

## Example

Expand Down
7 changes: 5 additions & 2 deletions neurosynth_compose_sdk/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class Project(BaseModel):
public: Optional[StrictBool] = Field(None, description="whether the project is public or private")
neurostore_study: Optional[NeurostoreStudy] = None
neurostore_url: Optional[StrictStr] = None
__properties = ["provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url"]
draft: Optional[StrictBool] = None
__properties = ["provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url", "draft"]

class Config:
"""Pydantic configuration"""
Expand All @@ -59,6 +60,7 @@ def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
_dict = self.dict(by_alias=True,
exclude={
"draft",
},
exclude_none=True)
# override the default output from pydantic by calling `to_dict()` of meta_analyses
Expand Down Expand Up @@ -105,7 +107,8 @@ def from_dict(cls, obj: dict) -> Project:
"description": obj.get("description"),
"public": obj.get("public"),
"neurostore_study": NeurostoreStudy.from_dict(obj.get("neurostore_study")) if obj.get("neurostore_study") is not None else None,
"neurostore_url": obj.get("neurostore_url")
"neurostore_url": obj.get("neurostore_url"),
"draft": obj.get("draft")
})
return _obj

7 changes: 5 additions & 2 deletions neurosynth_compose_sdk/models/project_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class ProjectReturn(BaseModel):
public: Optional[StrictBool] = Field(None, description="whether the project is public or private")
neurostore_study: Optional[NeurostoreStudy] = None
neurostore_url: Optional[StrictStr] = None
__properties = ["id", "updated_at", "created_at", "user", "username", "provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url"]
draft: Optional[StrictBool] = None
__properties = ["id", "updated_at", "created_at", "user", "username", "provenance", "meta_analyses", "name", "description", "public", "neurostore_study", "neurostore_url", "draft"]

class Config:
"""Pydantic configuration"""
Expand All @@ -67,6 +68,7 @@ def to_dict(self):
"updated_at",
"created_at",
"username",
"draft",
},
exclude_none=True)
# override the default output from pydantic by calling `to_dict()` of meta_analyses
Expand Down Expand Up @@ -133,7 +135,8 @@ def from_dict(cls, obj: dict) -> ProjectReturn:
"description": obj.get("description"),
"public": obj.get("public"),
"neurostore_study": NeurostoreStudy.from_dict(obj.get("neurostore_study")) if obj.get("neurostore_study") is not None else None,
"neurostore_url": obj.get("neurostore_url")
"neurostore_url": obj.get("neurostore_url"),
"draft": obj.get("draft")
})
return _obj

0 comments on commit 0704ba2

Please sign in to comment.