StorageBucket class

Inheritance

Constructors

StorageBucket(String uuid, {Map<String, dynamic>? data})
Constructor which should only be called via Storage class. @param uuid Unique identifier of the bucket. @param data Data to populate storage bucket with.

Properties

apiPrefix String?
API url prefix for this class.
getter/setter pairinherited
content List<ApillonModel>
Bucket content which are files and directories.
getter/setter pair
createTime String?
The object's creation date
getter/setter pairinherited
description String?
Bucket description.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
Name of the bucket.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
Size of the bucket in bytes.
getter/setter pair
updateTime String?
The date when the object was last updated
getter/setter pairinherited
uuid String
Unique identifier of the model.
getter/setter pairinherited

Methods

createIpns(ICreateIpns body) Future<Ipns>
Create a new IPNS record for this bucket @param {ICreateIpns} body @returns New IPNS instance
directory(String directoryUuid) Directory
Gets a directory instance. @param directoryUuid UUID of the directory. @returns Directory instance.
file(String fileUuid) File
Gets file instance. @param fileUuid UUID of the file. @returns File instance.
get() Future<StorageBucket>
Gets bucket details. @returns Bucket instance
ipns(String ipnsUuid) Ipns
Gets an IPNS record instance. @param ipnsUuid UUID of the IPNS record. @returns Ipns instance.
listFiles(IBucketFilesRequest? params) Future<IApillonList<File>>
Gets all files in a bucket. @param {?IBucketFilesRequest} params - query filter parameters @returns List of files in the bucket
listIpnsNames(IPNSListRequest? params) Future<IApillonList<Ipns>>
listObjects(IStorageBucketContentRequest? params) Future<IApillonList>
Gets contents of a bucket. @returns A a list of File and Directory objects.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populate(dynamic data) → dynamic
Populates class properties via data object. @param data Data object.
override
resolveFileCIDs(String sessionUuid, int limit) Future<List<FileUploadResult>>
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
uploadFiles(List<FileMetadata> files, IFileUploadRequest? params) Future<List<FileUploadResult>>
Uploads files to the bucket. @param {FileMetadata[]} files - The files to be uploaded @param {IFileUploadRequest} params - Optional parameters to be used for uploading files
uploadFromFolder(String folderPath, IFileUploadRequest? params) Future<List<FileUploadResult>>
Uploads files inside a local folder via path. @param folderPath Path to the folder to upload. @param {IFileUploadRequest} params - Optional parameters to be used for uploading files @returns List of uploaded files with their properties

Operators

operator ==(Object other) bool
The equality operator.
inherited