Share via


ArmAuthorizationModelFactory.RoleManagementPolicyAssignmentData Method

Definition

Initializes a new instance of RoleManagementPolicyAssignmentData.

public static Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentData RoleManagementPolicyAssignmentData (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, Azure.Core.ResourceIdentifier policyId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRule> effectiveRules = default, Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties policyAssignmentProperties = default);
static member RoleManagementPolicyAssignmentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRule> * Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties -> Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentData
Public Shared Function RoleManagementPolicyAssignmentData (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 policyId As ResourceIdentifier = Nothing, Optional effectiveRules As IEnumerable(Of RoleManagementPolicyRule) = Nothing, Optional policyAssignmentProperties As PolicyAssignmentProperties = Nothing) As RoleManagementPolicyAssignmentData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

scope
String

The role management policy scope.

roleDefinitionId
ResourceIdentifier

The role definition of management policy assignment.

policyId
ResourceIdentifier

The policy id role management policy assignment.

effectiveRules
IEnumerable<RoleManagementPolicyRule>

The readonly computed rule applied to the policy. Please note RoleManagementPolicyRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RoleManagementPolicyApprovalRule, RoleManagementPolicyAuthenticationContextRule, RoleManagementPolicyEnablementRule, RoleManagementPolicyExpirationRule and RoleManagementPolicyNotificationRule.

policyAssignmentProperties
PolicyAssignmentProperties

Additional properties of scope, role definition and policy.

Returns

A new RoleManagementPolicyAssignmentData instance for mocking.

Applies to