Skip to content

Commit

Permalink
Enhance documentation for detached_mode OS update
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Ken Bannister <[email protected]>
  • Loading branch information
kb2ma committed Feb 18, 2025
1 parent 347e059 commit e4fa488
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,7 @@ Get device name by device uuid.
<a name="device.get_os_update_status"></a>
### Function: get_os_update_status(uuid_or_id) ⇒ <code>HUPStatusResponse</code>

***Deprecated***
Get the OS update status of a device.

#### Args:
Expand Down Expand Up @@ -1970,6 +1971,9 @@ This function requires supervisor v1.8 or higher.

Start an OS update on a device.

If using run_detached option, monitor progress with device.get() --
status, provisioning_state and provisioning_progress entries.

#### Args:
uuid_or_id (Union[str, int]): device uuid (string) or id (int).
target_os_version (str): semver-compatible version for the target device.
Expand Down
4 changes: 4 additions & 0 deletions balena/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,9 @@ def start_os_update(
"""
Start an OS update on a device.
If using run_detached option, monitor progress with device.get() --
status, provisioning_state and provisioning_progress entries.
Args:
uuid_or_id (Union[str, int]): device uuid (string) or id (int).
target_os_version (str): semver-compatible version for the target device.
Expand Down Expand Up @@ -1796,6 +1799,7 @@ def start_os_update(
)
def get_os_update_status(self, uuid_or_id: Union[str, int]) -> HUPStatusResponse:
"""
***Deprecated***
Get the OS update status of a device.
Args:
Expand Down

0 comments on commit e4fa488

Please sign in to comment.