cosmotech-api 5.0.0b3__py3-none-any.whl → 5.0.0b5__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 (122) hide show
  1. cosmotech_api/__init__.py +2 -1
  2. cosmotech_api/api/connector_api.py +4 -7
  3. cosmotech_api/api/dataset_api.py +343 -1
  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 -1
  7. cosmotech_api/api/runner_api.py +13 -13
  8. cosmotech_api/api/solution_api.py +313 -313
  9. cosmotech_api/api/workspace_api.py +1 -1
  10. cosmotech_api/api_client.py +1 -1
  11. cosmotech_api/configuration.py +2 -2
  12. cosmotech_api/exceptions.py +1 -1
  13. cosmotech_api/models/__init__.py +2 -1
  14. cosmotech_api/models/about_info.py +1 -1
  15. cosmotech_api/models/about_info_version.py +1 -1
  16. cosmotech_api/models/component_role_permissions.py +1 -1
  17. cosmotech_api/models/connector.py +1 -1
  18. cosmotech_api/models/connector_parameter.py +1 -1
  19. cosmotech_api/models/connector_parameter_group.py +1 -1
  20. cosmotech_api/models/container_resource_size_info.py +1 -1
  21. cosmotech_api/models/container_resource_sizing.py +1 -1
  22. cosmotech_api/models/create_info.py +1 -1
  23. cosmotech_api/models/created_run.py +1 -1
  24. cosmotech_api/models/dataset.py +1 -1
  25. cosmotech_api/models/dataset_access_control.py +1 -1
  26. cosmotech_api/models/dataset_compatibility.py +1 -1
  27. cosmotech_api/models/dataset_connector.py +1 -1
  28. cosmotech_api/models/dataset_copy_parameters.py +1 -1
  29. cosmotech_api/models/dataset_create_request.py +1 -1
  30. cosmotech_api/models/dataset_part.py +3 -3
  31. cosmotech_api/models/dataset_part_create_request.py +4 -4
  32. cosmotech_api/models/dataset_part_type_enum.py +2 -2
  33. cosmotech_api/models/dataset_part_update_request.py +6 -3
  34. cosmotech_api/models/dataset_role.py +1 -1
  35. cosmotech_api/models/dataset_search.py +1 -1
  36. cosmotech_api/models/dataset_security.py +1 -1
  37. cosmotech_api/models/dataset_source_type.py +1 -1
  38. cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
  39. cosmotech_api/models/dataset_twin_graph_info.py +1 -1
  40. cosmotech_api/models/dataset_twin_graph_query.py +1 -1
  41. cosmotech_api/models/dataset_update_request.py +1 -1
  42. cosmotech_api/models/delete_historical_data.py +1 -1
  43. cosmotech_api/models/edit_info.py +1 -1
  44. cosmotech_api/models/file_upload_metadata.py +1 -1
  45. cosmotech_api/models/file_upload_validation.py +1 -1
  46. cosmotech_api/models/graph_properties.py +1 -1
  47. cosmotech_api/models/ingestion_status_enum.py +1 -1
  48. cosmotech_api/models/io_types_enum.py +1 -1
  49. cosmotech_api/models/last_run_info.py +1 -1
  50. cosmotech_api/models/organization.py +1 -1
  51. cosmotech_api/models/organization_access_control.py +1 -1
  52. cosmotech_api/models/organization_create_request.py +1 -1
  53. cosmotech_api/models/organization_edit_info.py +1 -1
  54. cosmotech_api/models/organization_role.py +1 -1
  55. cosmotech_api/models/organization_security.py +1 -1
  56. cosmotech_api/models/organization_update_request.py +1 -1
  57. cosmotech_api/models/query_result.py +1 -1
  58. cosmotech_api/models/resource_size_info.py +1 -1
  59. cosmotech_api/models/run.py +1 -1
  60. cosmotech_api/models/run_container.py +1 -1
  61. cosmotech_api/models/run_data.py +1 -1
  62. cosmotech_api/models/run_data_query.py +1 -1
  63. cosmotech_api/models/run_edit_info.py +1 -1
  64. cosmotech_api/models/run_logs.py +1 -1
  65. cosmotech_api/models/run_logs_entry.py +1 -1
  66. cosmotech_api/models/run_resource_requested.py +1 -1
  67. cosmotech_api/models/run_state.py +1 -1
  68. cosmotech_api/models/run_status.py +1 -1
  69. cosmotech_api/models/run_status_node.py +1 -1
  70. cosmotech_api/models/run_template.py +1 -1
  71. cosmotech_api/models/run_template_create_request.py +1 -1
  72. cosmotech_api/models/run_template_orchestrator.py +1 -1
  73. cosmotech_api/models/run_template_parameter.py +1 -1
  74. cosmotech_api/models/run_template_parameter_create_request.py +1 -1
  75. cosmotech_api/models/run_template_parameter_group.py +1 -1
  76. cosmotech_api/models/run_template_parameter_group_create_request.py +1 -1
  77. cosmotech_api/models/run_template_parameter_group_update_request.py +1 -1
  78. cosmotech_api/models/run_template_parameter_update_request.py +1 -1
  79. cosmotech_api/models/run_template_parameter_value.py +1 -1
  80. cosmotech_api/models/run_template_resource_sizing.py +1 -1
  81. cosmotech_api/models/run_template_step_source.py +1 -1
  82. cosmotech_api/models/run_template_update_request.py +1 -1
  83. cosmotech_api/models/runner.py +8 -4
  84. cosmotech_api/models/runner_access_control.py +1 -1
  85. cosmotech_api/models/runner_create_request.py +1 -9
  86. cosmotech_api/models/runner_datasets.py +92 -0
  87. cosmotech_api/models/runner_edit_info.py +1 -1
  88. cosmotech_api/models/runner_resource_sizing.py +1 -1
  89. cosmotech_api/models/runner_role.py +1 -1
  90. cosmotech_api/models/runner_run_template_parameter_value.py +1 -3
  91. cosmotech_api/models/runner_security.py +1 -1
  92. cosmotech_api/models/runner_update_request.py +1 -5
  93. cosmotech_api/models/runner_validation_status.py +1 -1
  94. cosmotech_api/models/send_run_data_request.py +1 -1
  95. cosmotech_api/models/solution.py +1 -1
  96. cosmotech_api/models/solution_access_control.py +1 -1
  97. cosmotech_api/models/solution_create_request.py +1 -1
  98. cosmotech_api/models/solution_edit_info.py +1 -1
  99. cosmotech_api/models/solution_file.py +88 -0
  100. cosmotech_api/models/solution_role.py +1 -1
  101. cosmotech_api/models/solution_security.py +1 -1
  102. cosmotech_api/models/solution_update_request.py +1 -1
  103. cosmotech_api/models/source_info.py +1 -1
  104. cosmotech_api/models/sub_dataset_graph_query.py +1 -1
  105. cosmotech_api/models/twin_graph_batch_result.py +1 -1
  106. cosmotech_api/models/twincache_status_enum.py +1 -1
  107. cosmotech_api/models/workspace.py +1 -1
  108. cosmotech_api/models/workspace_access_control.py +1 -1
  109. cosmotech_api/models/workspace_create_request.py +1 -1
  110. cosmotech_api/models/workspace_edit_info.py +1 -1
  111. cosmotech_api/models/workspace_file.py +1 -1
  112. cosmotech_api/models/workspace_role.py +1 -1
  113. cosmotech_api/models/workspace_security.py +1 -1
  114. cosmotech_api/models/workspace_solution.py +16 -2
  115. cosmotech_api/models/workspace_update_request.py +1 -1
  116. cosmotech_api/models/workspace_web_app.py +1 -1
  117. cosmotech_api/rest.py +1 -1
  118. {cosmotech_api-5.0.0b3.dist-info → cosmotech_api-5.0.0b5.dist-info}/METADATA +1 -1
  119. {cosmotech_api-5.0.0b3.dist-info → cosmotech_api-5.0.0b5.dist-info}/RECORD +122 -120
  120. {cosmotech_api-5.0.0b3.dist-info → cosmotech_api-5.0.0b5.dist-info}/WHEEL +0 -0
  121. {cosmotech_api-5.0.0b3.dist-info → cosmotech_api-5.0.0b5.dist-info}/licenses/LICENSE +0 -0
  122. {cosmotech_api-5.0.0b3.dist-info → cosmotech_api-5.0.0b5.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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: 4.1.3-onprem
8
+ The version of the OpenAPI document: 4.2.0-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: 4.1.3-onprem
8
+ The version of the OpenAPI document: 4.2.0-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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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: 4.1.3-onprem
8
+ The version of the OpenAPI document: 4.2.0-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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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: 4.1.3-onprem
8
+ The version of the OpenAPI document: 4.2.0-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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -21,6 +21,7 @@ import json
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from cosmotech_api.models.last_run_info import LastRunInfo
24
+ from cosmotech_api.models.runner_datasets import RunnerDatasets
24
25
  from cosmotech_api.models.runner_edit_info import RunnerEditInfo
25
26
  from cosmotech_api.models.runner_resource_sizing import RunnerResourceSizing
26
27
  from cosmotech_api.models.runner_run_template_parameter_value import RunnerRunTemplateParameterValue
@@ -48,13 +49,13 @@ class Runner(BaseModel):
48
49
  owner_name: StrictStr = Field(description="the name of the owner", alias="ownerName")
49
50
  solution_name: Optional[StrictStr] = Field(default=None, description="the Solution name", alias="solutionName")
50
51
  run_template_name: Optional[StrictStr] = Field(default=None, description="the Solution Run Template name associated with this Runner", alias="runTemplateName")
51
- dataset_list: List[StrictStr] = Field(description="the list of Dataset Id associated to this Runner Run Template", alias="datasetList")
52
+ datasets: RunnerDatasets
52
53
  run_sizing: Optional[RunnerResourceSizing] = Field(default=None, alias="runSizing")
53
54
  parameters_values: List[RunnerRunTemplateParameterValue] = Field(description="the list of Solution Run Template parameters values", alias="parametersValues")
54
55
  last_run_info: LastRunInfo = Field(alias="lastRunInfo")
55
56
  validation_status: RunnerValidationStatus = Field(alias="validationStatus")
56
57
  security: RunnerSecurity
57
- __properties: ClassVar[List[str]] = ["id", "name", "description", "tags", "parentId", "createInfo", "updateInfo", "rootId", "solutionId", "runTemplateId", "organizationId", "workspaceId", "ownerName", "solutionName", "runTemplateName", "datasetList", "runSizing", "parametersValues", "lastRunInfo", "validationStatus", "security"]
58
+ __properties: ClassVar[List[str]] = ["id", "name", "description", "tags", "parentId", "createInfo", "updateInfo", "rootId", "solutionId", "runTemplateId", "organizationId", "workspaceId", "ownerName", "solutionName", "runTemplateName", "datasets", "runSizing", "parametersValues", "lastRunInfo", "validationStatus", "security"]
58
59
 
59
60
  model_config = ConfigDict(
60
61
  populate_by_name=True,
@@ -117,6 +118,9 @@ class Runner(BaseModel):
117
118
  # override the default output from pydantic by calling `to_dict()` of update_info
118
119
  if self.update_info:
119
120
  _dict['updateInfo'] = self.update_info.to_dict()
121
+ # override the default output from pydantic by calling `to_dict()` of datasets
122
+ if self.datasets:
123
+ _dict['datasets'] = self.datasets.to_dict()
120
124
  # override the default output from pydantic by calling `to_dict()` of run_sizing
121
125
  if self.run_sizing:
122
126
  _dict['runSizing'] = self.run_sizing.to_dict()
@@ -160,7 +164,7 @@ class Runner(BaseModel):
160
164
  "ownerName": obj.get("ownerName"),
161
165
  "solutionName": obj.get("solutionName"),
162
166
  "runTemplateName": obj.get("runTemplateName"),
163
- "datasetList": obj.get("datasetList"),
167
+ "datasets": RunnerDatasets.from_dict(obj["datasets"]) if obj.get("datasets") is not None else None,
164
168
  "runSizing": RunnerResourceSizing.from_dict(obj["runSizing"]) if obj.get("runSizing") is not None else None,
165
169
  "parametersValues": [RunnerRunTemplateParameterValue.from_dict(_item) for _item in obj["parametersValues"]] if obj.get("parametersValues") is not None else None,
166
170
  "lastRunInfo": LastRunInfo.from_dict(obj["lastRunInfo"]) if obj.get("lastRunInfo") is not None else None,
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -93,16 +93,8 @@ class RunnerCreateRequest(BaseModel):
93
93
  * `None` is only added to the output dict for nullable fields that
94
94
  were set at model initialization. Other fields with value `None`
95
95
  are ignored.
96
- * OpenAPI `readOnly` fields are excluded.
97
- * OpenAPI `readOnly` fields are excluded.
98
- * OpenAPI `readOnly` fields are excluded.
99
- * OpenAPI `readOnly` fields are excluded.
100
96
  """
101
97
  excluded_fields: Set[str] = set([
102
- "solution_id",
103
- "owner_name",
104
- "solution_name",
105
- "run_template_name",
106
98
  ])
107
99
 
108
100
  _dict = self.model_dump(
@@ -0,0 +1,92 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Cosmo Tech Platform API
5
+
6
+ Cosmo Tech Platform API
7
+
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
+ Contact: platform@cosmotech.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class RunnerDatasets(BaseModel):
27
+ """
28
+ RunnerDatasets
29
+ """ # noqa: E501
30
+ bases: List[StrictStr] = Field(description="a list of Dataset Id used to build the Runner")
31
+ parameter: StrictStr = Field(description="The dataset id used for dataset parameters on current Runner")
32
+ parameters: Optional[List[Dict[str, Any]]] = Field(default=None, description="The dataset parts retrieved from the parameter property (programmatically fulfilled)")
33
+ __properties: ClassVar[List[str]] = ["bases", "parameter", "parameters"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of RunnerDatasets from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of RunnerDatasets from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "bases": obj.get("bases"),
87
+ "parameter": obj.get("parameter"),
88
+ "parameters": obj.get("parameters")
89
+ })
90
+ return _obj
91
+
92
+
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -63,10 +63,8 @@ class RunnerRunTemplateParameterValue(BaseModel):
63
63
  * `None` is only added to the output dict for nullable fields that
64
64
  were set at model initialization. Other fields with value `None`
65
65
  are ignored.
66
- * OpenAPI `readOnly` fields are excluded.
67
66
  """
68
67
  excluded_fields: Set[str] = set([
69
- "var_type",
70
68
  ])
71
69
 
72
70
  _dict = self.model_dump(
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -72,12 +72,8 @@ class RunnerUpdateRequest(BaseModel):
72
72
  * `None` is only added to the output dict for nullable fields that
73
73
  were set at model initialization. Other fields with value `None`
74
74
  are ignored.
75
- * OpenAPI `readOnly` fields are excluded.
76
- * OpenAPI `readOnly` fields are excluded.
77
75
  """
78
76
  excluded_fields: Set[str] = set([
79
- "solution_name",
80
- "run_template_name",
81
77
  ])
82
78
 
83
79
  _dict = self.model_dump(
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -0,0 +1,88 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Cosmo Tech Platform API
5
+
6
+ Cosmo Tech Platform API
7
+
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
+ Contact: platform@cosmotech.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class SolutionFile(BaseModel):
27
+ """
28
+ A Solution File resource
29
+ """ # noqa: E501
30
+ file_name: StrictStr = Field(description="The Solution File name", alias="fileName")
31
+ __properties: ClassVar[List[str]] = ["fileName"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of SolutionFile from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of SolutionFile from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "fileName": obj.get("fileName")
85
+ })
86
+ return _obj
87
+
88
+
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
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.0-beta3
8
+ The version of the OpenAPI document: 5.0.1-SNAPSHOT
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11