RoleAssignmentData Class

Definition

A class representing the RoleAssignment data model. Role Assignments

public class RoleAssignmentData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Authorization.RoleAssignmentData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Authorization.RoleAssignmentData>
public class RoleAssignmentData : Azure.ResourceManager.Models.ResourceData
type RoleAssignmentData = class
    inherit ResourceData
    interface IJsonModel<RoleAssignmentData>
    interface IPersistableModel<RoleAssignmentData>
type RoleAssignmentData = class
    inherit ResourceData
Public Class RoleAssignmentData
Inherits ResourceData
Implements IJsonModel(Of RoleAssignmentData), IPersistableModel(Of RoleAssignmentData)
Public Class RoleAssignmentData
Inherits ResourceData
Inheritance
RoleAssignmentData
Implements

Properties

Condition

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

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

CreatedBy

Id of the user who created the assignment.

CreatedOn

Time it was created.

DelegatedManagedIdentityResourceId

Id of the delegated managed identity resource.

Description

Description of role assignment.

Id

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

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
PrincipalId

The principal ID.

PrincipalType

The principal type of the assigned principal ID.

ResourceType

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

(Inherited from ResourceData)
RoleDefinitionId

The role definition ID.

Scope

The role assignment scope.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
UpdatedBy

Id of the user who updated the assignment.

UpdatedOn

Time it was updated.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<RoleAssignmentData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RoleAssignmentData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RoleAssignmentData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RoleAssignmentData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RoleAssignmentData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to