共用方式為


ArmAuthorizationModelFactory.RoleAssignmentCreateOrUpdateContent Method

Definition

Initializes a new instance of RoleAssignmentCreateOrUpdateContent.

public static Azure.ResourceManager.Authorization.Models.RoleAssignmentCreateOrUpdateContent RoleAssignmentCreateOrUpdateContent (string scope = default, Azure.Core.ResourceIdentifier roleDefinitionId = default, Guid principalId = default, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default, string description = default, string condition = default, string conditionVersion = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, string createdBy = default, string updatedBy = default, Azure.Core.ResourceIdentifier delegatedManagedIdentityResourceId = default);
static member RoleAssignmentCreateOrUpdateContent : string * Azure.Core.ResourceIdentifier * Guid * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType> * string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Authorization.Models.RoleAssignmentCreateOrUpdateContent
Public Shared Function RoleAssignmentCreateOrUpdateContent (Optional scope As String = Nothing, Optional roleDefinitionId As ResourceIdentifier = Nothing, Optional principalId As Guid = Nothing, Optional principalType As Nullable(Of RoleManagementPrincipalType) = Nothing, Optional description As String = Nothing, Optional condition As String = Nothing, Optional conditionVersion As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional createdBy As String = Nothing, Optional updatedBy As String = Nothing, Optional delegatedManagedIdentityResourceId As ResourceIdentifier = Nothing) As RoleAssignmentCreateOrUpdateContent

Parameters

scope
String

The role assignment scope.

roleDefinitionId
ResourceIdentifier

The role definition ID.

principalId
Guid

The principal ID.

principalType
Nullable<RoleManagementPrincipalType>

The principal type of the assigned principal ID.

description
String

Description of role assignment.

condition
String

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

conditionVersion
String

Version of the condition. Currently the only accepted value is '2.0'.

createdOn
Nullable<DateTimeOffset>

Time it was created.

updatedOn
Nullable<DateTimeOffset>

Time it was updated.

createdBy
String

Id of the user who created the assignment.

updatedBy
String

Id of the user who updated the assignment.

delegatedManagedIdentityResourceId
ResourceIdentifier

Id of the delegated managed identity resource.

Returns

A new RoleAssignmentCreateOrUpdateContent instance for mocking.

Applies to