ArmCosmosDBModelFactory.CosmosDBSqlRoleDefinitionData 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 CosmosDBSqlRoleDefinitionData.
public static Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleDefinitionData CosmosDBSqlRoleDefinitionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string roleName = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBSqlRoleDefinitionType? roleDefinitionType = default, System.Collections.Generic.IEnumerable<string> assignableScopes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.CosmosDBSqlRolePermission> permissions = default);
static member CosmosDBSqlRoleDefinitionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBSqlRoleDefinitionType> * seq<string> * seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBSqlRolePermission> -> Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleDefinitionData
Public Shared Function CosmosDBSqlRoleDefinitionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional roleName As String = Nothing, Optional roleDefinitionType As Nullable(Of CosmosDBSqlRoleDefinitionType) = Nothing, Optional assignableScopes As IEnumerable(Of String) = Nothing, Optional permissions As IEnumerable(Of CosmosDBSqlRolePermission) = Nothing) As CosmosDBSqlRoleDefinitionData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- roleName
- String
A user-friendly name for the Role Definition. Must be unique for the database account.
- roleDefinitionType
- Nullable<CosmosDBSqlRoleDefinitionType>
Indicates whether the Role Definition was built-in or user created.
- assignableScopes
- IEnumerable<String>
A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist.
- permissions
- IEnumerable<CosmosDBSqlRolePermission>
The set of operations allowed through this Role Definition.
Returns
A new CosmosDBSqlRoleDefinitionData instance for mocking.
Applies to
Azure SDK for .NET