Permission Permission Permission Class

Definition

Represents a per-User permission to access a specific resource in the Azure Cosmos DB service, for example Document or Collection.

public class Permission : Microsoft.Azure.Documents.Resource
type Permission = class
    inherit Resource
Public Class Permission
Inherits Resource
Inheritance

Constructors

Permission() Permission() Permission()

Properties

AltLink AltLink AltLink

Gets the alt-link associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
ETag ETag ETag

Gets the entity tag associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
Id Id Id

Gets or sets the Id of the resource in the Azure Cosmos DB service.

(Inherited from Resource)
PermissionMode PermissionMode PermissionMode

Gets or sets the permission mode in the Azure Cosmos DB service.

ResourceId ResourceId ResourceId

Gets or sets the Resource Id associated with the resource in the Azure Cosmos DB service.

(Inherited from Resource)
ResourceLink ResourceLink ResourceLink

Gets or sets the self-link of resource to which the permission applies in the Azure Cosmos DB service.

ResourcePartitionKey ResourcePartitionKey ResourcePartitionKey

Gets or sets optional partition key value for the permission in the Azure Cosmos DB service. A permission applies to resources when two conditions are met: 1. ResourceLink is prefix of resource's link. For example "/dbs/mydatabase/colls/mycollection" applies to "/dbs/mydatabase/colls/mycollection" and "/dbs/mydatabase/colls/mycollection/docs/mydocument" 2. ResourcePartitionKey is superset of resource's partition key. For example absent/empty partition key is superset of all partition keys.

SelfLink SelfLink SelfLink

Gets the self-link associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
Timestamp Timestamp Timestamp

Gets the last modified timestamp associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
Token Token Token

Gets the access token granting the defined permission from the Azure Cosmos DB service.

Methods

GetPropertyValue<T>(String) GetPropertyValue<T>(String) GetPropertyValue<T>(String)

Gets property value associated with the specified property name from the Azure Cosmos DB service.

(Inherited from Resource)
LoadFrom(JsonReader) LoadFrom(JsonReader) LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
LoadFrom(JsonReader, JsonSerializerSettings) LoadFrom(JsonReader, JsonSerializerSettings) LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy) SaveTo(Stream, SerializationFormattingPolicy) SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings) SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings) SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object)

Sets property value associated with the specified property name in the Azure Cosmos DB service.

(Inherited from Resource)
ToByteArray() ToByteArray() ToByteArray()

Serialize to a byte array via SaveTo for the Azure Cosmos DB service.

(Inherited from Resource)
ToString() ToString() ToString()

Returns the string representation of the object in the Azure Cosmos DB service.

(Inherited from JsonSerializable)

Applies to