ArmAuthorizationModelFactory.PolicyAssignmentProperties Method

Definition

public static Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties PolicyAssignmentProperties(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier scopeId = default, string scopeDisplayName = default, Azure.ResourceManager.Authorization.Models.RoleManagementScopeType? scopeType = default, Azure.Core.ResourceIdentifier roleDefinitionId = default, string roleDefinitionDisplayName = default, Azure.ResourceManager.Authorization.Models.AuthorizationRoleType? roleType = default, Azure.Core.ResourceIdentifier policyId = default, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal lastModifiedBy = default, DateTimeOffset? lastModifiedOn = default);
static member PolicyAssignmentProperties : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScopeType> * Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Authorization.Models.AuthorizationRoleType> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Authorization.Models.RoleManagementPrincipal * Nullable<DateTimeOffset> -> Azure.ResourceManager.Authorization.Models.PolicyAssignmentProperties
Public Shared Function PolicyAssignmentProperties (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional scopeId As ResourceIdentifier = Nothing, Optional scopeDisplayName As String = Nothing, Optional scopeType As Nullable(Of RoleManagementScopeType) = Nothing, Optional roleDefinitionId As ResourceIdentifier = Nothing, Optional roleDefinitionDisplayName As String = Nothing, Optional roleType As Nullable(Of AuthorizationRoleType) = Nothing, Optional policyId As ResourceIdentifier = Nothing, Optional lastModifiedBy As RoleManagementPrincipal = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing) As PolicyAssignmentProperties

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

scopeId
ResourceIdentifier

Scope id of the resource.

scopeDisplayName
String

Display name of the resource.

scopeType
Nullable<RoleManagementScopeType>

Type of the resource.

roleDefinitionId
ResourceIdentifier

Id of the role definition.

roleDefinitionDisplayName
String

Display name of the role definition.

roleType
Nullable<AuthorizationRoleType>

Type of the role definition.

policyId
ResourceIdentifier

Id of the policy.

lastModifiedBy
RoleManagementPrincipal

The name of the entity last modified it.

lastModifiedOn
Nullable<DateTimeOffset>

The last modified date time.

Returns

A new PolicyAssignmentProperties instance for mocking.

Applies to