ArmAuthorizationModelFactory.RoleManagementPolicyEnablementRule 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.
public static Azure.ResourceManager.Authorization.Models.RoleManagementPolicyEnablementRule RoleManagementPolicyEnablementRule(string id = default, Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRuleTarget target = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.RoleAssignmentEnablementRuleType> enablementRules = default);
static member RoleManagementPolicyEnablementRule : string * Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRuleTarget * seq<Azure.ResourceManager.Authorization.Models.RoleAssignmentEnablementRuleType> -> Azure.ResourceManager.Authorization.Models.RoleManagementPolicyEnablementRule
Public Shared Function RoleManagementPolicyEnablementRule (Optional id As String = Nothing, Optional target As RoleManagementPolicyRuleTarget = Nothing, Optional enablementRules As IEnumerable(Of RoleAssignmentEnablementRuleType) = Nothing) As RoleManagementPolicyEnablementRule
Parameters
- id
- String
The id of the rule.
The target of the current rule.
- enablementRules
- IEnumerable<RoleAssignmentEnablementRuleType>
The list of enabled rules.
Returns
A new RoleManagementPolicyEnablementRule instance for mocking.