pyanaconda.modules.storage.partitioning.interactive.scheduler_interface ======================================================================= .. py:module:: pyanaconda.modules.storage.partitioning.interactive.scheduler_interface Classes ------- .. autoapisummary:: pyanaconda.modules.storage.partitioning.interactive.scheduler_interface.DeviceTreeSchedulerInterface Module Contents --------------- .. py:class:: DeviceTreeSchedulerInterface Bases: :py:obj:`pyanaconda.modules.storage.devicetree.devicetree_interface.DeviceTreeInterface` DBus interface for the device tree scheduler. .. py:method:: IsDevice(device_id) Is the specified device in the device tree? It can recognize also hidden and incomplete devices. :param device_id: ID of the device :return: True or False .. py:method:: IsDeviceLocked(device_id) Is the specified device locked? :param device_id: ID of the device :return: True or False .. py:method:: IsDeviceEditable(device_id) Is the specified device editable? :param device_id: ID of the device :return: True or False .. py:method:: CheckCompleteness(device_id) Check that the specified device is complete. :param device_id: ID of the device :return: a validation report .. py:method:: GetDefaultFileSystem() Get the default type of a filesystem. :return: a filesystem name .. py:method:: GetDefaultLUKSVersion() Get the default version of LUKS. :return: a version of LUKS .. py:method:: GetContainerFreeSpace(container_name) Get total free space in the specified container. :param container_name: device ID of the container :return: a size in bytes .. py:method:: GenerateSystemName() Generate a name of the new installation. :return: a translated string .. py:method:: GenerateSystemData(boot_drive) Generate the new installation data. :param boot_drive: a name of the boot drive :return: a structure with data about the new installation .. py:method:: GenerateDeviceName(mount_point, format_type) Get a suggestion for a device name. :param mount_point: a mount point :param format_type: a format type :return: a generated device name .. py:method:: GenerateContainerName() Get a suggestion for a container name. :return: a generated container name .. py:method:: GenerateDeviceFactoryRequest(device_id) Generate a device factory request for the given device. The request will reflect the current state of the device. It can be modified and used to change the device. :param device_id: a device ID :return: a device factory request .. py:method:: GenerateDeviceFactoryPermissions(request) Generate device factory permissions for the given request. The permissions will reflect which device attributes we are allowed to change in the requested device. :param request: a device factory request :return: device factory permissions .. py:method:: GenerateContainerData(request) Generate the container data for the device factory request. :param request: a device factory request :return: a device factory request .. py:method:: UpdateContainerData(request, container_name) Update the container data in the device factory request. :param request: a device factory request :param container_name: a container name :return: a device factory request .. py:method:: CollectNewDevices(boot_drive) Get all new devices in the device tree. FIXME: Remove the boot drive option. :param boot_drive: a name of the boot drive :return: a list of device names .. py:method:: CollectUnusedDevices() Collect all devices that are not used in existing or new installations. :return: a list of device names .. py:method:: CollectUnusedMountPoints() Collect mount points that can be assigned to a device. :return: a list of mount points .. py:method:: CollectContainers(device_type) Collect containers of the given type. :param device_type: a device type :return: a list of container names .. py:method:: CollectSupportedSystems() Collect supported existing or new installations. :return: a list of data about found installations .. py:method:: GetDeviceTypesForDevice(device_id) Collect supported device types for the given device. :param device_id: a device ID :return: a list of device types .. py:method:: GetFileSystemsForDevice(device_id) Get supported file system types for the given device. :param device_id: a device ID :return: a list of file system names .. py:method:: GetSupportedRaidLevels(device_type) Get RAID levels for the specified device type. :param device_type: a type of the device :return: a list of RAID level names .. py:method:: ValidateMountPoint(mount_point) Validate the given mount point. :param mount_point: a path to a mount point :return: a validation report .. py:method:: ValidateRaidLevel(raid_level, num_members) Validate the given RAID level. :param raid_level: a RAID level name :param num_members: a number of members :return: a validation report .. py:method:: ValidateContainerName(name) Validate the given container name. :param name: a container name :return: a validation report .. py:method:: ValidateDeviceFactoryRequest(request) Validate the given device factory request. :param request: a device factory request :return: a validation report .. py:method:: AddDevice(request) Add a new device to the storage model. :param request: a device factory request :raise: StorageConfigurationError if the device cannot be created .. py:method:: ChangeDevice(request, original_request) Change a device in the storage model. FIXME: Remove the original request from the arguments. :param request: a device factory request :param original_request: an original device factory request :raise: StorageConfigurationError if the device cannot be changed .. py:method:: ResetDevice(device_id) Reset the specified device in the storage model. FIXME: Merge with DestroyDevice. :param device_id: ID of the device :raise: StorageConfigurationError in case of failure .. py:method:: DestroyDevice(device_id) Destroy the specified device in the storage model. :param device_id: ID of the device :raise: StorageConfigurationError in case of failure .. py:method:: SchedulePartitionsWithTask(request) Schedule the partitioning actions. Generate the automatic partitioning configuration using the given request. :param: a partitioning request :return: a DBus path to a task