You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cosmotech_api/api/dataset_api.py
+30-12Lines changed: 30 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ def create_dataset(
70
70
) ->Dataset:
71
71
"""Create a Dataset
72
72
73
+
Create a new dataset in the workspace. The dataset is initialized with specified parts (can be empty). The dataset can also be populated through dataset parts.
73
74
74
75
:param organization_id: the Organization identifier (required)
Create a new dataset in the workspace. The dataset is initialized with specified parts (can be empty). The dataset can also be populated through dataset parts.
154
156
155
157
:param organization_id: the Organization identifier (required)
Create a new dataset in the workspace. The dataset is initialized with specified parts (can be empty). The dataset can also be populated through dataset parts.
235
238
236
239
:param organization_id: the Organization identifier (required)
237
240
:type organization_id: str
@@ -719,6 +722,7 @@ def create_dataset_part(
719
722
) ->DatasetPart:
720
723
"""Create a data part of a Dataset
721
724
725
+
Create a new data part within a dataset. Specify type as 'File' for file storage or 'DB' for database storage. Returns the created part.
722
726
723
727
:param organization_id: the Organization identifier (required)
Retrieve all data parts associated with a dataset.
3349
3364
3350
3365
:param organization_id: the Organization identifier (required)
3351
3366
:type organization_id: str
@@ -3798,7 +3813,7 @@ def list_datasets(
3798
3813
) ->List[Dataset]:
3799
3814
"""Retrieve a list of defined Dataset
3800
3815
3801
-
List all datasets
3816
+
Retrieve a paginated list of all datasets in the specified workspace. Supports pagination via 'page' and 'size' query parameters. Returns datasets based on user permissions.
3802
3817
3803
3818
:param organization_id: the Organization identifier (required)
Retrieve a paginated list of all datasets in the specified workspace. Supports pagination via 'page' and 'size' query parameters. Returns datasets based on user permissions.
3883
3898
3884
3899
:param organization_id: the Organization identifier (required)
Retrieve a paginated list of all datasets in the specified workspace. Supports pagination via 'page' and 'size' query parameters. Returns datasets based on user permissions.
3964
3979
3965
3980
:param organization_id: the Organization identifier (required)
3966
3981
:type organization_id: str
@@ -4125,6 +4140,7 @@ def query_data(
4125
4140
) ->bytearray:
4126
4141
"""Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4127
4142
4143
+
Execute a query against a dataset part. Results are returned as plain-text CSV. Only available for parts with type=DB.
4128
4144
4129
4145
:param organization_id: the Organization identifier (required)
0 commit comments