CosmosDbUsers class

Class used to manage CosmosDbUsers in a CosmosDB CosmosDbDatabase.

Constructors

CosmosDbUsers(CosmosDbDatabase db)

Properties

database CosmosDbDatabase
final
hashCode int
The hash code for this object.
no setterinherited
permissions CosmosDbPermissions
Provides access to permissions associated with CosmosDbUsers.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

add(CosmosDbUser user, {CosmosDbPermission? permission}) Future<CosmosDbUser>
Adds user to the database the user identified by id. By default, this method returns null if the user does not exists. If throwOnNotFound is set to true, it will throw a NotFoundException instead.
delete(String id, {bool throwOnNotFound = false, CosmosDbPermission? permission}) Future<bool>
Deletes the user identified by id. By default, this method returns true if the user does not exists. If throwOnNotFound is set to true, it will throw a NotFoundException instead.
find(String id, {bool throwOnNotFound = false, CosmosDbPermission? permission}) Future<CosmosDbUser?>
Finds the user identified by id. By default, this method returns null if the user does not exists. If throwOnNotFound is set to true, it will throw a NotFoundException instead.
list({CosmosDbPermission? permission}) Future<Iterable<CosmosDbUser>>
Lists all containers from this database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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