Acquire.Storage._buckethandle module

class BucketHandle(uid=None, compartment=None)[source]

Bases: object

This class represents a handle to a bucket in the object store. This handle can be used to generate pre-authenticated request URLs (PARs - also called pre-signed requests).

Every bucket has a unique UID. It is up to you to map a UID to one or more meaningful names

get_par(writeable=False, valid_duration=3600)[source]

Return a pre-authenticated request result (PAR) to allow access to this bucket. The returned PAR will be valid for ‘valid_duration’ seconds from granting the request. By default PARs are valid for one hour

uid()[source]

Return the UID of this bucket