CosmosDbPermission class
Class representing a CosmosDB permission.
- Inheritance
-
- Object
- BaseDocument
- CosmosDbPermission
- Mixed-in types
- Available extensions
Constructors
- CosmosDbPermission.new(String id, PermissionMode mode, String resource, [String? token])
Properties
- etag → String
-
The document's
etag
property.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The document's id.
final
- mode → PermissionMode
-
The permission's mode (see PermissionMode).
final
- resource → String
-
The resource covered by this permission.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String?
-
The permission's token generated by CosmosDB.
final
Methods
-
getPartitionKey(
) → CosmosDbPartition -
Available on BaseDocument, provided by the PartitionKeyExt extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setEtag(
Map body) → void -
Set
etag
from a JSON map; to be called by DocumentBuilder methods.inherited -
toJson(
) → Map< String, dynamic> -
Serialization to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
build(
Map json) → CosmosDbPermission - Builds a CosmosDbPermission from a CosmosDB JSON object.