winrt-Windows.System.Diagnostics.Telemetry 2.0.1__tar.gz → 2.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.
Files changed (18) hide show
  1. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/PKG-INFO +2 -2
  2. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/py.Windows.System.Diagnostics.Telemetry.cpp +66 -77
  3. winrt_windows_system_diagnostics_telemetry-2.1.0/pywinrt-version.txt +1 -0
  4. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/requirements.txt +2 -2
  5. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt/_winrt_windows_system_diagnostics_telemetry.pyi +3 -4
  6. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt/windows/system/diagnostics/telemetry/__init__.py +1 -1
  7. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/PKG-INFO +2 -2
  8. winrt_windows_system_diagnostics_telemetry-2.1.0/winrt_Windows.System.Diagnostics.Telemetry.egg-info/requires.txt +1 -0
  9. winrt_windows_system_diagnostics_telemetry-2.0.1/pywinrt-version.txt +0 -1
  10. winrt_windows_system_diagnostics_telemetry-2.0.1/winrt_Windows.System.Diagnostics.Telemetry.egg-info/requires.txt +0 -1
  11. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/README.md +0 -0
  12. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/pyproject.toml +0 -0
  13. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/setup.cfg +0 -0
  14. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/setup.py +0 -0
  15. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt/windows/system/diagnostics/telemetry/py.typed +0 -0
  16. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/SOURCES.txt +0 -0
  17. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/dependency_links.txt +0 -0
  18. {winrt_windows_system_diagnostics_telemetry-2.0.1 → winrt_windows_system_diagnostics_telemetry-2.1.0}/winrt_Windows.System.Diagnostics.Telemetry.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Diagnostics.Telemetry
3
- Version: 2.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.System.Diagnostics.Telemetry.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::Diagnostics::Telemetry
7
6
  {
8
7
  // ----- PlatformTelemetryClient class --------------------
@@ -20,14 +19,14 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
20
19
 
21
20
  if (arg_count == 1)
22
21
  {
23
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient", L"Register", 1))
24
- {
25
- py::set_arg_count_version_error(1);
26
- return nullptr;
27
- }
28
-
29
22
  try
30
23
  {
24
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient", L"Register", 1))
25
+ {
26
+ py::set_arg_count_version_error(1);
27
+ return nullptr;
28
+ }
29
+
31
30
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
32
31
 
33
32
  return py::convert(winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient::Register(param0));
@@ -40,14 +39,14 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
40
39
  }
41
40
  else if (arg_count == 2)
42
41
  {
43
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient", L"Register", 2))
44
- {
45
- py::set_arg_count_version_error(2);
46
- return nullptr;
47
- }
48
-
49
42
  try
50
43
  {
44
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient", L"Register", 2))
45
+ {
46
+ py::set_arg_count_version_error(2);
47
+ return nullptr;
48
+ }
49
+
51
50
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
52
51
  auto param1 = py::convert_to<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>(args, 1);
53
52
 
@@ -74,22 +73,19 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
74
73
  { }
75
74
  };
76
75
 
77
- static PyType_Slot _type_slots_PlatformTelemetryClient[] =
78
- {
76
+ static PyType_Slot _type_slots_PlatformTelemetryClient[] = {
79
77
  { Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryClient) },
80
78
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryClient) },
81
79
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryClient) },
82
- { },
80
+ { }
83
81
  };
84
82
 
85
- static PyType_Spec type_spec_PlatformTelemetryClient =
86
- {
83
+ static PyType_Spec type_spec_PlatformTelemetryClient = {
87
84
  "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryClient",
88
85
  0,
89
86
  0,
90
87
  Py_TPFLAGS_DEFAULT,
91
- _type_slots_PlatformTelemetryClient
92
- };
88
+ _type_slots_PlatformTelemetryClient};
93
89
 
94
90
  static PyGetSetDef getset_PlatformTelemetryClient_Static[] = {
95
91
  { }
@@ -136,14 +132,14 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
136
132
 
137
133
  static PyObject* PlatformTelemetryRegistrationResult_get_Status(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult* self, void* /*unused*/) noexcept
138
134
  {
139
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult", L"Status"))
140
- {
141
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
142
- return nullptr;
143
- }
144
-
145
135
  try
146
136
  {
137
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult", L"Status"))
138
+ {
139
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
140
+ return nullptr;
141
+ }
142
+
147
143
  return py::convert(self->obj.Status());
148
144
  }
149
145
  catch (...)
@@ -188,23 +184,20 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
188
184
  { }
189
185
  };
190
186
 
191
- static PyType_Slot _type_slots_PlatformTelemetryRegistrationResult[] =
192
- {
187
+ static PyType_Slot _type_slots_PlatformTelemetryRegistrationResult[] = {
193
188
  { Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryRegistrationResult) },
194
189
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformTelemetryRegistrationResult) },
195
190
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryRegistrationResult) },
196
191
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryRegistrationResult) },
197
- { },
192
+ { }
198
193
  };
199
194
 
200
- static PyType_Spec type_spec_PlatformTelemetryRegistrationResult =
201
- {
195
+ static PyType_Spec type_spec_PlatformTelemetryRegistrationResult = {
202
196
  "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationResult",
203
197
  sizeof(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult),
204
198
  0,
205
199
  Py_TPFLAGS_DEFAULT,
206
- _type_slots_PlatformTelemetryRegistrationResult
207
- };
200
+ _type_slots_PlatformTelemetryRegistrationResult};
208
201
 
209
202
  // ----- PlatformTelemetryRegistrationSettings class --------------------
210
203
 
@@ -247,14 +240,14 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
247
240
 
248
241
  static PyObject* PlatformTelemetryRegistrationSettings_get_UploadQuotaSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, void* /*unused*/) noexcept
249
242
  {
250
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"UploadQuotaSize"))
251
- {
252
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
253
- return nullptr;
254
- }
255
-
256
243
  try
257
244
  {
245
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"UploadQuotaSize"))
246
+ {
247
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
248
+ return nullptr;
249
+ }
250
+
258
251
  return py::convert(self->obj.UploadQuotaSize());
259
252
  }
260
253
  catch (...)
@@ -266,12 +259,6 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
266
259
 
267
260
  static int PlatformTelemetryRegistrationSettings_put_UploadQuotaSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, PyObject* arg, void* /*unused*/) noexcept
268
261
  {
269
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"UploadQuotaSize"))
270
- {
271
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
272
- return -1;
273
- }
274
-
275
262
  if (arg == nullptr)
276
263
  {
277
264
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -280,6 +267,12 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
280
267
 
281
268
  try
282
269
  {
270
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"UploadQuotaSize"))
271
+ {
272
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
273
+ return -1;
274
+ }
275
+
283
276
  auto param0 = py::convert_to<uint32_t>(arg);
284
277
 
285
278
  self->obj.UploadQuotaSize(param0);
@@ -294,14 +287,14 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
294
287
 
295
288
  static PyObject* PlatformTelemetryRegistrationSettings_get_StorageSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, void* /*unused*/) noexcept
296
289
  {
297
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"StorageSize"))
298
- {
299
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
300
- return nullptr;
301
- }
302
-
303
290
  try
304
291
  {
292
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"StorageSize"))
293
+ {
294
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
295
+ return nullptr;
296
+ }
297
+
305
298
  return py::convert(self->obj.StorageSize());
306
299
  }
307
300
  catch (...)
@@ -313,12 +306,6 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
313
306
 
314
307
  static int PlatformTelemetryRegistrationSettings_put_StorageSize(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings* self, PyObject* arg, void* /*unused*/) noexcept
315
308
  {
316
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"StorageSize"))
317
- {
318
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
319
- return -1;
320
- }
321
-
322
309
  if (arg == nullptr)
323
310
  {
324
311
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -327,6 +314,12 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
327
314
 
328
315
  try
329
316
  {
317
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings", L"StorageSize"))
318
+ {
319
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
320
+ return -1;
321
+ }
322
+
330
323
  auto param0 = py::convert_to<uint32_t>(arg);
331
324
 
332
325
  self->obj.StorageSize(param0);
@@ -375,39 +368,35 @@ namespace py::cpp::Windows::System::Diagnostics::Telemetry
375
368
  { }
376
369
  };
377
370
 
378
- static PyType_Slot _type_slots_PlatformTelemetryRegistrationSettings[] =
379
- {
371
+ static PyType_Slot _type_slots_PlatformTelemetryRegistrationSettings[] = {
380
372
  { Py_tp_new, reinterpret_cast<void*>(_new_PlatformTelemetryRegistrationSettings) },
381
373
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformTelemetryRegistrationSettings) },
382
374
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformTelemetryRegistrationSettings) },
383
375
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformTelemetryRegistrationSettings) },
384
- { },
376
+ { }
385
377
  };
386
378
 
387
- static PyType_Spec type_spec_PlatformTelemetryRegistrationSettings =
388
- {
379
+ static PyType_Spec type_spec_PlatformTelemetryRegistrationSettings = {
389
380
  "winrt._winrt_windows_system_diagnostics_telemetry.PlatformTelemetryRegistrationSettings",
390
381
  sizeof(py::wrapper::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings),
391
382
  0,
392
383
  Py_TPFLAGS_DEFAULT,
393
- _type_slots_PlatformTelemetryRegistrationSettings
394
- };
384
+ _type_slots_PlatformTelemetryRegistrationSettings};
395
385
 
396
386
  // ----- Windows.System.Diagnostics.Telemetry Initialization --------------------
397
- PyDoc_STRVAR(module_doc, "Windows::System::Diagnostics::Telemetry");
398
-
399
387
 
400
- static PyModuleDef module_def
401
- = {PyModuleDef_HEAD_INIT,
402
- "_winrt_windows_system_diagnostics_telemetry",
403
- module_doc,
404
- 0,
405
- nullptr,
406
- nullptr,
407
- nullptr,
408
- nullptr,
409
- nullptr};
388
+ PyDoc_STRVAR(module_doc, "Windows.System.Diagnostics.Telemetry");
410
389
 
390
+ static PyModuleDef module_def = {
391
+ PyModuleDef_HEAD_INIT,
392
+ "_winrt_windows_system_diagnostics_telemetry",
393
+ module_doc,
394
+ 0,
395
+ nullptr,
396
+ nullptr,
397
+ nullptr,
398
+ nullptr,
399
+ nullptr};
411
400
  } // py::cpp::Windows::System::Diagnostics::Telemetry
412
401
 
413
402
  PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_telemetry(void) noexcept
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -23,8 +23,7 @@ class PlatformTelemetryClient_Static(type):
23
23
 
24
24
  @typing.final
25
25
  class PlatformTelemetryClient(winrt.system.Object, metaclass=PlatformTelemetryClient_Static):
26
- @staticmethod
27
- def _from(obj: winrt.system.Object, /) -> PlatformTelemetryClient: ...
26
+ pass
28
27
 
29
28
  @typing.final
30
29
  class PlatformTelemetryRegistrationResult(winrt.system.Object):
@@ -37,7 +36,7 @@ class PlatformTelemetryRegistrationResult(winrt.system.Object):
37
36
  class PlatformTelemetryRegistrationSettings(winrt.system.Object):
38
37
  @staticmethod
39
38
  def _from(obj: winrt.system.Object, /) -> PlatformTelemetryRegistrationSettings: ...
40
- def __new__(cls: typing.Type[PlatformTelemetryRegistrationSettings]) -> PlatformTelemetryRegistrationSettings:...
39
+ def __new__(cls: typing.Type[PlatformTelemetryRegistrationSettings]) -> PlatformTelemetryRegistrationSettings: ...
41
40
  @_property
42
41
  def upload_quota_size(self) -> winrt.system.UInt32: ...
43
42
  @upload_quota_size.setter
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Diagnostics.Telemetry
3
- Version: 2.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18