ArmCosmosDBModelFactory.MongoDBUserDefinitionData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MongoDBUserDefinitionData.
public static Azure.ResourceManager.CosmosDB.MongoDBUserDefinitionData MongoDBUserDefinitionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string userName = default, string password = default, string databaseName = default, string customData = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.MongoDBRole> roles = default, string mechanisms = default);
static member MongoDBUserDefinitionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * string * seq<Azure.ResourceManager.CosmosDB.Models.MongoDBRole> * string -> Azure.ResourceManager.CosmosDB.MongoDBUserDefinitionData
Public Shared Function MongoDBUserDefinitionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional userName As String = Nothing, Optional password As String = Nothing, Optional databaseName As String = Nothing, Optional customData As String = Nothing, Optional roles As IEnumerable(Of MongoDBRole) = Nothing, Optional mechanisms As String = Nothing) As MongoDBUserDefinitionData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- userName
- String
The user name for User Definition.
- password
- String
The password for User Definition. Response does not contain user password.
- databaseName
- String
The database name for which access is being granted for this User Definition.
- customData
- String
A custom definition for the USer Definition.
- roles
- IEnumerable<MongoDBRole>
The set of roles inherited by the User Definition.
- mechanisms
- String
The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.
Returns
A new MongoDBUserDefinitionData instance for mocking.