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/models/scenario.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Cosmo Tech Platform API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
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
|
|
|
@@ -19,16 +19,16 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
26
|
class SendRunDataRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
SendRunDataRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
id: StrictStr
|
|
31
|
-
data: List[Dict[str, Any]]
|
|
30
|
+
id: Optional[StrictStr] = None
|
|
31
|
+
data: Optional[List[Dict[str, Any]]] = None
|
|
32
32
|
__properties: ClassVar[List[str]] = ["id", "data"]
|
|
33
33
|
|
|
34
34
|
model_config = ConfigDict(
|
cosmotech_api/models/solution.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
|
|
|
@@ -29,9 +29,11 @@ class WorkspaceSolution(BaseModel):
|
|
|
29
29
|
The Workspace Solution configuration
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
solution_id: Annotated[str, Field(strict=True)] = Field(description="The Solution Id attached to this workspace", alias="solutionId")
|
|
32
|
+
dataset_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The Dataset Id attached to this workspace. This dataset will be used to store default values for Solution parameters with file's varType. ", alias="datasetId")
|
|
33
|
+
default_parameter_values: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of parameterId/value to set default values for Solution parameters with simple varType (int, string, ...)", alias="defaultParameterValues")
|
|
32
34
|
run_template_filter: Optional[List[StrictStr]] = Field(default=None, description="The list of Solution Run Template Id to filter", alias="runTemplateFilter")
|
|
33
35
|
default_run_template_dataset: Optional[Dict[str, Any]] = Field(default=None, description="A map of RunTemplateId/DatasetId to set a default dataset for a Run Template", alias="defaultRunTemplateDataset")
|
|
34
|
-
__properties: ClassVar[List[str]] = ["solutionId", "runTemplateFilter", "defaultRunTemplateDataset"]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["solutionId", "datasetId", "defaultParameterValues", "runTemplateFilter", "defaultRunTemplateDataset"]
|
|
35
37
|
|
|
36
38
|
@field_validator('solution_id')
|
|
37
39
|
def solution_id_validate_regular_expression(cls, value):
|
|
@@ -40,6 +42,16 @@ class WorkspaceSolution(BaseModel):
|
|
|
40
42
|
raise ValueError(r"must validate the regular expression /^sol-\w{10,20}/")
|
|
41
43
|
return value
|
|
42
44
|
|
|
45
|
+
@field_validator('dataset_id')
|
|
46
|
+
def dataset_id_validate_regular_expression(cls, value):
|
|
47
|
+
"""Validates the regular expression"""
|
|
48
|
+
if value is None:
|
|
49
|
+
return value
|
|
50
|
+
|
|
51
|
+
if not re.match(r"^d-\w{10,20}", value):
|
|
52
|
+
raise ValueError(r"must validate the regular expression /^d-\w{10,20}/")
|
|
53
|
+
return value
|
|
54
|
+
|
|
43
55
|
model_config = ConfigDict(
|
|
44
56
|
populate_by_name=True,
|
|
45
57
|
validate_assignment=True,
|
|
@@ -92,6 +104,8 @@ class WorkspaceSolution(BaseModel):
|
|
|
92
104
|
|
|
93
105
|
_obj = cls.model_validate({
|
|
94
106
|
"solutionId": obj.get("solutionId"),
|
|
107
|
+
"datasetId": obj.get("datasetId"),
|
|
108
|
+
"defaultParameterValues": obj.get("defaultParameterValues"),
|
|
95
109
|
"runTemplateFilter": obj.get("runTemplateFilter"),
|
|
96
110
|
"defaultRunTemplateDataset": obj.get("defaultRunTemplateDataset")
|
|
97
111
|
})
|
cosmotech_api/rest.py
CHANGED