ArmCosmosDBModelFactory.CosmosDBSqlRoleAssignmentData 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 CosmosDBSqlRoleAssignmentData.
public static Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleAssignmentData CosmosDBSqlRoleAssignmentData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier roleDefinitionId = default, string scope = default, Guid? principalId = default);
static member CosmosDBSqlRoleAssignmentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * string * Nullable<Guid> -> Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleAssignmentData
Public Shared Function CosmosDBSqlRoleAssignmentData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional roleDefinitionId As ResourceIdentifier = Nothing, Optional scope As String = Nothing, Optional principalId As Nullable(Of Guid) = Nothing) As CosmosDBSqlRoleAssignmentData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- roleDefinitionId
- ResourceIdentifier
The unique identifier for the associated Role Definition.
- scope
- String
The data plane resource path for which access is being granted through this Role Assignment.
The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
Returns
A new CosmosDBSqlRoleAssignmentData instance for mocking.