winrt-Windows.Networking.Vpn 2.2.0__tar.gz → 2.3.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 (20) hide show
  1. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/PKG-INFO +11 -11
  2. winrt_windows_networking_vpn-2.3.0/all-requirements.txt +11 -0
  3. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/py.Windows.Networking.Vpn.cpp +114 -1
  4. winrt_windows_networking_vpn-2.3.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/requirements.txt +2 -2
  6. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt/_winrt_windows_networking_vpn.pyi +9 -3
  7. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt/windows/networking/vpn/__init__.py +3 -1
  8. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt_Windows.Networking.Vpn.egg-info/PKG-INFO +11 -11
  9. winrt_windows_networking_vpn-2.3.0/winrt_Windows.Networking.Vpn.egg-info/requires.txt +12 -0
  10. winrt_windows_networking_vpn-2.2.0/all-requirements.txt +0 -11
  11. winrt_windows_networking_vpn-2.2.0/pywinrt-version.txt +0 -1
  12. winrt_windows_networking_vpn-2.2.0/winrt_Windows.Networking.Vpn.egg-info/requires.txt +0 -12
  13. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/README.md +0 -0
  14. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/pyproject.toml +0 -0
  15. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/setup.py +0 -0
  17. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt/windows/networking/vpn/py.typed +0 -0
  18. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt_Windows.Networking.Vpn.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt_Windows.Networking.Vpn.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_networking_vpn-2.2.0 → winrt_windows_networking_vpn-2.3.0}/winrt_Windows.Networking.Vpn.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.Vpn
3
- Version: 2.2.0
3
+ Version: 2.3.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,17 +12,17 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking[all]==2.2.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.2.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.2.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all]==2.2.0; extra == "all"
24
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
25
- Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all]==2.3.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
25
+ Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
26
26
 
27
27
  <!-- warning: Please don't edit this file. It was automatically generated. -->
28
28
 
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.ApplicationModel.Activation[all]==2.3.0
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Foundation.Collections[all]==2.3.0
6
+ winrt-Windows.Networking[all]==2.3.0
7
+ winrt-Windows.Networking.Sockets[all]==2.3.0
8
+ winrt-Windows.Security.Credentials[all]==2.3.0
9
+ winrt-Windows.Security.Cryptography.Certificates[all]==2.3.0
10
+ winrt-Windows.Storage.Streams[all]==2.3.0
11
+ winrt-Windows.System[all]==2.3.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  #include "py.Windows.Networking.Vpn.h"
4
4
 
@@ -12606,6 +12606,113 @@ namespace py::cpp::Windows::Networking::Vpn
12606
12606
  Py_TPFLAGS_DEFAULT,
12607
12607
  _type_slots_IVpnPlugIn};
12608
12608
 
12609
+ // ----- IVpnPlugInReconnectTransport interface --------------------
12610
+
12611
+ static PyObject* _new_IVpnPlugInReconnectTransport(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
12612
+ {
12613
+ static_assert(py::py_type<winrt::Windows::Networking::Vpn::IVpnPlugInReconnectTransport>::type_name);
12614
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Networking::Vpn::IVpnPlugInReconnectTransport>::type_name);
12615
+ return nullptr;
12616
+ }
12617
+
12618
+ static void _dealloc_IVpnPlugInReconnectTransport(py::wrapper::Windows::Networking::Vpn::IVpnPlugInReconnectTransport* self) noexcept
12619
+ {
12620
+ auto tp = Py_TYPE(self);
12621
+ std::destroy_at(&self->obj);
12622
+ tp->tp_free(self);
12623
+ Py_DECREF(tp);
12624
+ }
12625
+
12626
+ static PyObject* IVpnPlugInReconnectTransport_ReconnectTransport(py::wrapper::Windows::Networking::Vpn::IVpnPlugInReconnectTransport* self, PyObject* args) noexcept
12627
+ {
12628
+ auto arg_count = PyTuple_Size(args);
12629
+
12630
+ if (arg_count == 2)
12631
+ {
12632
+ try
12633
+ {
12634
+ static std::optional<bool> is_overload_present{};
12635
+
12636
+ if (!is_overload_present.has_value())
12637
+ {
12638
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.Vpn.IVpnPlugInReconnectTransport", L"ReconnectTransport", 2);
12639
+ }
12640
+
12641
+ if (!is_overload_present.value())
12642
+ {
12643
+ py::set_arg_count_version_error(2);
12644
+ return nullptr;
12645
+ }
12646
+
12647
+ auto param0 = py::convert_to<winrt::Windows::Networking::Vpn::VpnChannel>(args, 0);
12648
+ auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
12649
+
12650
+ self->obj.ReconnectTransport(param0, param1);
12651
+ Py_RETURN_NONE;
12652
+ }
12653
+ catch (...)
12654
+ {
12655
+ py::to_PyErr();
12656
+ return nullptr;
12657
+ }
12658
+ }
12659
+ else
12660
+ {
12661
+ py::set_invalid_arg_count_error(arg_count);
12662
+ return nullptr;
12663
+ }
12664
+ }
12665
+
12666
+ static PyObject* _assign_array_IVpnPlugInReconnectTransport(PyObject* /*unused*/, PyObject* arg) noexcept
12667
+ {
12668
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Networking::Vpn::IVpnPlugInReconnectTransport>>();
12669
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
12670
+ {
12671
+ return nullptr;
12672
+ }
12673
+ Py_RETURN_NONE;
12674
+ }
12675
+
12676
+ static PyObject* _from_IVpnPlugInReconnectTransport(PyObject* /*unused*/, PyObject* arg) noexcept
12677
+ {
12678
+ try
12679
+ {
12680
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
12681
+ return py::convert(return_value.as<winrt::Windows::Networking::Vpn::IVpnPlugInReconnectTransport>());
12682
+ }
12683
+ catch (...)
12684
+ {
12685
+ py::to_PyErr();
12686
+ return nullptr;
12687
+ }
12688
+ }
12689
+
12690
+ static PyMethodDef _methods_IVpnPlugInReconnectTransport[] = {
12691
+ { "reconnect_transport", reinterpret_cast<PyCFunction>(IVpnPlugInReconnectTransport_ReconnectTransport), METH_VARARGS, nullptr },
12692
+ { "_assign_array_", _assign_array_IVpnPlugInReconnectTransport, METH_O | METH_STATIC, nullptr },
12693
+ { "_from", reinterpret_cast<PyCFunction>(_from_IVpnPlugInReconnectTransport), METH_O | METH_STATIC, nullptr },
12694
+ { }
12695
+ };
12696
+
12697
+ static PyGetSetDef _getset_IVpnPlugInReconnectTransport[] = {
12698
+ { }
12699
+ };
12700
+
12701
+ static PyType_Slot _type_slots_IVpnPlugInReconnectTransport[] = {
12702
+ { Py_tp_new, reinterpret_cast<void*>(_new_IVpnPlugInReconnectTransport) },
12703
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IVpnPlugInReconnectTransport) },
12704
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_IVpnPlugInReconnectTransport) },
12705
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_IVpnPlugInReconnectTransport) },
12706
+ { }
12707
+ };
12708
+
12709
+ static PyType_Spec type_spec_IVpnPlugInReconnectTransport = {
12710
+ "winrt._winrt_windows_networking_vpn.IVpnPlugInReconnectTransport",
12711
+ sizeof(py::wrapper::Windows::Networking::Vpn::IVpnPlugInReconnectTransport),
12712
+ 0,
12713
+ Py_TPFLAGS_DEFAULT,
12714
+ _type_slots_IVpnPlugInReconnectTransport};
12715
+
12609
12716
  // ----- IVpnProfile interface --------------------
12610
12717
 
12611
12718
  static PyObject* _new_IVpnProfile(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
@@ -13375,6 +13482,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking_vpn(void) noexcept
13375
13482
  return nullptr;
13376
13483
  }
13377
13484
 
13485
+ py::pytype_handle IVpnPlugInReconnectTransport_type{py::register_python_type(module.get(), &type_spec_IVpnPlugInReconnectTransport, object_bases.get(), nullptr)};
13486
+ if (!IVpnPlugInReconnectTransport_type)
13487
+ {
13488
+ return nullptr;
13489
+ }
13490
+
13378
13491
  py::pytype_handle IVpnProfile_type{py::register_python_type(module.get(), &type_spec_IVpnProfile, object_bases.get(), nullptr)};
13379
13492
  if (!IVpnProfile_type)
13380
13493
  {
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -409,7 +409,7 @@ class VpnForegroundActivationOperation(winrt.system.Object):
409
409
  class VpnInterfaceId(winrt.system.Object):
410
410
  @staticmethod
411
411
  def _from(obj: winrt.system.Object, /) -> VpnInterfaceId: ...
412
- def __new__(cls: typing.Type[VpnInterfaceId], address: winrt.system.Array[winrt.system.UInt8]) -> VpnInterfaceId: ...
412
+ def __new__(cls: typing.Type[VpnInterfaceId], address: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer]) -> VpnInterfaceId: ...
413
413
  def get_address_info(self) -> winrt.system.Array[winrt.system.UInt8]: ...
414
414
 
415
415
  @typing.final
@@ -760,7 +760,7 @@ class IVpnDomainNameInfoFactory(winrt.system.Object):
760
760
  class IVpnInterfaceIdFactory(winrt.system.Object):
761
761
  @staticmethod
762
762
  def _from(obj: winrt.system.Object, /) -> IVpnInterfaceIdFactory: ...
763
- def create_vpn_interface_id(self, address: winrt.system.Array[winrt.system.UInt8], /) -> typing.Optional[VpnInterfaceId]: ...
763
+ def create_vpn_interface_id(self, address: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> typing.Optional[VpnInterfaceId]: ...
764
764
 
765
765
  @typing.final
766
766
  class IVpnNamespaceInfoFactory(winrt.system.Object):
@@ -784,6 +784,12 @@ class IVpnPlugIn(winrt.system.Object):
784
784
  def encapsulate(self, channel: typing.Optional[VpnChannel], packets: typing.Optional[VpnPacketBufferList], encapulated_packets: typing.Optional[VpnPacketBufferList], /) -> None: ...
785
785
  def get_keep_alive_payload(self, channel: typing.Optional[VpnChannel], /) -> typing.Optional[VpnPacketBuffer]: ...
786
786
 
787
+ @typing.final
788
+ class IVpnPlugInReconnectTransport(winrt.system.Object):
789
+ @staticmethod
790
+ def _from(obj: winrt.system.Object, /) -> IVpnPlugInReconnectTransport: ...
791
+ def reconnect_transport(self, channel: typing.Optional[VpnChannel], context: typing.Optional[winrt.system.Object], /) -> None: ...
792
+
787
793
  @typing.final
788
794
  class IVpnProfile(winrt.system.Object):
789
795
  @staticmethod
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import enum
4
4
 
@@ -61,6 +61,7 @@ __all__ = [
61
61
  "IVpnNamespaceInfoFactory",
62
62
  "IVpnPacketBufferFactory",
63
63
  "IVpnPlugIn",
64
+ "IVpnPlugInReconnectTransport",
64
65
  "IVpnProfile",
65
66
  "IVpnRouteFactory",
66
67
  ]
@@ -194,5 +195,6 @@ IVpnInterfaceIdFactory = _winrt_windows_networking_vpn.IVpnInterfaceIdFactory
194
195
  IVpnNamespaceInfoFactory = _winrt_windows_networking_vpn.IVpnNamespaceInfoFactory
195
196
  IVpnPacketBufferFactory = _winrt_windows_networking_vpn.IVpnPacketBufferFactory
196
197
  IVpnPlugIn = _winrt_windows_networking_vpn.IVpnPlugIn
198
+ IVpnPlugInReconnectTransport = _winrt_windows_networking_vpn.IVpnPlugInReconnectTransport
197
199
  IVpnProfile = _winrt_windows_networking_vpn.IVpnProfile
198
200
  IVpnRouteFactory = _winrt_windows_networking_vpn.IVpnRouteFactory
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.Vpn
3
- Version: 2.2.0
3
+ Version: 2.3.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,17 +12,17 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking[all]==2.2.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.2.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.2.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all]==2.2.0; extra == "all"
24
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
25
- Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Activation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all]==2.3.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
25
+ Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
26
26
 
27
27
  <!-- warning: Please don't edit this file. It was automatically generated. -->
28
28
 
@@ -0,0 +1,12 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Activation[all]==2.3.0
5
+ winrt-Windows.Foundation[all]==2.3.0
6
+ winrt-Windows.Foundation.Collections[all]==2.3.0
7
+ winrt-Windows.Networking[all]==2.3.0
8
+ winrt-Windows.Networking.Sockets[all]==2.3.0
9
+ winrt-Windows.Security.Credentials[all]==2.3.0
10
+ winrt-Windows.Security.Cryptography.Certificates[all]==2.3.0
11
+ winrt-Windows.Storage.Streams[all]==2.3.0
12
+ winrt-Windows.System[all]==2.3.0
@@ -1,11 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.ApplicationModel.Activation[all]==2.2.0
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.Foundation.Collections[all]==2.2.0
6
- winrt-Windows.Networking[all]==2.2.0
7
- winrt-Windows.Networking.Sockets[all]==2.2.0
8
- winrt-Windows.Security.Credentials[all]==2.2.0
9
- winrt-Windows.Security.Cryptography.Certificates[all]==2.2.0
10
- winrt-Windows.Storage.Streams[all]==2.2.0
11
- winrt-Windows.System[all]==2.2.0
@@ -1 +0,0 @@
1
- 2.2.0
@@ -1,12 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.Activation[all]==2.2.0
5
- winrt-Windows.Foundation[all]==2.2.0
6
- winrt-Windows.Foundation.Collections[all]==2.2.0
7
- winrt-Windows.Networking[all]==2.2.0
8
- winrt-Windows.Networking.Sockets[all]==2.2.0
9
- winrt-Windows.Security.Credentials[all]==2.2.0
10
- winrt-Windows.Security.Cryptography.Certificates[all]==2.2.0
11
- winrt-Windows.Storage.Streams[all]==2.2.0
12
- winrt-Windows.System[all]==2.2.0