CosmosDbPermission class

Class representing a CosmosDB permission.

Inheritance
Mixed in types

Constructors

CosmosDbPermission(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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setEtag(Map json) → void
Set etag from a JSON map; to be called by DocumentBuilder methods.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON object.
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.