def __init__( self, UUID=None, Name=None, Number=None, Device=None, Size=None, Offset=None, Flags=None, Filesystem=None, Required=None ): """ Construct a Partition object specified by :param UUID: optional partitions UUID :param Name: optional partitions name :param Device: optional parent hard drives Disk object :param Number: optional number of the partition of the partition on parent device :param Size: not yet supported :param Offset: not yet supported :param Flags: not yet supported :param Filesystem: not yet supported :return: not yet supported """ rewrite_attributes( self, list(self._PartitionsAttributes)+['Required'], locals() )
def __init__( self, DeviceHandle=None, SerialNumber=None, Partitions=None, Name=None ): if DeviceHandle is not None: self.construct_from_handle(DeviceHandle) else: rewrite_attributes(self, self._DiskAttributes, locals())