cosmotech-api 5.0.0b5__py3-none-any.whl → 5.0.0b6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cosmotech-api might be problematic. Click here for more details.

Files changed (170) hide show
  1. cosmotech_api/__init__.py +1 -5
  2. cosmotech_api/api/connector_api.py +1 -1
  3. cosmotech_api/api/dataset_api.py +129 -40
  4. cosmotech_api/api/meta_api.py +1 -1
  5. cosmotech_api/api/organization_api.py +1 -1
  6. cosmotech_api/api/run_api.py +1 -674
  7. cosmotech_api/api/runner_api.py +1 -1
  8. cosmotech_api/api/scenario_api.py +1 -1
  9. cosmotech_api/api/scenariorun_api.py +1 -1
  10. cosmotech_api/api/solution_api.py +1 -1
  11. cosmotech_api/api/twingraph_api.py +1 -1
  12. cosmotech_api/api/workspace_api.py +1 -1
  13. cosmotech_api/api_client.py +1 -1
  14. cosmotech_api/configuration.py +2 -2
  15. cosmotech_api/exceptions.py +1 -1
  16. cosmotech_api/models/__init__.py +1 -5
  17. cosmotech_api/models/about_info.py +1 -1
  18. cosmotech_api/models/about_info_version.py +1 -1
  19. cosmotech_api/models/component_role_permissions.py +1 -1
  20. cosmotech_api/models/connector.py +1 -1
  21. cosmotech_api/models/connector_parameter.py +1 -1
  22. cosmotech_api/models/connector_parameter_group.py +1 -1
  23. cosmotech_api/models/container_resource_size_info.py +1 -1
  24. cosmotech_api/models/container_resource_sizing.py +1 -1
  25. cosmotech_api/models/create_info.py +1 -1
  26. cosmotech_api/models/created_run.py +1 -1
  27. cosmotech_api/models/dataset.py +1 -1
  28. cosmotech_api/models/dataset_access_control.py +1 -1
  29. cosmotech_api/models/dataset_compatibility.py +1 -1
  30. cosmotech_api/models/dataset_connector.py +1 -1
  31. cosmotech_api/models/dataset_copy_parameters.py +1 -1
  32. cosmotech_api/models/dataset_create_request.py +1 -1
  33. cosmotech_api/models/dataset_part.py +1 -1
  34. cosmotech_api/models/dataset_part_create_request.py +1 -1
  35. cosmotech_api/models/dataset_part_type_enum.py +1 -1
  36. cosmotech_api/models/dataset_part_update_request.py +1 -1
  37. cosmotech_api/models/dataset_role.py +1 -1
  38. cosmotech_api/models/dataset_search.py +1 -1
  39. cosmotech_api/models/dataset_security.py +1 -1
  40. cosmotech_api/models/dataset_source_type.py +1 -1
  41. cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
  42. cosmotech_api/models/dataset_twin_graph_info.py +1 -1
  43. cosmotech_api/models/dataset_twin_graph_query.py +1 -1
  44. cosmotech_api/models/dataset_update_request.py +1 -1
  45. cosmotech_api/models/delete_historical_data.py +1 -1
  46. cosmotech_api/models/edit_info.py +1 -1
  47. cosmotech_api/models/file_upload_metadata.py +1 -1
  48. cosmotech_api/models/file_upload_validation.py +1 -1
  49. cosmotech_api/models/graph_properties.py +1 -1
  50. cosmotech_api/models/ingestion_status_enum.py +1 -1
  51. cosmotech_api/models/io_types_enum.py +1 -1
  52. cosmotech_api/models/last_run_info.py +1 -1
  53. cosmotech_api/models/organization.py +1 -1
  54. cosmotech_api/models/organization_access_control.py +1 -1
  55. cosmotech_api/models/organization_create_request.py +1 -1
  56. cosmotech_api/models/organization_edit_info.py +1 -1
  57. cosmotech_api/models/organization_role.py +1 -1
  58. cosmotech_api/models/organization_security.py +1 -1
  59. cosmotech_api/models/organization_service.py +1 -1
  60. cosmotech_api/models/organization_services.py +1 -1
  61. cosmotech_api/models/organization_update_request.py +1 -1
  62. cosmotech_api/models/query_result.py +1 -1
  63. cosmotech_api/models/resource_size_info.py +1 -1
  64. cosmotech_api/models/run.py +1 -1
  65. cosmotech_api/models/run_container.py +1 -1
  66. cosmotech_api/models/run_container_artifact.py +1 -1
  67. cosmotech_api/models/run_container_logs.py +1 -1
  68. cosmotech_api/models/run_data.py +2 -2
  69. cosmotech_api/models/run_data_query.py +1 -1
  70. cosmotech_api/models/run_edit_info.py +1 -1
  71. cosmotech_api/models/run_logs.py +1 -1
  72. cosmotech_api/models/run_logs_entry.py +1 -1
  73. cosmotech_api/models/run_resource_requested.py +1 -1
  74. cosmotech_api/models/run_search.py +1 -1
  75. cosmotech_api/models/run_search_state.py +1 -1
  76. cosmotech_api/models/run_start_containers.py +1 -1
  77. cosmotech_api/models/run_state.py +1 -1
  78. cosmotech_api/models/run_status.py +1 -1
  79. cosmotech_api/models/run_status_node.py +1 -1
  80. cosmotech_api/models/run_template.py +1 -1
  81. cosmotech_api/models/run_template_create_request.py +1 -1
  82. cosmotech_api/models/run_template_handler_id.py +1 -1
  83. cosmotech_api/models/run_template_orchestrator.py +1 -1
  84. cosmotech_api/models/run_template_parameter.py +1 -1
  85. cosmotech_api/models/run_template_parameter_create_request.py +1 -1
  86. cosmotech_api/models/run_template_parameter_group.py +1 -1
  87. cosmotech_api/models/run_template_parameter_group_create_request.py +1 -1
  88. cosmotech_api/models/run_template_parameter_group_update_request.py +1 -1
  89. cosmotech_api/models/run_template_parameter_update_request.py +1 -1
  90. cosmotech_api/models/run_template_parameter_value.py +1 -1
  91. cosmotech_api/models/run_template_resource_sizing.py +1 -1
  92. cosmotech_api/models/run_template_step_source.py +1 -1
  93. cosmotech_api/models/run_template_update_request.py +1 -1
  94. cosmotech_api/models/runner.py +1 -1
  95. cosmotech_api/models/runner_access_control.py +1 -1
  96. cosmotech_api/models/runner_changed_parameter_value.py +1 -1
  97. cosmotech_api/models/runner_comparison_result.py +1 -1
  98. cosmotech_api/models/runner_create_request.py +1 -1
  99. cosmotech_api/models/runner_data_download_info.py +1 -1
  100. cosmotech_api/models/runner_data_download_job.py +1 -1
  101. cosmotech_api/models/runner_datasets.py +1 -1
  102. cosmotech_api/models/runner_edit_info.py +1 -1
  103. cosmotech_api/models/runner_job_state.py +1 -1
  104. cosmotech_api/models/runner_last_run.py +1 -1
  105. cosmotech_api/models/runner_parent_last_run.py +1 -1
  106. cosmotech_api/models/runner_resource_sizing.py +1 -1
  107. cosmotech_api/models/runner_role.py +1 -1
  108. cosmotech_api/models/runner_root_last_run.py +1 -1
  109. cosmotech_api/models/runner_run_template_parameter_value.py +1 -1
  110. cosmotech_api/models/runner_security.py +1 -1
  111. cosmotech_api/models/runner_update_request.py +1 -1
  112. cosmotech_api/models/runner_validation_status.py +1 -1
  113. cosmotech_api/models/scenario.py +1 -1
  114. cosmotech_api/models/scenario_access_control.py +1 -1
  115. cosmotech_api/models/scenario_changed_parameter_value.py +1 -1
  116. cosmotech_api/models/scenario_comparison_result.py +1 -1
  117. cosmotech_api/models/scenario_data_download_info.py +1 -1
  118. cosmotech_api/models/scenario_data_download_job.py +1 -1
  119. cosmotech_api/models/scenario_job_state.py +1 -1
  120. cosmotech_api/models/scenario_last_run.py +1 -1
  121. cosmotech_api/models/scenario_resource_sizing.py +1 -1
  122. cosmotech_api/models/scenario_role.py +1 -1
  123. cosmotech_api/models/scenario_run.py +1 -1
  124. cosmotech_api/models/scenario_run_container.py +1 -1
  125. cosmotech_api/models/scenario_run_container_artifact.py +1 -1
  126. cosmotech_api/models/scenario_run_container_logs.py +1 -1
  127. cosmotech_api/models/scenario_run_logs.py +1 -1
  128. cosmotech_api/models/scenario_run_resource_requested.py +1 -1
  129. cosmotech_api/models/scenario_run_search.py +1 -1
  130. cosmotech_api/models/scenario_run_search_state.py +1 -1
  131. cosmotech_api/models/scenario_run_start_containers.py +1 -1
  132. cosmotech_api/models/scenario_run_state.py +1 -1
  133. cosmotech_api/models/scenario_run_status.py +1 -1
  134. cosmotech_api/models/scenario_run_status_node.py +1 -1
  135. cosmotech_api/models/scenario_run_template_parameter_value.py +1 -1
  136. cosmotech_api/models/scenario_security.py +1 -1
  137. cosmotech_api/models/scenario_validation_status.py +1 -1
  138. cosmotech_api/models/send_run_data_request.py +5 -5
  139. cosmotech_api/models/solution.py +1 -1
  140. cosmotech_api/models/solution_access_control.py +1 -1
  141. cosmotech_api/models/solution_create_request.py +1 -1
  142. cosmotech_api/models/solution_edit_info.py +1 -1
  143. cosmotech_api/models/solution_role.py +1 -1
  144. cosmotech_api/models/solution_security.py +1 -1
  145. cosmotech_api/models/solution_update_request.py +1 -1
  146. cosmotech_api/models/source_info.py +1 -1
  147. cosmotech_api/models/sub_dataset_graph_query.py +1 -1
  148. cosmotech_api/models/twin_graph_batch_result.py +1 -1
  149. cosmotech_api/models/twin_graph_hash.py +1 -1
  150. cosmotech_api/models/twin_graph_query.py +1 -1
  151. cosmotech_api/models/twincache_status_enum.py +1 -1
  152. cosmotech_api/models/validator.py +1 -1
  153. cosmotech_api/models/workspace.py +1 -1
  154. cosmotech_api/models/workspace_access_control.py +1 -1
  155. cosmotech_api/models/workspace_create_request.py +1 -1
  156. cosmotech_api/models/workspace_edit_info.py +1 -1
  157. cosmotech_api/models/workspace_file.py +1 -1
  158. cosmotech_api/models/workspace_role.py +1 -1
  159. cosmotech_api/models/workspace_secret.py +1 -1
  160. cosmotech_api/models/workspace_security.py +1 -1
  161. cosmotech_api/models/workspace_solution.py +1 -1
  162. cosmotech_api/models/workspace_update_request.py +1 -1
  163. cosmotech_api/models/workspace_web_app.py +1 -1
  164. cosmotech_api/rest.py +1 -1
  165. {cosmotech_api-5.0.0b5.dist-info → cosmotech_api-5.0.0b6.dist-info}/METADATA +1 -1
  166. cosmotech_api-5.0.0b6.dist-info/RECORD +295 -0
  167. cosmotech_api-5.0.0b5.dist-info/RECORD +0 -295
  168. {cosmotech_api-5.0.0b5.dist-info → cosmotech_api-5.0.0b6.dist-info}/WHEEL +0 -0
  169. {cosmotech_api-5.0.0b5.dist-info → cosmotech_api-5.0.0b6.dist-info}/licenses/LICENSE +0 -0
  170. {cosmotech_api-5.0.0b5.dist-info → cosmotech_api-5.0.0b6.dist-info}/top_level.txt +0 -0
cosmotech_api/__init__.py CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Cosmo Tech Platform API
9
9
 
10
- The version of the OpenAPI document: 5.0.1-SNAPSHOT
10
+ The version of the OpenAPI document: 5.0.0-beta6
11
11
  Contact: platform@cosmotech.com
12
12
  Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
@@ -64,12 +64,9 @@ from cosmotech_api.models.organization_edit_info import OrganizationEditInfo
64
64
  from cosmotech_api.models.organization_role import OrganizationRole
65
65
  from cosmotech_api.models.organization_security import OrganizationSecurity
66
66
  from cosmotech_api.models.organization_update_request import OrganizationUpdateRequest
67
- from cosmotech_api.models.query_result import QueryResult
68
67
  from cosmotech_api.models.resource_size_info import ResourceSizeInfo
69
68
  from cosmotech_api.models.run import Run
70
69
  from cosmotech_api.models.run_container import RunContainer
71
- from cosmotech_api.models.run_data import RunData
72
- from cosmotech_api.models.run_data_query import RunDataQuery
73
70
  from cosmotech_api.models.run_edit_info import RunEditInfo
74
71
  from cosmotech_api.models.run_resource_requested import RunResourceRequested
75
72
  from cosmotech_api.models.run_state import RunState
@@ -97,7 +94,6 @@ from cosmotech_api.models.runner_run_template_parameter_value import RunnerRunTe
97
94
  from cosmotech_api.models.runner_security import RunnerSecurity
98
95
  from cosmotech_api.models.runner_update_request import RunnerUpdateRequest
99
96
  from cosmotech_api.models.runner_validation_status import RunnerValidationStatus
100
- from cosmotech_api.models.send_run_data_request import SendRunDataRequest
101
97
  from cosmotech_api.models.solution import Solution
102
98
  from cosmotech_api.models.solution_access_control import SolutionAccessControl
103
99
  from cosmotech_api.models.solution_create_request import SolutionCreateRequest
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 4.2.0-onprem
8
+ The version of the OpenAPI document: 4.2.1-onprem
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.1-SNAPSHOT
8
+ The version of the OpenAPI document: 5.0.0-beta6
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import Field, StrictBytes, StrictInt, StrictStr
21
- from typing import Any, Dict, List, Optional, Tuple, Union
21
+ from typing import List, Optional, Tuple, Union
22
22
  from typing_extensions import Annotated
23
23
  from cosmotech_api.models.dataset import Dataset
24
24
  from cosmotech_api.models.dataset_access_control import DatasetAccessControl
@@ -4102,11 +4102,16 @@ class DatasetApi:
4102
4102
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4103
4103
  dataset_id: Annotated[StrictStr, Field(description="the Dataset identifier")],
4104
4104
  dataset_part_id: Annotated[StrictStr, Field(description="the Dataset part identifier")],
4105
- filters: Annotated[Optional[List[StrictStr]], Field(description="Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ... ")] = None,
4106
- sums: Annotated[Optional[List[StrictStr]], Field(description="Property names to sum by")] = None,
4107
- counts: Annotated[Optional[List[StrictStr]], Field(description="Property names to count by")] = None,
4105
+ selects: Annotated[Optional[List[StrictStr]], Field(description="Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4106
+ sums: Annotated[Optional[List[StrictStr]], Field(description="Column names to sum by. If you want to sum only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4107
+ avgs: Annotated[Optional[List[StrictStr]], Field(description="Column names to average by. If you want to apply 'average' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4108
+ counts: Annotated[Optional[List[StrictStr]], Field(description="Column names to count by. If you want to count only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4109
+ mins: Annotated[Optional[List[StrictStr]], Field(description="Column names to min by. If you want to apply 'min' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4110
+ maxs: Annotated[Optional[List[StrictStr]], Field(description="Column names to max by. If you want to apply 'max' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4108
4111
  offset: Annotated[Optional[StrictInt], Field(description="The query offset")] = None,
4109
4112
  limit: Annotated[Optional[StrictInt], Field(description="The query limit")] = None,
4113
+ group_bys: Annotated[Optional[List[StrictStr]], Field(description="Column names to group by")] = None,
4114
+ order_bys: Annotated[Optional[List[StrictStr]], Field(description="Column names to order by. Default order is ascending. If you want to specify 'descending' order, add a '!' at the beginning of the column name (e.g. !stock). ")] = None,
4110
4115
  _request_timeout: Union[
4111
4116
  None,
4112
4117
  Annotated[StrictFloat, Field(gt=0)],
@@ -4119,8 +4124,8 @@ class DatasetApi:
4119
4124
  _content_type: Optional[StrictStr] = None,
4120
4125
  _headers: Optional[Dict[StrictStr, Any]] = None,
4121
4126
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4122
- ) -> List[object]:
4123
- """Get data of a Dataset
4127
+ ) -> bytearray:
4128
+ """Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4124
4129
 
4125
4130
 
4126
4131
  :param organization_id: the Organization identifier (required)
@@ -4131,16 +4136,26 @@ class DatasetApi:
4131
4136
  :type dataset_id: str
4132
4137
  :param dataset_part_id: the Dataset part identifier (required)
4133
4138
  :type dataset_part_id: str
4134
- :param filters: Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
4135
- :type filters: List[str]
4136
- :param sums: Property names to sum by
4139
+ :param selects: Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4140
+ :type selects: List[str]
4141
+ :param sums: Column names to sum by. If you want to sum only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4137
4142
  :type sums: List[str]
4138
- :param counts: Property names to count by
4143
+ :param avgs: Column names to average by. If you want to apply 'average' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4144
+ :type avgs: List[str]
4145
+ :param counts: Column names to count by. If you want to count only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4139
4146
  :type counts: List[str]
4147
+ :param mins: Column names to min by. If you want to apply 'min' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4148
+ :type mins: List[str]
4149
+ :param maxs: Column names to max by. If you want to apply 'max' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4150
+ :type maxs: List[str]
4140
4151
  :param offset: The query offset
4141
4152
  :type offset: int
4142
4153
  :param limit: The query limit
4143
4154
  :type limit: int
4155
+ :param group_bys: Column names to group by
4156
+ :type group_bys: List[str]
4157
+ :param order_bys: Column names to order by. Default order is ascending. If you want to specify 'descending' order, add a '!' at the beginning of the column name (e.g. !stock).
4158
+ :type order_bys: List[str]
4144
4159
  :param _request_timeout: timeout setting for this request. If one
4145
4160
  number provided, it will be total request
4146
4161
  timeout. It can also be a pair (tuple) of
@@ -4168,11 +4183,16 @@ class DatasetApi:
4168
4183
  workspace_id=workspace_id,
4169
4184
  dataset_id=dataset_id,
4170
4185
  dataset_part_id=dataset_part_id,
4171
- filters=filters,
4186
+ selects=selects,
4172
4187
  sums=sums,
4188
+ avgs=avgs,
4173
4189
  counts=counts,
4190
+ mins=mins,
4191
+ maxs=maxs,
4174
4192
  offset=offset,
4175
4193
  limit=limit,
4194
+ group_bys=group_bys,
4195
+ order_bys=order_bys,
4176
4196
  _request_auth=_request_auth,
4177
4197
  _content_type=_content_type,
4178
4198
  _headers=_headers,
@@ -4180,7 +4200,7 @@ class DatasetApi:
4180
4200
  )
4181
4201
 
4182
4202
  _response_types_map: Dict[str, Optional[str]] = {
4183
- '200': "List[object]",
4203
+ '200': "bytearray",
4184
4204
  '400': None,
4185
4205
  '403': None,
4186
4206
  '404': None,
@@ -4204,11 +4224,16 @@ class DatasetApi:
4204
4224
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4205
4225
  dataset_id: Annotated[StrictStr, Field(description="the Dataset identifier")],
4206
4226
  dataset_part_id: Annotated[StrictStr, Field(description="the Dataset part identifier")],
4207
- filters: Annotated[Optional[List[StrictStr]], Field(description="Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ... ")] = None,
4208
- sums: Annotated[Optional[List[StrictStr]], Field(description="Property names to sum by")] = None,
4209
- counts: Annotated[Optional[List[StrictStr]], Field(description="Property names to count by")] = None,
4227
+ selects: Annotated[Optional[List[StrictStr]], Field(description="Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4228
+ sums: Annotated[Optional[List[StrictStr]], Field(description="Column names to sum by. If you want to sum only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4229
+ avgs: Annotated[Optional[List[StrictStr]], Field(description="Column names to average by. If you want to apply 'average' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4230
+ counts: Annotated[Optional[List[StrictStr]], Field(description="Column names to count by. If you want to count only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4231
+ mins: Annotated[Optional[List[StrictStr]], Field(description="Column names to min by. If you want to apply 'min' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4232
+ maxs: Annotated[Optional[List[StrictStr]], Field(description="Column names to max by. If you want to apply 'max' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4210
4233
  offset: Annotated[Optional[StrictInt], Field(description="The query offset")] = None,
4211
4234
  limit: Annotated[Optional[StrictInt], Field(description="The query limit")] = None,
4235
+ group_bys: Annotated[Optional[List[StrictStr]], Field(description="Column names to group by")] = None,
4236
+ order_bys: Annotated[Optional[List[StrictStr]], Field(description="Column names to order by. Default order is ascending. If you want to specify 'descending' order, add a '!' at the beginning of the column name (e.g. !stock). ")] = None,
4212
4237
  _request_timeout: Union[
4213
4238
  None,
4214
4239
  Annotated[StrictFloat, Field(gt=0)],
@@ -4221,8 +4246,8 @@ class DatasetApi:
4221
4246
  _content_type: Optional[StrictStr] = None,
4222
4247
  _headers: Optional[Dict[StrictStr, Any]] = None,
4223
4248
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4224
- ) -> ApiResponse[List[object]]:
4225
- """Get data of a Dataset
4249
+ ) -> ApiResponse[bytearray]:
4250
+ """Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4226
4251
 
4227
4252
 
4228
4253
  :param organization_id: the Organization identifier (required)
@@ -4233,16 +4258,26 @@ class DatasetApi:
4233
4258
  :type dataset_id: str
4234
4259
  :param dataset_part_id: the Dataset part identifier (required)
4235
4260
  :type dataset_part_id: str
4236
- :param filters: Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
4237
- :type filters: List[str]
4238
- :param sums: Property names to sum by
4261
+ :param selects: Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4262
+ :type selects: List[str]
4263
+ :param sums: Column names to sum by. If you want to sum only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4239
4264
  :type sums: List[str]
4240
- :param counts: Property names to count by
4265
+ :param avgs: Column names to average by. If you want to apply 'average' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4266
+ :type avgs: List[str]
4267
+ :param counts: Column names to count by. If you want to count only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4241
4268
  :type counts: List[str]
4269
+ :param mins: Column names to min by. If you want to apply 'min' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4270
+ :type mins: List[str]
4271
+ :param maxs: Column names to max by. If you want to apply 'max' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4272
+ :type maxs: List[str]
4242
4273
  :param offset: The query offset
4243
4274
  :type offset: int
4244
4275
  :param limit: The query limit
4245
4276
  :type limit: int
4277
+ :param group_bys: Column names to group by
4278
+ :type group_bys: List[str]
4279
+ :param order_bys: Column names to order by. Default order is ascending. If you want to specify 'descending' order, add a '!' at the beginning of the column name (e.g. !stock).
4280
+ :type order_bys: List[str]
4246
4281
  :param _request_timeout: timeout setting for this request. If one
4247
4282
  number provided, it will be total request
4248
4283
  timeout. It can also be a pair (tuple) of
@@ -4270,11 +4305,16 @@ class DatasetApi:
4270
4305
  workspace_id=workspace_id,
4271
4306
  dataset_id=dataset_id,
4272
4307
  dataset_part_id=dataset_part_id,
4273
- filters=filters,
4308
+ selects=selects,
4274
4309
  sums=sums,
4310
+ avgs=avgs,
4275
4311
  counts=counts,
4312
+ mins=mins,
4313
+ maxs=maxs,
4276
4314
  offset=offset,
4277
4315
  limit=limit,
4316
+ group_bys=group_bys,
4317
+ order_bys=order_bys,
4278
4318
  _request_auth=_request_auth,
4279
4319
  _content_type=_content_type,
4280
4320
  _headers=_headers,
@@ -4282,7 +4322,7 @@ class DatasetApi:
4282
4322
  )
4283
4323
 
4284
4324
  _response_types_map: Dict[str, Optional[str]] = {
4285
- '200': "List[object]",
4325
+ '200': "bytearray",
4286
4326
  '400': None,
4287
4327
  '403': None,
4288
4328
  '404': None,
@@ -4306,11 +4346,16 @@ class DatasetApi:
4306
4346
  workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
4307
4347
  dataset_id: Annotated[StrictStr, Field(description="the Dataset identifier")],
4308
4348
  dataset_part_id: Annotated[StrictStr, Field(description="the Dataset part identifier")],
4309
- filters: Annotated[Optional[List[StrictStr]], Field(description="Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ... ")] = None,
4310
- sums: Annotated[Optional[List[StrictStr]], Field(description="Property names to sum by")] = None,
4311
- counts: Annotated[Optional[List[StrictStr]], Field(description="Property names to count by")] = None,
4349
+ selects: Annotated[Optional[List[StrictStr]], Field(description="Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4350
+ sums: Annotated[Optional[List[StrictStr]], Field(description="Column names to sum by. If you want to sum only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4351
+ avgs: Annotated[Optional[List[StrictStr]], Field(description="Column names to average by. If you want to apply 'average' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4352
+ counts: Annotated[Optional[List[StrictStr]], Field(description="Column names to count by. If you want to count only distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4353
+ mins: Annotated[Optional[List[StrictStr]], Field(description="Column names to min by. If you want to apply 'min' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4354
+ maxs: Annotated[Optional[List[StrictStr]], Field(description="Column names to max by. If you want to apply 'max' only on distinct columns, add a '*' at the end of the column name (e.g. stock*). ")] = None,
4312
4355
  offset: Annotated[Optional[StrictInt], Field(description="The query offset")] = None,
4313
4356
  limit: Annotated[Optional[StrictInt], Field(description="The query limit")] = None,
4357
+ group_bys: Annotated[Optional[List[StrictStr]], Field(description="Column names to group by")] = None,
4358
+ order_bys: Annotated[Optional[List[StrictStr]], Field(description="Column names to order by. Default order is ascending. If you want to specify 'descending' order, add a '!' at the beginning of the column name (e.g. !stock). ")] = None,
4314
4359
  _request_timeout: Union[
4315
4360
  None,
4316
4361
  Annotated[StrictFloat, Field(gt=0)],
@@ -4324,7 +4369,7 @@ class DatasetApi:
4324
4369
  _headers: Optional[Dict[StrictStr, Any]] = None,
4325
4370
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4326
4371
  ) -> RESTResponseType:
4327
- """Get data of a Dataset
4372
+ """Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
4328
4373
 
4329
4374
 
4330
4375
  :param organization_id: the Organization identifier (required)
@@ -4335,16 +4380,26 @@ class DatasetApi:
4335
4380
  :type dataset_id: str
4336
4381
  :param dataset_part_id: the Dataset part identifier (required)
4337
4382
  :type dataset_part_id: str
4338
- :param filters: Property names that should be part of the response data. You can specify a property name like: - id - stock - quantity - ...
4339
- :type filters: List[str]
4340
- :param sums: Property names to sum by
4383
+ :param selects: Column names that should be part of the response data. You can specify a column name like: - id - stock - quantity - ... If you want to select only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4384
+ :type selects: List[str]
4385
+ :param sums: Column names to sum by. If you want to sum only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4341
4386
  :type sums: List[str]
4342
- :param counts: Property names to count by
4387
+ :param avgs: Column names to average by. If you want to apply 'average' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4388
+ :type avgs: List[str]
4389
+ :param counts: Column names to count by. If you want to count only distinct columns, add a '*' at the end of the column name (e.g. stock*).
4343
4390
  :type counts: List[str]
4391
+ :param mins: Column names to min by. If you want to apply 'min' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4392
+ :type mins: List[str]
4393
+ :param maxs: Column names to max by. If you want to apply 'max' only on distinct columns, add a '*' at the end of the column name (e.g. stock*).
4394
+ :type maxs: List[str]
4344
4395
  :param offset: The query offset
4345
4396
  :type offset: int
4346
4397
  :param limit: The query limit
4347
4398
  :type limit: int
4399
+ :param group_bys: Column names to group by
4400
+ :type group_bys: List[str]
4401
+ :param order_bys: Column names to order by. Default order is ascending. If you want to specify 'descending' order, add a '!' at the beginning of the column name (e.g. !stock).
4402
+ :type order_bys: List[str]
4348
4403
  :param _request_timeout: timeout setting for this request. If one
4349
4404
  number provided, it will be total request
4350
4405
  timeout. It can also be a pair (tuple) of
@@ -4372,11 +4427,16 @@ class DatasetApi:
4372
4427
  workspace_id=workspace_id,
4373
4428
  dataset_id=dataset_id,
4374
4429
  dataset_part_id=dataset_part_id,
4375
- filters=filters,
4430
+ selects=selects,
4376
4431
  sums=sums,
4432
+ avgs=avgs,
4377
4433
  counts=counts,
4434
+ mins=mins,
4435
+ maxs=maxs,
4378
4436
  offset=offset,
4379
4437
  limit=limit,
4438
+ group_bys=group_bys,
4439
+ order_bys=order_bys,
4380
4440
  _request_auth=_request_auth,
4381
4441
  _content_type=_content_type,
4382
4442
  _headers=_headers,
@@ -4384,7 +4444,7 @@ class DatasetApi:
4384
4444
  )
4385
4445
 
4386
4446
  _response_types_map: Dict[str, Optional[str]] = {
4387
- '200': "List[object]",
4447
+ '200': "bytearray",
4388
4448
  '400': None,
4389
4449
  '403': None,
4390
4450
  '404': None,
@@ -4403,11 +4463,16 @@ class DatasetApi:
4403
4463
  workspace_id,
4404
4464
  dataset_id,
4405
4465
  dataset_part_id,
4406
- filters,
4466
+ selects,
4407
4467
  sums,
4468
+ avgs,
4408
4469
  counts,
4470
+ mins,
4471
+ maxs,
4409
4472
  offset,
4410
4473
  limit,
4474
+ group_bys,
4475
+ order_bys,
4411
4476
  _request_auth,
4412
4477
  _content_type,
4413
4478
  _headers,
@@ -4417,9 +4482,14 @@ class DatasetApi:
4417
4482
  _host = None
4418
4483
 
4419
4484
  _collection_formats: Dict[str, str] = {
4420
- 'filters': 'multi',
4485
+ 'selects': 'multi',
4421
4486
  'sums': 'multi',
4487
+ 'avgs': 'multi',
4422
4488
  'counts': 'multi',
4489
+ 'mins': 'multi',
4490
+ 'maxs': 'multi',
4491
+ 'groupBys': 'multi',
4492
+ 'orderBys': 'multi',
4423
4493
  }
4424
4494
 
4425
4495
  _path_params: Dict[str, str] = {}
@@ -4441,18 +4511,30 @@ class DatasetApi:
4441
4511
  if dataset_part_id is not None:
4442
4512
  _path_params['dataset_part_id'] = dataset_part_id
4443
4513
  # process the query parameters
4444
- if filters is not None:
4514
+ if selects is not None:
4445
4515
 
4446
- _query_params.append(('filters', filters))
4516
+ _query_params.append(('selects', selects))
4447
4517
 
4448
4518
  if sums is not None:
4449
4519
 
4450
4520
  _query_params.append(('sums', sums))
4451
4521
 
4522
+ if avgs is not None:
4523
+
4524
+ _query_params.append(('avgs', avgs))
4525
+
4452
4526
  if counts is not None:
4453
4527
 
4454
4528
  _query_params.append(('counts', counts))
4455
4529
 
4530
+ if mins is not None:
4531
+
4532
+ _query_params.append(('mins', mins))
4533
+
4534
+ if maxs is not None:
4535
+
4536
+ _query_params.append(('maxs', maxs))
4537
+
4456
4538
  if offset is not None:
4457
4539
 
4458
4540
  _query_params.append(('offset', offset))
@@ -4461,6 +4543,14 @@ class DatasetApi:
4461
4543
 
4462
4544
  _query_params.append(('limit', limit))
4463
4545
 
4546
+ if group_bys is not None:
4547
+
4548
+ _query_params.append(('groupBys', group_bys))
4549
+
4550
+ if order_bys is not None:
4551
+
4552
+ _query_params.append(('orderBys', order_bys))
4553
+
4464
4554
  # process the header parameters
4465
4555
  # process the form parameters
4466
4556
  # process the body parameter
@@ -4470,8 +4560,7 @@ class DatasetApi:
4470
4560
  if 'Accept' not in _header_params:
4471
4561
  _header_params['Accept'] = self.api_client.select_header_accept(
4472
4562
  [
4473
- 'application/json',
4474
- 'application/yaml'
4563
+ 'application/octet-stream'
4475
4564
  ]
4476
4565
  )
4477
4566
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.1-SNAPSHOT
8
+ The version of the OpenAPI document: 5.0.0-beta6
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.1-SNAPSHOT
8
+ The version of the OpenAPI document: 5.0.0-beta6
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11