use std::collections::HashMap;
use zbus::proxy;
use zbus::zvariant::{OwnedValue, Value};
#[proxy(
interface = "org.freedesktop.NetworkManager.Settings.Connection",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait Connection {
fn clear_secrets(&self) -> zbus::Result<()>;
fn delete(&self) -> zbus::Result<()>;
fn get_secrets(
&self,
setting_name: &str,
) -> zbus::Result<HashMap<String, HashMap<String, OwnedValue>>>;
fn get_settings(&self) -> zbus::Result<HashMap<String, HashMap<String, OwnedValue>>>;
fn save(&self) -> zbus::Result<()>;
fn update(&self, properties: HashMap<&str, HashMap<&str, &Value<'_>>>) -> zbus::Result<()>;
fn update2(
&self,
settings: HashMap<&str, HashMap<&str, &Value<'_>>>,
flags: u32,
args: HashMap<&str, &Value<'_>>,
) -> zbus::Result<HashMap<String, OwnedValue>>;
fn update_unsaved(
&self,
properties: HashMap<&str, HashMap<&str, &Value<'_>>>,
) -> zbus::Result<()>;
#[zbus(signal)]
fn removed(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn updated(&self) -> zbus::Result<()>;
#[zbus(property)]
fn filename(&self) -> zbus::Result<String>;
#[zbus(property)]
fn flags(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn unsaved(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn version_id(&self) -> zbus::Result<u64>;
}