Share via


ArmAuthorizationModelFactory.DenyAssignmentData Method

Definition

Initializes a new instance of DenyAssignmentData.

public static Azure.ResourceManager.Authorization.DenyAssignmentData DenyAssignmentData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string denyAssignmentName = default, string description = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.DenyAssignmentPermission> permissions = default, string scope = default, bool? isAppliedToChildScopes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal> principals = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal> excludePrincipals = default, bool? isSystemProtected = default);
static member DenyAssignmentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * seq<Azure.ResourceManager.Authorization.Models.DenyAssignmentPermission> * string * Nullable<bool> * seq<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal> * seq<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal> * Nullable<bool> -> Azure.ResourceManager.Authorization.DenyAssignmentData
Public Shared Function DenyAssignmentData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional denyAssignmentName As String = Nothing, Optional description As String = Nothing, Optional permissions As IEnumerable(Of DenyAssignmentPermission) = Nothing, Optional scope As String = Nothing, Optional isAppliedToChildScopes As Nullable(Of Boolean) = Nothing, Optional principals As IEnumerable(Of RoleManagementPrincipal) = Nothing, Optional excludePrincipals As IEnumerable(Of RoleManagementPrincipal) = Nothing, Optional isSystemProtected As Nullable(Of Boolean) = Nothing) As DenyAssignmentData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

denyAssignmentName
String

The display name of the deny assignment.

description
String

The description of the deny assignment.

permissions
IEnumerable<DenyAssignmentPermission>

An array of permissions that are denied by the deny assignment.

scope
String

The deny assignment scope.

isAppliedToChildScopes
Nullable<Boolean>

Determines if the deny assignment applies to child scopes. Default value is false.

principals
IEnumerable<RoleManagementPrincipal>

Array of principals to which the deny assignment applies.

excludePrincipals
IEnumerable<RoleManagementPrincipal>

Array of principals to which the deny assignment does not apply.

isSystemProtected
Nullable<Boolean>

Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.

Returns

A new DenyAssignmentData instance for mocking.

Applies to