Skip to content

Commit da11822

Browse files
86f984fc8b8cd43adb093751a23b29bc63d48bc1
1 parent db8c14e commit da11822

File tree

4 files changed

+126
-12
lines changed

4 files changed

+126
-12
lines changed

docs/StoreApi.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3292,11 +3292,11 @@ Name | Type | Description | Notes
32923292
[[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)
32933293

32943294
# **studysets_post**
3295-
> StudysetReturn studysets_post(studyset_request=studyset_request)
3295+
> StudysetReturn studysets_post(source_id=source_id, source=source, copy_annotations=copy_annotations, studyset_request=studyset_request)
32963296
32973297
POST/create a studyset
32983298

3299-
Create a studyset.
3299+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
33003300

33013301
### Example
33023302

@@ -3329,11 +3329,14 @@ configuration = neurostore_sdk.Configuration(
33293329
with neurostore_sdk.ApiClient(configuration) as api_client:
33303330
# Create an instance of the API class
33313331
api_instance = neurostore_sdk.StoreApi(api_client)
3332+
source_id = '1234567890ab' # str | id of the resource you are either filtering/copying on (optional)
3333+
source = neurostore # str | the source of the resource you would like to filter/copy from (optional) (default to neurostore)
3334+
copy_annotations = True # bool | When cloning a studyset, copy annotations and their notes when true (default). (optional) (default to True)
33323335
studyset_request = neurostore_sdk.StudysetRequest() # StudysetRequest | (optional)
33333336

33343337
try:
33353338
# POST/create a studyset
3336-
api_response = api_instance.studysets_post(studyset_request=studyset_request)
3339+
api_response = api_instance.studysets_post(source_id=source_id, source=source, copy_annotations=copy_annotations, studyset_request=studyset_request)
33373340
print("The response of StoreApi->studysets_post:\n")
33383341
pprint(api_response)
33393342
except Exception as e:
@@ -3347,6 +3350,9 @@ with neurostore_sdk.ApiClient(configuration) as api_client:
33473350

33483351
Name | Type | Description | Notes
33493352
------------- | ------------- | ------------- | -------------
3353+
**source_id** | **str**| id of the resource you are either filtering/copying on | [optional]
3354+
**source** | **str**| the source of the resource you would like to filter/copy from | [optional] [default to neurostore]
3355+
**copy_annotations** | **bool**| When cloning a studyset, copy annotations and their notes when true (default). | [optional] [default to True]
33503356
**studyset_request** | [**StudysetRequest**](StudysetRequest.md)| | [optional]
33513357

33523358
### Return type

docs/StudysetsApi.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,11 @@ Name | Type | Description | Notes
346346
[[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)
347347

348348
# **studysets_post**
349-
> StudysetReturn studysets_post(studyset_request=studyset_request)
349+
> StudysetReturn studysets_post(source_id=source_id, source=source, copy_annotations=copy_annotations, studyset_request=studyset_request)
350350
351351
POST/create a studyset
352352

353-
Create a studyset.
353+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
354354

355355
### Example
356356

@@ -383,11 +383,14 @@ configuration = neurostore_sdk.Configuration(
383383
with neurostore_sdk.ApiClient(configuration) as api_client:
384384
# Create an instance of the API class
385385
api_instance = neurostore_sdk.StudysetsApi(api_client)
386+
source_id = '1234567890ab' # str | id of the resource you are either filtering/copying on (optional)
387+
source = neurostore # str | the source of the resource you would like to filter/copy from (optional) (default to neurostore)
388+
copy_annotations = True # bool | When cloning a studyset, copy annotations and their notes when true (default). (optional) (default to True)
386389
studyset_request = neurostore_sdk.StudysetRequest() # StudysetRequest | (optional)
387390

388391
try:
389392
# POST/create a studyset
390-
api_response = api_instance.studysets_post(studyset_request=studyset_request)
393+
api_response = api_instance.studysets_post(source_id=source_id, source=source, copy_annotations=copy_annotations, studyset_request=studyset_request)
391394
print("The response of StudysetsApi->studysets_post:\n")
392395
pprint(api_response)
393396
except Exception as e:
@@ -401,6 +404,9 @@ with neurostore_sdk.ApiClient(configuration) as api_client:
401404

402405
Name | Type | Description | Notes
403406
------------- | ------------- | ------------- | -------------
407+
**source_id** | **str**| id of the resource you are either filtering/copying on | [optional]
408+
**source** | **str**| the source of the resource you would like to filter/copy from | [optional] [default to neurostore]
409+
**copy_annotations** | **bool**| When cloning a studyset, copy annotations and their notes when true (default). | [optional] [default to True]
404410
**studyset_request** | [**StudysetRequest**](StudysetRequest.md)| | [optional]
405411

406412
### Return type

neurostore_sdk/api/store_api.py

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12564,6 +12564,9 @@ def _studysets_id_put_serialize(
1256412564
@validate_call
1256512565
def studysets_post(
1256612566
self,
12567+
source_id: Annotated[Optional[StrictStr], Field(description="id of the resource you are either filtering/copying on")] = None,
12568+
source: Annotated[Optional[StrictStr], Field(description="the source of the resource you would like to filter/copy from")] = None,
12569+
copy_annotations: Annotated[Optional[StrictBool], Field(description="When cloning a studyset, copy annotations and their notes when true (default).")] = None,
1256712570
studyset_request: Optional[StudysetRequest] = None,
1256812571
_request_timeout: Union[
1256912572
None,
@@ -12580,8 +12583,14 @@ def studysets_post(
1258012583
) -> StudysetReturn:
1258112584
"""POST/create a studyset
1258212585

12583-
Create a studyset.
12586+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
1258412587

12588+
:param source_id: id of the resource you are either filtering/copying on
12589+
:type source_id: str
12590+
:param source: the source of the resource you would like to filter/copy from
12591+
:type source: str
12592+
:param copy_annotations: When cloning a studyset, copy annotations and their notes when true (default).
12593+
:type copy_annotations: bool
1258512594
:param studyset_request:
1258612595
:type studyset_request: StudysetRequest
1258712596
:param _request_timeout: timeout setting for this request. If one
@@ -12607,6 +12616,9 @@ def studysets_post(
1260712616
""" # noqa: E501
1260812617

1260912618
_param = self._studysets_post_serialize(
12619+
source_id=source_id,
12620+
source=source,
12621+
copy_annotations=copy_annotations,
1261012622
studyset_request=studyset_request,
1261112623
_request_auth=_request_auth,
1261212624
_content_type=_content_type,
@@ -12631,6 +12643,9 @@ def studysets_post(
1263112643
@validate_call
1263212644
def studysets_post_with_http_info(
1263312645
self,
12646+
source_id: Annotated[Optional[StrictStr], Field(description="id of the resource you are either filtering/copying on")] = None,
12647+
source: Annotated[Optional[StrictStr], Field(description="the source of the resource you would like to filter/copy from")] = None,
12648+
copy_annotations: Annotated[Optional[StrictBool], Field(description="When cloning a studyset, copy annotations and their notes when true (default).")] = None,
1263412649
studyset_request: Optional[StudysetRequest] = None,
1263512650
_request_timeout: Union[
1263612651
None,
@@ -12647,8 +12662,14 @@ def studysets_post_with_http_info(
1264712662
) -> ApiResponse[StudysetReturn]:
1264812663
"""POST/create a studyset
1264912664

12650-
Create a studyset.
12665+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
1265112666

12667+
:param source_id: id of the resource you are either filtering/copying on
12668+
:type source_id: str
12669+
:param source: the source of the resource you would like to filter/copy from
12670+
:type source: str
12671+
:param copy_annotations: When cloning a studyset, copy annotations and their notes when true (default).
12672+
:type copy_annotations: bool
1265212673
:param studyset_request:
1265312674
:type studyset_request: StudysetRequest
1265412675
:param _request_timeout: timeout setting for this request. If one
@@ -12674,6 +12695,9 @@ def studysets_post_with_http_info(
1267412695
""" # noqa: E501
1267512696

1267612697
_param = self._studysets_post_serialize(
12698+
source_id=source_id,
12699+
source=source,
12700+
copy_annotations=copy_annotations,
1267712701
studyset_request=studyset_request,
1267812702
_request_auth=_request_auth,
1267912703
_content_type=_content_type,
@@ -12698,6 +12722,9 @@ def studysets_post_with_http_info(
1269812722
@validate_call
1269912723
def studysets_post_without_preload_content(
1270012724
self,
12725+
source_id: Annotated[Optional[StrictStr], Field(description="id of the resource you are either filtering/copying on")] = None,
12726+
source: Annotated[Optional[StrictStr], Field(description="the source of the resource you would like to filter/copy from")] = None,
12727+
copy_annotations: Annotated[Optional[StrictBool], Field(description="When cloning a studyset, copy annotations and their notes when true (default).")] = None,
1270112728
studyset_request: Optional[StudysetRequest] = None,
1270212729
_request_timeout: Union[
1270312730
None,
@@ -12714,8 +12741,14 @@ def studysets_post_without_preload_content(
1271412741
) -> RESTResponseType:
1271512742
"""POST/create a studyset
1271612743

12717-
Create a studyset.
12744+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
1271812745

12746+
:param source_id: id of the resource you are either filtering/copying on
12747+
:type source_id: str
12748+
:param source: the source of the resource you would like to filter/copy from
12749+
:type source: str
12750+
:param copy_annotations: When cloning a studyset, copy annotations and their notes when true (default).
12751+
:type copy_annotations: bool
1271912752
:param studyset_request:
1272012753
:type studyset_request: StudysetRequest
1272112754
:param _request_timeout: timeout setting for this request. If one
@@ -12741,6 +12774,9 @@ def studysets_post_without_preload_content(
1274112774
""" # noqa: E501
1274212775

1274312776
_param = self._studysets_post_serialize(
12777+
source_id=source_id,
12778+
source=source,
12779+
copy_annotations=copy_annotations,
1274412780
studyset_request=studyset_request,
1274512781
_request_auth=_request_auth,
1274612782
_content_type=_content_type,
@@ -12760,6 +12796,9 @@ def studysets_post_without_preload_content(
1276012796

1276112797
def _studysets_post_serialize(
1276212798
self,
12799+
source_id,
12800+
source,
12801+
copy_annotations,
1276312802
studyset_request,
1276412803
_request_auth,
1276512804
_content_type,
@@ -12783,6 +12822,18 @@ def _studysets_post_serialize(
1278312822

1278412823
# process the path parameters
1278512824
# process the query parameters
12825+
if source_id is not None:
12826+
12827+
_query_params.append(('source_id', source_id))
12828+
12829+
if source is not None:
12830+
12831+
_query_params.append(('source', source))
12832+
12833+
if copy_annotations is not None:
12834+
12835+
_query_params.append(('copy_annotations', copy_annotations))
12836+
1278612837
# process the header parameters
1278712838
# process the form parameters
1278812839
# process the body parameter

neurostore_sdk/api/studysets_api.py

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,9 @@ def _studysets_id_put_serialize(
13731373
@validate_call
13741374
def studysets_post(
13751375
self,
1376+
source_id: Annotated[Optional[StrictStr], Field(description="id of the resource you are either filtering/copying on")] = None,
1377+
source: Annotated[Optional[StrictStr], Field(description="the source of the resource you would like to filter/copy from")] = None,
1378+
copy_annotations: Annotated[Optional[StrictBool], Field(description="When cloning a studyset, copy annotations and their notes when true (default).")] = None,
13761379
studyset_request: Optional[StudysetRequest] = None,
13771380
_request_timeout: Union[
13781381
None,
@@ -1389,8 +1392,14 @@ def studysets_post(
13891392
) -> StudysetReturn:
13901393
"""POST/create a studyset
13911394
1392-
Create a studyset.
1395+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
13931396
1397+
:param source_id: id of the resource you are either filtering/copying on
1398+
:type source_id: str
1399+
:param source: the source of the resource you would like to filter/copy from
1400+
:type source: str
1401+
:param copy_annotations: When cloning a studyset, copy annotations and their notes when true (default).
1402+
:type copy_annotations: bool
13941403
:param studyset_request:
13951404
:type studyset_request: StudysetRequest
13961405
:param _request_timeout: timeout setting for this request. If one
@@ -1416,6 +1425,9 @@ def studysets_post(
14161425
""" # noqa: E501
14171426

14181427
_param = self._studysets_post_serialize(
1428+
source_id=source_id,
1429+
source=source,
1430+
copy_annotations=copy_annotations,
14191431
studyset_request=studyset_request,
14201432
_request_auth=_request_auth,
14211433
_content_type=_content_type,
@@ -1440,6 +1452,9 @@ def studysets_post(
14401452
@validate_call
14411453
def studysets_post_with_http_info(
14421454
self,
1455+
source_id: Annotated[Optional[StrictStr], Field(description="id of the resource you are either filtering/copying on")] = None,
1456+
source: Annotated[Optional[StrictStr], Field(description="the source of the resource you would like to filter/copy from")] = None,
1457+
copy_annotations: Annotated[Optional[StrictBool], Field(description="When cloning a studyset, copy annotations and their notes when true (default).")] = None,
14431458
studyset_request: Optional[StudysetRequest] = None,
14441459
_request_timeout: Union[
14451460
None,
@@ -1456,8 +1471,14 @@ def studysets_post_with_http_info(
14561471
) -> ApiResponse[StudysetReturn]:
14571472
"""POST/create a studyset
14581473
1459-
Create a studyset.
1474+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
14601475
1476+
:param source_id: id of the resource you are either filtering/copying on
1477+
:type source_id: str
1478+
:param source: the source of the resource you would like to filter/copy from
1479+
:type source: str
1480+
:param copy_annotations: When cloning a studyset, copy annotations and their notes when true (default).
1481+
:type copy_annotations: bool
14611482
:param studyset_request:
14621483
:type studyset_request: StudysetRequest
14631484
:param _request_timeout: timeout setting for this request. If one
@@ -1483,6 +1504,9 @@ def studysets_post_with_http_info(
14831504
""" # noqa: E501
14841505

14851506
_param = self._studysets_post_serialize(
1507+
source_id=source_id,
1508+
source=source,
1509+
copy_annotations=copy_annotations,
14861510
studyset_request=studyset_request,
14871511
_request_auth=_request_auth,
14881512
_content_type=_content_type,
@@ -1507,6 +1531,9 @@ def studysets_post_with_http_info(
15071531
@validate_call
15081532
def studysets_post_without_preload_content(
15091533
self,
1534+
source_id: Annotated[Optional[StrictStr], Field(description="id of the resource you are either filtering/copying on")] = None,
1535+
source: Annotated[Optional[StrictStr], Field(description="the source of the resource you would like to filter/copy from")] = None,
1536+
copy_annotations: Annotated[Optional[StrictBool], Field(description="When cloning a studyset, copy annotations and their notes when true (default).")] = None,
15101537
studyset_request: Optional[StudysetRequest] = None,
15111538
_request_timeout: Union[
15121539
None,
@@ -1523,8 +1550,14 @@ def studysets_post_without_preload_content(
15231550
) -> RESTResponseType:
15241551
"""POST/create a studyset
15251552
1526-
Create a studyset.
1553+
Create a studyset. When `source_id` is provided, Neurostore clones an existing studyset owned by any user into a new studyset owned by the caller, copying studies and (by default) annotations.
15271554
1555+
:param source_id: id of the resource you are either filtering/copying on
1556+
:type source_id: str
1557+
:param source: the source of the resource you would like to filter/copy from
1558+
:type source: str
1559+
:param copy_annotations: When cloning a studyset, copy annotations and their notes when true (default).
1560+
:type copy_annotations: bool
15281561
:param studyset_request:
15291562
:type studyset_request: StudysetRequest
15301563
:param _request_timeout: timeout setting for this request. If one
@@ -1550,6 +1583,9 @@ def studysets_post_without_preload_content(
15501583
""" # noqa: E501
15511584

15521585
_param = self._studysets_post_serialize(
1586+
source_id=source_id,
1587+
source=source,
1588+
copy_annotations=copy_annotations,
15531589
studyset_request=studyset_request,
15541590
_request_auth=_request_auth,
15551591
_content_type=_content_type,
@@ -1569,6 +1605,9 @@ def studysets_post_without_preload_content(
15691605

15701606
def _studysets_post_serialize(
15711607
self,
1608+
source_id,
1609+
source,
1610+
copy_annotations,
15721611
studyset_request,
15731612
_request_auth,
15741613
_content_type,
@@ -1592,6 +1631,18 @@ def _studysets_post_serialize(
15921631

15931632
# process the path parameters
15941633
# process the query parameters
1634+
if source_id is not None:
1635+
1636+
_query_params.append(('source_id', source_id))
1637+
1638+
if source is not None:
1639+
1640+
_query_params.append(('source', source))
1641+
1642+
if copy_annotations is not None:
1643+
1644+
_query_params.append(('copy_annotations', copy_annotations))
1645+
15951646
# process the header parameters
15961647
# process the form parameters
15971648
# process the body parameter

0 commit comments

Comments
 (0)