CosmosDbUsers class
Class used to manage CosmosDbUsers in a CosmosDB CosmosDbDatabase.
Constructors
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 byid
. By default, this method returnsnull
if the user does not exists. IfthrowOnNotFound
is set totrue
, 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 returnstrue
if the user does not exists. IfthrowOnNotFound
is set totrue
, 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 returnsnull
if the user does not exists. IfthrowOnNotFound
is set totrue
, it will throw a NotFoundException instead. -
list(
{CosmosDbPermission? permission}) → Future< Iterable< CosmosDbUser> > - Lists all collections 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