CosmosDbPermissions class
Class used to manage CosmosDbPermissions for CosmosDB CosmosDbUsers.
Constructors
- CosmosDbPermissions(CosmosDbUsers _users)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
CosmosDbUser user, String name, {Duration? expiry, CosmosDbPermission? permission}) → Future< CosmosDbPermission?> -
Retrieves permission with id
name
for the specifieduser
. -
grant(
CosmosDbUser user, CosmosDbPermission userPermission, {Duration? expiry, CosmosDbPermission? permission}) → Future< CosmosDbPermission> -
Grants the
user
the specifieduserPermission
. -
list(
CosmosDbUser user, {CosmosDbPermission? permission}) → Future< Iterable< CosmosDbPermission> > -
Lists permissions for a
user
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
CosmosDbUser user, CosmosDbPermission userPermission, {Duration? expiry, CosmosDbPermission? permission}) → Future< CosmosDbPermission> -
Updates the
userPermission
for the specifieduser
. -
revoke(
CosmosDbUser user, String name, {bool throwOnNotFound = false, CosmosDbPermission? permission}) → Future< bool> -
Revokes permission with
id
for the specifieduser
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited