Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 344fb3a

Browse files
author
Jaroslav Tóth
authored
Update generated UniConfig models to match version 7.0.0 (#108)
1 parent ea18861 commit 344fb3a

File tree

15 files changed

+638
-452
lines changed

15 files changed

+638
-452
lines changed

uniconfig/python/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@
2727
- Update models based on new OpenAPI fixed in UniConfig 6.1.x
2828

2929
# 1.2.1
30-
- Package dependency update
30+
- Package dependency update
31+
32+
# 2.0.0
33+
- Update models based on the UniConfig 7.0.0 OpenAPI.

uniconfig/python/RELEASE.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
## Release matrix
22

33
| Docker Image Tag | Python Library Version |
4-
|-----------------|------------------------|
5-
| 5.1.11 | 0.0.1 |
6-
| 5.1.13 | 0.1.0 |
7-
| 5.1.16 | 0.1.1 |
8-
| 6.0.0 | 1.0.0 |
9-
| 6.0.1 | 1.1.0, 1.1.1 |
10-
| 6.1.0 | 1.2.0 |
11-
| 6.1.1 | 1.2.1 |
4+
|------------------|------------------------|
5+
| 5.1.11 | 0.0.1 |
6+
| 5.1.13 | 0.1.0 |
7+
| 5.1.16 | 0.1.1 |
8+
| 6.0.0 | 1.0.0 |
9+
| 6.0.1 | 1.1.0, 1.1.1 |
10+
| 6.1.0 | 1.2.0 |
11+
| 6.1.1 | 1.2.1 |
12+
| 6.1.2 | 1.2.2 |
13+
| 7.0.0 | 2.0.0 |

uniconfig/python/frinx_api/uniconfig/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
from .template.manager import gettemplatenodes
7171
from .template.manager import upgradetemplate
7272
from .transaction.log import revertchanges
73+
from .uniconfig.manager import bulkget
7374
from .uniconfig.manager import calculatediff
7475
from .uniconfig.manager import calculategitlikediff
7576
from .uniconfig.manager import checkedcommit
@@ -859,3 +860,17 @@ class OperationsCreateMultipleTemplatesPostRequest(BaseModel):
859860
populate_by_name=True,
860861
)
861862
input: Optional[createmultipletemplates.Input] = None
863+
864+
865+
class OperationsBulkGetPostRequest(BaseModel):
866+
model_config = ConfigDict(
867+
populate_by_name=True,
868+
)
869+
input: Optional[bulkget.Input] = None
870+
871+
872+
class OperationsBulkGetPostResponse(BaseModel):
873+
model_config = ConfigDict(
874+
populate_by_name=True,
875+
)
876+
output: Optional[bulkget.Output] = None

uniconfig/python/frinx_api/uniconfig/cli/unit/generic/configcoverage.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ComplexOutputItem(BaseModel):
2929
covered: Optional[bool] = None
3030

3131

32-
class Result(BaseModel):
32+
class CliUnitGenericResult(BaseModel):
3333
model_config = ConfigDict(
3434
populate_by_name=True,
3535
)
@@ -41,7 +41,7 @@ class Result(BaseModel):
4141
"""
4242

4343

44-
class ResultModel(BaseModel):
44+
class CliUnitGenericResultModel(BaseModel):
4545
model_config = ConfigDict(
4646
populate_by_name=True,
4747
)
@@ -55,4 +55,6 @@ class Output(BaseModel):
5555
model_config = ConfigDict(
5656
populate_by_name=True,
5757
)
58-
result: Optional[Union[Result, ResultModel]] = None
58+
cli_unit_generic_result: Optional[
59+
Union[CliUnitGenericResult, CliUnitGenericResultModel]
60+
] = Field(None, alias='cli-unit-generic:result')

0 commit comments

Comments
 (0)