Skip to content

Commit 87b39fa

Browse files
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@6d7bafd)
Co-authored-by: jreynard-code <jreynard-code@users.noreply.github.com>
1 parent a412487 commit 87b39fa

File tree

6 files changed

+8
-38
lines changed

6 files changed

+8
-38
lines changed

cosmotech_api/models/workspace_solution.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ class WorkspaceSolution(BaseModel):
3131
solution_id: Annotated[str, Field(strict=True)] = Field(description="The Solution Id attached to this workspace", alias="solutionId")
3232
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")
3333
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")
34-
run_template_filter: Optional[List[StrictStr]] = Field(default=None, description="The list of Solution Run Template Id to filter", alias="runTemplateFilter")
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")
36-
__properties: ClassVar[List[str]] = ["solutionId", "datasetId", "defaultParameterValues", "runTemplateFilter", "defaultRunTemplateDataset"]
34+
__properties: ClassVar[List[str]] = ["solutionId", "datasetId", "defaultParameterValues"]
3735

3836
@field_validator('solution_id')
3937
def solution_id_validate_regular_expression(cls, value):
@@ -105,9 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
105103
_obj = cls.model_validate({
106104
"solutionId": obj.get("solutionId"),
107105
"datasetId": obj.get("datasetId"),
108-
"defaultParameterValues": obj.get("defaultParameterValues"),
109-
"runTemplateFilter": obj.get("runTemplateFilter"),
110-
"defaultRunTemplateDataset": obj.get("defaultRunTemplateDataset")
106+
"defaultParameterValues": obj.get("defaultParameterValues")
111107
})
112108
return _obj
113109

docs/WorkspaceSolution.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Name | Type | Description | Notes
99
**solution_id** | **str** | The Solution Id attached to this workspace |
1010
**dataset_id** | **str** | The Dataset Id attached to this workspace. This dataset will be used to store default values for Solution parameters with file&#39;s varType. | [optional]
1111
**default_parameter_values** | **Dict[str, str]** | A map of parameterId/value to set default values for Solution parameters with simple varType (int, string, ...) | [optional]
12-
**run_template_filter** | **List[str]** | The list of Solution Run Template Id to filter | [optional]
13-
**default_run_template_dataset** | **Dict[str, object]** | A map of RunTemplateId/DatasetId to set a default dataset for a Run Template | [optional]
1412

1513
## Example
1614

test/test_workspace.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ def make_instance(self, include_optional) -> Workspace:
5656
dataset_id = 'd-HqXzyCBw3_uufVPI',
5757
default_parameter_values = {
5858
'key' : ''
59-
},
60-
run_template_filter = [
61-
''
62-
],
63-
default_run_template_dataset = { }, ),
59+
}, ),
6460
additional_data = { },
6561
dataset_copy = True,
6662
security = cosmotech_api.models.workspace_security.WorkspaceSecurity(
@@ -88,11 +84,7 @@ def make_instance(self, include_optional) -> Workspace:
8884
dataset_id = 'd-HqXzyCBw3_uufVPI',
8985
default_parameter_values = {
9086
'key' : ''
91-
},
92-
run_template_filter = [
93-
''
94-
],
95-
default_run_template_dataset = { }, ),
87+
}, ),
9688
security = cosmotech_api.models.workspace_security.WorkspaceSecurity(
9789
default = '',
9890
access_control_list = [

test/test_workspace_create_request.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ def make_instance(self, include_optional) -> WorkspaceCreateRequest:
4848
dataset_id = 'd-HqXzyCBw3_uufVPI',
4949
default_parameter_values = {
5050
'key' : ''
51-
},
52-
run_template_filter = [
53-
''
54-
],
55-
default_run_template_dataset = { }, ),
51+
}, ),
5652
additional_data = { },
5753
dataset_copy = True,
5854
security = cosmotech_api.models.workspace_security.WorkspaceSecurity(
@@ -72,11 +68,7 @@ def make_instance(self, include_optional) -> WorkspaceCreateRequest:
7268
dataset_id = 'd-HqXzyCBw3_uufVPI',
7369
default_parameter_values = {
7470
'key' : ''
75-
},
76-
run_template_filter = [
77-
''
78-
],
79-
default_run_template_dataset = { }, ),
71+
}, ),
8072
)
8173
"""
8274

test/test_workspace_solution.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ def make_instance(self, include_optional) -> WorkspaceSolution:
4040
dataset_id = 'd-HqXzyCBw3_uufVPI',
4141
default_parameter_values = {
4242
'key' : ''
43-
},
44-
run_template_filter = [
45-
''
46-
],
47-
default_run_template_dataset = { }
43+
}
4844
)
4945
else:
5046
return WorkspaceSolution(

test/test_workspace_update_request.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ def make_instance(self, include_optional) -> WorkspaceUpdateRequest:
4747
dataset_id = 'd-HqXzyCBw3_uufVPI',
4848
default_parameter_values = {
4949
'key' : ''
50-
},
51-
run_template_filter = [
52-
''
53-
],
54-
default_run_template_dataset = { }, ),
50+
}, ),
5551
additional_data = { },
5652
dataset_copy = True
5753
)

0 commit comments

Comments
 (0)