Skip to content

Commit 98b4c5c

Browse files
2ada5a3554b043c073919c2f9639f81488a079e3
1 parent b6e7414 commit 98b4c5c

File tree

6 files changed

+122
-6
lines changed

6 files changed

+122
-6
lines changed

docs/ComposeApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ Name | Type | Description | Notes
12901290
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
12911291

12921292
# **projects_post**
1293-
> ProjectReturn projects_post(project=project)
1293+
> ProjectReturn projects_post(source_id=source_id, copy_annotations=copy_annotations, project=project)
12941294
12951295

12961296

@@ -1325,11 +1325,13 @@ configuration = neurosynth_compose_sdk.Configuration(
13251325
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
13261326
# Create an instance of the API class
13271327
api_instance = neurosynth_compose_sdk.ComposeApi(api_client)
1328+
source_id = 'source_id_example' # str | clone an existing project when creating a new project (optional)
1329+
copy_annotations = True # bool | when cloning via `source_id`, also duplicate associated annotations (optional)
13281330
project = neurosynth_compose_sdk.Project() # Project | (optional)
13291331

13301332
try:
13311333
#
1332-
api_response = api_instance.projects_post(project=project)
1334+
api_response = api_instance.projects_post(source_id=source_id, copy_annotations=copy_annotations, project=project)
13331335
print("The response of ComposeApi->projects_post:\n")
13341336
pprint(api_response)
13351337
except Exception as e:
@@ -1343,6 +1345,8 @@ with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
13431345

13441346
Name | Type | Description | Notes
13451347
------------- | ------------- | ------------- | -------------
1348+
**source_id** | **str**| clone an existing project when creating a new project | [optional]
1349+
**copy_annotations** | **bool**| when cloning via `source_id`, also duplicate associated annotations | [optional]
13461350
**project** | [**Project**](Project.md)| | [optional]
13471351

13481352
### Return type

docs/PostApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Name | Type | Description | Notes
261261
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
262262

263263
# **projects_post**
264-
> ProjectReturn projects_post(project=project)
264+
> ProjectReturn projects_post(source_id=source_id, copy_annotations=copy_annotations, project=project)
265265
266266

267267

@@ -296,11 +296,13 @@ configuration = neurosynth_compose_sdk.Configuration(
296296
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
297297
# Create an instance of the API class
298298
api_instance = neurosynth_compose_sdk.PostApi(api_client)
299+
source_id = 'source_id_example' # str | clone an existing project when creating a new project (optional)
300+
copy_annotations = True # bool | when cloning via `source_id`, also duplicate associated annotations (optional)
299301
project = neurosynth_compose_sdk.Project() # Project | (optional)
300302

301303
try:
302304
#
303-
api_response = api_instance.projects_post(project=project)
305+
api_response = api_instance.projects_post(source_id=source_id, copy_annotations=copy_annotations, project=project)
304306
print("The response of PostApi->projects_post:\n")
305307
pprint(api_response)
306308
except Exception as e:
@@ -314,6 +316,8 @@ with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
314316

315317
Name | Type | Description | Notes
316318
------------- | ------------- | ------------- | -------------
319+
**source_id** | **str**| clone an existing project when creating a new project | [optional]
320+
**copy_annotations** | **bool**| when cloning via `source_id`, also duplicate associated annotations | [optional]
317321
**project** | [**Project**](Project.md)| | [optional]
318322

319323
### Return type

docs/ProjectsApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Name | Type | Description | Notes
322322
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
323323

324324
# **projects_post**
325-
> ProjectReturn projects_post(project=project)
325+
> ProjectReturn projects_post(source_id=source_id, copy_annotations=copy_annotations, project=project)
326326
327327

328328

@@ -357,11 +357,13 @@ configuration = neurosynth_compose_sdk.Configuration(
357357
with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
358358
# Create an instance of the API class
359359
api_instance = neurosynth_compose_sdk.ProjectsApi(api_client)
360+
source_id = 'source_id_example' # str | clone an existing project when creating a new project (optional)
361+
copy_annotations = True # bool | when cloning via `source_id`, also duplicate associated annotations (optional)
360362
project = neurosynth_compose_sdk.Project() # Project | (optional)
361363

362364
try:
363365
#
364-
api_response = api_instance.projects_post(project=project)
366+
api_response = api_instance.projects_post(source_id=source_id, copy_annotations=copy_annotations, project=project)
365367
print("The response of ProjectsApi->projects_post:\n")
366368
pprint(api_response)
367369
except Exception as e:
@@ -375,6 +377,8 @@ with neurosynth_compose_sdk.ApiClient(configuration) as api_client:
375377

376378
Name | Type | Description | Notes
377379
------------- | ------------- | ------------- | -------------
380+
**source_id** | **str**| clone an existing project when creating a new project | [optional]
381+
**copy_annotations** | **bool**| when cloning via `source_id`, also duplicate associated annotations | [optional]
378382
**project** | [**Project**](Project.md)| | [optional]
379383

380384
### Return type

neurosynth_compose_sdk/api/compose_api.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4860,6 +4860,8 @@ def _projects_id_put_serialize(
48604860
@validate_call
48614861
def projects_post(
48624862
self,
4863+
source_id: Annotated[Optional[StrictStr], Field(description="clone an existing project when creating a new project")] = None,
4864+
copy_annotations: Annotated[Optional[StrictBool], Field(description="when cloning via `source_id`, also duplicate associated annotations")] = None,
48634865
project: Optional[Project] = None,
48644866
_request_timeout: Union[
48654867
None,
@@ -4877,6 +4879,10 @@ def projects_post(
48774879
"""
48784880
48794881
4882+
:param source_id: clone an existing project when creating a new project
4883+
:type source_id: str
4884+
:param copy_annotations: when cloning via `source_id`, also duplicate associated annotations
4885+
:type copy_annotations: bool
48804886
:param project:
48814887
:type project: Project
48824888
:param _request_timeout: timeout setting for this request. If one
@@ -4902,6 +4908,8 @@ def projects_post(
49024908
""" # noqa: E501
49034909

49044910
_param = self._projects_post_serialize(
4911+
source_id=source_id,
4912+
copy_annotations=copy_annotations,
49054913
project=project,
49064914
_request_auth=_request_auth,
49074915
_content_type=_content_type,
@@ -4926,6 +4934,8 @@ def projects_post(
49264934
@validate_call
49274935
def projects_post_with_http_info(
49284936
self,
4937+
source_id: Annotated[Optional[StrictStr], Field(description="clone an existing project when creating a new project")] = None,
4938+
copy_annotations: Annotated[Optional[StrictBool], Field(description="when cloning via `source_id`, also duplicate associated annotations")] = None,
49294939
project: Optional[Project] = None,
49304940
_request_timeout: Union[
49314941
None,
@@ -4943,6 +4953,10 @@ def projects_post_with_http_info(
49434953
"""
49444954
49454955
4956+
:param source_id: clone an existing project when creating a new project
4957+
:type source_id: str
4958+
:param copy_annotations: when cloning via `source_id`, also duplicate associated annotations
4959+
:type copy_annotations: bool
49464960
:param project:
49474961
:type project: Project
49484962
:param _request_timeout: timeout setting for this request. If one
@@ -4968,6 +4982,8 @@ def projects_post_with_http_info(
49684982
""" # noqa: E501
49694983

49704984
_param = self._projects_post_serialize(
4985+
source_id=source_id,
4986+
copy_annotations=copy_annotations,
49714987
project=project,
49724988
_request_auth=_request_auth,
49734989
_content_type=_content_type,
@@ -4992,6 +5008,8 @@ def projects_post_with_http_info(
49925008
@validate_call
49935009
def projects_post_without_preload_content(
49945010
self,
5011+
source_id: Annotated[Optional[StrictStr], Field(description="clone an existing project when creating a new project")] = None,
5012+
copy_annotations: Annotated[Optional[StrictBool], Field(description="when cloning via `source_id`, also duplicate associated annotations")] = None,
49955013
project: Optional[Project] = None,
49965014
_request_timeout: Union[
49975015
None,
@@ -5009,6 +5027,10 @@ def projects_post_without_preload_content(
50095027
"""
50105028
50115029
5030+
:param source_id: clone an existing project when creating a new project
5031+
:type source_id: str
5032+
:param copy_annotations: when cloning via `source_id`, also duplicate associated annotations
5033+
:type copy_annotations: bool
50125034
:param project:
50135035
:type project: Project
50145036
:param _request_timeout: timeout setting for this request. If one
@@ -5034,6 +5056,8 @@ def projects_post_without_preload_content(
50345056
""" # noqa: E501
50355057

50365058
_param = self._projects_post_serialize(
5059+
source_id=source_id,
5060+
copy_annotations=copy_annotations,
50375061
project=project,
50385062
_request_auth=_request_auth,
50395063
_content_type=_content_type,
@@ -5053,6 +5077,8 @@ def projects_post_without_preload_content(
50535077

50545078
def _projects_post_serialize(
50555079
self,
5080+
source_id,
5081+
copy_annotations,
50565082
project,
50575083
_request_auth,
50585084
_content_type,
@@ -5076,6 +5102,14 @@ def _projects_post_serialize(
50765102

50775103
# process the path parameters
50785104
# process the query parameters
5105+
if source_id is not None:
5106+
5107+
_query_params.append(('source_id', source_id))
5108+
5109+
if copy_annotations is not None:
5110+
5111+
_query_params.append(('copy_annotations', copy_annotations))
5112+
50795113
# process the header parameters
50805114
# process the form parameters
50815115
# process the body parameter

neurosynth_compose_sdk/api/post_api.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
from typing import Any, Dict, List, Optional, Tuple, Union
1818
from typing_extensions import Annotated
1919

20+
from pydantic import Field, StrictBool, StrictStr
2021
from typing import Optional
22+
from typing_extensions import Annotated
2123
from neurosynth_compose_sdk.models.annotation_post_body import AnnotationPostBody
2224
from neurosynth_compose_sdk.models.annotation_return import AnnotationReturn
2325
from neurosynth_compose_sdk.models.meta_analysis_post_body import MetaAnalysisPostBody
@@ -892,6 +894,8 @@ def _meta_analysis_results_post_serialize(
892894
@validate_call
893895
def projects_post(
894896
self,
897+
source_id: Annotated[Optional[StrictStr], Field(description="clone an existing project when creating a new project")] = None,
898+
copy_annotations: Annotated[Optional[StrictBool], Field(description="when cloning via `source_id`, also duplicate associated annotations")] = None,
895899
project: Optional[Project] = None,
896900
_request_timeout: Union[
897901
None,
@@ -909,6 +913,10 @@ def projects_post(
909913
"""
910914
911915
916+
:param source_id: clone an existing project when creating a new project
917+
:type source_id: str
918+
:param copy_annotations: when cloning via `source_id`, also duplicate associated annotations
919+
:type copy_annotations: bool
912920
:param project:
913921
:type project: Project
914922
:param _request_timeout: timeout setting for this request. If one
@@ -934,6 +942,8 @@ def projects_post(
934942
""" # noqa: E501
935943

936944
_param = self._projects_post_serialize(
945+
source_id=source_id,
946+
copy_annotations=copy_annotations,
937947
project=project,
938948
_request_auth=_request_auth,
939949
_content_type=_content_type,
@@ -958,6 +968,8 @@ def projects_post(
958968
@validate_call
959969
def projects_post_with_http_info(
960970
self,
971+
source_id: Annotated[Optional[StrictStr], Field(description="clone an existing project when creating a new project")] = None,
972+
copy_annotations: Annotated[Optional[StrictBool], Field(description="when cloning via `source_id`, also duplicate associated annotations")] = None,
961973
project: Optional[Project] = None,
962974
_request_timeout: Union[
963975
None,
@@ -975,6 +987,10 @@ def projects_post_with_http_info(
975987
"""
976988
977989
990+
:param source_id: clone an existing project when creating a new project
991+
:type source_id: str
992+
:param copy_annotations: when cloning via `source_id`, also duplicate associated annotations
993+
:type copy_annotations: bool
978994
:param project:
979995
:type project: Project
980996
:param _request_timeout: timeout setting for this request. If one
@@ -1000,6 +1016,8 @@ def projects_post_with_http_info(
10001016
""" # noqa: E501
10011017

10021018
_param = self._projects_post_serialize(
1019+
source_id=source_id,
1020+
copy_annotations=copy_annotations,
10031021
project=project,
10041022
_request_auth=_request_auth,
10051023
_content_type=_content_type,
@@ -1024,6 +1042,8 @@ def projects_post_with_http_info(
10241042
@validate_call
10251043
def projects_post_without_preload_content(
10261044
self,
1045+
source_id: Annotated[Optional[StrictStr], Field(description="clone an existing project when creating a new project")] = None,
1046+
copy_annotations: Annotated[Optional[StrictBool], Field(description="when cloning via `source_id`, also duplicate associated annotations")] = None,
10271047
project: Optional[Project] = None,
10281048
_request_timeout: Union[
10291049
None,
@@ -1041,6 +1061,10 @@ def projects_post_without_preload_content(
10411061
"""
10421062
10431063
1064+
:param source_id: clone an existing project when creating a new project
1065+
:type source_id: str
1066+
:param copy_annotations: when cloning via `source_id`, also duplicate associated annotations
1067+
:type copy_annotations: bool
10441068
:param project:
10451069
:type project: Project
10461070
:param _request_timeout: timeout setting for this request. If one
@@ -1066,6 +1090,8 @@ def projects_post_without_preload_content(
10661090
""" # noqa: E501
10671091

10681092
_param = self._projects_post_serialize(
1093+
source_id=source_id,
1094+
copy_annotations=copy_annotations,
10691095
project=project,
10701096
_request_auth=_request_auth,
10711097
_content_type=_content_type,
@@ -1085,6 +1111,8 @@ def projects_post_without_preload_content(
10851111

10861112
def _projects_post_serialize(
10871113
self,
1114+
source_id,
1115+
copy_annotations,
10881116
project,
10891117
_request_auth,
10901118
_content_type,
@@ -1108,6 +1136,14 @@ def _projects_post_serialize(
11081136

11091137
# process the path parameters
11101138
# process the query parameters
1139+
if source_id is not None:
1140+
1141+
_query_params.append(('source_id', source_id))
1142+
1143+
if copy_annotations is not None:
1144+
1145+
_query_params.append(('copy_annotations', copy_annotations))
1146+
11111147
# process the header parameters
11121148
# process the form parameters
11131149
# process the body parameter

0 commit comments

Comments
 (0)