Skip to content

Commit 57f15d4

Browse files
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@81a033a)
Co-authored-by: jreynard-code <jreynard-code@users.noreply.github.com>
1 parent 40a12b1 commit 57f15d4

File tree

9 files changed

+3
-17
lines changed

9 files changed

+3
-17
lines changed

cosmotech_api/models/solution.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class Solution(BaseModel):
3939
description: Optional[StrictStr] = Field(default=None, description="The Solution description")
4040
repository: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The registry repository containing the image")
4141
always_pull: Optional[StrictBool] = Field(default=False, description="Set to true if the runtemplate wants to always pull the image", alias="alwaysPull")
42-
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")
4342
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")
4443
owner_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The User id which owns this Solution", alias="ownerId")
4544
sdk_version: Optional[StrictStr] = Field(default=None, description="The full SDK version used to build this solution, if available", alias="sdkVersion")
@@ -49,7 +48,7 @@ class Solution(BaseModel):
4948
parameter_groups: List[RunTemplateParameterGroup] = Field(description="The list of parameters groups for the Run Templates", alias="parameterGroups")
5049
run_templates: List[RunTemplate] = Field(description="List of Run Templates", alias="runTemplates")
5150
security: SolutionSecurity
52-
__properties: ClassVar[List[str]] = ["id", "organizationId", "key", "name", "description", "repository", "alwaysPull", "csmSimulator", "version", "ownerId", "sdkVersion", "url", "tags", "parameters", "parameterGroups", "runTemplates", "security"]
51+
__properties: ClassVar[List[str]] = ["id", "organizationId", "key", "name", "description", "repository", "alwaysPull", "version", "ownerId", "sdkVersion", "url", "tags", "parameters", "parameterGroups", "runTemplates", "security"]
5352

5453
@field_validator('id')
5554
def id_validate_regular_expression(cls, value):
@@ -147,7 +146,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
147146
"description": obj.get("description"),
148147
"repository": obj.get("repository"),
149148
"alwaysPull": obj.get("alwaysPull") if obj.get("alwaysPull") is not None else False,
150-
"csmSimulator": obj.get("csmSimulator"),
151149
"version": obj.get("version"),
152150
"ownerId": obj.get("ownerId"),
153151
"sdkVersion": obj.get("sdkVersion"),

cosmotech_api/models/solution_create_request.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ class SolutionCreateRequest(BaseModel):
3838
repository: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The registry repository containing the image")
3939
version: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The Solution version MAJOR.MINOR.PATCH")
4040
always_pull: Optional[StrictBool] = Field(default=False, description="Set to true if the runtemplate wants to always pull the image", alias="alwaysPull")
41-
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")
4241
tags: Optional[List[StrictStr]] = Field(default=None, description="The list of tags")
4342
parameters: Optional[List[RunTemplateParameterCreateRequest]] = Field(default=None, description="The list of Run Template Parameters")
4443
parameter_groups: Optional[List[RunTemplateParameterGroupCreateRequest]] = Field(default=None, description="The list of parameters groups for the Run Templates", alias="parameterGroups")
4544
run_templates: Optional[List[RunTemplateCreateRequest]] = Field(default=None, description="List of Run Templates", alias="runTemplates")
4645
url: Optional[StrictStr] = Field(default=None, description="An optional URL link to solution page")
4746
security: Optional[SolutionSecurity] = None
48-
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "version", "alwaysPull", "csmSimulator", "tags", "parameters", "parameterGroups", "runTemplates", "url", "security"]
47+
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "version", "alwaysPull", "tags", "parameters", "parameterGroups", "runTemplates", "url", "security"]
4948

5049
model_config = ConfigDict(
5150
populate_by_name=True,
@@ -128,7 +127,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
128127
"repository": obj.get("repository"),
129128
"version": obj.get("version"),
130129
"alwaysPull": obj.get("alwaysPull") if obj.get("alwaysPull") is not None else False,
131-
"csmSimulator": obj.get("csmSimulator"),
132130
"tags": obj.get("tags"),
133131
"parameters": [RunTemplateParameterCreateRequest.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None,
134132
"parameterGroups": [RunTemplateParameterGroupCreateRequest.from_dict(_item) for _item in obj["parameterGroups"]] if obj.get("parameterGroups") is not None else None,

cosmotech_api/models/solution_update_request.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,13 @@ class SolutionUpdateRequest(BaseModel):
3636
description: Optional[StrictStr] = Field(default=None, description="The Solution description")
3737
repository: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The registry repository containing the image")
3838
always_pull: Optional[StrictBool] = Field(default=False, description="Set to true if the runtemplate wants to always pull the image", alias="alwaysPull")
39-
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")
4039
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")
4140
url: Optional[StrictStr] = Field(default=None, description="An optional URL link to solution page")
4241
tags: Optional[List[StrictStr]] = Field(default=None, description="The list of tags")
4342
parameters: Optional[List[RunTemplateParameterCreateRequest]] = Field(default=None, description="The list of Run Template Parameters")
4443
parameter_groups: Optional[List[RunTemplateParameterGroupCreateRequest]] = Field(default=None, description="The list of parameters groups for the Run Templates", alias="parameterGroups")
4544
run_templates: Optional[List[RunTemplateCreateRequest]] = Field(default=None, description="List of Run Templates", alias="runTemplates")
46-
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "alwaysPull", "csmSimulator", "version", "url", "tags", "parameters", "parameterGroups", "runTemplates"]
45+
__properties: ClassVar[List[str]] = ["key", "name", "description", "repository", "alwaysPull", "version", "url", "tags", "parameters", "parameterGroups", "runTemplates"]
4746

4847
model_config = ConfigDict(
4948
populate_by_name=True,
@@ -122,7 +121,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
122121
"description": obj.get("description"),
123122
"repository": obj.get("repository"),
124123
"alwaysPull": obj.get("alwaysPull") if obj.get("alwaysPull") is not None else False,
125-
"csmSimulator": obj.get("csmSimulator"),
126124
"version": obj.get("version"),
127125
"url": obj.get("url"),
128126
"tags": obj.get("tags"),

docs/Solution.md

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

docs/SolutionCreateRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
1212
**repository** | **str** | The registry repository containing the image |
1313
**version** | **str** | The Solution version MAJOR.MINOR.PATCH |
1414
**always_pull** | **bool** | Set to true if the runtemplate wants to always pull the image | [optional] [default to False]
15-
**csm_simulator** | **str** | The main Cosmo Tech simulator name used in standard Run Template |
1615
**tags** | **List[str]** | The list of tags | [optional]
1716
**parameters** | [**List[RunTemplateParameterCreateRequest]**](RunTemplateParameterCreateRequest.md) | The list of Run Template Parameters | [optional] [default to []]
1817
**parameter_groups** | [**List[RunTemplateParameterGroupCreateRequest]**](RunTemplateParameterGroupCreateRequest.md) | The list of parameters groups for the Run Templates | [optional] [default to []]

docs/SolutionUpdateRequest.md

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

test/test_solution.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def make_instance(self, include_optional) -> Solution:
4343
description = 'A solution for brewery management and optimization',
4444
repository = 'cosmotech/brewery_solution',
4545
always_pull = True,
46-
csm_simulator = 'brewery_simulator',
4746
version = '1.0.0',
4847
owner_id = '0',
4948
sdk_version = '11.3.0-39929.27365ede',
@@ -116,7 +115,6 @@ def make_instance(self, include_optional) -> Solution:
116115
key = 'brewery-solution',
117116
name = 'Brewery Solution',
118117
repository = 'cosmotech/brewery_solution',
119-
csm_simulator = 'brewery_simulator',
120118
version = '1.0.0',
121119
owner_id = '0',
122120
parameters = [

test/test_solution_create_request.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def make_instance(self, include_optional) -> SolutionCreateRequest:
4242
repository = 'cosmotech/brewery_solution',
4343
version = '1.0.0',
4444
always_pull = True,
45-
csm_simulator = 'brewery_simulator',
4645
tags = ["brewery","optimization"],
4746
parameters = [
4847
cosmotech_api.models.run_template_parameter_create_request.RunTemplateParameterCreateRequest(
@@ -111,7 +110,6 @@ def make_instance(self, include_optional) -> SolutionCreateRequest:
111110
name = 'Brewery Solution',
112111
repository = 'cosmotech/brewery_solution',
113112
version = '1.0.0',
114-
csm_simulator = 'brewery_simulator',
115113
)
116114
"""
117115

test/test_solution_update_request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def make_instance(self, include_optional) -> SolutionUpdateRequest:
4141
description = 'A solution for brewery management and optimization',
4242
repository = 'cosmotech/brewery_solution',
4343
always_pull = True,
44-
csm_simulator = 'brewery_simulator',
4544
version = '1.0.0',
4645
url = 'https://github.com/Cosmo-Tech/brewery-solution',
4746
tags = ["brewery","optimization"],

0 commit comments

Comments
 (0)