winrt-Windows.System.Update 3.2.1__cp314-cp314-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/_winrt_windows_system_update.cp314-win32.pyd +0 -0
- winrt/_winrt_windows_system_update.pyi +123 -0
- winrt/windows/system/update/__init__.py +57 -0
- winrt/windows/system/update/py.typed +0 -0
- winrt_windows_system_update-3.2.1.dist-info/METADATA +26 -0
- winrt_windows_system_update-3.2.1.dist-info/RECORD +8 -0
- winrt_windows_system_update-3.2.1.dist-info/WHEEL +5 -0
- winrt_windows_system_update-3.2.1.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
|
|
15
|
+
from winrt.windows.system.update import SystemUpdateAttentionRequiredReason, SystemUpdateItemState, SystemUpdateManagerState, SystemUpdateStartInstallAction
|
|
16
|
+
|
|
17
|
+
Self = typing.TypeVar('Self')
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class SystemUpdateItem(winrt.system.Object):
|
|
21
|
+
# System.String Windows.System.Update.SystemUpdateItem::get_Description()
|
|
22
|
+
@_property
|
|
23
|
+
def description(self) -> str: ...
|
|
24
|
+
# System.Double Windows.System.Update.SystemUpdateItem::get_DownloadProgress()
|
|
25
|
+
@_property
|
|
26
|
+
def download_progress(self) -> winrt.system.Double: ...
|
|
27
|
+
# Windows.Foundation.HResult Windows.System.Update.SystemUpdateItem::get_ExtendedError()
|
|
28
|
+
@_property
|
|
29
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
30
|
+
# System.String Windows.System.Update.SystemUpdateItem::get_Id()
|
|
31
|
+
@_property
|
|
32
|
+
def id(self) -> str: ...
|
|
33
|
+
# System.Double Windows.System.Update.SystemUpdateItem::get_InstallProgress()
|
|
34
|
+
@_property
|
|
35
|
+
def install_progress(self) -> winrt.system.Double: ...
|
|
36
|
+
# System.UInt32 Windows.System.Update.SystemUpdateItem::get_Revision()
|
|
37
|
+
@_property
|
|
38
|
+
def revision(self) -> winrt.system.UInt32: ...
|
|
39
|
+
# Windows.System.Update.SystemUpdateItemState Windows.System.Update.SystemUpdateItem::get_State()
|
|
40
|
+
@_property
|
|
41
|
+
def state(self) -> SystemUpdateItemState: ...
|
|
42
|
+
# System.String Windows.System.Update.SystemUpdateItem::get_Title()
|
|
43
|
+
@_property
|
|
44
|
+
def title(self) -> str: ...
|
|
45
|
+
|
|
46
|
+
@typing.final
|
|
47
|
+
class SystemUpdateLastErrorInfo(winrt.system.Object):
|
|
48
|
+
# Windows.Foundation.HResult Windows.System.Update.SystemUpdateLastErrorInfo::get_ExtendedError()
|
|
49
|
+
@_property
|
|
50
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
51
|
+
# System.Boolean Windows.System.Update.SystemUpdateLastErrorInfo::get_IsInteractive()
|
|
52
|
+
@_property
|
|
53
|
+
def is_interactive(self) -> bool: ...
|
|
54
|
+
# Windows.System.Update.SystemUpdateManagerState Windows.System.Update.SystemUpdateLastErrorInfo::get_State()
|
|
55
|
+
@_property
|
|
56
|
+
def state(self) -> SystemUpdateManagerState: ...
|
|
57
|
+
|
|
58
|
+
@typing.final
|
|
59
|
+
class SystemUpdateManager_Static(winrt._winrt.IInspectable_Static):
|
|
60
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::BlockAutomaticRebootAsync(System.String)
|
|
61
|
+
def block_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
62
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.System.Update.SystemUpdateManager::GetAutomaticRebootBlockIds()
|
|
63
|
+
def get_automatic_reboot_block_ids(cls) -> typing.Sequence[str]: ...
|
|
64
|
+
# System.String Windows.System.Update.SystemUpdateManager::GetFlightRing()
|
|
65
|
+
def get_flight_ring(cls) -> str: ...
|
|
66
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.System.Update.SystemUpdateItem> Windows.System.Update.SystemUpdateManager::GetUpdateItems()
|
|
67
|
+
def get_update_items(cls) -> typing.Sequence[SystemUpdateItem]: ...
|
|
68
|
+
# System.Boolean Windows.System.Update.SystemUpdateManager::IsSupported()
|
|
69
|
+
def is_supported(cls) -> bool: ...
|
|
70
|
+
# System.Void Windows.System.Update.SystemUpdateManager::RebootToCompleteInstall()
|
|
71
|
+
def reboot_to_complete_install(cls) -> None: ...
|
|
72
|
+
# System.Boolean Windows.System.Update.SystemUpdateManager::SetFlightRing(System.String)
|
|
73
|
+
def set_flight_ring(cls, flight_ring: str, /) -> bool: ...
|
|
74
|
+
# System.Void Windows.System.Update.SystemUpdateManager::StartCancelUpdates()
|
|
75
|
+
def start_cancel_updates(cls) -> None: ...
|
|
76
|
+
# System.Void Windows.System.Update.SystemUpdateManager::StartInstall(Windows.System.Update.SystemUpdateStartInstallAction)
|
|
77
|
+
def start_install(cls, action: SystemUpdateStartInstallAction, /) -> None: ...
|
|
78
|
+
# System.Boolean Windows.System.Update.SystemUpdateManager::TrySetUserActiveHours(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan)
|
|
79
|
+
def try_set_user_active_hours(cls, start: datetime.timedelta, end: datetime.timedelta, /) -> bool: ...
|
|
80
|
+
# Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::UnblockAutomaticRebootAsync(System.String)
|
|
81
|
+
def unblock_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
82
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.Update.SystemUpdateManager::add_StateChanged(Windows.Foundation.EventHandler`1<System.Object>)
|
|
83
|
+
def add_state_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
84
|
+
# System.Void Windows.System.Update.SystemUpdateManager::remove_StateChanged(Windows.Foundation.EventRegistrationToken)
|
|
85
|
+
def remove_state_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
86
|
+
# Windows.System.Update.SystemUpdateAttentionRequiredReason Windows.System.Update.SystemUpdateManager::get_AttentionRequiredReason()
|
|
87
|
+
@_property
|
|
88
|
+
def attention_required_reason(cls) -> SystemUpdateAttentionRequiredReason: ...
|
|
89
|
+
# System.Double Windows.System.Update.SystemUpdateManager::get_DownloadProgress()
|
|
90
|
+
@_property
|
|
91
|
+
def download_progress(cls) -> winrt.system.Double: ...
|
|
92
|
+
# Windows.Foundation.HResult Windows.System.Update.SystemUpdateManager::get_ExtendedError()
|
|
93
|
+
@_property
|
|
94
|
+
def extended_error(cls) -> windows_foundation.HResult: ...
|
|
95
|
+
# System.Double Windows.System.Update.SystemUpdateManager::get_InstallProgress()
|
|
96
|
+
@_property
|
|
97
|
+
def install_progress(cls) -> winrt.system.Double: ...
|
|
98
|
+
# Windows.System.Update.SystemUpdateLastErrorInfo Windows.System.Update.SystemUpdateManager::get_LastErrorInfo()
|
|
99
|
+
@_property
|
|
100
|
+
def last_error_info(cls) -> SystemUpdateLastErrorInfo: ...
|
|
101
|
+
# Windows.Foundation.DateTime Windows.System.Update.SystemUpdateManager::get_LastUpdateCheckTime()
|
|
102
|
+
@_property
|
|
103
|
+
def last_update_check_time(cls) -> datetime.datetime: ...
|
|
104
|
+
# Windows.Foundation.DateTime Windows.System.Update.SystemUpdateManager::get_LastUpdateInstallTime()
|
|
105
|
+
@_property
|
|
106
|
+
def last_update_install_time(cls) -> datetime.datetime: ...
|
|
107
|
+
# Windows.System.Update.SystemUpdateManagerState Windows.System.Update.SystemUpdateManager::get_State()
|
|
108
|
+
@_property
|
|
109
|
+
def state(cls) -> SystemUpdateManagerState: ...
|
|
110
|
+
# Windows.Foundation.TimeSpan Windows.System.Update.SystemUpdateManager::get_UserActiveHoursEnd()
|
|
111
|
+
@_property
|
|
112
|
+
def user_active_hours_end(cls) -> datetime.timedelta: ...
|
|
113
|
+
# System.Int32 Windows.System.Update.SystemUpdateManager::get_UserActiveHoursMax()
|
|
114
|
+
@_property
|
|
115
|
+
def user_active_hours_max(cls) -> winrt.system.Int32: ...
|
|
116
|
+
# Windows.Foundation.TimeSpan Windows.System.Update.SystemUpdateManager::get_UserActiveHoursStart()
|
|
117
|
+
@_property
|
|
118
|
+
def user_active_hours_start(cls) -> datetime.timedelta: ...
|
|
119
|
+
|
|
120
|
+
@typing.final
|
|
121
|
+
class SystemUpdateManager(winrt.system.Object, metaclass=SystemUpdateManager_Static):
|
|
122
|
+
pass
|
|
123
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt._winrt_windows_system_update import (
|
|
7
|
+
SystemUpdateItem,
|
|
8
|
+
SystemUpdateLastErrorInfo,
|
|
9
|
+
SystemUpdateManager,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"SystemUpdateAttentionRequiredReason",
|
|
14
|
+
"SystemUpdateItemState",
|
|
15
|
+
"SystemUpdateManagerState",
|
|
16
|
+
"SystemUpdateStartInstallAction",
|
|
17
|
+
"SystemUpdateItem",
|
|
18
|
+
"SystemUpdateLastErrorInfo",
|
|
19
|
+
"SystemUpdateManager",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
class SystemUpdateAttentionRequiredReason(enum.IntEnum):
|
|
23
|
+
NONE = 0
|
|
24
|
+
NETWORK_REQUIRED = 1
|
|
25
|
+
INSUFFICIENT_DISK_SPACE = 2
|
|
26
|
+
INSUFFICIENT_BATTERY = 3
|
|
27
|
+
UPDATE_BLOCKED = 4
|
|
28
|
+
|
|
29
|
+
class SystemUpdateItemState(enum.IntEnum):
|
|
30
|
+
NOT_STARTED = 0
|
|
31
|
+
INITIALIZING = 1
|
|
32
|
+
PREPARING = 2
|
|
33
|
+
CALCULATING = 3
|
|
34
|
+
DOWNLOADING = 4
|
|
35
|
+
INSTALLING = 5
|
|
36
|
+
COMPLETED = 6
|
|
37
|
+
REBOOT_REQUIRED = 7
|
|
38
|
+
ERROR = 8
|
|
39
|
+
|
|
40
|
+
class SystemUpdateManagerState(enum.IntEnum):
|
|
41
|
+
IDLE = 0
|
|
42
|
+
DETECTING = 1
|
|
43
|
+
READY_TO_DOWNLOAD = 2
|
|
44
|
+
DOWNLOADING = 3
|
|
45
|
+
READY_TO_INSTALL = 4
|
|
46
|
+
INSTALLING = 5
|
|
47
|
+
REBOOT_REQUIRED = 6
|
|
48
|
+
READY_TO_FINALIZE = 7
|
|
49
|
+
FINALIZING = 8
|
|
50
|
+
COMPLETED = 9
|
|
51
|
+
ATTENTION_REQUIRED = 10
|
|
52
|
+
ERROR = 11
|
|
53
|
+
|
|
54
|
+
class SystemUpdateStartInstallAction(enum.IntEnum):
|
|
55
|
+
UP_TO_REBOOT = 0
|
|
56
|
+
ALLOW_REBOOT = 1
|
|
57
|
+
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: winrt-Windows.System.Update
|
|
3
|
+
Version: 3.2.1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime~=3.2.1.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
|
|
19
|
+
|
|
20
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
|
+
|
|
22
|
+
# winrt-Windows.System.Update
|
|
23
|
+
|
|
24
|
+
Windows Runtime (WinRT) APIs for for the `Windows.System.Update` namespace.
|
|
25
|
+
|
|
26
|
+
This package provides the `winrt.windows.system.update` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_system_update.cp314-win32.pyd,sha256=ZlV1sqdO1ZtByPI3oSVNcV8-6E5BKi1RzmVQ1_9GEOc,121856
|
|
2
|
+
winrt/_winrt_windows_system_update.pyi,sha256=KID1UXsuebUPiQq7ZFP3-F-a1QujC7PY7hq_SHVvkWw,7178
|
|
3
|
+
winrt/windows/system/update/__init__.py,sha256=AkD8QGwxoQVVJ7yc9P0SQ5TGA6gOhzlLMk4S81pbLcg,1276
|
|
4
|
+
winrt/windows/system/update/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_windows_system_update-3.2.1.dist-info/METADATA,sha256=NMcfB_Gz8UMklb_Zqxz66IZkSeI8NS--xuG6_G7Hrmw,1124
|
|
6
|
+
winrt_windows_system_update-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
|
|
7
|
+
winrt_windows_system_update-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_windows_system_update-3.2.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|