Dela via


MongoDBRoleDefinitionData Class

Definition

A class representing the MongoDBRoleDefinition data model. An Azure Cosmos DB Mongo Role Definition.

public class MongoDBRoleDefinitionData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.MongoDBRoleDefinitionData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.MongoDBRoleDefinitionData>
type MongoDBRoleDefinitionData = class
    inherit ResourceData
    interface IJsonModel<MongoDBRoleDefinitionData>
    interface IPersistableModel<MongoDBRoleDefinitionData>
Public Class MongoDBRoleDefinitionData
Inherits ResourceData
Implements IJsonModel(Of MongoDBRoleDefinitionData), IPersistableModel(Of MongoDBRoleDefinitionData)
Inheritance
MongoDBRoleDefinitionData
Implements

Constructors

MongoDBRoleDefinitionData()

Initializes a new instance of MongoDBRoleDefinitionData.

Properties

DatabaseName

The database name for which access is being granted for this Role Definition.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
Privileges

A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
RoleDefinitionType

Indicates whether the Role Definition was built-in or user created.

RoleName

A user-friendly name for the Role Definition. Must be unique for the database account.

Roles

The set of roles inherited by this Role Definition.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<MongoDBRoleDefinitionData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MongoDBRoleDefinitionData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBRoleDefinitionData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBRoleDefinitionData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MongoDBRoleDefinitionData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to