2025-02-14 17:42:48 -07:00

319 lines
7.3 KiB
Python

from __future__ import annotations
from typing import Any, Dict, List, Tuple
from sdbus import (
DbusDeprecatedFlag,
DbusInterfaceCommonAsync,
DbusNoReplyFlag,
DbusPropertyConstFlag,
DbusPropertyEmitsChangeFlag,
DbusPropertyEmitsInvalidationFlag,
DbusPropertyExplicitFlag,
DbusUnprivilegedFlag,
dbus_method_async,
dbus_property_async,
dbus_signal_async,
)
class OrgFreedesktopNetwork1ManagerInterface(
DbusInterfaceCommonAsync,
interface_name="org.freedesktop.network1.Manager",
):
@dbus_method_async(
result_signature="a(iso)",
result_args_names=('links',),
flags=DbusUnprivilegedFlag,
)
async def list_links(
self,
) -> List[Tuple[int, str, str]]:
raise NotImplementedError
@dbus_method_async(
input_signature="s",
result_signature="io",
result_args_names=('ifindex', 'path'),
flags=DbusUnprivilegedFlag,
)
async def get_link_by_name(
self,
name: str,
) -> Tuple[int, str]:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_signature="so",
result_args_names=('name', 'path'),
flags=DbusUnprivilegedFlag,
)
async def get_link_by_index(
self,
ifindex: int,
) -> Tuple[str, str]:
raise NotImplementedError
@dbus_method_async(
input_signature="ias",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_ntp(
self,
ifindex: int,
servers: List[str],
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="ia(iay)",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_dns(
self,
ifindex: int,
addresses: List[Tuple[int, bytes]],
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="ia(iayqs)",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_dnsex(
self,
ifindex: int,
addresses: List[Tuple[int, bytes, int, str]],
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="ia(sb)",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_domains(
self,
ifindex: int,
domains: List[Tuple[str, bool]],
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="ib",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_default_route(
self,
ifindex: int,
enable: bool,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="is",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_llmnr(
self,
ifindex: int,
mode: str,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="is",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_multicast_dns(
self,
ifindex: int,
mode: str,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="is",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_dnsover_tls(
self,
ifindex: int,
mode: str,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="is",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_dnssec(
self,
ifindex: int,
mode: str,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="ias",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def set_link_dnssecnegative_trust_anchors(
self,
ifindex: int,
names: List[str],
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def revert_link_ntp(
self,
ifindex: int,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def revert_link_dns(
self,
ifindex: int,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def renew_link(
self,
ifindex: int,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def force_renew_link(
self,
ifindex: int,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def reconfigure_link(
self,
ifindex: int,
) -> None:
raise NotImplementedError
@dbus_method_async(
result_args_names=(),
flags=DbusUnprivilegedFlag,
)
async def reload(
self,
) -> None:
raise NotImplementedError
@dbus_method_async(
input_signature="i",
result_signature="s",
result_args_names=('json',),
flags=DbusUnprivilegedFlag,
)
async def describe_link(
self,
ifindex: int,
) -> str:
raise NotImplementedError
@dbus_method_async(
result_signature="s",
result_args_names=('json',),
flags=DbusUnprivilegedFlag,
)
async def describe(
self,
) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="s",
flags=DbusPropertyEmitsChangeFlag,
)
def operational_state(self) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="s",
flags=DbusPropertyEmitsChangeFlag,
)
def carrier_state(self) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="s",
flags=DbusPropertyEmitsChangeFlag,
)
def address_state(self) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="s",
flags=DbusPropertyEmitsChangeFlag,
)
def ipv4_address_state(self) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="s",
flags=DbusPropertyEmitsChangeFlag,
)
def ipv6_address_state(self) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="s",
flags=DbusPropertyEmitsChangeFlag,
)
def online_state(self) -> str:
raise NotImplementedError
@dbus_property_async(
property_signature="t",
flags=DbusPropertyConstFlag,
)
def namespace_id(self) -> int:
raise NotImplementedError
@dbus_property_async(
property_signature="u",
)
def namespace_nsid(self) -> int:
raise NotImplementedError