BucketResource class

Inheritance

Constructors

BucketResource(String name, {ResourcesClient? client, StorageListenerClient? storageListenerClient})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the resource.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allow(List<BucketPermission> permissions) → Bucket
Set the function's required permissions to the bucket.
asRequest() → ResourceDeclareRequest
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(BlobEventType blobEventType, String keyPrefixFilter, BlobEventHandler handler) Future<void>
Create a blob event subscription triggered on the blobEventType filtered by files that match the keyPrefixFilter.
permissionsToActions(List<BucketPermission> permissions) List<Action>
Convert a list of permissions to gRPC actions.
override
register() Future<void>
Register the resource with the Nitric server.
inherited
registerPolicy(List<BucketPermission> permissions) Future<void>
Register a policy with the Nitric server to secure the resource with least-privilege. Handles shutting down the channel.
inherited
toString() String
A string representation of this object.
inherited

Operators

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