use zbus::dbus_proxy;
#[dbus_proxy(interface = "org.freedesktop.UDisks2.MDRaid")]
trait MDRaid {
fn add_device(
&self,
device: &zbus::zvariant::ObjectPath<'_>,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn delete(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn remove_device(
&self,
device: &zbus::zvariant::ObjectPath<'_>,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn request_sync_action(
&self,
sync_action: &str,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn set_bitmap_location(
&self,
value: &[u8],
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn start(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn stop(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
#[dbus_proxy(property)]
fn active_devices(
&self,
) -> zbus::Result<
Vec<(
zbus::zvariant::OwnedObjectPath,
i32,
Vec<String>,
u64,
std::collections::HashMap<String, zbus::zvariant::OwnedValue>,
)>,
>;
#[dbus_proxy(property)]
fn bitmap_location(&self) -> zbus::Result<Vec<u8>>;
#[dbus_proxy(property)]
fn child_configuration(
&self,
) -> zbus::Result<
Vec<(
String,
std::collections::HashMap<String, zbus::zvariant::OwnedValue>,
)>,
>;
#[dbus_proxy(property)]
fn chunk_size(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn degraded(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn level(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn name(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn num_devices(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn running(&self) -> zbus::Result<bool>;
#[dbus_proxy(property)]
fn size(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn sync_action(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn sync_completed(&self) -> zbus::Result<f64>;
#[dbus_proxy(property)]
fn sync_rate(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn sync_remaining_time(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn uuid(&self) -> zbus::Result<String>;
}