Acquire.Storage._drivemeta module

class DriveMeta(name=None, uid=None, container=None, aclrules=None)[source]

Bases: object

This is a lightweight class that holds the metadata about a Drive

acl()[source]

If known, return the ACL rule for this drive

aclrules()[source]

If known, return the ACL rules for this drive

container_uid()[source]

Return the UID of the drive that contains this drive, at least via the access path followed by the user. This returns None if the user accessed this drive as a top-level drive

container_uids()[source]

Return the UIDs of the full hierarchy of the drives that contain this drive, as this drive was accessed by the user. This returns an empty list if the user accessed this drive as a top-level drive

static from_data(data)[source]

Return an object constructed from the passed json-deserialised dictionary

is_null()[source]

Return whether or not this is null

is_top_level()[source]

Return whether or not this drive was accessed as a top-level drive

name()[source]

Return the name of the drive

resolve_acl(**kwargs)[source]

Resolve the ACL for this file based on the passed arguments (same as for ACLRules.resolve()). This returns the resolved ACL, which is set as self.acl()

to_data()[source]

Return a json-serialisable dictionary of this object

uid()[source]

If known, return the UID of the drive