Share via


ArmAuthorizationModelFactory.RoleAssignmentData Method

Definition

Initializes a new instance of RoleAssignmentData.

public static Azure.ResourceManager.Authorization.RoleAssignmentData RoleAssignmentData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string scope = default, Azure.Core.ResourceIdentifier roleDefinitionId = default, Guid? principalId = default, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default, string description = default, string condition = default, string conditionVersion = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, string createdBy = default, string updatedBy = default, Azure.Core.ResourceIdentifier delegatedManagedIdentityResourceId = default);
static member RoleAssignmentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Azure.Core.ResourceIdentifier * Nullable<Guid> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType> * string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Authorization.RoleAssignmentData
Public Shared Function RoleAssignmentData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional scope As String = Nothing, Optional roleDefinitionId As ResourceIdentifier = Nothing, Optional principalId As Nullable(Of Guid) = Nothing, Optional principalType As Nullable(Of RoleManagementPrincipalType) = Nothing, Optional description As String = Nothing, Optional condition As String = Nothing, Optional conditionVersion As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional createdBy As String = Nothing, Optional updatedBy As String = Nothing, Optional delegatedManagedIdentityResourceId As ResourceIdentifier = Nothing) As RoleAssignmentData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

scope
String

The role assignment scope.

roleDefinitionId
ResourceIdentifier

The role definition ID.

principalId
Nullable<Guid>

The principal ID.

principalType
Nullable<RoleManagementPrincipalType>

The principal type of the assigned principal ID.

description
String

Description of role assignment.

condition
String

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

conditionVersion
String

Version of the condition. Currently the only accepted value is '2.0'.

createdOn
Nullable<DateTimeOffset>

Time it was created.

updatedOn
Nullable<DateTimeOffset>

Time it was updated.

createdBy
String

Id of the user who created the assignment.

updatedBy
String

Id of the user who updated the assignment.

delegatedManagedIdentityResourceId
ResourceIdentifier

Id of the delegated managed identity resource.

Returns

A new RoleAssignmentData instance for mocking.

Applies to