cosmotech-api 5.0.0b4__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.
- cosmotech_api/__init__.py +2 -6
- cosmotech_api/api/connector_api.py +4 -7
- cosmotech_api/api/dataset_api.py +471 -40
- cosmotech_api/api/meta_api.py +1 -1
- cosmotech_api/api/organization_api.py +1 -1
- cosmotech_api/api/run_api.py +1 -674
- cosmotech_api/api/runner_api.py +13 -13
- cosmotech_api/api/scenario_api.py +1 -1
- cosmotech_api/api/scenariorun_api.py +1 -1
- cosmotech_api/api/solution_api.py +399 -1860
- cosmotech_api/api/twingraph_api.py +1 -1
- cosmotech_api/api/workspace_api.py +1 -1
- cosmotech_api/api_client.py +1 -1
- cosmotech_api/configuration.py +2 -2
- cosmotech_api/exceptions.py +1 -1
- cosmotech_api/models/__init__.py +2 -6
- cosmotech_api/models/about_info.py +1 -1
- cosmotech_api/models/about_info_version.py +1 -1
- cosmotech_api/models/component_role_permissions.py +1 -1
- cosmotech_api/models/connector.py +1 -1
- cosmotech_api/models/connector_parameter.py +1 -1
- cosmotech_api/models/connector_parameter_group.py +1 -1
- cosmotech_api/models/container_resource_size_info.py +1 -1
- cosmotech_api/models/container_resource_sizing.py +1 -1
- cosmotech_api/models/create_info.py +1 -1
- cosmotech_api/models/created_run.py +1 -1
- cosmotech_api/models/dataset.py +1 -1
- cosmotech_api/models/dataset_access_control.py +1 -1
- cosmotech_api/models/dataset_compatibility.py +1 -1
- cosmotech_api/models/dataset_connector.py +1 -1
- cosmotech_api/models/dataset_copy_parameters.py +1 -1
- cosmotech_api/models/dataset_create_request.py +1 -1
- cosmotech_api/models/dataset_part.py +2 -2
- cosmotech_api/models/dataset_part_create_request.py +3 -3
- cosmotech_api/models/dataset_part_type_enum.py +2 -2
- cosmotech_api/models/dataset_part_update_request.py +1 -1
- cosmotech_api/models/dataset_role.py +1 -1
- cosmotech_api/models/dataset_search.py +1 -1
- cosmotech_api/models/dataset_security.py +1 -1
- cosmotech_api/models/dataset_source_type.py +1 -1
- cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/models/dataset_twin_graph_info.py +1 -1
- cosmotech_api/models/dataset_twin_graph_query.py +1 -1
- cosmotech_api/models/dataset_update_request.py +1 -1
- cosmotech_api/models/delete_historical_data.py +1 -1
- cosmotech_api/models/edit_info.py +1 -1
- cosmotech_api/models/file_upload_metadata.py +1 -1
- cosmotech_api/models/file_upload_validation.py +1 -1
- cosmotech_api/models/graph_properties.py +1 -1
- cosmotech_api/models/ingestion_status_enum.py +1 -1
- cosmotech_api/models/io_types_enum.py +1 -1
- cosmotech_api/models/last_run_info.py +1 -1
- cosmotech_api/models/organization.py +1 -1
- cosmotech_api/models/organization_access_control.py +1 -1
- cosmotech_api/models/organization_create_request.py +1 -1
- cosmotech_api/models/organization_edit_info.py +1 -1
- cosmotech_api/models/organization_role.py +1 -1
- cosmotech_api/models/organization_security.py +1 -1
- cosmotech_api/models/organization_service.py +1 -1
- cosmotech_api/models/organization_services.py +1 -1
- cosmotech_api/models/organization_update_request.py +1 -1
- cosmotech_api/models/query_result.py +1 -1
- cosmotech_api/models/resource_size_info.py +1 -1
- cosmotech_api/models/run.py +1 -1
- cosmotech_api/models/run_container.py +1 -1
- cosmotech_api/models/run_container_artifact.py +1 -1
- cosmotech_api/models/run_container_logs.py +1 -1
- cosmotech_api/models/run_data.py +2 -2
- cosmotech_api/models/run_data_query.py +1 -1
- cosmotech_api/models/run_edit_info.py +1 -1
- cosmotech_api/models/run_logs.py +1 -1
- cosmotech_api/models/run_logs_entry.py +1 -1
- cosmotech_api/models/run_resource_requested.py +1 -1
- cosmotech_api/models/run_search.py +1 -1
- cosmotech_api/models/run_search_state.py +1 -1
- cosmotech_api/models/run_start_containers.py +1 -1
- cosmotech_api/models/run_state.py +1 -1
- cosmotech_api/models/run_status.py +1 -1
- cosmotech_api/models/run_status_node.py +1 -1
- cosmotech_api/models/run_template.py +1 -1
- cosmotech_api/models/run_template_create_request.py +1 -1
- cosmotech_api/models/run_template_handler_id.py +1 -1
- cosmotech_api/models/run_template_orchestrator.py +1 -1
- cosmotech_api/models/run_template_parameter.py +1 -1
- cosmotech_api/models/run_template_parameter_create_request.py +1 -1
- cosmotech_api/models/run_template_parameter_group.py +1 -1
- cosmotech_api/models/run_template_parameter_group_create_request.py +1 -1
- cosmotech_api/models/run_template_parameter_group_update_request.py +1 -1
- cosmotech_api/models/run_template_parameter_update_request.py +1 -1
- cosmotech_api/models/run_template_parameter_value.py +1 -1
- cosmotech_api/models/run_template_resource_sizing.py +1 -1
- cosmotech_api/models/run_template_step_source.py +1 -1
- cosmotech_api/models/run_template_update_request.py +1 -1
- cosmotech_api/models/runner.py +8 -4
- cosmotech_api/models/runner_access_control.py +1 -1
- cosmotech_api/models/runner_changed_parameter_value.py +1 -1
- cosmotech_api/models/runner_comparison_result.py +1 -1
- cosmotech_api/models/runner_create_request.py +1 -9
- cosmotech_api/models/runner_data_download_info.py +1 -1
- cosmotech_api/models/runner_data_download_job.py +1 -1
- cosmotech_api/models/runner_datasets.py +92 -0
- cosmotech_api/models/runner_edit_info.py +1 -1
- cosmotech_api/models/runner_job_state.py +1 -1
- cosmotech_api/models/runner_last_run.py +1 -1
- cosmotech_api/models/runner_parent_last_run.py +1 -1
- cosmotech_api/models/runner_resource_sizing.py +1 -1
- cosmotech_api/models/runner_role.py +1 -1
- cosmotech_api/models/runner_root_last_run.py +1 -1
- cosmotech_api/models/runner_run_template_parameter_value.py +1 -3
- cosmotech_api/models/runner_security.py +1 -1
- cosmotech_api/models/runner_update_request.py +1 -5
- cosmotech_api/models/runner_validation_status.py +1 -1
- cosmotech_api/models/scenario.py +1 -1
- cosmotech_api/models/scenario_access_control.py +1 -1
- cosmotech_api/models/scenario_changed_parameter_value.py +1 -1
- cosmotech_api/models/scenario_comparison_result.py +1 -1
- cosmotech_api/models/scenario_data_download_info.py +1 -1
- cosmotech_api/models/scenario_data_download_job.py +1 -1
- cosmotech_api/models/scenario_job_state.py +1 -1
- cosmotech_api/models/scenario_last_run.py +1 -1
- cosmotech_api/models/scenario_resource_sizing.py +1 -1
- cosmotech_api/models/scenario_role.py +1 -1
- cosmotech_api/models/scenario_run.py +1 -1
- cosmotech_api/models/scenario_run_container.py +1 -1
- cosmotech_api/models/scenario_run_container_artifact.py +1 -1
- cosmotech_api/models/scenario_run_container_logs.py +1 -1
- cosmotech_api/models/scenario_run_logs.py +1 -1
- cosmotech_api/models/scenario_run_resource_requested.py +1 -1
- cosmotech_api/models/scenario_run_search.py +1 -1
- cosmotech_api/models/scenario_run_search_state.py +1 -1
- cosmotech_api/models/scenario_run_start_containers.py +1 -1
- cosmotech_api/models/scenario_run_state.py +1 -1
- cosmotech_api/models/scenario_run_status.py +1 -1
- cosmotech_api/models/scenario_run_status_node.py +1 -1
- cosmotech_api/models/scenario_run_template_parameter_value.py +1 -1
- cosmotech_api/models/scenario_security.py +1 -1
- cosmotech_api/models/scenario_validation_status.py +1 -1
- cosmotech_api/models/send_run_data_request.py +5 -5
- cosmotech_api/models/solution.py +1 -1
- cosmotech_api/models/solution_access_control.py +1 -1
- cosmotech_api/models/solution_create_request.py +1 -1
- cosmotech_api/models/solution_edit_info.py +1 -1
- cosmotech_api/models/solution_file.py +1 -1
- cosmotech_api/models/solution_role.py +1 -1
- cosmotech_api/models/solution_security.py +1 -1
- cosmotech_api/models/solution_update_request.py +1 -1
- cosmotech_api/models/source_info.py +1 -1
- cosmotech_api/models/sub_dataset_graph_query.py +1 -1
- cosmotech_api/models/twin_graph_batch_result.py +1 -1
- cosmotech_api/models/twin_graph_hash.py +1 -1
- cosmotech_api/models/twin_graph_query.py +1 -1
- cosmotech_api/models/twincache_status_enum.py +1 -1
- cosmotech_api/models/validator.py +1 -1
- cosmotech_api/models/workspace.py +1 -1
- cosmotech_api/models/workspace_access_control.py +1 -1
- cosmotech_api/models/workspace_create_request.py +1 -1
- cosmotech_api/models/workspace_edit_info.py +1 -1
- cosmotech_api/models/workspace_file.py +1 -1
- cosmotech_api/models/workspace_role.py +1 -1
- cosmotech_api/models/workspace_secret.py +1 -1
- cosmotech_api/models/workspace_security.py +1 -1
- cosmotech_api/models/workspace_solution.py +16 -2
- cosmotech_api/models/workspace_update_request.py +1 -1
- cosmotech_api/models/workspace_web_app.py +1 -1
- cosmotech_api/rest.py +1 -1
- {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/METADATA +1 -1
- cosmotech_api-5.0.0b6.dist-info/RECORD +295 -0
- cosmotech_api-5.0.0b4.dist-info/RECORD +0 -294
- {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/WHEEL +0 -0
- {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/licenses/LICENSE +0 -0
- {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/top_level.txt +0 -0
cosmotech_api/api/dataset_api.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Cosmo Tech Platform API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.0.0-
|
|
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
|
|
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
|
-
|
|
4106
|
-
sums: Annotated[Optional[List[StrictStr]], Field(description="
|
|
4107
|
-
|
|
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
|
-
) ->
|
|
4123
|
-
"""
|
|
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
|
|
4135
|
-
:type
|
|
4136
|
-
:param sums:
|
|
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
|
|
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
|
-
|
|
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': "
|
|
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
|
-
|
|
4208
|
-
sums: Annotated[Optional[List[StrictStr]], Field(description="
|
|
4209
|
-
|
|
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[
|
|
4225
|
-
"""
|
|
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
|
|
4237
|
-
:type
|
|
4238
|
-
:param sums:
|
|
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
|
|
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
|
-
|
|
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': "
|
|
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
|
-
|
|
4310
|
-
sums: Annotated[Optional[List[StrictStr]], Field(description="
|
|
4311
|
-
|
|
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
|
-
"""
|
|
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
|
|
4339
|
-
:type
|
|
4340
|
-
:param sums:
|
|
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
|
|
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
|
-
|
|
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': "
|
|
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
|
-
|
|
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
|
-
'
|
|
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
|
|
4514
|
+
if selects is not None:
|
|
4445
4515
|
|
|
4446
|
-
_query_params.append(('
|
|
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/
|
|
4474
|
-
'application/yaml'
|
|
4563
|
+
'application/octet-stream'
|
|
4475
4564
|
]
|
|
4476
4565
|
)
|
|
4477
4566
|
|
|
@@ -6543,3 +6632,345 @@ class DatasetApi:
|
|
|
6543
6632
|
)
|
|
6544
6633
|
|
|
6545
6634
|
|
|
6635
|
+
|
|
6636
|
+
|
|
6637
|
+
@validate_call
|
|
6638
|
+
def update_dataset_part(
|
|
6639
|
+
self,
|
|
6640
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
6641
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
6642
|
+
dataset_id: Annotated[StrictStr, Field(description="the Dataset identifier")],
|
|
6643
|
+
dataset_part_id: Annotated[StrictStr, Field(description="the Dataset part identifier")],
|
|
6644
|
+
dataset_part_update_request: Annotated[DatasetPartUpdateRequest, Field(description="Dataset part information to update")],
|
|
6645
|
+
_request_timeout: Union[
|
|
6646
|
+
None,
|
|
6647
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6648
|
+
Tuple[
|
|
6649
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6650
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6651
|
+
]
|
|
6652
|
+
] = None,
|
|
6653
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6654
|
+
_content_type: Optional[StrictStr] = None,
|
|
6655
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6656
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6657
|
+
) -> DatasetPart:
|
|
6658
|
+
"""Update existing dataset parts information of a Dataset
|
|
6659
|
+
|
|
6660
|
+
|
|
6661
|
+
:param organization_id: the Organization identifier (required)
|
|
6662
|
+
:type organization_id: str
|
|
6663
|
+
:param workspace_id: the Workspace identifier (required)
|
|
6664
|
+
:type workspace_id: str
|
|
6665
|
+
:param dataset_id: the Dataset identifier (required)
|
|
6666
|
+
:type dataset_id: str
|
|
6667
|
+
:param dataset_part_id: the Dataset part identifier (required)
|
|
6668
|
+
:type dataset_part_id: str
|
|
6669
|
+
:param dataset_part_update_request: Dataset part information to update (required)
|
|
6670
|
+
:type dataset_part_update_request: DatasetPartUpdateRequest
|
|
6671
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6672
|
+
number provided, it will be total request
|
|
6673
|
+
timeout. It can also be a pair (tuple) of
|
|
6674
|
+
(connection, read) timeouts.
|
|
6675
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6676
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6677
|
+
request; this effectively ignores the
|
|
6678
|
+
authentication in the spec for a single request.
|
|
6679
|
+
:type _request_auth: dict, optional
|
|
6680
|
+
:param _content_type: force content-type for the request.
|
|
6681
|
+
:type _content_type: str, Optional
|
|
6682
|
+
:param _headers: set to override the headers for a single
|
|
6683
|
+
request; this effectively ignores the headers
|
|
6684
|
+
in the spec for a single request.
|
|
6685
|
+
:type _headers: dict, optional
|
|
6686
|
+
:param _host_index: set to override the host_index for a single
|
|
6687
|
+
request; this effectively ignores the host_index
|
|
6688
|
+
in the spec for a single request.
|
|
6689
|
+
:type _host_index: int, optional
|
|
6690
|
+
:return: Returns the result object.
|
|
6691
|
+
""" # noqa: E501
|
|
6692
|
+
|
|
6693
|
+
_param = self._update_dataset_part_serialize(
|
|
6694
|
+
organization_id=organization_id,
|
|
6695
|
+
workspace_id=workspace_id,
|
|
6696
|
+
dataset_id=dataset_id,
|
|
6697
|
+
dataset_part_id=dataset_part_id,
|
|
6698
|
+
dataset_part_update_request=dataset_part_update_request,
|
|
6699
|
+
_request_auth=_request_auth,
|
|
6700
|
+
_content_type=_content_type,
|
|
6701
|
+
_headers=_headers,
|
|
6702
|
+
_host_index=_host_index
|
|
6703
|
+
)
|
|
6704
|
+
|
|
6705
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6706
|
+
'200': "DatasetPart",
|
|
6707
|
+
'403': None,
|
|
6708
|
+
'404': None,
|
|
6709
|
+
'422': None,
|
|
6710
|
+
}
|
|
6711
|
+
response_data = self.api_client.call_api(
|
|
6712
|
+
*_param,
|
|
6713
|
+
_request_timeout=_request_timeout
|
|
6714
|
+
)
|
|
6715
|
+
response_data.read()
|
|
6716
|
+
return self.api_client.response_deserialize(
|
|
6717
|
+
response_data=response_data,
|
|
6718
|
+
response_types_map=_response_types_map,
|
|
6719
|
+
).data
|
|
6720
|
+
|
|
6721
|
+
|
|
6722
|
+
@validate_call
|
|
6723
|
+
def update_dataset_part_with_http_info(
|
|
6724
|
+
self,
|
|
6725
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
6726
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
6727
|
+
dataset_id: Annotated[StrictStr, Field(description="the Dataset identifier")],
|
|
6728
|
+
dataset_part_id: Annotated[StrictStr, Field(description="the Dataset part identifier")],
|
|
6729
|
+
dataset_part_update_request: Annotated[DatasetPartUpdateRequest, Field(description="Dataset part information to update")],
|
|
6730
|
+
_request_timeout: Union[
|
|
6731
|
+
None,
|
|
6732
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6733
|
+
Tuple[
|
|
6734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6735
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6736
|
+
]
|
|
6737
|
+
] = None,
|
|
6738
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6739
|
+
_content_type: Optional[StrictStr] = None,
|
|
6740
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6741
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6742
|
+
) -> ApiResponse[DatasetPart]:
|
|
6743
|
+
"""Update existing dataset parts information of a Dataset
|
|
6744
|
+
|
|
6745
|
+
|
|
6746
|
+
:param organization_id: the Organization identifier (required)
|
|
6747
|
+
:type organization_id: str
|
|
6748
|
+
:param workspace_id: the Workspace identifier (required)
|
|
6749
|
+
:type workspace_id: str
|
|
6750
|
+
:param dataset_id: the Dataset identifier (required)
|
|
6751
|
+
:type dataset_id: str
|
|
6752
|
+
:param dataset_part_id: the Dataset part identifier (required)
|
|
6753
|
+
:type dataset_part_id: str
|
|
6754
|
+
:param dataset_part_update_request: Dataset part information to update (required)
|
|
6755
|
+
:type dataset_part_update_request: DatasetPartUpdateRequest
|
|
6756
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6757
|
+
number provided, it will be total request
|
|
6758
|
+
timeout. It can also be a pair (tuple) of
|
|
6759
|
+
(connection, read) timeouts.
|
|
6760
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6761
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6762
|
+
request; this effectively ignores the
|
|
6763
|
+
authentication in the spec for a single request.
|
|
6764
|
+
:type _request_auth: dict, optional
|
|
6765
|
+
:param _content_type: force content-type for the request.
|
|
6766
|
+
:type _content_type: str, Optional
|
|
6767
|
+
:param _headers: set to override the headers for a single
|
|
6768
|
+
request; this effectively ignores the headers
|
|
6769
|
+
in the spec for a single request.
|
|
6770
|
+
:type _headers: dict, optional
|
|
6771
|
+
:param _host_index: set to override the host_index for a single
|
|
6772
|
+
request; this effectively ignores the host_index
|
|
6773
|
+
in the spec for a single request.
|
|
6774
|
+
:type _host_index: int, optional
|
|
6775
|
+
:return: Returns the result object.
|
|
6776
|
+
""" # noqa: E501
|
|
6777
|
+
|
|
6778
|
+
_param = self._update_dataset_part_serialize(
|
|
6779
|
+
organization_id=organization_id,
|
|
6780
|
+
workspace_id=workspace_id,
|
|
6781
|
+
dataset_id=dataset_id,
|
|
6782
|
+
dataset_part_id=dataset_part_id,
|
|
6783
|
+
dataset_part_update_request=dataset_part_update_request,
|
|
6784
|
+
_request_auth=_request_auth,
|
|
6785
|
+
_content_type=_content_type,
|
|
6786
|
+
_headers=_headers,
|
|
6787
|
+
_host_index=_host_index
|
|
6788
|
+
)
|
|
6789
|
+
|
|
6790
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6791
|
+
'200': "DatasetPart",
|
|
6792
|
+
'403': None,
|
|
6793
|
+
'404': None,
|
|
6794
|
+
'422': None,
|
|
6795
|
+
}
|
|
6796
|
+
response_data = self.api_client.call_api(
|
|
6797
|
+
*_param,
|
|
6798
|
+
_request_timeout=_request_timeout
|
|
6799
|
+
)
|
|
6800
|
+
response_data.read()
|
|
6801
|
+
return self.api_client.response_deserialize(
|
|
6802
|
+
response_data=response_data,
|
|
6803
|
+
response_types_map=_response_types_map,
|
|
6804
|
+
)
|
|
6805
|
+
|
|
6806
|
+
|
|
6807
|
+
@validate_call
|
|
6808
|
+
def update_dataset_part_without_preload_content(
|
|
6809
|
+
self,
|
|
6810
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
6811
|
+
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
6812
|
+
dataset_id: Annotated[StrictStr, Field(description="the Dataset identifier")],
|
|
6813
|
+
dataset_part_id: Annotated[StrictStr, Field(description="the Dataset part identifier")],
|
|
6814
|
+
dataset_part_update_request: Annotated[DatasetPartUpdateRequest, Field(description="Dataset part information to update")],
|
|
6815
|
+
_request_timeout: Union[
|
|
6816
|
+
None,
|
|
6817
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6818
|
+
Tuple[
|
|
6819
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
6820
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
6821
|
+
]
|
|
6822
|
+
] = None,
|
|
6823
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6824
|
+
_content_type: Optional[StrictStr] = None,
|
|
6825
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6826
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6827
|
+
) -> RESTResponseType:
|
|
6828
|
+
"""Update existing dataset parts information of a Dataset
|
|
6829
|
+
|
|
6830
|
+
|
|
6831
|
+
:param organization_id: the Organization identifier (required)
|
|
6832
|
+
:type organization_id: str
|
|
6833
|
+
:param workspace_id: the Workspace identifier (required)
|
|
6834
|
+
:type workspace_id: str
|
|
6835
|
+
:param dataset_id: the Dataset identifier (required)
|
|
6836
|
+
:type dataset_id: str
|
|
6837
|
+
:param dataset_part_id: the Dataset part identifier (required)
|
|
6838
|
+
:type dataset_part_id: str
|
|
6839
|
+
:param dataset_part_update_request: Dataset part information to update (required)
|
|
6840
|
+
:type dataset_part_update_request: DatasetPartUpdateRequest
|
|
6841
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
6842
|
+
number provided, it will be total request
|
|
6843
|
+
timeout. It can also be a pair (tuple) of
|
|
6844
|
+
(connection, read) timeouts.
|
|
6845
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
6846
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
6847
|
+
request; this effectively ignores the
|
|
6848
|
+
authentication in the spec for a single request.
|
|
6849
|
+
:type _request_auth: dict, optional
|
|
6850
|
+
:param _content_type: force content-type for the request.
|
|
6851
|
+
:type _content_type: str, Optional
|
|
6852
|
+
:param _headers: set to override the headers for a single
|
|
6853
|
+
request; this effectively ignores the headers
|
|
6854
|
+
in the spec for a single request.
|
|
6855
|
+
:type _headers: dict, optional
|
|
6856
|
+
:param _host_index: set to override the host_index for a single
|
|
6857
|
+
request; this effectively ignores the host_index
|
|
6858
|
+
in the spec for a single request.
|
|
6859
|
+
:type _host_index: int, optional
|
|
6860
|
+
:return: Returns the result object.
|
|
6861
|
+
""" # noqa: E501
|
|
6862
|
+
|
|
6863
|
+
_param = self._update_dataset_part_serialize(
|
|
6864
|
+
organization_id=organization_id,
|
|
6865
|
+
workspace_id=workspace_id,
|
|
6866
|
+
dataset_id=dataset_id,
|
|
6867
|
+
dataset_part_id=dataset_part_id,
|
|
6868
|
+
dataset_part_update_request=dataset_part_update_request,
|
|
6869
|
+
_request_auth=_request_auth,
|
|
6870
|
+
_content_type=_content_type,
|
|
6871
|
+
_headers=_headers,
|
|
6872
|
+
_host_index=_host_index
|
|
6873
|
+
)
|
|
6874
|
+
|
|
6875
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
6876
|
+
'200': "DatasetPart",
|
|
6877
|
+
'403': None,
|
|
6878
|
+
'404': None,
|
|
6879
|
+
'422': None,
|
|
6880
|
+
}
|
|
6881
|
+
response_data = self.api_client.call_api(
|
|
6882
|
+
*_param,
|
|
6883
|
+
_request_timeout=_request_timeout
|
|
6884
|
+
)
|
|
6885
|
+
return response_data.response
|
|
6886
|
+
|
|
6887
|
+
|
|
6888
|
+
def _update_dataset_part_serialize(
|
|
6889
|
+
self,
|
|
6890
|
+
organization_id,
|
|
6891
|
+
workspace_id,
|
|
6892
|
+
dataset_id,
|
|
6893
|
+
dataset_part_id,
|
|
6894
|
+
dataset_part_update_request,
|
|
6895
|
+
_request_auth,
|
|
6896
|
+
_content_type,
|
|
6897
|
+
_headers,
|
|
6898
|
+
_host_index,
|
|
6899
|
+
) -> RequestSerialized:
|
|
6900
|
+
|
|
6901
|
+
_host = None
|
|
6902
|
+
|
|
6903
|
+
_collection_formats: Dict[str, str] = {
|
|
6904
|
+
}
|
|
6905
|
+
|
|
6906
|
+
_path_params: Dict[str, str] = {}
|
|
6907
|
+
_query_params: List[Tuple[str, str]] = []
|
|
6908
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
6909
|
+
_form_params: List[Tuple[str, str]] = []
|
|
6910
|
+
_files: Dict[
|
|
6911
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
6912
|
+
] = {}
|
|
6913
|
+
_body_params: Optional[bytes] = None
|
|
6914
|
+
|
|
6915
|
+
# process the path parameters
|
|
6916
|
+
if organization_id is not None:
|
|
6917
|
+
_path_params['organization_id'] = organization_id
|
|
6918
|
+
if workspace_id is not None:
|
|
6919
|
+
_path_params['workspace_id'] = workspace_id
|
|
6920
|
+
if dataset_id is not None:
|
|
6921
|
+
_path_params['dataset_id'] = dataset_id
|
|
6922
|
+
if dataset_part_id is not None:
|
|
6923
|
+
_path_params['dataset_part_id'] = dataset_part_id
|
|
6924
|
+
# process the query parameters
|
|
6925
|
+
# process the header parameters
|
|
6926
|
+
# process the form parameters
|
|
6927
|
+
# process the body parameter
|
|
6928
|
+
if dataset_part_update_request is not None:
|
|
6929
|
+
_body_params = dataset_part_update_request
|
|
6930
|
+
|
|
6931
|
+
|
|
6932
|
+
# set the HTTP header `Accept`
|
|
6933
|
+
if 'Accept' not in _header_params:
|
|
6934
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6935
|
+
[
|
|
6936
|
+
'application/json',
|
|
6937
|
+
'application/yaml'
|
|
6938
|
+
]
|
|
6939
|
+
)
|
|
6940
|
+
|
|
6941
|
+
# set the HTTP header `Content-Type`
|
|
6942
|
+
if _content_type:
|
|
6943
|
+
_header_params['Content-Type'] = _content_type
|
|
6944
|
+
else:
|
|
6945
|
+
_default_content_type = (
|
|
6946
|
+
self.api_client.select_header_content_type(
|
|
6947
|
+
[
|
|
6948
|
+
'application/json',
|
|
6949
|
+
'application/yaml'
|
|
6950
|
+
]
|
|
6951
|
+
)
|
|
6952
|
+
)
|
|
6953
|
+
if _default_content_type is not None:
|
|
6954
|
+
_header_params['Content-Type'] = _default_content_type
|
|
6955
|
+
|
|
6956
|
+
# authentication setting
|
|
6957
|
+
_auth_settings: List[str] = [
|
|
6958
|
+
'oAuth2AuthCode'
|
|
6959
|
+
]
|
|
6960
|
+
|
|
6961
|
+
return self.api_client.param_serialize(
|
|
6962
|
+
method='PATCH',
|
|
6963
|
+
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id}',
|
|
6964
|
+
path_params=_path_params,
|
|
6965
|
+
query_params=_query_params,
|
|
6966
|
+
header_params=_header_params,
|
|
6967
|
+
body=_body_params,
|
|
6968
|
+
post_params=_form_params,
|
|
6969
|
+
files=_files,
|
|
6970
|
+
auth_settings=_auth_settings,
|
|
6971
|
+
collection_formats=_collection_formats,
|
|
6972
|
+
_host=_host,
|
|
6973
|
+
_request_auth=_request_auth
|
|
6974
|
+
)
|
|
6975
|
+
|
|
6976
|
+
|