ArmCosmosDBModelFactory.CosmosDBTableRoleDefinitionData 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 CosmosDBTableRoleDefinitionData.
public static Azure.ResourceManager.CosmosDB.CosmosDBTableRoleDefinitionData CosmosDBTableRoleDefinitionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string pathId = 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.CosmosDBTableRolePermission> permissions = default);
static member CosmosDBTableRoleDefinitionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBSqlRoleDefinitionType> * seq<string> * seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBTableRolePermission> -> Azure.ResourceManager.CosmosDB.CosmosDBTableRoleDefinitionData
Public Shared Function CosmosDBTableRoleDefinitionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional pathId As String = 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 CosmosDBTableRolePermission) = Nothing) As CosmosDBTableRoleDefinitionData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- pathId
- String
The path id for the Role Definition.
- 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 Table 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<CosmosDBTableRolePermission>
The set of operations allowed through this Role Definition.
Returns
A new CosmosDBTableRoleDefinitionData instance for mocking.
Applies to
Azure SDK for .NET