Language

DatabaseRole Class

Definition

Database role definition that is assigned to a user.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.DatabaseRoleTypeConverter))]
public class DatabaseRole : Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.IDatabaseRole
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.DatabaseRoleTypeConverter))>]
type DatabaseRole = class
    interface IDatabaseRole
    interface IJsonSerializable
Public Class DatabaseRole
Implements IDatabaseRole
Inheritance
DatabaseRole
Attributes
Implements

Constructors

Name Description
DatabaseRole()

Creates an new DatabaseRole instance.

Properties

Name Description
Db

Database scope that the role is assigned to.

Role

The role that is assigned to the user on the database scope.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DatabaseRole.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DatabaseRole.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.IDatabaseRole.

FromJsonString(String)

Creates a new instance of DatabaseRole, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DatabaseRole into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to