Share via


RoleAssignment Class

Definition

Azure role assignment details.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RoleAssignmentTypeConverter))]
public class RoleAssignment : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RoleAssignmentTypeConverter))>]
type RoleAssignment = class
    interface IRoleAssignment
    interface IJsonSerializable
Public Class RoleAssignment
Implements IRoleAssignment
Inheritance
RoleAssignment
Attributes
Implements

Constructors

RoleAssignment()

Creates an new RoleAssignment instance.

Properties

Id

The ARM Id of the role assignment.

Name

The name of the role assignment.

PrincipalId

Principal Id.

RoleDefinitionId

Role definition id.

Scope

Role assignment scope.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RoleAssignment.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RoleAssignment.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment.

FromJsonString(String)

Creates a new instance of RoleAssignment, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of RoleAssignment into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to