Skip to content

Commit bea13b7

Browse files
csmplatformsjoubert
andcommitted
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@a56907f)
Co-authored-by: sjoubert <sjoubert@users.noreply.github.com>
1 parent 2b0dd02 commit bea13b7

9 files changed

Lines changed: 5 additions & 13 deletions

cosmotech_api/models/solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Solution(BaseModel):
4242
csm_simulator: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The main Cosmo Tech simulator name used in standard Run Template", alias="csmSimulator")
4343
version: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The Solution version MAJOR.MINOR.PATCH. Must be aligned with an existing repository tag")
4444
owner_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The User id which owns this Solution", alias="ownerId")
45-
sdk_version: Optional[StrictStr] = Field(default=None, description="The MAJOR.MINOR version used to build this solution", alias="sdkVersion")
45+
sdk_version: Optional[StrictStr] = Field(default=None, description="The full SDK version used to build this solution, if available", alias="sdkVersion")
4646
url: Optional[StrictStr] = Field(default=None, description="An optional URL link to solution page")
4747
tags: Optional[List[StrictStr]] = Field(default=None, description="The list of tags")
4848
parameters: List[RunTemplateParameter] = Field(description="The list of Run Template Parameters")

cosmotech_api/models/solution_create_request.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ class SolutionCreateRequest(BaseModel):
4343
parameters: Optional[List[RunTemplateParameter]] = Field(default=None, description="The list of Run Template Parameters")
4444
parameter_groups: Optional[List[RunTemplateParameterGroup]] = Field(default=None, description="The list of parameters groups for the Run Templates", alias="parameterGroups")
4545
run_templates: Optional[List[RunTemplate]] = Field(default=None, description="List of Run Templates", alias="runTemplates")
46-
sdk_version: Optional[StrictStr] = Field(default=None, description="The MAJOR.MINOR version used to build this solution", alias="sdkVersion")
4746
url: Optional[StrictStr] = Field(default=None, description="An optional URL link to solution page")
4847
security: Optional[SolutionSecurity] = None
49-
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "version", "alwaysPull", "csmSimulator", "tags", "parameters", "parameterGroups", "runTemplates", "sdkVersion", "url", "security"]
48+
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "version", "alwaysPull", "csmSimulator", "tags", "parameters", "parameterGroups", "runTemplates", "url", "security"]
5049

5150
model_config = ConfigDict(
5251
populate_by_name=True,
@@ -134,7 +133,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
134133
"parameters": [RunTemplateParameter.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None,
135134
"parameterGroups": [RunTemplateParameterGroup.from_dict(_item) for _item in obj["parameterGroups"]] if obj.get("parameterGroups") is not None else None,
136135
"runTemplates": [RunTemplate.from_dict(_item) for _item in obj["runTemplates"]] if obj.get("runTemplates") is not None else None,
137-
"sdkVersion": obj.get("sdkVersion"),
138136
"url": obj.get("url"),
139137
"security": SolutionSecurity.from_dict(obj["security"]) if obj.get("security") is not None else None
140138
})

cosmotech_api/models/solution_update_request.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ class SolutionUpdateRequest(BaseModel):
3535
always_pull: Optional[StrictBool] = Field(default=False, description="Set to true if the runtemplate wants to always pull the image", alias="alwaysPull")
3636
csm_simulator: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The main Cosmo Tech simulator name used in standard Run Template", alias="csmSimulator")
3737
version: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The Solution version MAJOR.MINOR.PATCH. Must be aligned with an existing repository tag")
38-
sdk_version: Optional[StrictStr] = Field(default=None, description="The MAJOR.MINOR version used to build this solution", alias="sdkVersion")
3938
url: Optional[StrictStr] = Field(default=None, description="An optional URL link to solution page")
4039
tags: Optional[List[StrictStr]] = Field(default=None, description="The list of tags")
41-
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "alwaysPull", "csmSimulator", "version", "sdkVersion", "url", "tags"]
40+
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "alwaysPull", "csmSimulator", "version", "url", "tags"]
4241

4342
model_config = ConfigDict(
4443
populate_by_name=True,
@@ -98,7 +97,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9897
"alwaysPull": obj.get("alwaysPull") if obj.get("alwaysPull") is not None else False,
9998
"csmSimulator": obj.get("csmSimulator"),
10099
"version": obj.get("version"),
101-
"sdkVersion": obj.get("sdkVersion"),
102100
"url": obj.get("url"),
103101
"tags": obj.get("tags")
104102
})

docs/Solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616
**csm_simulator** | **str** | The main Cosmo Tech simulator name used in standard Run Template |
1717
**version** | **str** | The Solution version MAJOR.MINOR.PATCH. Must be aligned with an existing repository tag |
1818
**owner_id** | **str** | The User id which owns this Solution | [readonly]
19-
**sdk_version** | **str** | The MAJOR.MINOR version used to build this solution | [optional]
19+
**sdk_version** | **str** | The full SDK version used to build this solution, if available | [optional]
2020
**url** | **str** | An optional URL link to solution page | [optional]
2121
**tags** | **List[str]** | The list of tags | [optional]
2222
**parameters** | [**List[RunTemplateParameter]**](RunTemplateParameter.md) | The list of Run Template Parameters |

docs/SolutionCreateRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Name | Type | Description | Notes
1717
**parameters** | [**List[RunTemplateParameter]**](RunTemplateParameter.md) | The list of Run Template Parameters | [optional] [default to []]
1818
**parameter_groups** | [**List[RunTemplateParameterGroup]**](RunTemplateParameterGroup.md) | The list of parameters groups for the Run Templates | [optional] [default to []]
1919
**run_templates** | [**List[RunTemplate]**](RunTemplate.md) | List of Run Templates | [optional] [default to []]
20-
**sdk_version** | **str** | The MAJOR.MINOR version used to build this solution | [optional]
2120
**url** | **str** | An optional URL link to solution page | [optional]
2221
**security** | [**SolutionSecurity**](SolutionSecurity.md) | | [optional]
2322

docs/SolutionUpdateRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Name | Type | Description | Notes
1313
**always_pull** | **bool** | Set to true if the runtemplate wants to always pull the image | [optional] [default to False]
1414
**csm_simulator** | **str** | The main Cosmo Tech simulator name used in standard Run Template | [optional]
1515
**version** | **str** | The Solution version MAJOR.MINOR.PATCH. Must be aligned with an existing repository tag | [optional]
16-
**sdk_version** | **str** | The MAJOR.MINOR version used to build this solution | [optional]
1716
**url** | **str** | An optional URL link to solution page | [optional]
1817
**tags** | **List[str]** | The list of tags | [optional]
1918

test/test_solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> Solution:
4646
csm_simulator = 'brewery_simulator',
4747
version = '1.0.0',
4848
owner_id = '0',
49-
sdk_version = '2.4',
49+
sdk_version = '11.3.0-39929.27365ede',
5050
url = 'https://github.com/Cosmo-Tech/brewery-solution',
5151
tags = ["brewery","optimization"],
5252
parameters = [

test/test_solution_create_request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def make_instance(self, include_optional) -> SolutionCreateRequest:
9494
],
9595
execution_timeout = 56, )
9696
],
97-
sdk_version = '2.4',
9897
url = 'https://github.com/Cosmo-Tech/brewery-solution',
9998
security = cosmotech_api.models.solution_security.SolutionSecurity(
10099
default = 'none',

test/test_solution_update_request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def make_instance(self, include_optional) -> SolutionUpdateRequest:
4343
always_pull = True,
4444
csm_simulator = 'brewery_simulator',
4545
version = '1.0.0',
46-
sdk_version = '2.4',
4746
url = 'https://github.com/Cosmo-Tech/brewery-solution',
4847
tags = ["brewery","optimization"]
4948
)

0 commit comments

Comments
 (0)