Skip to content

Commit 885f1cd

Browse files
generate driver model for 2024.4.14 / bump default version to 2024.4.14
1 parent 20be13c commit 885f1cd

10 files changed

Lines changed: 19150 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The package is available via the [Python Package Index (PyPI)](https://pypi.org/
4343
pip install videoipath-automation-tool
4444
```
4545

46-
**Note:** By default, the latest Long-Term Support (LTS) version (currently **2024.4.12**) is used for schema validation and IntelliSense.
46+
**Note:** By default, the latest Long-Term Support (LTS) version (currently **2024.4.14**) is used for schema validation and IntelliSense.
4747

4848
To switch to a specific version, see the [Driver Versioning Guide](https://github.com/SWR-MoIP/VideoIPath-Automation-Tool/blob/main/docs/driver-versioning.md)
4949

docs/driver-versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Driver schemas are auto-generated from the VideoIPath API's JSON schema, enabling IntelliSense support during development and runtime validation of custom settings.
55

6-
By default, the system uses the latest Long-Term Support (LTS) version, currently **2024.4.12**.
6+
By default, the system uses the latest Long-Term Support (LTS) version, currently **2024.4.14**.
77

88
To switch to a different version after installation, run:
99

docs/getting-started-guide/01_Setup_and_connect_to_Server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Before establishing a connection to the VideoIPath Server, ensure that the follo
1717

1818
### Driver Versioning
1919

20-
To ensure IntelliSense support and runtime validation of custom settings, the VideoIPath Server should be running a compatible version of the driver schema. By default, the package uses the latest Long-Term Support (LTS) version, which is currently **2024.4.12**. If you need to use a different version, refer to the [Driver Versioning Guide](../driver-versioning.md).
20+
To ensure IntelliSense support and runtime validation of custom settings, the VideoIPath Server should be running a compatible version of the driver schema. By default, the package uses the latest Long-Term Support (LTS) version, which is currently **2024.4.14**. If you need to use a different version, refer to the [Driver Versioning Guide](../driver-versioning.md).
2121

2222
## Example 1: Establishing a Connection to the VideoIPath Server via Environment Variables
2323

src/videoipath_automation_tool/apps/inventory/app/create_device.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ def create_device(
6969
self, driver: Literal["com.nevion.appeartv_x_platform-0.2.0"]
7070
) -> InventoryDevice[CustomSettings_com_nevion_appeartv_x_platform_0_2_0]: ...
7171

72+
@overload
73+
def create_device(
74+
self, driver: Literal["com.nevion.appeartv_x_platform_legacy-0.1.0"]
75+
) -> InventoryDevice[CustomSettings_com_nevion_appeartv_x_platform_legacy_0_1_0]: ...
76+
7277
@overload
7378
def create_device(
7479
self, driver: Literal["com.nevion.appeartv_x_platform_static-0.1.0"]

src/videoipath_automation_tool/apps/inventory/app/create_device_from_discovered_device.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ def create_device_from_discovered_device(
103103
suggested_config_index: int = 0,
104104
) -> InventoryDevice[CustomSettings_com_nevion_appeartv_x_platform_0_2_0]: ...
105105

106+
@overload
107+
def create_device_from_discovered_device(
108+
self,
109+
discovered_device_id: str,
110+
driver: Literal["com.nevion.appeartv_x_platform_legacy-0.1.0"],
111+
suggested_config_index: int = 0,
112+
) -> InventoryDevice[CustomSettings_com_nevion_appeartv_x_platform_legacy_0_1_0]: ...
113+
106114
@overload
107115
def create_device_from_discovered_device(
108116
self,

src/videoipath_automation_tool/apps/inventory/app/get_device.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,21 @@ def get_device(
199199
status_fetch_delay: int = STATUS_FETCH_DELAY_DEFAULT,
200200
) -> InventoryDevice[CustomSettings_com_nevion_appeartv_x_platform_0_2_0]: ...
201201

202+
@overload
203+
def get_device(
204+
self,
205+
label: Optional[str] = None,
206+
device_id: Optional[str] = None,
207+
address: Optional[str] = None,
208+
custom_settings_type: Optional[Literal["com.nevion.appeartv_x_platform_legacy-0.1.0"]] = None,
209+
config_only: bool = False,
210+
label_search_mode: Literal[
211+
"canonical_label", "factory_label_only", "user_defined_label_only"
212+
] = "canonical_label",
213+
status_fetch_retry: int = STATUS_FETCH_RETRY_DEFAULT,
214+
status_fetch_delay: int = STATUS_FETCH_DELAY_DEFAULT,
215+
) -> InventoryDevice[CustomSettings_com_nevion_appeartv_x_platform_legacy_0_1_0]: ...
216+
202217
@overload
203218
def get_device(
204219
self,

0 commit comments

Comments
 (0)