pyanaconda.modules.storage.partitioning.automatic.resizable_interface ===================================================================== .. py:module:: pyanaconda.modules.storage.partitioning.automatic.resizable_interface Classes ------- .. autoapisummary:: pyanaconda.modules.storage.partitioning.automatic.resizable_interface.ResizableDeviceTreeInterface Module Contents --------------- .. py:class:: ResizableDeviceTreeInterface Bases: :py:obj:`pyanaconda.modules.storage.devicetree.devicetree_interface.DeviceTreeInterface` DBus interface for the resizable device tree. .. py:method:: IsDevicePartitioned(device_id) Is the specified device partitioned? :param device_id: device ID of the device :return: True or False .. py:method:: IsDeviceShrinkable(device_id) Is the specified device shrinkable? :param device_id: device ID of the device :return: True or False .. py:method:: GetDevicePartitions(device_id) Get partitions of the specified device. :param device_id: device ID of the device :return: a list of device IDs .. py:method:: GetDeviceSizeLimits(device_id) Get size limits of the given device. :param device_id: device ID of the device :return: a tuple of min and max sizes in bytes .. py:method:: ShrinkDevice(device_id, size) Shrink the size of the device. :param device_id: device ID of the device :param size: a new size in bytes .. py:method:: RemoveDevice(device_id) Remove a device after removing its dependent devices. If the device is protected, do nothing. If the device has protected children, just remove the unprotected ones. :param device_id: device ID of the device