winrt-Windows.System.Diagnostics.Telemetry 2.3.0__tar.gz → 3.1.0__tar.gz
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_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/PKG-INFO +5 -5
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/py.Windows.System.Diagnostics.Telemetry.cpp +82 -43
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/pyproject.toml +4 -4
- winrt_windows_system_diagnostics_telemetry-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/requirements.txt +2 -2
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/setup.py +1 -1
- winrt_windows_system_diagnostics_telemetry-3.1.0/winrt/_winrt_windows_system_diagnostics_telemetry.pyi +49 -0
- winrt_windows_system_diagnostics_telemetry-3.1.0/winrt/windows/system/diagnostics/telemetry/__init__.py +23 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/PKG-INFO +5 -5
- winrt_windows_system_diagnostics_telemetry-3.1.0/winrt_Windows.System.Diagnostics.Telemetry.egg-info/requires.txt +1 -0
- winrt_windows_system_diagnostics_telemetry-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_system_diagnostics_telemetry-2.3.0/winrt/_winrt_windows_system_diagnostics_telemetry.pyi +0 -48
- winrt_windows_system_diagnostics_telemetry-2.3.0/winrt/windows/system/diagnostics/telemetry/__init__.py +0 -22
- winrt_windows_system_diagnostics_telemetry-2.3.0/winrt_Windows.System.Diagnostics.Telemetry.egg-info/requires.txt +0 -1
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/README.md +0 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/setup.cfg +0 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/winrt/windows/system/diagnostics/telemetry/py.typed +0 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_diagnostics_telemetry-2.3.0 → winrt_windows_system_diagnostics_telemetry-3.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.Diagnostics.Telemetry
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,9 +10,9 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
|
|
17
17
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Diagnostics.Telemetry.h"
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
15
15
|
|
|
16
16
|
static PyObject* PlatformTelemetryClient_Register(PyObject* /*unused*/, PyObject* args) noexcept
|
|
17
17
|
{
|
|
18
|
-
auto arg_count =
|
|
18
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
19
19
|
|
|
20
20
|
if (arg_count == 1)
|
|
21
21
|
{
|
|
@@ -36,7 +36,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
36
36
|
|
|
37
37
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
38
38
|
|
|
39
|
-
return py::convert(
|
|
39
|
+
return py::convert([&]()
|
|
40
|
+
{
|
|
41
|
+
auto _gil = release_gil();
|
|
42
|
+
return winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient::Register(param0);
|
|
43
|
+
}());
|
|
40
44
|
}
|
|
41
45
|
catch (...)
|
|
42
46
|
{
|
|
@@ -44,7 +48,18 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
44
48
|
return nullptr;
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
|
-
else
|
|
51
|
+
else
|
|
52
|
+
{
|
|
53
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
54
|
+
return nullptr;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static PyObject* PlatformTelemetryClient_RegisterWithSettings(PyObject* /*unused*/, PyObject* args) noexcept
|
|
59
|
+
{
|
|
60
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
61
|
+
|
|
62
|
+
if (arg_count == 2)
|
|
48
63
|
{
|
|
49
64
|
try
|
|
50
65
|
{
|
|
@@ -64,7 +79,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
64
79
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
65
80
|
auto param1 = py::convert_to<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>(args, 1);
|
|
66
81
|
|
|
67
|
-
return py::convert(
|
|
82
|
+
return py::convert([&]()
|
|
83
|
+
{
|
|
84
|
+
auto _gil = release_gil();
|
|
85
|
+
return winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient::Register(param0, param1);
|
|
86
|
+
}());
|
|
68
87
|
}
|
|
69
88
|
catch (...)
|
|
70
89
|
{
|
|
@@ -80,19 +99,16 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
80
99
|
}
|
|
81
100
|
|
|
82
101
|
static PyMethodDef _methods_PlatformTelemetryClient[] = {
|
|
83
|
-
{ }
|
|
84
|
-
};
|
|
102
|
+
{ }};
|
|
85
103
|
|
|
86
104
|
static PyGetSetDef _getset_PlatformTelemetryClient[] = {
|
|
87
|
-
{ }
|
|
88
|
-
};
|
|
105
|
+
{ }};
|
|
89
106
|
|
|
90
107
|
static PyType_Slot _type_slots_PlatformTelemetryClient[] = {
|
|
91
108
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryClient) },
|
|
92
109
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryClient) },
|
|
93
110
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryClient) },
|
|
94
|
-
{ }
|
|
95
|
-
};
|
|
111
|
+
{ }};
|
|
96
112
|
|
|
97
113
|
static PyType_Spec type_spec_PlatformTelemetryClient = {
|
|
98
114
|
"winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryClient",
|
|
@@ -102,13 +118,12 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
102
118
|
_type_slots_PlatformTelemetryClient};
|
|
103
119
|
|
|
104
120
|
static PyGetSetDef getset_PlatformTelemetryClient_Static[] = {
|
|
105
|
-
{ }
|
|
106
|
-
};
|
|
121
|
+
{ }};
|
|
107
122
|
|
|
108
123
|
static PyMethodDef methods_PlatformTelemetryClient_Static[] = {
|
|
109
124
|
{ "register", reinterpret_cast<PyCFunction>(PlatformTelemetryClient_Register), METH_VARARGS, nullptr },
|
|
110
|
-
{ }
|
|
111
|
-
|
|
125
|
+
{ "register_with_settings", reinterpret_cast<PyCFunction>(PlatformTelemetryClient_RegisterWithSettings), METH_VARARGS, nullptr },
|
|
126
|
+
{ }};
|
|
112
127
|
|
|
113
128
|
static PyType_Slot type_slots_PlatformTelemetryClient_Static[] =
|
|
114
129
|
{
|
|
@@ -118,14 +133,12 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
118
133
|
{ }
|
|
119
134
|
};
|
|
120
135
|
|
|
121
|
-
static PyType_Spec type_spec_PlatformTelemetryClient_Static =
|
|
122
|
-
{
|
|
136
|
+
static PyType_Spec type_spec_PlatformTelemetryClient_Static = {
|
|
123
137
|
"winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryClient_Static",
|
|
124
138
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
125
139
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
126
140
|
Py_TPFLAGS_DEFAULT,
|
|
127
|
-
type_slots_PlatformTelemetryClient_Static
|
|
128
|
-
};
|
|
141
|
+
type_slots_PlatformTelemetryClient_Static};
|
|
129
142
|
|
|
130
143
|
// ----- PlatformTelemetryRegistrationResult class --------------------
|
|
131
144
|
|
|
@@ -161,7 +174,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
161
174
|
return nullptr;
|
|
162
175
|
}
|
|
163
176
|
|
|
164
|
-
return py::convert(
|
|
177
|
+
return py::convert([&]()
|
|
178
|
+
{
|
|
179
|
+
auto _gil = release_gil();
|
|
180
|
+
return self->obj.Status();
|
|
181
|
+
}());
|
|
165
182
|
}
|
|
166
183
|
catch (...)
|
|
167
184
|
{
|
|
@@ -197,21 +214,18 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
197
214
|
static PyMethodDef _methods_PlatformTelemetryRegistrationResult[] = {
|
|
198
215
|
{ "_assign_array_", _assign_array_PlatformTelemetryRegistrationResult, METH_O | METH_STATIC, nullptr },
|
|
199
216
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PlatformTelemetryRegistrationResult), METH_O | METH_STATIC, nullptr },
|
|
200
|
-
{ }
|
|
201
|
-
};
|
|
217
|
+
{ }};
|
|
202
218
|
|
|
203
219
|
static PyGetSetDef _getset_PlatformTelemetryRegistrationResult[] = {
|
|
204
220
|
{ "status", reinterpret_cast<getter>(PlatformTelemetryRegistrationResult_get_Status), nullptr, nullptr, nullptr },
|
|
205
|
-
{ }
|
|
206
|
-
};
|
|
221
|
+
{ }};
|
|
207
222
|
|
|
208
223
|
static PyType_Slot _type_slots_PlatformTelemetryRegistrationResult[] = {
|
|
209
224
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryRegistrationResult) },
|
|
210
225
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformTelemetryRegistrationResult) },
|
|
211
226
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryRegistrationResult) },
|
|
212
227
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryRegistrationResult) },
|
|
213
|
-
{ }
|
|
214
|
-
};
|
|
228
|
+
{ }};
|
|
215
229
|
|
|
216
230
|
static PyType_Spec type_spec_PlatformTelemetryRegistrationResult = {
|
|
217
231
|
"winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationResult",
|
|
@@ -224,13 +238,13 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
224
238
|
|
|
225
239
|
static PyObject* _new_PlatformTelemetryRegistrationSettings(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
226
240
|
{
|
|
227
|
-
if (kwds
|
|
241
|
+
if (kwds)
|
|
228
242
|
{
|
|
229
243
|
py::set_invalid_kwd_args_error();
|
|
230
244
|
return nullptr;
|
|
231
245
|
}
|
|
232
246
|
|
|
233
|
-
auto arg_count =
|
|
247
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
234
248
|
if (arg_count == 0)
|
|
235
249
|
{
|
|
236
250
|
try
|
|
@@ -276,7 +290,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
276
290
|
return nullptr;
|
|
277
291
|
}
|
|
278
292
|
|
|
279
|
-
return py::convert(
|
|
293
|
+
return py::convert([&]()
|
|
294
|
+
{
|
|
295
|
+
auto _gil = release_gil();
|
|
296
|
+
return self->obj.UploadQuotaSize();
|
|
297
|
+
}());
|
|
280
298
|
}
|
|
281
299
|
catch (...)
|
|
282
300
|
{
|
|
@@ -287,7 +305,7 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
287
305
|
|
|
288
306
|
static int PlatformTelemetryRegistrationSettings_put_UploadQuotaSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, PyObject* arg, void* /*unused*/) noexcept
|
|
289
307
|
{
|
|
290
|
-
if (arg
|
|
308
|
+
if (!arg)
|
|
291
309
|
{
|
|
292
310
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
293
311
|
return -1;
|
|
@@ -310,7 +328,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
310
328
|
|
|
311
329
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
312
330
|
|
|
313
|
-
|
|
331
|
+
{
|
|
332
|
+
auto _gil = release_gil();
|
|
333
|
+
self->obj.UploadQuotaSize(param0);
|
|
334
|
+
}
|
|
335
|
+
|
|
314
336
|
return 0;
|
|
315
337
|
}
|
|
316
338
|
catch (...)
|
|
@@ -337,7 +359,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
337
359
|
return nullptr;
|
|
338
360
|
}
|
|
339
361
|
|
|
340
|
-
return py::convert(
|
|
362
|
+
return py::convert([&]()
|
|
363
|
+
{
|
|
364
|
+
auto _gil = release_gil();
|
|
365
|
+
return self->obj.StorageSize();
|
|
366
|
+
}());
|
|
341
367
|
}
|
|
342
368
|
catch (...)
|
|
343
369
|
{
|
|
@@ -348,7 +374,7 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
348
374
|
|
|
349
375
|
static int PlatformTelemetryRegistrationSettings_put_StorageSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, PyObject* arg, void* /*unused*/) noexcept
|
|
350
376
|
{
|
|
351
|
-
if (arg
|
|
377
|
+
if (!arg)
|
|
352
378
|
{
|
|
353
379
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
354
380
|
return -1;
|
|
@@ -371,7 +397,11 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
371
397
|
|
|
372
398
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
373
399
|
|
|
374
|
-
|
|
400
|
+
{
|
|
401
|
+
auto _gil = release_gil();
|
|
402
|
+
self->obj.StorageSize(param0);
|
|
403
|
+
}
|
|
404
|
+
|
|
375
405
|
return 0;
|
|
376
406
|
}
|
|
377
407
|
catch (...)
|
|
@@ -408,22 +438,19 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
|
|
|
408
438
|
static PyMethodDef _methods_PlatformTelemetryRegistrationSettings[] = {
|
|
409
439
|
{ "_assign_array_", _assign_array_PlatformTelemetryRegistrationSettings, METH_O | METH_STATIC, nullptr },
|
|
410
440
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PlatformTelemetryRegistrationSettings), METH_O | METH_STATIC, nullptr },
|
|
411
|
-
{ }
|
|
412
|
-
};
|
|
441
|
+
{ }};
|
|
413
442
|
|
|
414
443
|
static PyGetSetDef _getset_PlatformTelemetryRegistrationSettings[] = {
|
|
415
444
|
{ "upload_quota_size", reinterpret_cast<getter>(PlatformTelemetryRegistrationSettings_get_UploadQuotaSize), reinterpret_cast<setter>(PlatformTelemetryRegistrationSettings_put_UploadQuotaSize), nullptr, nullptr },
|
|
416
445
|
{ "storage_size", reinterpret_cast<getter>(PlatformTelemetryRegistrationSettings_get_StorageSize), reinterpret_cast<setter>(PlatformTelemetryRegistrationSettings_put_StorageSize), nullptr, nullptr },
|
|
417
|
-
{ }
|
|
418
|
-
};
|
|
446
|
+
{ }};
|
|
419
447
|
|
|
420
448
|
static PyType_Slot _type_slots_PlatformTelemetryRegistrationSettings[] = {
|
|
421
449
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryRegistrationSettings) },
|
|
422
450
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformTelemetryRegistrationSettings) },
|
|
423
451
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryRegistrationSettings) },
|
|
424
452
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryRegistrationSettings) },
|
|
425
|
-
{ }
|
|
426
|
-
};
|
|
453
|
+
{ }};
|
|
427
454
|
|
|
428
455
|
static PyType_Spec type_spec_PlatformTelemetryRegistrationSettings = {
|
|
429
456
|
"winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationSettings",
|
|
@@ -464,6 +491,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_telemetry(void) noexcept
|
|
|
464
491
|
return nullptr;
|
|
465
492
|
}
|
|
466
493
|
|
|
494
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
495
|
+
if (!inspectable_meta_type)
|
|
496
|
+
{
|
|
497
|
+
return nullptr;
|
|
498
|
+
}
|
|
499
|
+
|
|
467
500
|
auto object_type = py::get_object_type();
|
|
468
501
|
if (!object_type)
|
|
469
502
|
{
|
|
@@ -477,7 +510,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_telemetry(void) noexcept
|
|
|
477
510
|
return nullptr;
|
|
478
511
|
}
|
|
479
512
|
|
|
480
|
-
py::pyobj_handle
|
|
513
|
+
py::pyobj_handle PlatformTelemetryClient_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
514
|
+
if (!PlatformTelemetryClient_Static_bases)
|
|
515
|
+
{
|
|
516
|
+
return nullptr;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
py::pyobj_handle type_PlatformTelemetryClient_Static{PyType_FromSpecWithBases(&type_spec_PlatformTelemetryClient_Static, PlatformTelemetryClient_Static_bases.get())};
|
|
481
520
|
if (!type_PlatformTelemetryClient_Static)
|
|
482
521
|
{
|
|
483
522
|
return nullptr;
|
|
@@ -489,13 +528,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_telemetry(void) noexcept
|
|
|
489
528
|
return nullptr;
|
|
490
529
|
}
|
|
491
530
|
|
|
492
|
-
py::pytype_handle PlatformTelemetryRegistrationResult_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryRegistrationResult, object_bases.get(),
|
|
531
|
+
py::pytype_handle PlatformTelemetryRegistrationResult_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryRegistrationResult, object_bases.get(), inspectable_meta_type)};
|
|
493
532
|
if (!PlatformTelemetryRegistrationResult_type)
|
|
494
533
|
{
|
|
495
534
|
return nullptr;
|
|
496
535
|
}
|
|
497
536
|
|
|
498
|
-
py::pytype_handle PlatformTelemetryRegistrationSettings_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryRegistrationSettings, object_bases.get(),
|
|
537
|
+
py::pytype_handle PlatformTelemetryRegistrationSettings_type{py::register_python_type(module.get(), &type_spec_PlatformTelemetryRegistrationSettings, object_bases.get(), inspectable_meta_type)};
|
|
499
538
|
if (!PlatformTelemetryRegistrationSettings_type)
|
|
500
539
|
{
|
|
501
540
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.System.Diagnostics.Telemetry"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -33,7 +33,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
33
33
|
|
|
34
34
|
[tool.cibuildwheel]
|
|
35
35
|
# use local winrt-sdk build dependency
|
|
36
|
-
environment = { PYTHONPATH="
|
|
36
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
37
37
|
# don't install winrt-sdk from PyPI
|
|
38
38
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
39
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
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
|
+
|
|
13
|
+
from winrt.windows.system.diagnostics.telemetry import PlatformTelemetryRegistrationStatus
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class PlatformTelemetryClient_Static(winrt._winrt.IInspectable_Static):
|
|
19
|
+
# Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient::Register(System.String)
|
|
20
|
+
def register(cls, id: str, /) -> PlatformTelemetryRegistrationResult: ...
|
|
21
|
+
# Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient::Register(System.String,Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings)
|
|
22
|
+
def register_with_settings(cls, id: str, settings: PlatformTelemetryRegistrationSettings, /) -> PlatformTelemetryRegistrationResult: ...
|
|
23
|
+
|
|
24
|
+
@typing.final
|
|
25
|
+
class PlatformTelemetryClient(winrt.system.Object, metaclass=PlatformTelemetryClient_Static):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
@typing.final
|
|
29
|
+
class PlatformTelemetryRegistrationResult(winrt.system.Object):
|
|
30
|
+
# Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationStatus Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult::get_Status()
|
|
31
|
+
@_property
|
|
32
|
+
def status(self) -> PlatformTelemetryRegistrationStatus: ...
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class PlatformTelemetryRegistrationSettings(winrt.system.Object):
|
|
36
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
37
|
+
# System.UInt32 Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::get_UploadQuotaSize()
|
|
38
|
+
@_property
|
|
39
|
+
def upload_quota_size(self) -> winrt.system.UInt32: ...
|
|
40
|
+
# System.Void Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::put_UploadQuotaSize(System.UInt32)
|
|
41
|
+
@upload_quota_size.setter
|
|
42
|
+
def upload_quota_size(self, value: winrt.system.UInt32) -> None: ...
|
|
43
|
+
# System.UInt32 Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::get_StorageSize()
|
|
44
|
+
@_property
|
|
45
|
+
def storage_size(self) -> winrt.system.UInt32: ...
|
|
46
|
+
# System.Void Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings::put_StorageSize(System.UInt32)
|
|
47
|
+
@storage_size.setter
|
|
48
|
+
def storage_size(self, value: winrt.system.UInt32) -> None: ...
|
|
49
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt._winrt_windows_system_diagnostics_telemetry import (
|
|
7
|
+
PlatformTelemetryClient,
|
|
8
|
+
PlatformTelemetryRegistrationResult,
|
|
9
|
+
PlatformTelemetryRegistrationSettings,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"PlatformTelemetryRegistrationStatus",
|
|
14
|
+
"PlatformTelemetryClient",
|
|
15
|
+
"PlatformTelemetryRegistrationResult",
|
|
16
|
+
"PlatformTelemetryRegistrationSettings",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
class PlatformTelemetryRegistrationStatus(enum.IntEnum):
|
|
20
|
+
SUCCESS = 0
|
|
21
|
+
SETTINGS_OUT_OF_RANGE = 1
|
|
22
|
+
UNKNOWN_FAILURE = 2
|
|
23
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.Diagnostics.Telemetry
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -10,9 +10,9 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
|
|
17
17
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
18
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt-runtime==3.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.0
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
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
|
-
|
|
13
|
-
from winrt.windows.system.diagnostics.telemetry import PlatformTelemetryRegistrationStatus
|
|
14
|
-
|
|
15
|
-
Self = typing.TypeVar('Self')
|
|
16
|
-
|
|
17
|
-
@typing.final
|
|
18
|
-
class PlatformTelemetryClient_Static(type):
|
|
19
|
-
@typing.overload
|
|
20
|
-
def register(cls, id: str, /) -> typing.Optional[PlatformTelemetryRegistrationResult]: ...
|
|
21
|
-
@typing.overload
|
|
22
|
-
def register(cls, id: str, settings: typing.Optional[PlatformTelemetryRegistrationSettings], /) -> typing.Optional[PlatformTelemetryRegistrationResult]: ...
|
|
23
|
-
|
|
24
|
-
@typing.final
|
|
25
|
-
class PlatformTelemetryClient(winrt.system.Object, metaclass=PlatformTelemetryClient_Static):
|
|
26
|
-
pass
|
|
27
|
-
|
|
28
|
-
@typing.final
|
|
29
|
-
class PlatformTelemetryRegistrationResult(winrt.system.Object):
|
|
30
|
-
@staticmethod
|
|
31
|
-
def _from(obj: winrt.system.Object, /) -> PlatformTelemetryRegistrationResult: ...
|
|
32
|
-
@_property
|
|
33
|
-
def status(self) -> PlatformTelemetryRegistrationStatus: ...
|
|
34
|
-
|
|
35
|
-
@typing.final
|
|
36
|
-
class PlatformTelemetryRegistrationSettings(winrt.system.Object):
|
|
37
|
-
@staticmethod
|
|
38
|
-
def _from(obj: winrt.system.Object, /) -> PlatformTelemetryRegistrationSettings: ...
|
|
39
|
-
def __new__(cls: typing.Type[PlatformTelemetryRegistrationSettings]) -> PlatformTelemetryRegistrationSettings: ...
|
|
40
|
-
@_property
|
|
41
|
-
def upload_quota_size(self) -> winrt.system.UInt32: ...
|
|
42
|
-
@upload_quota_size.setter
|
|
43
|
-
def upload_quota_size(self, value: winrt.system.UInt32) -> None: ...
|
|
44
|
-
@_property
|
|
45
|
-
def storage_size(self) -> winrt.system.UInt32: ...
|
|
46
|
-
@storage_size.setter
|
|
47
|
-
def storage_size(self, value: winrt.system.UInt32) -> None: ...
|
|
48
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import enum
|
|
4
|
-
|
|
5
|
-
import winrt.system
|
|
6
|
-
from winrt import _winrt_windows_system_diagnostics_telemetry
|
|
7
|
-
|
|
8
|
-
__all__ = [
|
|
9
|
-
"PlatformTelemetryRegistrationStatus",
|
|
10
|
-
"PlatformTelemetryClient",
|
|
11
|
-
"PlatformTelemetryRegistrationResult",
|
|
12
|
-
"PlatformTelemetryRegistrationSettings",
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
class PlatformTelemetryRegistrationStatus(enum.IntEnum):
|
|
16
|
-
SUCCESS = 0
|
|
17
|
-
SETTINGS_OUT_OF_RANGE = 1
|
|
18
|
-
UNKNOWN_FAILURE = 2
|
|
19
|
-
|
|
20
|
-
PlatformTelemetryClient = _winrt_windows_system_diagnostics_telemetry.PlatformTelemetryClient
|
|
21
|
-
PlatformTelemetryRegistrationResult = _winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationResult
|
|
22
|
-
PlatformTelemetryRegistrationSettings = _winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationSettings
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.3.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|