Condividi tramite


MongoDBUserDefinitionCreateOrUpdateContent Class

Definition

Parameters to create and update an Azure Cosmos DB Mongo User Definition.

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

Constructors

MongoDBUserDefinitionCreateOrUpdateContent()

Initializes a new instance of MongoDBUserDefinitionCreateOrUpdateContent.

Properties

CustomData

A custom definition for the USer Definition.

DatabaseName

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

Mechanisms

The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.

Password

The password for User Definition. Response does not contain user password.

Roles

The set of roles inherited by the User Definition.

UserName

The user name for User Definition.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBUserDefinitionCreateOrUpdateContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBUserDefinitionCreateOrUpdateContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBUserDefinitionCreateOrUpdateContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBUserDefinitionCreateOrUpdateContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBUserDefinitionCreateOrUpdateContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to