ArmMongoClusterModelFactory.MongoClusterDatabaseRole 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.
public static Azure.ResourceManager.MongoCluster.Models.MongoClusterDatabaseRole MongoClusterDatabaseRole(string db = default, Azure.ResourceManager.MongoCluster.Models.MongoClusterUserRole role = default);
static member MongoClusterDatabaseRole : string * Azure.ResourceManager.MongoCluster.Models.MongoClusterUserRole -> Azure.ResourceManager.MongoCluster.Models.MongoClusterDatabaseRole
Public Shared Function MongoClusterDatabaseRole (Optional db As String = Nothing, Optional role As MongoClusterUserRole = Nothing) As MongoClusterDatabaseRole
Parameters
- db
- String
Database scope that the role is assigned to.
- role
- MongoClusterUserRole
The role that is assigned to the user on the database scope.
Returns
A new MongoClusterDatabaseRole instance for mocking.