Sdílet prostřednictvím


ArmAuthorizationModelFactory.RoleManagementPolicyData Method

Definition

Initializes a new instance of RoleManagementPolicyData.

public static Azure.ResourceManager.Authorization.RoleManagementPolicyData RoleManagementPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string scope = default, string displayName = default, string description = default, bool? isOrganizationDefault = default, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal lastModifiedBy = default, DateTimeOffset? lastModifiedOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRule> rules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRule> effectiveRules = default, Azure.ResourceManager.Authorization.Models.RoleManagementPolicyProperties policyProperties = default);
static member RoleManagementPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * Nullable<bool> * Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRule> * seq<Azure.ResourceManager.Authorization.Models.RoleManagementPolicyRule> * Azure.ResourceManager.Authorization.Models.RoleManagementPolicyProperties -> Azure.ResourceManager.Authorization.RoleManagementPolicyData
Public Shared Function RoleManagementPolicyData (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 displayName As String = Nothing, Optional description As String = Nothing, Optional isOrganizationDefault As Nullable(Of Boolean) = Nothing, Optional lastModifiedBy As RoleManagementPrincipal = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional rules As IEnumerable(Of RoleManagementPolicyRule) = Nothing, Optional effectiveRules As IEnumerable(Of RoleManagementPolicyRule) = Nothing, Optional policyProperties As RoleManagementPolicyProperties = Nothing) As RoleManagementPolicyData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

scope
String

The role management policy scope.

displayName
String

The role management policy display name.

description
String

The role management policy description.

isOrganizationDefault
Nullable<Boolean>

The role management policy is default policy.

lastModifiedBy
RoleManagementPrincipal

The name of the entity last modified it.

lastModifiedOn
Nullable<DateTimeOffset>

The last modified date time.

rules
IEnumerable<RoleManagementPolicyRule>

The 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.

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.

policyProperties
RoleManagementPolicyProperties

Additional properties of scope.

Returns

A new RoleManagementPolicyData instance for mocking.

Applies to